Documentation of 'smile.nlp.Bigram' Java class
Bigram
smile.nlp

Class Bigram



  • public class Bigram
    extends java.lang.Object
    Bigrams 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.String w1
      Immutable first word of bigram.
      java.lang.String w2
      Immutable 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
      boolean equals(java.lang.Object obj) 
      int hashCode() 
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • 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.
    • Constructor Detail

      • Bigram

        public Bigram(java.lang.String w1,
                      java.lang.String w2)
        Constructor.
        Parameters:
        w1 - the first word of bigram.
        w2 - the second word of bigram.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.