org.apache.stanbol.commons.opennlp
Class TextAnalyzer.TextAnalyzerConfig
java.lang.Object
org.apache.stanbol.commons.opennlp.TextAnalyzer.TextAnalyzerConfig
- Enclosing class:
- TextAnalyzer
public static final class TextAnalyzer.TextAnalyzerConfig
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
forceSimpleTokenizer
protected boolean forceSimpleTokenizer
forceKeywordTokenizer
protected boolean forceKeywordTokenizer
enablePosTagger
protected boolean enablePosTagger
enableChunker
protected boolean enableChunker
enableSentenceDetector
protected boolean enableSentenceDetector
enablePosTypeChunker
protected boolean enablePosTypeChunker
forcePosTypeChunker
protected boolean forcePosTypeChunker
TextAnalyzer.TextAnalyzerConfig
public TextAnalyzer.TextAnalyzerConfig()
isSimpleTokenizerForced
public final boolean isSimpleTokenizerForced()
forceSimpleTokenizer
public final void forceSimpleTokenizer(boolean useSimpleTokenizer)
isKeywordTokenizerForced
public final boolean isKeywordTokenizerForced()
forceKeywordTokenizer
public final void forceKeywordTokenizer(boolean useKeywordTokenizer)
isPosTaggerEnable
public final boolean isPosTaggerEnable()
enablePosTagger
public final void enablePosTagger(boolean enablePosTagger)
isChunkerEnabled
public final boolean isChunkerEnabled()
enableChunker
public final void enableChunker(boolean enableChunker)
isSentenceDetectorEnabled
public final boolean isSentenceDetectorEnabled()
enableSentenceDetector
public final void enableSentenceDetector(boolean enableSentenceDetector)
isPosTypeChunkerEnabled
public final boolean isPosTypeChunkerEnabled()
enablePosTypeChunker
public final void enablePosTypeChunker(boolean enablePosTypeChunker)
- Enables the used of the
PosTypeChunker if no Chunker for
the current language is available.
- Parameters:
enablePosTypeChunker -
isPosTypeChunkerForced
public final boolean isPosTypeChunkerForced()
forcePosTypeChunker
public final void forcePosTypeChunker(boolean forcePosTypeChunker)
- Forces the use of the
PosTypeChunker even if a Chunker
for the current language would be available
- Parameters:
forcePosTypeChunker -
getMinPosTypeProbability
public final double getMinPosTypeProbability()
- Getter for the minimum POS tag probability so that the
PosTypeChunker processes a POS tag.
- Returns:
- the minPosTypeProbability
setMinPosTagProbability
public final void setMinPosTagProbability(double probability)
- Setter for the minimum POS tag probability so that the
PosTypeChunker processes a POS tag.
- Parameters:
minPosTagProbability - The probability [0..1] or value < 0 to
deactivate this feature
- Throws:
java.lang.IllegalArgumentException - if values > 1 are parsed as probability
Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.