|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.text.learn.experiments.SubTextLabels
edu.cmu.minorthird.text.learn.experiments.MonotonicSubTextLabels
public class MonotonicSubTextLabels
A subset of another TextLabels that can be added to. Additions are propogated back to the underlying MonotonicTextLabels passed in as an argument.
| Field Summary |
|---|
| Fields inherited from class edu.cmu.minorthird.text.learn.experiments.SubTextLabels |
|---|
labels, subBase |
| Constructor Summary | |
|---|---|
MonotonicSubTextLabels(SubTextBase subBase,
MonotonicTextLabels labels)
|
|
| 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> dict)
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 |
require(java.lang.String annotationType,
java.lang.String fileToLoad)
Ensure that this TextLabels contains a particular type of annotation. |
void |
require(java.lang.String annotationType,
java.lang.String fileToLoad,
AnnotatorLoader loader)
Ensure that this TextLabels contains a particular type of annotation. |
void |
setAnnotatorLoader(AnnotatorLoader newLoader)
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 class edu.cmu.minorthird.text.learn.experiments.SubTextLabels |
|---|
annotateWith, closureIterator, closureIterator, getDetails, getProperty, getProperty, getSpanProperties, getSpansWithProperty, getSpansWithProperty, getTextBase, getTokenProperties, getTypes, getTypeSet, hasDictionary, hasType, inDict, instanceIterator, instanceIterator, isAnnotatedBy, isType, setAnnotatedBy, showTokenProp, toGUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface edu.cmu.minorthird.text.MonotonicTextLabels |
|---|
setAnnotatedBy |
| 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, showTokenProp |
| Constructor Detail |
|---|
public MonotonicSubTextLabels(SubTextBase subBase,
MonotonicTextLabels labels)
| Method Detail |
|---|
public void setAnnotatorLoader(AnnotatorLoader newLoader)
MonotonicTextLabels
setAnnotatorLoader in interface MonotonicTextLabelspublic AnnotatorLoader getAnnotatorLoader()
MonotonicTextLabels
getAnnotatorLoader in interface MonotonicTextLabels
public void defineDictionary(java.lang.String dictName,
java.util.Set<java.lang.String> dict)
MonotonicTextLabels
defineDictionary in interface MonotonicTextLabels
public void defineDictionary(java.lang.String dictName,
java.util.List<java.lang.String> fileNames,
boolean ignoreCase)
defineDictionary in interface MonotonicTextLabelspublic Trie getTrie()
getTrie in interface MonotonicTextLabelspublic void defineTrie(java.util.List<java.lang.String> phraseList)
defineTrie in interface MonotonicTextLabels
public void setProperty(Token token,
java.lang.String prop,
java.lang.String value)
MonotonicTextLabels
setProperty in interface MonotonicTextLabels
public void setProperty(Token token,
java.lang.String prop,
java.lang.String value,
Details details)
MonotonicTextLabels
setProperty in interface MonotonicTextLabels
public void setProperty(Span span,
java.lang.String prop,
java.lang.String value)
SubTextLabels
setProperty in interface MonotonicTextLabelssetProperty in class SubTextLabels
public void setProperty(Span span,
java.lang.String prop,
java.lang.String value,
Details details)
MonotonicTextLabels
setProperty in interface MonotonicTextLabels
public void addToType(Span span,
java.lang.String type)
MonotonicTextLabels
addToType in interface MonotonicTextLabels
public void addToType(Span span,
java.lang.String type,
Details details)
MonotonicTextLabels
addToType in interface MonotonicTextLabelspublic void declareType(java.lang.String type)
MonotonicTextLabels
declareType in interface MonotonicTextLabels
public void require(java.lang.String annotationType,
java.lang.String fileToLoad)
TextLabels
require in interface TextLabelsrequire in class SubTextLabels
public void require(java.lang.String annotationType,
java.lang.String fileToLoad,
AnnotatorLoader loader)
TextLabels
require in interface TextLabelsrequire in class SubTextLabels
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||