org.cogroo.analyzer
Interface Analyzer

All Known Implementing Classes:
Chunker, ContractionFinder, Featurizer, HeadFinder, Lemmatizer, NameFinder, Pipe, POSTagger, SentenceDetector, ShallowParser, Tokenizer

public interface Analyzer

The 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.


Method Summary
 void analyze(Document document)
          Analyzes part of a text or a word.
 

Method Detail

analyze

void analyze(Document document)
Analyzes part of a text or a word.

For example, it can search all the sentences in the text or tag every word in a sentence.

Parameters:
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-2013 CoGrOO. All Rights Reserved.