Class NGram
java.lang.Object
smile.nlp.NGram
- Direct Known Subclasses:
NGram
An n-gram is a contiguous sequence of n words from a given sequence of text.
An n-gram of size 1 is referred to as an unigram; size 2 is a bigram;
size 3 is a trigram.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
words
Immutable word sequences.
-
-
Constructor Details
-
NGram
-
-
Method Details
-
toString
-
hashCode
-
equals
-