|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.googlecode.whatswrong.io.BioNLP2009SharedTaskFormat
public class BioNLP2009SharedTaskFormat
The BioNLP2009SharedTaskFormat loads files in the format of the BioNLP 2009 Shared Task. It allows users to select a directory and enter the filename extensions for the text files and annotation files. More details on the file format can be found at the shared task website.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.googlecode.whatswrong.io.CorpusFormat |
|---|
CorpusFormat.Monitor |
| Constructor Summary | |
|---|---|
BioNLP2009SharedTaskFormat()
|
|
| Method Summary | |
|---|---|
JComponent |
getAccessory()
Returns the GUI element that controls how this format is to be loaded. |
String |
getLongName()
Returns a longer name that may contain information about the configuration of this format. |
String |
getName()
Returns the name of this format. |
List<NLPInstance> |
load(File file,
int from,
int to)
Loads files from the given directory with the extensions specified by the text fields of the accessory. |
void |
loadProperties(Properties properties,
String prefix)
Loads a configuration for this format from the given Properties object. |
void |
saveProperties(Properties properties,
String prefix)
Saves the configuration of this format to a Properties object. |
void |
setMonitor(CorpusFormat.Monitor monitor)
Sets the objects that monitors the progress of this format when loading a file. |
String |
toString()
Returns the name of this format. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public BioNLP2009SharedTaskFormat()
| Method Detail |
|---|
public String getName()
getName in interface CorpusFormatpublic String getLongName()
getLongName in interface CorpusFormatpublic JComponent getAccessory()
getAccessory in interface CorpusFormatpublic void setMonitor(CorpusFormat.Monitor monitor)
setMonitor in interface CorpusFormatmonitor - the monitor for this format.
public void loadProperties(Properties properties,
String prefix)
loadProperties in interface CorpusFormatproperties - the Properties object to load from.prefix - the prefix that properties for this format have in the Properties object.
public void saveProperties(Properties properties,
String prefix)
saveProperties in interface CorpusFormatproperties - the Properties object to store this configuration of this format to.prefix - the prefix that the properties should have.
public List<NLPInstance> load(File file,
int from,
int to)
throws IOException
load in interface CorpusFormatfile - the directory load the corpus from.from - the starting instance index.to - the end instance index.
IOException - if I/O goes wrong.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||