public class CoreNlpTrainer extends Object
Constructor and Description |
---|
CoreNlpTrainer()
Default constructor for an CoreNlpTrainer.
|
Modifier and Type | Method and Description |
---|---|
void |
generateNerClassifierTrainingOutput(String inputPath,
String outputPath,
AttributeValueTable propOverrideTable)
Generate the NER classifier file, from an input file and a set of properties.
|
void |
generateRelationMentionModelTrainingOutput(LibrarySession session,
AttributeValueTable propOverrideTable)
Generate RelationMention model from an input file and a set of properties.
|
public CoreNlpTrainer()
public void generateNerClassifierTrainingOutput(String inputPath, String outputPath, AttributeValueTable propOverrideTable) throws IfsException
The property list is specified as a list of AttributeValueTables, each of which depicting a single property, using keys KEY and VALUE.
inputPath
- the TSV file used as the inputoutputPath
- the output of the training,
to be used in future NLP parsespropOverrideTable
- the property list with the training optionsIfsException
- if the operation fails.public void generateRelationMentionModelTrainingOutput(LibrarySession session, AttributeValueTable propOverrideTable) throws IfsException
The property list is specified as a AttributeValueTable, where the keys are all forced into uppercase.
session
- the session contextpropOverrideTable
- the property list with the training optionsIfsException
- if the operation fails.Copyright © 2023. All rights reserved.