public interface Analyzer
Analyzer interface is responsible for analyzing part of the
document.
Some analyzers that implement this interface are:
SenteceDetector
Tokenizer
NameFinder
ContractionFinder
POSTagger
The SentenceDetector, for example, looks for all sentences in a text and keeps them separately in a list.
| Modifier and Type | Method and Description |
|---|---|
void |
analyze(Document document)
Analyzes part of a text or a word.
|
void analyze(Document document)
For example, it can search all the sentences in the text or tag every word in a sentence.
document - contains the whole text given by the user. After an analysis it can store the text's sentences, words or its tags.Copyright © 2012–2017 CoGrOO. All rights reserved.