public class ShortcutManager extends Object
Constructor and Description |
---|
ShortcutManager(String shortcutFileName)
Constructor to initialize a ShortcutManager object.
|
Modifier and Type | Method and Description |
---|---|
List<String> |
getLongForm(String shortcut)
Finds all possible long forms for a given shortcut.
|
List<String> |
getShortForm(String longform)
Finds all possible shortcuts for a given long form.
|
void |
readShortcutFile()
Reads the given file.
|
float |
scoring(String name1,
String name2)
Primary scoring function invoked by EntityComparison.
|
public ShortcutManager(String shortcutFileName) throws IOException
shortcutFileName
- File name to obtain list of shortcut stringsIOException
public void readShortcutFile() throws IOException
IOException
public float scoring(String name1, String name2)
name1
- First of the two strings to be scoredname2
- Second of the two strings to be scoredpublic List<String> getLongForm(String shortcut)
shortcut
- The string that may be a shortcutCopyright © 2017. All rights reserved.