TERM
- The structure used for a term representationCONTEXTS
- The structure used for a context representationORDER2LIST
- The structure used for representation of distributional similarity listsORDER1LIST
- The structure used for representation of lists containing the significance scores and countsISAS
- The structure used for representation of lists of sense representationsSENSES
- The structure used for representation of lists of sense representationsSENSE_CUIS
- The structure used for representation of lists of sense representationspublic interface IThesaurus<TERM,CONTEXTS,ORDER2LIST,ORDER1LIST,ISAS,SENSES,SENSE_CUIS>
Modifier and Type | Method and Description |
---|---|
boolean |
connect()
Connects to the data source
|
void |
destroy()
Ends the connection to the data source
|
java.lang.Long |
getContextsCount(CONTEXTS key)
Get the context count from the corpus
|
ORDER1LIST |
getContextsTermScores(CONTEXTS key)
Get all term-context scores for a given context
|
ORDER1LIST |
getContextsTermScores(CONTEXTS key,
double threshold)
Get all term-context scores for a given context, using a score threshold
|
ORDER1LIST |
getContextsTermScores(CONTEXTS key,
int numberOfEntries)
Get the top n term-context scores for a given context
|
ISAS |
getIsas(TERM key)
Get all senses for the input term, using the standard sense type
|
ISAS |
getIsas(TERM key,
java.lang.String type)
Get all senses for the input term, with a specified sense type
|
SENSE_CUIS |
getSenseCUIs(TERM key)
Get all senses for the input term, using the standard sense type
|
SENSE_CUIS |
getSenseCUIs(TERM key,
java.lang.String type)
Get all senses for the input term, with a specified sense type
|
SENSES |
getSenses(TERM key)
Get all senses for the input term, using the standard sense type
|
SENSES |
getSenses(TERM key,
java.lang.String type)
Get all senses for the input term, with a specified sense type
|
java.lang.String[] |
getSensesTypes()
Get all possible sense types available
|
ORDER2LIST |
getSimilarContexts(CONTEXTS values)
Get a list of all similar contexts for a given context
|
ORDER2LIST |
getSimilarContexts(CONTEXTS values,
double threshold)
Get a list of all similar contexts for a given context, minimal similarity score is specified
|
ORDER2LIST |
getSimilarContexts(CONTEXTS values,
int numberOfEntries)
Get a list of all similar contexts for a given context, maximal number is specified
|
ORDER2LIST |
getSimilarTerms(TERM key)
Get a list of all similar terms for a given term.
|
ORDER2LIST |
getSimilarTerms(TERM key,
double threshold)
Get a list of similar terms for a given term, minimal similarity score is specified
|
ORDER2LIST |
getSimilarTerms(TERM key,
int numberOfEntries)
Get a list of similar terms for a given term, maximal number is specified
|
java.lang.Double |
getSimilarTermScore(TERM t1,
TERM t2)
Retrieve the similarity score between two terms.
|
java.lang.String |
getStandardSense()
Get the name of the standard sense inventory type
|
java.lang.Long |
getTermContextsCount(TERM key,
CONTEXTS val)
Get the term-context count from the corpus
|
java.lang.Double |
getTermContextsScore(TERM key,
CONTEXTS val)
Get the significance score of a term-context combination
|
ORDER1LIST |
getTermContextsScores(TERM key)
Get all term-context scores for a given term
|
ORDER1LIST |
getTermContextsScores(TERM key,
double threshold)
Get all term-context scores for a given term, using a score threshold
|
ORDER1LIST |
getTermContextsScores(TERM key,
int numberOfEntries)
Get the top n term-context scores for a given term
|
java.lang.Long |
getTermCount(TERM key)
Get the term count from the corpus
|
CONTEXTS[] |
isContextsContained(CONTEXTS... key)
Checks which contexts from the input list are contained in the resource
|
boolean |
isContextsContained(CONTEXTS key)
Checks whether the context is contained in the resource
|
TERM[] |
isTermContained(TERM... key)
Checks whether a list of terms is contained in the resource
|
boolean |
isTermContained(TERM key)
Checks whether the term is contained in the resource
|
boolean connect()
void destroy()
java.lang.Double getSimilarTermScore(TERM t1, TERM t2)
t1
- term1t2
- term2ORDER2LIST getSimilarTerms(TERM key)
key
- the input termORDER2LIST getSimilarTerms(TERM key, int numberOfEntries)
key
- the input termnumberOfEntries
- the maximal number of items to retrieveORDER2LIST getSimilarTerms(TERM key, double threshold)
key
- the input termthreshold
- the minimal similarity scoreORDER2LIST getSimilarContexts(CONTEXTS values)
values
- the input contextORDER2LIST getSimilarContexts(CONTEXTS values, int numberOfEntries)
values
- the input contextnumberOfEntries
- the maximal number of items to retrieveORDER2LIST getSimilarContexts(CONTEXTS values, double threshold)
values
- the input contextthreshold
- the minimal similarity scorejava.lang.Long getTermCount(TERM key)
key
- the input termjava.lang.Long getContextsCount(CONTEXTS key)
key
- the input contextjava.lang.Long getTermContextsCount(TERM key, CONTEXTS val)
key
- the input termval
- the input contextjava.lang.Double getTermContextsScore(TERM key, CONTEXTS val)
key
- the input termval
- the input contextORDER1LIST getTermContextsScores(TERM key)
key
- the input termORDER1LIST getTermContextsScores(TERM key, int numberOfEntries)
key
- the input termnumberOfEntries
- the maximum number of entries to returnORDER1LIST getTermContextsScores(TERM key, double threshold)
key
- the input termthreshold
- the minimal significance scoreORDER1LIST getContextsTermScores(CONTEXTS key)
key
- the input contextORDER1LIST getContextsTermScores(CONTEXTS key, int numberOfEntries)
key
- the input contextnumberOfEntries
- the maximum number of entries to returnORDER1LIST getContextsTermScores(CONTEXTS key, double threshold)
key
- the input contextthreshold
- the minimal significance scoreSENSES getSenses(TERM key)
key
- the input termISAS getIsas(TERM key)
key
- the input termSENSE_CUIS getSenseCUIs(TERM key)
key
- the input termSENSES getSenses(TERM key, java.lang.String type)
key
- the input termtype
- the required sense typeISAS getIsas(TERM key, java.lang.String type)
key
- the input termtype
- the required sense typeSENSE_CUIS getSenseCUIs(TERM key, java.lang.String type)
key
- the input termtype
- the required sense typejava.lang.String[] getSensesTypes()
java.lang.String getStandardSense()
boolean isTermContained(TERM key)
key
- input termTERM[] isTermContained(TERM... key)
key
- list of input terms that should be checkedboolean isContextsContained(CONTEXTS key)
key
- the input context