public class ExtractAbbreviations extends Object
java com.wcohen.ss.expt.ExtractAbbreviations ./train/abbvAlign_corpus.txt experiment_name
AbbreviationAlignment| Modifier and Type | Class and Description |
|---|---|
class |
ExtractAbbreviations.Stats |
| Constructor and Description |
|---|
ExtractAbbreviations(String input,
String output,
String train,
String gold) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addAbbreviationPairs(Map<String,Acronym> predictions) |
protected AlignmentPredictionModel |
loadPredictor() |
static void |
main(String[] args)
Extracts abbreviation pairs from text.
Usage: ExtractAbbreviations input experiment_name [gold-file] [train-dir] |
protected void |
mkdir(String dir) |
protected String |
outputAbbvs(Map<String,Acronym> predictions) |
protected void |
outputPairs(BufferedWriter bw) |
protected ExtractAbbreviations.Stats |
predictAndTest(int docID,
List<String> corpus,
List<Map<String,String>> trueLabels,
BufferedWriter bw_abbvs) |
protected void |
predictAndTest(List<String> corpus,
List<Map<String,String>> trueLabels) |
void |
run() |
protected void |
setTrainDir(String trainDir) |
public static String SEPARATOR
public void run()
throws IOException
IOExceptionprotected void mkdir(String dir)
protected void setTrainDir(String trainDir)
protected AlignmentPredictionModel loadPredictor()
protected void predictAndTest(List<String> corpus, List<Map<String,String>> trueLabels) throws IOException
IOExceptionprotected void outputPairs(BufferedWriter bw) throws IOException
IOExceptionprotected ExtractAbbreviations.Stats predictAndTest(int docID, List<String> corpus, List<Map<String,String>> trueLabels, BufferedWriter bw_abbvs) throws IOException
IOExceptionpublic static void main(String[] args)
Copyright © 2016. All rights reserved.