|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.cmu.minorthird.text.learn.SpanFE edu.cmu.minorthird.ui.Recommended.TokenPropUsingFE edu.cmu.minorthird.ui.Recommended.DocumentFE
public static class Recommended.DocumentFE
A simple bag-of-words feature extractor.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.cmu.minorthird.text.learn.SpanFE |
---|
SpanFE.Filter, SpanFE.Function, SpanFE.Result, SpanFE.SetResult<T>, SpanFE.SpanResult, SpanFE.SpanSetResult, SpanFE.StringBagResult, SpanFE.TokenSetResult |
Field Summary | |
---|---|
protected boolean |
foldCase
|
Fields inherited from class edu.cmu.minorthird.ui.Recommended.TokenPropUsingFE |
---|
tokenPropertyFeatures |
Fields inherited from class edu.cmu.minorthird.text.learn.SpanFE |
---|
annotatorLoader, instance, requiredAnnotation, requiredAnnotationFileToLoad, STORE_AS_BINARY, STORE_AS_COUNTS, STORE_COMPACTLY |
Constructor Summary | |
---|---|
Recommended.DocumentFE()
|
Method Summary | |
---|---|
void |
extractFeatures(TextLabels labels,
Span s)
Implement this with a specific set of SpanFE 'pipelines'. |
boolean |
getFoldCase()
|
void |
setFoldCase(boolean flag)
If foldCase is true, then words will be converted to lower case before being used as features. |
Methods inherited from class edu.cmu.minorthird.ui.Recommended.TokenPropUsingFE |
---|
getTokenPropertyFeatures, setMyTokenPropertyList, setRequiredAnnotation, setTokenPropertyFeatures, setTokenPropertyFeatures |
Methods inherited from class edu.cmu.minorthird.text.learn.SpanFE |
---|
emit, emit, emit, emit, extractFeatures, extractInstance, extractInstance, from, from, getAnnotationProvider, getRequiredAnnotation, requireMyAnnotation, setAnnotationProvider, setAnnotatorLoader, setFeatureStoragePolicy, setRequiredAnnotation, trace |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean foldCase
Constructor Detail |
---|
public Recommended.DocumentFE()
Method Detail |
---|
public void extractFeatures(TextLabels labels, Span s)
SpanFE
extractFeatures
in class SpanFE
public boolean getFoldCase()
public void setFoldCase(boolean flag)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |