Class TextAnnotater
java.lang.Object
tagger.TextAnnotater
Provided text is converted to CoreDocument object, allowing the CoreNLP library to annotate parts of speech for each word
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTextAnnotater(String text) Constructor creates document object upon instantiation with each word and punctuation identified with a part of speechTextAnnotater(Path file) If a Path has already been instantiated, constructor reads file and calls resulting String constructor -
Method Summary
-
Field Details
-
document
private final edu.stanford.nlp.pipeline.CoreDocument document
-
-
Constructor Details
-
TextAnnotater
Constructor creates document object upon instantiation with each word and punctuation identified with a part of speech -
TextAnnotater
If a Path has already been instantiated, constructor reads file and calls resulting String constructor- Throws:
IOException
-
-
Method Details
-
getDocument
public edu.stanford.nlp.pipeline.CoreDocument getDocument()
-