|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MonotonicTextLabels
Maintains assertions about 'types' and 'properties' of contiguous Spans of these Seq's. Assertions can never be deleted from a MonotonicTextLabels, but they can be added.
Method Summary | |
---|---|
void |
addToType(Span span,
java.lang.String type)
Assert that a span has a given type. |
void |
addToType(Span span,
java.lang.String type,
Details details)
Assert that a span has a given type, and associate that assertion with some detailed information. |
void |
declareType(java.lang.String type)
Declare a new type, without asserting any spans as members. |
void |
defineDictionary(java.lang.String dictName,
java.util.List<java.lang.String> fileNames,
boolean ignoreCase)
Associate a dictionary from this file |
void |
defineDictionary(java.lang.String dictName,
java.util.Set<java.lang.String> dictionary)
Associate a dictionary with this labeling. |
void |
defineTrie(java.util.List<java.lang.String> phraseList)
Define a trie |
AnnotatorLoader |
getAnnotatorLoader()
Get the current AnnotatorLoader. |
Trie |
getTrie()
Return a trie if defined |
void |
setAnnotatedBy(java.lang.String s)
Record that this TextLabels was annotated with some type of annotation. |
void |
setAnnotatorLoader(AnnotatorLoader loader)
Specify the AnnotatorLoader used to find Annotations when a 'require' call is made. |
void |
setProperty(Span span,
java.lang.String prop,
java.lang.String value)
Assert that Span span has the given value of the given property |
void |
setProperty(Span span,
java.lang.String prop,
java.lang.String value,
Details details)
Assert that Span span has the given value of the given property, and associate that with some detailed information |
void |
setProperty(Token token,
java.lang.String prop,
java.lang.String value)
Assert that TextToken textToken has the given value of the given property. |
void |
setProperty(Token token,
java.lang.String prop,
java.lang.String value,
Details details)
Assert that a token has a given property value, and associate that with some detailed information. |
Methods inherited from interface edu.cmu.minorthird.text.TextLabels |
---|
annotateWith, closureIterator, closureIterator, getDetails, getProperty, getProperty, getSpanProperties, getSpansWithProperty, getSpansWithProperty, getTextBase, getTokenProperties, getTypes, getTypeSet, hasDictionary, hasType, inDict, instanceIterator, instanceIterator, isAnnotatedBy, isType, require, require, showTokenProp |
Method Detail |
---|
void defineDictionary(java.lang.String dictName, java.util.Set<java.lang.String> dictionary)
void defineDictionary(java.lang.String dictName, java.util.List<java.lang.String> fileNames, boolean ignoreCase)
Trie getTrie()
void defineTrie(java.util.List<java.lang.String> phraseList)
void setProperty(Token token, java.lang.String prop, java.lang.String value)
void setProperty(Token token, java.lang.String prop, java.lang.String value, Details details)
void setProperty(Span span, java.lang.String prop, java.lang.String value)
void setProperty(Span span, java.lang.String prop, java.lang.String value, Details details)
void addToType(Span span, java.lang.String type)
void addToType(Span span, java.lang.String type, Details details)
void declareType(java.lang.String type)
void setAnnotatedBy(java.lang.String s)
void setAnnotatorLoader(AnnotatorLoader loader)
AnnotatorLoader getAnnotatorLoader()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |