public class MachineReadingProperties
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
auxDataPath |
static boolean |
computeFeatSimilarity |
static java.lang.Class<Extractor> |
consistencyCheck |
static boolean |
createUnrelatedRelations |
protected static boolean |
crossValidate |
static java.lang.Class<GenericDataSetReader> |
datasetAuxReaderClass |
static java.lang.Class<GenericDataSetReader> |
datasetReaderClass |
static boolean |
doNotLexicalizeFirstArg |
static java.lang.Class<BasicEntityExtractor> |
entityClassifier |
static java.lang.String |
entityGazetteerPath |
static java.lang.String |
entityResultsPrinters |
static java.lang.String |
eventResultsPrinters |
protected static boolean |
extractEntities |
protected static boolean |
extractEvents |
protected static boolean |
extractRelations |
static double |
featureSelectionNumFeaturesRatio |
static double |
featureSimilarityThreshold
Additional features, may not necessarily be used in the public release
|
static boolean |
forceGenerationOfIndexSpans |
static int |
kfold |
static boolean |
L1Reg |
static double |
L1RegLambda |
static boolean |
L2Reg |
protected static boolean |
loadModel |
static java.util.logging.Logger |
logger |
static double |
percentageOfTrain |
static java.lang.String |
readerLogLevel |
static java.lang.Class<? extends BasicRelationExtractor> |
relationClassifier |
static java.lang.Class<Extractor> |
relationExtractionPostProcessorClass |
static java.lang.Class<? extends RelationFeatureFactory> |
relationFeatureFactoryClass |
static java.lang.String |
relationFeatures |
static java.lang.Class<RelationMentionFactory> |
relationMentionFactoryClass |
static java.lang.String |
relationResultsPrinters |
static java.lang.String |
relationsToSkipDuringTraining |
static boolean |
serializeCorpora |
protected static java.lang.String |
serializedAuxTrainingSentencesPath |
protected static java.lang.String |
serializedEntityExtractionResults |
protected static java.lang.String |
serializedEntityExtractorPath |
protected static java.lang.String |
serializedEventExtractionResults |
protected static java.lang.String |
serializedEventExtractorPath |
protected static java.lang.String |
serializedRelationExtractionResults |
protected static java.lang.String |
serializedRelationExtractorPath |
protected static java.lang.String |
serializedTestSentencesPath |
protected static java.lang.String |
serializedTrainingSentencesPath |
static boolean |
testEventsUsingPredictedEntities |
protected static java.lang.String |
testPath |
static boolean |
testRelationsUsingPredictedEntities |
static boolean |
trainEventsUsingPredictedEntities |
protected static boolean |
trainOnly
evaluation options (ignored if trainOnly is true)
|
protected static java.lang.String |
trainPath |
static boolean |
trainRelationsUsingPredictedEntities |
static boolean |
trainUsePipelineNER |
static boolean |
useNewHeadFinder |
static boolean |
useRelationExtractionModelMerging |
@ArgumentParser.Option(name="logger", gloss="Static logger for this entire class") public static java.util.logging.Logger logger
@ArgumentParser.Option(name="datasetReaderClass", gloss="which GenericDataSetReader to use (needs to match the corpus in question)", required=true) public static java.lang.Class<GenericDataSetReader> datasetReaderClass
@ArgumentParser.Option(name="datasetAuxReaderClass", gloss="which GenericDataSetReader to use for aux data set (needs to match the corpus in question)") public static java.lang.Class<GenericDataSetReader> datasetAuxReaderClass
@ArgumentParser.Option(name="useNewHeadFinder", gloss="If false, use the original head (and worse) finding mechanism in GenericDataSetReader. This option is primarily around for legacy purposes.") public static boolean useNewHeadFinder
@ArgumentParser.Option(name="readerLogLevel", gloss="verbosity of the corpus reader") public static java.lang.String readerLogLevel
@ArgumentParser.Option(name="serializeCorpora", gloss="if false, we do not attempt to serialize the train/test corpora after reading") public static boolean serializeCorpora
@ArgumentParser.Option(name="forceGenerationOfIndexSpans", gloss="if true (default), regenerate span annotations for trees") public static boolean forceGenerationOfIndexSpans
@ArgumentParser.Option(name="serializedEntityExtractorPath", gloss="where to store/load the serialized entity extraction model") protected static java.lang.String serializedEntityExtractorPath
@ArgumentParser.Option(name="serializedEntityExtractionResults", gloss="where to store the serialized sentences containing the results of entity extraction") protected static java.lang.String serializedEntityExtractionResults
@ArgumentParser.Option(name="entityGazetteerPath", gloss="location of entity gazetteer file (if you\'re using one) -- this is a temporary option") public static java.lang.String entityGazetteerPath
@ArgumentParser.Option(name="entityClassifier", gloss="entity extractor class to use") public static java.lang.Class<BasicEntityExtractor> entityClassifier
@ArgumentParser.Option(name="entityResultsPrinters", gloss="comma-separated list of ResultsPrinter subclasses to use for printing the results of entity extraction") public static java.lang.String entityResultsPrinters
@ArgumentParser.Option(name="serializedRelationExtractorPath", gloss="where to store/load the serialized relation extraction model") protected static java.lang.String serializedRelationExtractorPath
@ArgumentParser.Option(name="serializedRelationExtractionResults", gloss="where to store the serialized sentences containing the results of relation extraction") protected static java.lang.String serializedRelationExtractionResults
@ArgumentParser.Option(name="relationFeatureFactoryClass", gloss="FeatureFactory class to use for generating features from relations for relation extraction") public static java.lang.Class<? extends RelationFeatureFactory> relationFeatureFactoryClass
@ArgumentParser.Option(name="relationMentionFactoryClass", gloss="relation mention factory class to use.") public static java.lang.Class<RelationMentionFactory> relationMentionFactoryClass
@ArgumentParser.Option(name="relationFeatures", gloss="comma-separated list of feature types to generate for relation extraction.") public static java.lang.String relationFeatures
@ArgumentParser.Option(name="relationResultsPrinters", gloss="comma-separated list of ResultsPrinter subclasses to use for printing the results of relation extraction") public static java.lang.String relationResultsPrinters
@ArgumentParser.Option(name="trainRelationsUsingPredictedEntities", gloss="if true, the relation extraction model trains using predicted rather than gold entity mentions") public static boolean trainRelationsUsingPredictedEntities
@ArgumentParser.Option(name="testRelationsUsingPredictedEntities", gloss="if true, the relation extraction model is evaluated using predicted rather than gold entity mentions.") public static boolean testRelationsUsingPredictedEntities
@ArgumentParser.Option(name="createUnrelatedRelations", gloss="If true, it creates automatically negative examples by generating all combinations between EntityMentions in a sentence") public static boolean createUnrelatedRelations
@ArgumentParser.Option(name="doNotLexicalizeFirstArg", gloss="If true, it does not create any lexicalized features from the first argument (needed for KBP)") public static boolean doNotLexicalizeFirstArg
@ArgumentParser.Option(name="useRelationExtractionModelMerging", gloss="If true, the relation extractor will use ExtractorMerger for annotation (not training)") public static boolean useRelationExtractionModelMerging
@ArgumentParser.Option(name="relationsToSkipDuringTraining", gloss="comma-separated list relation types to skip during training") public static java.lang.String relationsToSkipDuringTraining
@ArgumentParser.Option(name="relationExtractionPostProcessorClass", gloss="additional (probably domain-dependent) annotator to postprocess relations") public static java.lang.Class<Extractor> relationExtractionPostProcessorClass
@ArgumentParser.Option(name="relationClassifier", gloss="relation extractor class to use") public static java.lang.Class<? extends BasicRelationExtractor> relationClassifier
@ArgumentParser.Option(name="serializedEventExtractorPath", gloss="where to store/load the serialized event extraction model") protected static java.lang.String serializedEventExtractorPath
@ArgumentParser.Option(name="serializedEventExtractionResults", gloss="where to store the serialized sentences containing the results of event extraction") protected static java.lang.String serializedEventExtractionResults
@ArgumentParser.Option(name="eventResultsPrinters", gloss="comma-separated list of ResultsPrinter subclasses to use for printing the results of event extraction") public static java.lang.String eventResultsPrinters
@ArgumentParser.Option(name="trainEventsUsingPredictedEntities", gloss="if true, the event extraction model trains using predicted rather than gold entity mentions") public static boolean trainEventsUsingPredictedEntities
@ArgumentParser.Option(name="testEventsUsingPredictedEntities", gloss="if true, the event extraction model is evaluated using predicted rather than gold entity mentions") public static boolean testEventsUsingPredictedEntities
@ArgumentParser.Option(name="consistencyCheck", gloss="consistency checker class to use") public static java.lang.Class<Extractor> consistencyCheck
@ArgumentParser.Option(name="trainPath", gloss=" path to the training file/directory") protected static java.lang.String trainPath
@ArgumentParser.Option(name="auxDataPath", gloss="path to the aux training file/directory") protected static java.lang.String auxDataPath
@ArgumentParser.Option(name="serializedTrainingSentencesPath", gloss=" where to store the serialized training sentences objects", required=true) protected static java.lang.String serializedTrainingSentencesPath
@ArgumentParser.Option(name="serializedAuxTrainingSentencesPath", gloss="where to store the serialized aux training sentences objects") protected static java.lang.String serializedAuxTrainingSentencesPath
@ArgumentParser.Option(name="loadModel", gloss="if true, load a serialized model rather than training a new one") protected static boolean loadModel
@ArgumentParser.Option(name="trainUsePipelineNER", gloss="during training, use NER generated by the CoreNLP pipeline") public static boolean trainUsePipelineNER
@ArgumentParser.Option(name="trainOnly", gloss="if true, don\'t run evaluation (implies forceRetraining)") protected static boolean trainOnly
@ArgumentParser.Option(name="testPath", gloss="path to the testing file/directory") protected static java.lang.String testPath
@ArgumentParser.Option(name="serializedTestSentencesPath", gloss="where to store the serialized test sentence objects") protected static java.lang.String serializedTestSentencesPath
@ArgumentParser.Option(name="extractEntities", gloss="whether to extract entities, or use gold-standard entities for relation/event extraction") protected static boolean extractEntities
@ArgumentParser.Option(name="extractRelations", gloss="whether we should extract relations") protected static boolean extractRelations
@ArgumentParser.Option(name="extractEvents", gloss="whether we should extract events") protected static boolean extractEvents
@ArgumentParser.Option(name="crossValidate", gloss="if true, run cross-validation") protected static boolean crossValidate
@ArgumentParser.Option(name="kfold", gloss="number of partitions in training data for cross validation") public static int kfold
@ArgumentParser.Option(name="percentageOfTrain", gloss="Pct of train partition to use for training (e.g., for RELMS experiment); default all = 1.0") public static double percentageOfTrain
@ArgumentParser.Option(name="featureSimilarityThreshold") public static double featureSimilarityThreshold
@ArgumentParser.Option(name="computeFeatSimilarity") public static boolean computeFeatSimilarity
@ArgumentParser.Option(name="featureSelectionNumFeaturesRatio") public static double featureSelectionNumFeaturesRatio
@ArgumentParser.Option(name="L1Reg") public static boolean L1Reg
@ArgumentParser.Option(name="L2Reg") public static boolean L2Reg
@ArgumentParser.Option(name="L1RegLambda") public static double L1RegLambda