edu.stanford.nlp.tagger.maxent
Class CountWrapper
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
CountWrapper
public CountWrapper()
CountWrapper
protected CountWrapper(java.lang.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 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