smile.nlp
Interface TextTerms
-
- All Known Implementing Classes:
- SimpleText
public interface TextTerms
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description intmaxtf()Returns the maximum term frequency over all terms in the document.intsize()Returns the number of words.inttf(java.lang.String term)Returns the term frequency.java.lang.Iterable<java.lang.String>unique()Returns the iterator of unique words.java.lang.Iterable<java.lang.String>words()Returns the iterator of the words of the document.
-
-
-
Method Detail
-
size
int size()
Returns the number of words.
-
words
java.lang.Iterable<java.lang.String> words()
Returns the iterator of the words of the document. The stop words and punctuations may be removed.
-
unique
java.lang.Iterable<java.lang.String> unique()
Returns the iterator of unique words.
-
tf
int tf(java.lang.String term)
Returns the term frequency.
-
maxtf
int maxtf()
Returns the maximum term frequency over all terms in the document.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG