public class ExtractorMerger extends java.lang.Object implements Extractor
| Constructor and Description |
|---|
ExtractorMerger(Extractor[] extractors) |
| 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!
|
static Extractor |
buildRelationExtractorMerger(java.lang.String[] extractorModelNames) |
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
|
public ExtractorMerger(Extractor[] extractors)
public void annotate(Annotation dataset)
Extractorpublic static Extractor buildRelationExtractorMerger(java.lang.String[] extractorModelNames)
public void setLoggerLevel(java.util.logging.Level level)
setLoggerLevel in interface Extractorpublic void save(java.lang.String path)
throws java.io.IOException
Extractorpublic void train(Annotation dataset)
Extractor