Package | Description |
---|---|
cat.lump.aq.textextraction.wikipedia.categories |
Modifier and Type | Method and Description |
---|---|
DomainVocabulary |
CategoryExplorer.createCategoryVocabulary(Category category)
Creates the vocabulary related to the given category.
|
DomainVocabulary |
DomainVocabulary.getTop(float percentage)
Extracts the most frequent terms of the vocabulary.
|
DomainVocabulary |
DomainVocabulary.getTop(int qtt)
Extract the
qtt most frequent terms of the vocabulary. |
static DomainVocabulary |
DomainVocabulary.loadfromFile(java.io.File input)
Creates a
DomainVocabulary instance by reading a binary file
which contains a domain vocabulary. |
Modifier and Type | Method and Description |
---|---|
boolean |
CategoryExplorer.isDomain(Category category,
DomainVocabulary vocabulary)
Checks if a category belongs to the domain defined by the given
vocabulary.
|
java.util.ArrayList<GroupOfCategories> |
CategoryExplorer.scoreDomain(DomainVocabulary vocabulary,
Category root)
Scores all the groups which compose a domain.
|
java.util.ArrayList<GroupOfCategories> |
CategoryExplorer.scoreDomain(DomainVocabulary vocabulary,
Category root,
int maxDistance)
Scores the groups which compose a domain and are at most as far as the
maxDistance parameter defines. |
Constructor and Description |
---|
DomainVocabulary(DomainVocabulary vocabulary)
Creates a new vocabulary identical to the given one.
|