|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.northwestern.at.utils.corpuslinguistics.wordcounts.WordCountAndSentences
public class WordCountAndSentences
Contains a word, its count, and sentence numbers in which it appears.
| Field Summary | |
|---|---|
int |
count
The word count. |
java.util.Set<java.lang.Integer> |
sentences
Set of sentence numbers in which the word appears. |
java.lang.Comparable |
word
The word. |
| Constructor Summary | |
|---|---|
WordCountAndSentences()
Create empty word count and sentences. |
|
WordCountAndSentences(java.lang.Comparable word)
Create word count and sentences from word. |
|
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object other)
Compare this count data object with another. |
java.lang.String |
toString()
Return string representation of word counts and sentences. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Comparable word
public int count
public java.util.Set<java.lang.Integer> sentences
| Constructor Detail |
|---|
public WordCountAndSentences()
public WordCountAndSentences(java.lang.Comparable word)
| Method Detail |
|---|
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.Comparableother - The count data object
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||