public class DocumentClassifier extends Object
Constructor and Description |
---|
DocumentClassifier(TermDatabase tdb) |
Modifier and Type | Method and Description |
---|---|
void |
addDocumentAnalyzer(DocumentAnalyzerIF analyzer) |
void |
addTermAnalyzer(TermAnalyzerIF analyzer) |
void |
analyzeDocument(Document doc) |
protected void |
analyzeRegion(Region region,
DocumentAnalyzerIF analyzer) |
void |
analyzeTerms() |
protected void |
analyzeTextBlock(Region parent,
TextBlock tb,
DocumentAnalyzerIF analyzer) |
void |
dump() |
protected void |
extractTerms(Document doc) |
protected void |
extractTerms(Region region) |
protected void |
extractTerms(Region parent,
TextBlock tb) |
TermDatabase |
getTermDatabase() |
void |
setTermDatabase(TermDatabase tdb) |
void |
setTermStemmer(TermStemmerIF stemmer) |
public DocumentClassifier(TermDatabase tdb)
public TermDatabase getTermDatabase()
public void setTermDatabase(TermDatabase tdb)
public void setTermStemmer(TermStemmerIF stemmer)
public void addDocumentAnalyzer(DocumentAnalyzerIF analyzer)
public void addTermAnalyzer(TermAnalyzerIF analyzer)
protected void extractTerms(Document doc)
protected void extractTerms(Region region)
public void analyzeDocument(Document doc)
protected void analyzeRegion(Region region, DocumentAnalyzerIF analyzer)
protected void analyzeTextBlock(Region parent, TextBlock tb, DocumentAnalyzerIF analyzer)
public void analyzeTerms()
public void dump()