Package | Description |
---|---|
gov.sandia.cognition.text.term |
Provides term representing text content in documents.
|
gov.sandia.cognition.text.term.filter |
Provides classes for filtering and transforming terms.
|
gov.sandia.cognition.text.term.relation |
Provides relationships between terms.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TermNGram
Interface for a term that is some type of n-gram.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractTerm
Creates a new
AbstractTerm . |
class |
DefaultTerm
A default implementation of the
Term interface. |
class |
DefaultTermNGram
A default implementation of the
TermNGram interface. |
Modifier and Type | Field and Description |
---|---|
protected Term |
DefaultIndexedTerm.term
The term.
|
protected Term |
DefaultTermOccurrence.term
The term that occurred.
|
protected Term[] |
DefaultTermNGram.terms
The array of terms that make up the n-gram.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<Term,DefaultIndexedTerm> |
DefaultTermIndex.termMap
The mapping of terms to their corresponding (unique) indices.
|
protected java.util.HashMap<Term,java.lang.Integer> |
DefaultTermCounts.termToCountMap
The mapping of terms to their respective counts.
|
Modifier and Type | Method and Description |
---|---|
Term |
AbstractTerm.asTerm() |
Term |
DefaultIndexedTerm.asTerm() |
Term |
DefaultTermOccurrence.asTerm() |
Term |
Termable.asTerm()
Get the term for the object.
|
Term |
TermFactory.createTerm(java.lang.String term)
Creates a new term from the given string.
|
Term |
TermFactory.createTerm(Token token)
Creates a new term from the given token.
|
Term |
DefaultTermOccurrence.getData() |
Term |
DefaultIndexedTerm.getTerm() |
Term |
DefaultTermOccurrence.getTerm() |
Term |
IndexedTerm.getTerm()
Gets the term associated with the index.
|
Term |
TermOccurrence.getTerm()
Gets the term that occurred in the text.
|
Term |
AbstractTermIndex.getTerm(int index) |
Term |
DefaultTermNGram.getTerm(int i) |
Term |
TermIndex.getTerm(int index)
Gets the term associated with the given index.
|
Term |
TermNGram.getTerm(int i)
Gets the i-th term in the n-gram.
|
Term[] |
DefaultTermNGram.getTerms()
Gets the terms that make up the n-gram.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Term> |
DefaultTermNGram.getTermList() |
java.util.List<Term> |
TermNGram.getTermList()
Gets the list of terms in the n-gram.
|
protected java.util.Map<Term,DefaultIndexedTerm> |
DefaultTermIndex.getTermMap()
Gets the mapping of terms to their indices.
|
java.util.Set<Term> |
DefaultTermCounts.getTerms() |
java.util.Set<Term> |
TermCounts.getTerms()
Gets the set of all terms the counts are over.
|
protected java.util.HashMap<Term,java.lang.Integer> |
DefaultTermCounts.getTermToCountMap()
Gets the mapping of terms to their respective counts.
|
Modifier and Type | Method and Description |
---|---|
IndexedTerm |
DefaultTermIndex.add(Term term) |
IndexedTerm |
TermIndex.add(Term term)
Adds the given term to the index.
|
void |
DefaultTermCounts.add(Term term,
int count)
Adds the given amount for the given term.
|
boolean |
AbstractTerm.equals(Term other)
Determines if this term is equal to another term.
|
int |
DefaultTermCounts.getCount(Term term) |
int |
TermCounts.getCount(Term term)
Get the count for a given term.
|
int |
AbstractTermIndex.getIndex(Term term) |
int |
TermIndex.getIndex(Term term)
Gets the index of the given term.
|
DefaultIndexedTerm |
DefaultTermIndex.getIndexedTerm(Term term) |
IndexedTerm |
TermIndex.getIndexedTerm(Term term)
Gets the index-term pair for the given term, if it is in the index.
|
boolean |
AbstractTermIndex.hasTerm(Term term) |
boolean |
TermIndex.hasTerm(Term term)
Determines if the index contains the given term.
|
protected void |
DefaultIndexedTerm.setTerm(Term term)
Sets the term.
|
void |
DefaultTermOccurrence.setTerm(Term term)
Sets the term that occurred.
|
void |
DefaultTermNGram.setTerms(Term... terms)
Sets the terms that make up the n-gram.
|
Modifier and Type | Method and Description |
---|---|
protected void |
DefaultTermIndex.setTermMap(java.util.Map<Term,DefaultIndexedTerm> termMap)
Sets the mapping of terms to their indices.
|
protected void |
DefaultTermCounts.setTermToCountMap(java.util.HashMap<Term,java.lang.Integer> termToCountMap)
Gets the mapping of terms to their respective counts.
|
Constructor and Description |
---|
DefaultIndexedTerm(int index,
Term term)
Creates a new
DefaultIndexedTerm with the given index and term. |
DefaultTermNGram(Term... terms)
Creates a new
DefaultTermNGram . |
DefaultTermOccurrence(Term term,
int start,
int length)
Creates a new
DefaultTermOccurrence . |
Modifier and Type | Field and Description |
---|---|
protected java.util.Set<Term> |
DictionaryFilter.allowedTerms
The set of terms allowed by the filter.
|
protected java.util.Map<Term,Term> |
SynonymFilter.synonyms
The mapping of terms to the synonym to replace them with.
|
protected java.util.Map<Term,Term> |
SynonymFilter.synonyms
The mapping of terms to the synonym to replace them with.
|
Modifier and Type | Method and Description |
---|---|
java.util.Set<Term> |
DictionaryFilter.getAllowedTerms()
Gets the set of allowed terms.
|
java.util.Map<Term,Term> |
SynonymFilter.getSynonyms()
Gets the mapping of terms to their synonyms.
|
java.util.Map<Term,Term> |
SynonymFilter.getSynonyms()
Gets the mapping of terms to their synonyms.
|
Modifier and Type | Method and Description |
---|---|
boolean |
DefaultStopList.contains(Term term)
Returns true if the given term is in the stop list.
|
Modifier and Type | Method and Description |
---|---|
void |
DictionaryFilter.setAllowedTerms(java.util.Set<Term> allowedTerms)
Sets the set of allowed terms.
|
void |
SynonymFilter.setSynonyms(java.util.Map<Term,Term> synonyms)
Sets the mapping of terms to their synonyms.
|
void |
SynonymFilter.setSynonyms(java.util.Map<Term,Term> synonyms)
Sets the mapping of terms to their synonyms.
|
Constructor and Description |
---|
DictionaryFilter(java.util.Set<Term> allowedTerms)
Creates a new
DictionaryFilter with a given set of allowed
terms. |
SynonymFilter(java.util.Map<Term,Term> synonyms)
Creates a new
SynonymFilter with the given synonyms. |
SynonymFilter(java.util.Map<Term,Term> synonyms)
Creates a new
SynonymFilter with the given synonyms. |
Modifier and Type | Method and Description |
---|---|
double |
MatrixBasedTermSimilarityNetwork.getSimilarity(Term sourceTerm,
Term targetTerm)
Gets the similarity between the two given terms.
|