|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ITermCorpus
ITermCorpus is the interface of a term corpus that provides lookup functionality for terms and documents (from id to matrix index) as well as access to term and word vectors of the corpus.
Method Summary | |
---|---|
java.util.Map<java.lang.Integer,java.lang.Integer> |
getDocTerms(int doc)
Get the document terms as a frequency map id->frequency. |
int[][] |
getDocWords(java.util.Random rand)
Get word vectors for corpus. |
int |
getNdocs()
Number of documents in corpus |
int |
getNterms()
Number of terms in corpus |
java.lang.String |
lookup(int term)
look up term for id. |
int |
lookup(java.lang.String term)
look up id for term |
java.lang.String |
lookupDoc(int doc)
Get document name from id. |
int |
lookupDoc(java.lang.String doc)
Get document id from name. |
Method Detail |
---|
java.lang.String lookup(int term)
term
-
int lookup(java.lang.String term)
term
-
java.lang.String lookupDoc(int doc)
int lookupDoc(java.lang.String doc)
java.util.Map<java.lang.Integer,java.lang.Integer> getDocTerms(int doc)
int getNdocs()
int getNterms()
int[][] getDocWords(java.util.Random rand)
rand
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |