Training the Answer Type Classifier
- In the file conf/info.ephyra.questionanalysis.atype.minorthird.hierarchical.HierarchicalClassifierTrainer.properties edit the property en_US_en_US.trainingFile to point to your training data.
- Run the following command from the Ephyra main directory:
java -Xmx1024m -cp bin:lib/ml/minorthird.jar:lib/nlp/jwnl.jar:lib/nlp/stanford-parser.jar:lib/qa/javelin.jar:lib/util/commons-logging.jar
-Dlog4j.configuration="conf/log4j.properties" -Djwnl.configuration="res/ontologies/wordnet/file_properties.xml"
info.ephyra.questionanalysis.atype.minorthird.hierarchical.HierarchicalClassifierTrainer --train en_US en_US
- After the process finished (it takes ca. 10 minutes), there will be a new .train file in the Ephyra main directory. This is the new classifier. We recommend to rename it to a file ending in .classifier and to move it to the folder res/answertypes/.
- In the file conf/info.ephyra.questionanalysis.atype.classifier.TrainedQuestionClassifier.properties edit the property en_US_en_US.trainingFile to point to the new classifier.
Comments about this tutorial? Please email Nico Schlaefer.
![(please configure the [header_logo] section in trac.ini)](http://www.cs.cmu.edu/~nico/ephyra/doc/images/ephyra.jpg)