/**
* Factory method for loading a POS tagger.
*/
public static MaxentTagger makeTagger(String modelFile) throws Exception {
TaggerConfig config = new TaggerConfig("-model", modelFile);
// The final argument suppresses a "loading" message on stderr.
return new MaxentTagger(modelFile, config, false);
}