edu.stanford.nlp.tagger.maxent
Class CountWrapper
java.lang.Object
edu.stanford.nlp.tagger.maxent.CountWrapper
public class CountWrapper
- extends Object
A simple data structure for some tag counts.
- Author:
- Kristina Toutanova
CountWrapper
public CountWrapper()
CountWrapper
protected CountWrapper(String word,
int countPart,
int countThat,
int countIn,
int countRB)
incThat
protected void incThat()
getCountPart
public int getCountPart()
getCountThat
public int getCountThat()
getCountIn
public int getCountIn()
getCountRB
public int getCountRB()
getWord
public String getWord()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Equality is tested only on the word, and not the various counts
that are maintained.
- Overrides:
equals
in class Object
- Parameters:
obj
- Item tested for equality
- Returns:
- Whether equal
save
protected void save(OutDataStreamFile rf)
read
protected void read(DataInputStream rf)
Stanford NLP Group