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)
Extractor
public static Extractor buildRelationExtractorMerger(java.lang.String[] extractorModelNames)
public void setLoggerLevel(java.util.logging.Level level)
setLoggerLevel
in interface Extractor
public void save(java.lang.String path) throws java.io.IOException
Extractor
public void train(Annotation dataset)
Extractor