edu.cmu.minorthird.text
Class Dependencies

java.lang.Object
  extended by edu.cmu.minorthird.text.Dependencies

Deprecated. Use the require mechanism instead. deprecatd as of 3/9/2007

public class Dependencies
extends java.lang.Object

Contains static methods to run annotators (either mixup or java code) see runDependency(MonotonicTextLabels, String, String)

Author:
ksteppe

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

Dependencies

public Dependencies()
Deprecated. 
Method Detail

runDependency

public 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. 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

Parameters:
labels - TextLabels to place annotations in - must hold the text base to run against
reqAnnotation - the name of the annotations requested
file - file to run in order to get annotations, if null then the configuration file is checked for a default

getDependency

protected static java.lang.String getDependency(java.lang.String reqAnnotation)
                                         throws java.io.IOException
Deprecated. 
Return the file required for this dependency

Parameters:
reqAnnotation -
Returns:
name of the default provider (file or java class) for the required annotation
Throws:
java.io.IOException