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 voidaddComposites(TermDatabase tdb, Term t1, int length)protected voidaddFollower(Variant variant, Token token)protected voidaddFollower(Variant variant, Token token, int counts)voidanalyzeTerm(Term term)voidanalyzeToken(TextBlock parent, Token token, int index)voiddump(Term t)voidendAnalysis()voidsetCompositeOccurrencesThreshold(int compositeOccsThreshold)voidsetMaxLength(int maxLength)voidsetTerm1ScoreThreshold(double term1ScoreThreshold)voidsetTerm2ScoreThreshold(double term2ScoreThreshold)voidsetTermStemmer(TermStemmerIF stemmer)voidstartAnalysis(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:
analyzeTokenin interfaceDocumentAnalyzerIF- Specified by:
analyzeTokenin classAbstractDocumentAnalyzer
-
analyzeTerm
public void analyzeTerm(Term term)
- Specified by:
analyzeTermin interfaceTermAnalyzerIF
-
startAnalysis
public void startAnalysis(TermDatabase tdb)
- Specified by:
startAnalysisin interfaceTermAnalyzerIF
-
endAnalysis
public void endAnalysis()
- Specified by:
endAnalysisin interfaceDocumentAnalyzerIF- Specified by:
endAnalysisin interfaceTermAnalyzerIF- Overrides:
endAnalysisin classAbstractDocumentAnalyzer
-
addComposites
public void addComposites(TermDatabase tdb, Term t1, int length)
-
dump
public void dump(Term t)
-
-