smile.nlp
Class Bigram
- java.lang.Object
-
- smile.nlp.Bigram
-
public class Bigram extends java.lang.ObjectBigrams or digrams are groups of two words, and are very commonly used as the basis for simple statistical analysis of text. They are a special case of N-gram.
-
-
Field Summary
Fields Modifier and Type Field and Description java.lang.Stringw1Immutable first word of bigram.java.lang.Stringw2Immutable second word of bigram.
-
Constructor Summary
Constructors Constructor and Description Bigram(java.lang.String w1, java.lang.String w2)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object obj)inthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
w1
public final java.lang.String w1
Immutable first word of bigram.
-
w2
public final java.lang.String w2
Immutable second word of bigram.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG