| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||
java.lang.Object | +--AmilcareApi.API
Title: API for Amilcare Description: Adaptive system for information extraction from text Copyright: Copyright (c) 2000 Company: Dept. Computer Science Univ. of Sheffield
| Field Summary | |
static AmilcareApi.IEResults[][] |
taggingResults
|
static AmilcareApi.IEResults[][] |
templateResults
|
| Constructor Summary | |
API()
|
|
| Method Summary | |
static void |
extractInformation()
used to run Amilcare's rules on the current test corpus |
static void |
extractInformation(boolean showAnimation)
|
static java.lang.String |
getAmilcarePath()
it return Amilcare's operating directory |
static int |
getAnnotationAccuracy(java.lang.String tagName)
it returns the F-measure (a reasoned average of precision and recall) obtained for the annotation tagName (F is a number 0 |
static int |
getAnnotationActualMatches(java.lang.String tagName)
it returns the number of matches (either correct, missing or partial) for the annotation tagName |
static int |
getAnnotationCorrectMatches(java.lang.String tagName)
it returns the number of correct matches for the annotation tagName |
static java.lang.String[] |
getAnnotationList()
it returns an array of Strings that are the tags used by Amilcare for the current scenario |
static int |
getAnnotationMissingMatches(java.lang.String tagName)
it returns the number of missing matches for the annotation tagName |
static int |
getAnnotationPartialMatches(java.lang.String tagName)
it returns the number of partial matches for the annotation tagName. |
static int |
getAnnotationPossibleMatches(java.lang.String tagName)
it returns the number of instances present in the corpus for the annotation tagName |
static int |
getAnnotationPrecision(java.lang.String tagName)
it returns the precision obtained for the annotation tagName (prec is a number 0
|
static int |
getAnnotationRecall(java.lang.String tagName)
it returns the recall obtained for the annotation tagName (rec is a number 0 |
static int |
getAnnotationWrongMatches(java.lang.String tagName)
it returns the number of wrong matches for the annotation tagName |
static boolean |
getGazEnabled()
checks if the gazetteer is currently enabled |
static boolean |
getNercEnabled()
checks if the namedEntityRecognizer is currently enabled |
static boolean |
getPosEnabled()
checks if the pos tagger is currently enabled |
static boolean |
getPreEnabled()
checks if the preprocessor is currently enabled |
static java.lang.String |
getPreprocessedCorpusName()
The connection between Gate (preprocessing) and Amilcare is done through a file. |
static java.lang.String |
getRuleFileDir()
it returns the directory in which the rule file are stored by Amilcare |
static java.lang.String |
getScenarioFile()
returns the scenario file currently loaded |
static java.lang.String |
getScenarioName()
it returns the current scenartio mnemonic name |
static boolean |
getSplitCorpusInTwo()
|
static int |
getStatus()
it returns the status Amilcare is in. |
static AmilcareApi.IEResults[][] |
getTaggingResults()
It returns the tagging results as generated by Amilcare for external use. |
static AmilcareApi.IEResults[][] |
getTemplateResults()
It returns the Template results as generated by Amilcare for external use. |
static java.lang.String |
getTestCorpusName()
gets the current Test corpus name |
static java.lang.String |
getTrainingCorpusName()
gets the current training corpus name |
static void |
init()
|
static void |
learnRules()
used to learn rules from the current training corpus given the current scenario |
static void |
learnRules(boolean showAnimation)
|
static void |
loadScenario(java.lang.String fileName)
it reads a scenario file and sets Amilcare to (learn how to) extract information for that scenario A scenario name is composed of a set of lines whose order is important: 1. |
static void |
main(java.lang.String[] args)
it tests the whole API |
static void |
preprocessCorpus()
it preprocesses the file in test or training coprus as defined by the scenario |
static void |
printTaggingResults()
it prints the tagging results in a formatted way |
static void |
printTemplateResults()
it prints the template results in a formatted way |
static void |
resetResults()
resets the system results so that in case of error the old results are not returned as new. |
static void |
setAmilcarePath(java.lang.String value)
sets Amilcare's working directory. |
static void |
setAnnotationList(java.util.Collection annotList)
it sets the annotation list to be used by Amilcare. |
static void |
setDialogBoxesActive(boolean bool)
setDialogBoxesActive: tells Amilcare if the dialog boxes for errors are welcome (bool=true) or unwelcome (i.e. |
static void |
setGazEnabled(boolean enable)
it allows to enable or disable the gazetteer in the preprocessing stage |
static void |
setNercEnabled(boolean enable)
it allows to enable or disable the NamedEntityRecognizer in Annie in the preprocessing stage |
static void |
setPosEnabled(boolean enable)
it allows to enable or disable the sentence splitter in the preprocessing stage |
static void |
setPreEnabled(boolean enable)
it allows to enable or disable the Gate-based preprocessing stage |
static void |
setPreprocessedCorpusName(java.lang.String fileName)
The connection between Gate (preprocessing) and Amilcare is done through a file. |
static void |
setRuleFileDir(java.lang.String dirName)
it sets the directory in which the rule file are stored by Amilcare |
static void |
setScenarioFile(java.lang.String filename)
sets the scenario file without loading it |
static void |
setScenarioName(java.lang.String name)
it sets the scenartio mnemonic name. |
static void |
setSplitCorpusInTwo(boolean value)
it asks amilcare to select half the corpus for learning and to use the other half for testing. |
static void |
setSplitterEnabled(boolean enable)
it allows to enable or disable the sentence splitter in the preprocessing stage |
static void |
setTestCorpusName(java.lang.String fileName)
sets the current Test corpus file to the parameter |
static void |
setTrainingCorpusName(java.lang.String fileName)
sets the current training corpus file to the parameter |
static void |
stop
used to stop Amilcare when running. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static AmilcareApi.IEResults[][] taggingResults
public static AmilcareApi.IEResults[][] templateResults
| Constructor Detail |
public API()
| Method Detail |
public static void resetResults()
public static void init()
public static AmilcareApi.IEResults[][] getTaggingResults()
IEResults structures
Caveat! some of the elements can be null (both at text level and at IEResults structures)public static void printTaggingResults()
public static AmilcareApi.IEResults[][] getTemplateResults()
IEResults structures
Caveat! some of the elements can be null (both at text level and at IEResults structures)public static void printTemplateResults()
public static void setSplitterEnabled(boolean enable)
throws java.lang.Exception
java.lang.Exception - if the module is not available
public static void setPosEnabled(boolean enable)
throws java.lang.Exception
java.lang.Exception - if the module was not availablepublic static boolean getPosEnabled()
public static void setGazEnabled(boolean enable)
throws java.lang.Exception
java.lang.Exception - if the module is not availablepublic static boolean getGazEnabled()
public static void setNercEnabled(boolean enable)
throws java.lang.Exception
java.lang.Exception - if the module is not availablepublic static boolean getNercEnabled()
public static void setDialogBoxesActive(boolean bool)
public static void setPreEnabled(boolean enable)
throws java.lang.Exception
java.lang.Exception - if the module is not availablepublic static boolean getPreEnabled()
public static java.lang.String getRuleFileDir()
public static void setRuleFileDir(java.lang.String dirName)
public static void loadScenario(java.lang.String fileName)
<__++SLOTS>3. the type of task to be performed (e.g. Information Tagging and Template FIlling)
<speaker>
<stime>
<etime>
<location>
</__++SLOTS>
setScenarioFilepublic static java.lang.String getScenarioFile()
public static void setScenarioFile(java.lang.String filename)
public static java.lang.String getTrainingCorpusName()
public static void setTrainingCorpusName(java.lang.String fileName)
public static java.lang.String getTestCorpusName()
public static void setTestCorpusName(java.lang.String fileName)
public static java.lang.String getPreprocessedCorpusName()
public static void setPreprocessedCorpusName(java.lang.String fileName)
public static java.lang.String[] getAnnotationList()
public static void setAnnotationList(java.util.Collection annotList)
public static void extractInformation()
public static void extractInformation(boolean showAnimation)
public static void preprocessCorpus()
public static void learnRules()
public static void learnRules(boolean showAnimation)
public static void stopAmilcare()
public static java.lang.String getScenarioName()
public static void setScenarioName(java.lang.String name)
public static void setSplitCorpusInTwo(boolean value)
public static boolean getSplitCorpusInTwo()
public static int getAnnotationCorrectMatches(java.lang.String tagName)
public static int getAnnotationMissingMatches(java.lang.String tagName)
public static int getAnnotationPartialMatches(java.lang.String tagName)
public static int getAnnotationWrongMatches(java.lang.String tagName)
public static int getAnnotationPossibleMatches(java.lang.String tagName)
public static int getAnnotationActualMatches(java.lang.String tagName)
public static int getAnnotationPrecision(java.lang.String tagName)
public static int getAnnotationRecall(java.lang.String tagName)
public static int getAnnotationAccuracy(java.lang.String tagName)
public static void setAmilcarePath(java.lang.String value)
public static java.lang.String getAmilcarePath()
public static int getStatus()
public static void main(java.lang.String[] args)
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||