public class AcronymModel extends Object implements RelationalModel
| Modifier and Type | Class and Description |
|---|---|
static class |
AcronymModel.AfterAligned
Percent of letters aligned immediately after another aligned letter.
|
static class |
AcronymModel.AlignedPerWord
Average number of aligned letters per word.
|
static class |
AcronymModel.BegWord |
static class |
AcronymModel.EndWord |
static interface |
AcronymModel.Feature |
static class |
AcronymModel.LettersAligned |
static class |
AcronymModel.SyllableBoundary |
static class |
AcronymModel.WordsSkipped |
| Constructor and Description |
|---|
AcronymModel() |
| Modifier and Type | Method and Description |
|---|---|
double |
computeProb(InfoTemplate temp)
Scores the partial template containing only the fields relevant to the score.
|
double |
computeProb(PascalTemplate temp)
Scores the
PascalTemplate using the fields it contains which are relevant to the score. |
double |
HearstSimilarity(String name,
String acronym) |
static void |
main(String[] args) |
double |
naiveSimilarity(String name,
String acronym) |
double |
RichSimilarity(String name,
String acronym) |
double |
similarity(String name,
String acronym) |
static char[] |
stripAcronym(String acronym) |
static double |
URLSimilarity(String URL,
String acronym) |
public AcronymModel()
throws IOException
IOException - if the acronym statistics/weights can't be read from file.public double computeProb(InfoTemplate temp)
temp - the InfoTemplate to be scored.public double computeProb(PascalTemplate temp)
PascalTemplate using the fields it contains which are relevant to the score.
(Ignores location and date fields.)computeProb in interface RelationalModeltemp - the full PascalTemplate to be scoredpublic double similarity(String name, String acronym)
public double naiveSimilarity(String name, String acronym)
public double HearstSimilarity(String name, String acronym)
public static char[] stripAcronym(String acronym)