info.ephyra.questionanalysis.atype
Class QuestionClassifierFactory

java.lang.Object
  extended by info.ephyra.questionanalysis.atype.QuestionClassifierFactory

public class QuestionClassifierFactory
extends java.lang.Object

Factory class for generating a question classifier. See getInstance(edu.cmu.lti.util.Pair). A main method for evaluation a classifier against a test set is also provided.

Version:
2008-02-10
Author:
Justin Betteridge

Field Summary
private static java.util.Map<java.lang.String,Properties> propertyMap
           
 
Constructor Summary
QuestionClassifierFactory()
           
 
Method Summary
static QuestionClassifier getInstance(edu.cmu.lti.util.Pair<edu.cmu.lti.javelin.util.Language,edu.cmu.lti.javelin.util.Language> languagePair)
          Returns a QuestionClassifier for the specified Language Pair.
static void main(java.lang.String[] args)
          Given a language pair and a test set filename, evaluates the classifier for that language pair on the test set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

propertyMap

private static java.util.Map<java.lang.String,Properties> propertyMap
Constructor Detail

QuestionClassifierFactory

public QuestionClassifierFactory()
Method Detail

getInstance

public static QuestionClassifier getInstance(edu.cmu.lti.util.Pair<edu.cmu.lti.javelin.util.Language,edu.cmu.lti.javelin.util.Language> languagePair)
                                      throws java.lang.Exception
Returns a QuestionClassifier for the specified Language Pair. Configure which QuestionClassifier is associated with each Language Pair in this class's properties file.

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Given a language pair and a test set filename, evaluates the classifier for that language pair on the test set.

Parameters:
args - command-line args: <languagePair> <testSetFileName>
Throws:
java.lang.Exception