|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectedu.northwestern.at.monk.model.SummaryCounts
public class SummaryCounts
A collection of summary counts.
| Constructor Summary | |
|---|---|
SummaryCounts()
Creates a new collection of zeroed summary counts. |
|
SummaryCounts(long numWords,
long numWordsMain,
long numWordParts,
long numWordPartsMain,
long numSentences,
long numSentencesMain)
Creates a new collection of summary counts. |
|
| Method Summary | |
|---|---|
void |
add(SummaryCounts other)
Adds another set of counts to this set. |
long |
getNumSentences()
Gets the number of sentences. |
long |
getNumSentencesMain()
Gets the number of sentences in main text. |
long |
getNumWordBigrams()
Gets the number of word bigrams. |
long |
getNumWordBigramsMain()
Gets the number of word bigrams in main text. |
long |
getNumWordPartBigrams()
Gets the number of word part bigrams. |
long |
getNumWordPartBigramsMain()
Gets the number of word part bigrams in main text. |
long |
getNumWordParts()
Gets the number of word parts. |
long |
getNumWordPartsMain()
Gets the number of word parts in main text. |
long |
getNumWordPartTrigrams()
Gets the number of word part trigrams. |
long |
getNumWordPartTrigramsMain()
Gets the number of word part trigrams in main text. |
long |
getNumWords()
Gets the number of words. |
long |
getNumWordsMain()
Gets the number of words in main text. |
long |
getNumWordTrigrams()
Gets the number of word trigrams. |
long |
getNumWordTrigramsMain()
Gets the number of word trigrams in main text. |
long |
getSummaryCount(FeatureKind featureKind,
Arity arity,
MainKind mainKind)
Gets a count. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SummaryCounts()
public SummaryCounts(long numWords,
long numWordsMain,
long numWordParts,
long numWordPartsMain,
long numSentences,
long numSentencesMain)
The counts are all cumulative counts, and the non-cumulative counts are set to 0.
numWords - Number of words.numWordsMain - Number of words in main text.numWordParts - Number of word parts.numWordPartsMain - Number of word parts in main text.numSentences - Number of sentences.numSentencesMain - Number of sentences in main text.| Method Detail |
|---|
public long getSummaryCount(FeatureKind featureKind,
Arity arity,
MainKind mainKind)
featureKind - Feature kind: word, word part, or sentence.arity - Arity: unigram, bigram, or trigram.mainKind - All text or main text.
public long getNumWords()
public long getNumWordsMain()
public long getNumWordBigrams()
public long getNumWordBigramsMain()
public long getNumWordTrigrams()
public long getNumWordTrigramsMain()
public long getNumWordParts()
public long getNumWordPartsMain()
public long getNumWordPartBigrams()
public long getNumWordPartBigramsMain()
public long getNumWordPartTrigrams()
public long getNumWordPartTrigramsMain()
public long getNumSentences()
public long getNumSentencesMain()
public void add(SummaryCounts other)
other - The other set of counts.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||