Example usage for Java edu.stanford.nlp.ie AbstractSequenceClassifier fields, constructors, methods, implement or subclass
The text is from its open source code.
List
| classify(String str) Classify the tokens in a String. |
List | classify(List Classify a List of something that extends CoreMap . |
void | classifyAndWriteAnswersKBest(String testFile, int k, DocumentReaderAndWriter Load a test file, run the classifier on it, and then print the answers to stdout (with timing to stderr). |
List
| classifyFile(String filename) Classify the contents of a file. |
List | classifyToCharacterOffsets(String sentences) Classify the contents of a String to classified character offset spans. |
String | classifyToString(String sentences) Classify the contents of a String to a tagged word/class String. |
String | classifyToString(String sentences, String outputFormat, boolean preserveSpacing) Classify the contents of a String to one of several String representations that shows the classes. |
String | classifyWithInlineXML(String sentences) Classify the contents of a String . |
ObjectBank
| makeObjectBankFromFile(String filename, DocumentReaderAndWriter |
DocumentReaderAndWriter | makePlainTextReaderAndWriter() Makes a DocumentReaderAndWriter based on flags.plainTextReaderAndWriter. |
DocumentReaderAndWriter | makeReaderAndWriter() Makes a DocumentReaderAndWriter based on the flags the CRFClassifier was constructed with. |
void | printProbs(String filename, DocumentReaderAndWriter Takes the file, reads it in, and prints out the likelihood of each possible label at each point. |
void | printProbs(Collection Takes the files, reads them in, and prints out the likelihood of each possible label at each point. |
void | serializeClassifier(String serializePath) Serialize a sequence classifier to a file on the given path. |
void | serializeClassifier(ObjectOutputStream oos) Serialize a sequence classifier to an object output stream |
void | train(String filename, DocumentReaderAndWriter |
void | train(String[] trainFileList, DocumentReaderAndWriter |
void | train(Collection
Trains a classifier from a Collection of sequences. |