|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.AnnotatorLoader
public abstract class AnnotatorLoader
Analogous to a ClassLoader, this finds annotators by name, so they can be applied to a set of labels.
Constructor Summary | |
---|---|
AnnotatorLoader()
|
Method Summary | |
---|---|
Annotator |
findAnnotator(java.lang.String annotationType,
java.lang.String source)
Find an annotator for the given annotationType, from the listed source. |
abstract java.lang.Class<?> |
findClassResource(java.lang.String className)
Find the named resource class - usually an annotator. |
abstract java.io.InputStream |
findFileResource(java.lang.String fileName)
Find the named resource file - usually a dictionary or trie for mixup. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotatorLoader()
Method Detail |
---|
public abstract java.io.InputStream findFileResource(java.lang.String fileName)
public abstract java.lang.Class<?> findClassResource(java.lang.String className)
public final Annotator findAnnotator(java.lang.String annotationType, java.lang.String source)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |