public class FrequencyUtils extends Object
Constructor and Description |
---|
FrequencyUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
getPhraseLength(String phrase)
Return the length of the phrase in tokens, i.e.
|
static double |
loglikelihood(long tfCorpus1,
long sizeCorpus1,
long tfCorpus2,
long sizeCorpus2) |
public static int getPhraseLength(String phrase)
phrase
- The phrase to test.public static double loglikelihood(long tfCorpus1, long sizeCorpus1, long tfCorpus2, long sizeCorpus2)
Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.