edu.stanford.nlp.tagger.maxent
Class CountWrapper

java.lang.Object
  extended by edu.stanford.nlp.tagger.maxent.CountWrapper

public class CountWrapper
extends java.lang.Object

A simple data structure for some tag counts.

Author:
Kristina Toutanova

Constructor Summary
  CountWrapper()
           
protected CountWrapper(java.lang.String word, int countPart, int countThat, int countIn, int countRB)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Equality is tested only on the word, and not the various counts that are maintained.
 int getCountIn()
           
 int getCountPart()
           
 int getCountRB()
           
 int getCountThat()
           
 java.lang.String getWord()
           
 int hashCode()
           
protected  void incThat()
           
protected  void read(java.io.DataInputStream rf)
           
protected  void save(OutDataStreamFile rf)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountWrapper

public CountWrapper()

CountWrapper

protected CountWrapper(java.lang.String word,
                       int countPart,
                       int countThat,
                       int countIn,
                       int countRB)
Method Detail

incThat

protected void incThat()

getCountPart

public int getCountPart()

getCountThat

public int getCountThat()

getCountIn

public int getCountIn()

getCountRB

public int getCountRB()

getWord

public java.lang.String getWord()

hashCode

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

equals

public boolean equals(java.lang.Object obj)
Equality is tested only on the word, and not the various counts that are maintained.

Overrides:
equals in class java.lang.Object
Parameters:
obj - Item tested for equality
Returns:
Whether equal

save

protected void save(OutDataStreamFile rf)

read

protected void read(java.io.DataInputStream rf)


Stanford NLP Group