|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcc.mallet.grmm.learning.extract.ACRFExtractor
public class ACRFExtractor
Created: Mar 1, 2005
| Constructor Summary | |
|---|---|
ACRFExtractor(ACRF acrf,
Pipe tokPipe,
Pipe featurePipe)
|
|
| Method Summary | |
|---|---|
Extraction |
extract(InstanceList testing)
|
Extraction |
extract(java.util.Iterator<Instance> source)
Performs extraction on a a set of raw documents. |
Extraction |
extract(java.lang.Object o)
Performs extraction given a raw object. |
Extraction |
extract(Tokenization toks)
Performs extraction from an object that has been already been tokenized. |
ACRF |
getAcrf()
|
Pipe |
getFeaturePipe()
Returns the pipe used by this extractor for. |
Alphabet |
getInputAlphabet()
Returns an alphabet of the features used by the extractor. |
LabelAlphabet |
getTargetAlphabet()
Returns an alphabet of the labels used by the extractor. |
Pipe |
getTokenizationPipe()
Returns the pipe used by this extractor to tokenize the input. |
void |
setSlice(int sl)
|
void |
setTokenizationFilter(TokenizationFilter filter)
|
void |
setTokenizationPipe(Pipe pipe)
Sets the pipe used by this extractor for tokenization. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ACRFExtractor(ACRF acrf,
Pipe tokPipe,
Pipe featurePipe)
| Method Detail |
|---|
public Extraction extract(java.lang.Object o)
Extractor
extract in interface Extractoro - The document to extract from (often a String).
public Extraction extract(Tokenization toks)
Extractor
extract in interface Extractortoks - A tokenized document
public Extraction extract(java.util.Iterator<Instance> source)
Extractor
extract in interface Extractorsource - A source of raw documents
public Extraction extract(InstanceList testing)
public Pipe getFeaturePipe()
Extractor
getFeaturePipe in interface Extractorpublic Pipe getTokenizationPipe()
Extractor
getTokenizationPipe in interface Extractorpublic void setTokenizationPipe(Pipe pipe)
ExtractorThe pipe @link{edu.umass.cs.mallet.base.pipe.CharSequence2TokenSequence} is an example of a pipe that could be used here.
setTokenizationPipe in interface Extractorpublic Alphabet getInputAlphabet()
Extractor
getInputAlphabet in interface Extractorpublic LabelAlphabet getTargetAlphabet()
Extractor
getTargetAlphabet in interface Extractorpublic ACRF getAcrf()
public void setSlice(int sl)
public void setTokenizationFilter(TokenizationFilter filter)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||