public class AcronymModel extends java.lang.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(java.lang.String name,
java.lang.String acronym) |
static void |
main(java.lang.String[] args) |
double |
naiveSimilarity(java.lang.String name,
java.lang.String acronym) |
double |
RichSimilarity(java.lang.String name,
java.lang.String acronym) |
double |
similarity(java.lang.String name,
java.lang.String acronym) |
static char[] |
stripAcronym(java.lang.String acronym) |
static double |
URLSimilarity(java.lang.String URL,
java.lang.String acronym) |
public AcronymModel()
throws java.io.IOException
java.io.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 static double URLSimilarity(java.lang.String URL,
java.lang.String acronym)
public double similarity(java.lang.String name,
java.lang.String acronym)
public double naiveSimilarity(java.lang.String name,
java.lang.String acronym)
public double HearstSimilarity(java.lang.String name,
java.lang.String acronym)
public static char[] stripAcronym(java.lang.String acronym)
public double RichSimilarity(java.lang.String name,
java.lang.String acronym)
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception