info.ephyra.questionanalysis.atype
Class QuestionClassifierFactory
java.lang.Object
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
|
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 |
propertyMap
private static java.util.Map<java.lang.String,Properties> propertyMap
QuestionClassifierFactory
public QuestionClassifierFactory()
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