public abstract class PhraseScorer extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PhraseScorer.Normalization |
| Modifier and Type | Field and Description |
|---|---|
boolean |
usePatternWeights |
| Constructor and Description |
|---|
PhraseScorer(ConstantsAndVariables constvar) |
| Modifier and Type | Method and Description |
|---|---|
double |
getDictOddsScore(String word,
String label) |
double |
getDistSimWtScore(String ph,
String label) |
double |
getDomainNgramScore(String g) |
double |
getGoogleNgramScore(String g) |
double |
getPhraseWeightFromWords(Counter<String> weights,
String ph,
double defaultWt) |
double |
getWordShapeScore(String word,
String label) |
abstract Counter<String> |
scorePhrases(String label,
Set<String> terms,
boolean forLearningPatterns) |
@Execution.Option(name="usePatternWeights") public boolean usePatternWeights
public PhraseScorer(ConstantsAndVariables constvar)
public double getGoogleNgramScore(String g)
public double getDomainNgramScore(String g)
public double getPhraseWeightFromWords(Counter<String> weights, String ph, double defaultWt)
public abstract Counter<String> scorePhrases(String label, Set<String> terms, boolean forLearningPatterns) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundException