|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.wcohen.ss.AbstractStringDistance
com.wcohen.ss.AbstractTokenizedStringDistance
com.wcohen.ss.JensenShannonDistance
com.wcohen.ss.UnsmoothedJS
public class UnsmoothedJS
Jensen-Shannon distance of two unsmoothed unigram language models.
| Field Summary |
|---|
| Fields inherited from class com.wcohen.ss.AbstractTokenizedStringDistance |
|---|
tokenizer |
| Constructor Summary | |
|---|---|
UnsmoothedJS()
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] argv)
|
protected double |
smoothedProbability(Token tok,
double freq,
double totalWeight)
Unsmoothed probability of the token |
java.lang.String |
toString()
|
| Methods inherited from class com.wcohen.ss.JensenShannonDistance |
|---|
backgroundProb, explainScore, prepare, score, train |
| Methods inherited from class com.wcohen.ss.AbstractTokenizedStringDistance |
|---|
asBagOfTokens, prepare, setStringWrapperPool |
| Methods inherited from class com.wcohen.ss.AbstractStringDistance |
|---|
addExample, doMain, explainScore, getDistance, hasNextQuery, nextQuery, prepare, score, setDistanceInstancePool |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public UnsmoothedJS()
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Object
protected double smoothedProbability(Token tok,
double freq,
double totalWeight)
smoothedProbability in class JensenShannonDistancepublic static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||