Package net.ontopia.topicmaps.classify
Class CompoundAnalyzer
- java.lang.Object
-
- net.ontopia.topicmaps.classify.AbstractDocumentAnalyzer
-
- net.ontopia.topicmaps.classify.CompoundAnalyzer
-
- All Implemented Interfaces:
DocumentAnalyzerIF
,TermAnalyzerIF
public class CompoundAnalyzer extends AbstractDocumentAnalyzer implements TermAnalyzerIF
INTERNAL:
-
-
Field Summary
-
Fields inherited from class net.ontopia.topicmaps.classify.AbstractDocumentAnalyzer
iteration, iterations
-
-
Constructor Summary
Constructors Constructor Description CompoundAnalyzer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addComposites(TermDatabase tdb, Term t1, int length)
protected void
addFollower(Variant variant, Token token)
protected void
addFollower(Variant variant, Token token, int counts)
void
analyzeTerm(Term term)
void
analyzeToken(TextBlock parent, Token token, int index)
void
dump(Term t)
void
endAnalysis()
void
setCompositeOccurrencesThreshold(int compositeOccsThreshold)
void
setMaxLength(int maxLength)
void
setTerm1ScoreThreshold(double term1ScoreThreshold)
void
setTerm2ScoreThreshold(double term2ScoreThreshold)
void
setTermStemmer(TermStemmerIF stemmer)
void
startAnalysis(TermDatabase tdb)
-
Methods inherited from class net.ontopia.topicmaps.classify.AbstractDocumentAnalyzer
doDocumentAnalysis, endDocument, endRegion, startAnalysis, startDocument, startRegion
-
-
-
-
Method Detail
-
setMaxLength
public void setMaxLength(int maxLength)
-
setTerm1ScoreThreshold
public void setTerm1ScoreThreshold(double term1ScoreThreshold)
-
setTerm2ScoreThreshold
public void setTerm2ScoreThreshold(double term2ScoreThreshold)
-
setCompositeOccurrencesThreshold
public void setCompositeOccurrencesThreshold(int compositeOccsThreshold)
-
setTermStemmer
public void setTermStemmer(TermStemmerIF stemmer)
-
analyzeToken
public void analyzeToken(TextBlock parent, Token token, int index)
- Specified by:
analyzeToken
in interfaceDocumentAnalyzerIF
- Specified by:
analyzeToken
in classAbstractDocumentAnalyzer
-
analyzeTerm
public void analyzeTerm(Term term)
- Specified by:
analyzeTerm
in interfaceTermAnalyzerIF
-
startAnalysis
public void startAnalysis(TermDatabase tdb)
- Specified by:
startAnalysis
in interfaceTermAnalyzerIF
-
endAnalysis
public void endAnalysis()
- Specified by:
endAnalysis
in interfaceDocumentAnalyzerIF
- Specified by:
endAnalysis
in interfaceTermAnalyzerIF
- Overrides:
endAnalysis
in classAbstractDocumentAnalyzer
-
addComposites
public void addComposites(TermDatabase tdb, Term t1, int length)
-
dump
public void dump(Term t)
-
-