public class CRFExtractor extends Object implements Extractor
| Constructor and Description |
|---|
CRFExtractor(CRF4 crf) |
CRFExtractor(CRF4 crf,
Pipe tokpipe) |
CRFExtractor(CRF4 crf,
Pipe tokpipe,
TokenizationFilter filter) |
CRFExtractor(CRF4 crf,
Pipe tokpipe,
TokenizationFilter filter,
String backgroundTag) |
CRFExtractor(File crfFile) |
| Modifier and Type | Method and Description |
|---|---|
Extraction |
extract(Object o)
Performs extraction given a raw object.
|
Extraction |
extract(PipeInputIterator source)
Performs extraction on a a set of raw documents.
|
Extraction |
extract(Tokenization spans)
Performs extraction from an object that has been
already been tokenized.
|
CRF4 |
getCrf() |
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.
|
Sequence |
pipeInput(Object input) |
InstanceList |
pipeInstances(PipeInputIterator source) |
void |
setFeaturePipe(Pipe featurePipe) |
void |
setTokenizationPipe(Pipe tokenizationPipe)
Sets the pipe used by this extractor for tokenization.
|
void |
slicePipes(int num)
Transfer some Pipes from the feature pipe to the tokenization pipe.
|
public CRFExtractor(CRF4 crf)
public CRFExtractor(File crfFile) throws IOException
IOExceptionpublic CRFExtractor(CRF4 crf, Pipe tokpipe, TokenizationFilter filter)
public CRFExtractor(CRF4 crf, Pipe tokpipe, TokenizationFilter filter, String backgroundTag)
public Extraction extract(Object o)
Extractorpublic Extraction extract(Tokenization spans)
Extractorpublic InstanceList pipeInstances(PipeInputIterator source)
public Extraction extract(PipeInputIterator source)
Extractorpublic Pipe getTokenizationPipe()
ExtractorgetTokenizationPipe in interface Extractorpublic void setTokenizationPipe(Pipe tokenizationPipe)
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 Pipe getFeaturePipe()
ExtractorgetFeaturePipe in interface Extractorpublic void setFeaturePipe(Pipe featurePipe)
public Alphabet getInputAlphabet()
ExtractorgetInputAlphabet in interface Extractorpublic LabelAlphabet getTargetAlphabet()
ExtractorgetTargetAlphabet in interface Extractorpublic CRF4 getCrf()
public void slicePipes(int num)
Copyright © 2019 JULIE Lab, Germany. All rights reserved.