org.cogroo.analyzer
Interface ComponentFactoryI
- All Known Implementing Classes:
- ComponentFactory
public interface ComponentFactoryI
Creates the analyzers using the OpenNLP components.
Follows the factory design pattern.
createSentenceDetector
Analyzer createSentenceDetector()
- Returns:
SentenceDetector
if this Analyzer
in the corresponding language exists, otherwise null.
createTokenizer
Analyzer createTokenizer()
- Returns:
Tokenizer
if this Analyzer in the corresponding language exists, otherwise null.
createNameFinder
Analyzer createNameFinder()
- Returns:
NameFinder
if this Analyzer in the corresponding language exists, otherwise null.
createContractionFinder
Analyzer createContractionFinder()
- Returns:
ContractionFinder
if this Analyzer in the corresponding language exists, otherwise null.
createPOSTagger
Analyzer createPOSTagger()
- Returns:
POSTagger
if this Analyzer in the corresponding language exists, otherwise null.
createFeaturizer
Analyzer createFeaturizer()
createPipe
Analyzer createPipe()
- Returns:
Pipe
according to the corresponding language.
Copyright © 2012-2013 CoGrOO. All Rights Reserved.