|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.shef.dcs.oak.jate.util.counter.TermFreqCounter
public class TermFreqCounter
Count frequencies of phrases or n-grams in corpus
Constructor Summary | |
---|---|
TermFreqCounter()
|
Method Summary | |
---|---|
int |
count(java.lang.String context,
java.util.Set<java.lang.String> terms)
Count the total frequencies of a set of terms in certain context. |
int |
count(java.lang.String noun,
java.lang.String context)
Count number of occurrences of a string in a context. |
java.util.Set<java.lang.Integer> |
countOffsets(java.lang.String noun,
java.lang.String context)
Count number of occurrences of a string in a context. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TermFreqCounter()
Method Detail |
---|
public int count(java.lang.String noun, java.lang.String context)
noun
- the string to be countedcontext
- the text in which the string can be found
public java.util.Set<java.lang.Integer> countOffsets(java.lang.String noun, java.lang.String context)
noun
- the string to be countedcontext
- the text in which the string can be found
public int count(java.lang.String context, java.util.Set<java.lang.String> terms)
terms
- a set of termscontext
- in which the terms are expected to be found
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |