Example usage for Java edu.stanford.nlp.tagger.maxent MaxentTagger fields, constructors, methods, implement or subclass
The text is from its open source code.
MaxentTagger(TaggerConfig config) | |
MaxentTagger(String modelFile) Constructor for a tagger, loading a model stored in a particular file, classpath resource, or URL. | |
MaxentTagger(InputStream modelStream) Constructor for a tagger, loading a model stored in a particular file, classpath resource, or URL. | |
MaxentTagger(String modelFile, Properties config, boolean printLoading) Initializer that loads the tagger. | |
MaxentTagger(InputStream modelStream, Properties config, boolean printLoading) Initializer that loads the tagger. | |
MaxentTagger(String modelFile, Properties config) Constructor for a tagger using a model stored in a particular file, with options taken from the supplied TaggerConfig. |
void | main(String[] args) Command-line tagger interface. |
List
| process(List extends List extends HasWord>> sentences) Tags the Words in each Sentence in the given List with their grammatical part-of-speech. |
List | tagSentence(List extends HasWord> sentence) Returns a new Sentence that is a copy of the given sentence with all the words tagged with their part-of-speech. |
List | tagSentence(List extends HasWord> sentence, boolean reuseTags) Returns a new Sentence that is a copy of the given sentence with all the words tagged with their part-of-speech. |
Set | tagSet() |
String | tagString(String toTag) Tags the input string and returns the tagged version. |
String | tagTokenizedString(String toTag) Tags the tokenized input string and returns the tagged version. |
List
| tokenizeText(Reader r) Reads data from r, tokenizes it with the default (Penn Treebank) tokenizer, and returns a List of Sentence objects, which can then be fed into tagSentence. |
List
| tokenizeText(Reader r, TokenizerFactory extends HasWord> tokenizerFactory) Reads data from r, tokenizes it with the given tokenizer, and returns a List of Lists of (extends) HasWord objects, which can then be fed into tagSentence. |