Training the Answer Type Classifier

  1. 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.
  1. 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
  1. 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/.
  1. 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.