How can I achieve a single jar file deployment of the POS tagger?
This is easy – with version 2.0 of the Stanford POS tagger (only). You can insert one or more tagger models into the jar file and give options to load a model from there. Here are detailed instructions. • Start in the home directory of the unpacked tagger download • Make a copy of the jar file, into which we’ll insert a tagger model: cp stanford-postagger.jar stanford-postagger-withModel.jar • Insert one or more models into the /models/ resource path of the jar file. jar -uf stanford-postagger-withModel.jar models/left3words-distsim-wsj-0-18.tagger • You can now specify loading this model by prefixing the supplied model by jar:. A name following jar: is looked for in the /models resource path of the jar file from which classes are being loaded.