|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.Dependencies
public class Dependencies
Contains static methods to run annotators (either mixup or java code) see runDependency(MonotonicTextLabels, String, String)
Constructor Summary | |
---|---|
Dependencies()
Deprecated. |
Method Summary | |
---|---|
protected static java.lang.String |
getDependency(java.lang.String reqAnnotation)
Deprecated. Return the file required for this dependency |
static void |
runDependency(MonotonicTextLabels labels,
java.lang.String reqAnnotation,
java.lang.String file)
Deprecated. This runs the given file or the default (from configFile ) to generate
the requested annotations in the given labels. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Dependencies()
Method Detail |
---|
public static void runDependency(MonotonicTextLabels labels, java.lang.String reqAnnotation, java.lang.String file)
configFile
) to generate
the requested annotations in the given labels.
If no file is given and no default is registered then a null pointer will be thrown
Exceptions are converted to IllegalStateException objects
If the file provided is a mixup program it runs the program. However, this assumes that
if the program creates new levels using mixup's multilevel capabilities, that the program
itself will import any results back to the root level. This method does not inspect any
levels created by the mixup program for annotations created.
note here - could catch the annotate exception stuff
labels
- TextLabels to place annotations in - must hold the text base to run againstreqAnnotation
- the name of the annotations requestedfile
- file to run in order to get annotations, if null then the configuration file is
checked for a defaultprotected static java.lang.String getDependency(java.lang.String reqAnnotation) throws java.io.IOException
reqAnnotation
-
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |