public interface Extractor
extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
void |
annotate(Annotation dataset)
Annotates the given dataset with the current model This works in place,
i.e., it adds ExtractionObject objects to the sentences in the dataset To
make sure you are not messing with gold annotation create a copy of the
ExtractionDataSet first!
|
void |
save(java.lang.String path)
Serializes this extractor to a file
|
void |
setLoggerLevel(java.util.logging.Level level) |
void |
train(Annotation dataset)
Trains one extractor model using the given dataset
|
void train(Annotation dataset)
dataset
- dataset to train from (this should already have annotations and
will typically be created by a reader)void annotate(Annotation dataset)
dataset
- dataset to annotatevoid save(java.lang.String path) throws java.io.IOException
path
- where to save the extractorjava.io.IOException
void setLoggerLevel(java.util.logging.Level level)