|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ephyra.io.Logger
public class Logger
Logs all questions that are posed to the system and the answers that are returned to a file. Logging can be enabled or disabled. By default, logging is enabled.
| Field Summary | |
|---|---|
private static boolean |
enabled
True, iff logging is enabled. |
private static java.io.File |
logfile
The log file. |
| Constructor Summary | |
|---|---|
Logger()
|
|
| Method Summary | |
|---|---|
static void |
enableLogging(boolean enable)
Enables or disables logging. |
static boolean |
logAnswerTypes(java.lang.String[] ats)
Logs the determined answer types. |
static boolean |
logFactoidEnd()
Ends an entry for a factoid question. |
static boolean |
logFactoidScore(float score,
float absThresh)
Logs the score of the factoid component. |
static boolean |
logFactoidStart(java.lang.String question)
Starts an entry for a factoid question. |
static boolean |
logInterpretations(QuestionInterpretation[] qis)
Logs the interpretations of a question. |
static boolean |
logListEnd()
Ends an entry for a list question. |
static boolean |
logListScore(float score,
float relThresh)
Logs the score of the list component. |
static boolean |
logListStart(java.lang.String question)
Starts an entry for a list question. |
static boolean |
logNormalization(java.lang.String qn)
Logs the normalization of a question. |
static boolean |
logOtherEnd()
Ends an entry for an "Other" question. |
static boolean |
logOtherStart(java.lang.String question)
Starts an entry for an "Other" question. |
static boolean |
logPredicates(Predicate[] ps)
Logs the predicates in a question. |
static boolean |
logQueryStrings(Query[] queries)
Logs the query strings. |
static boolean |
logResults(Result[] results)
Logs the results returned by the QA engine. |
static boolean |
logResultsJudged(Result[] results,
boolean[] correct)
Logs results with true/false judgements. |
static boolean |
logScores(float precision,
float mrr)
Logs the resulting precision and MRR. |
static void |
setLogfile(java.lang.String filename)
Sets the log file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private static java.io.File logfile
private static boolean enabled
| Constructor Detail |
|---|
public Logger()
| Method Detail |
|---|
public static void setLogfile(java.lang.String filename)
filename - name of the log filepublic static void enableLogging(boolean enable)
enable - true to enable logging,
false to disable itpublic static boolean logFactoidStart(java.lang.String question)
question - question string
public static boolean logFactoidEnd()
public static boolean logListStart(java.lang.String question)
question - question string
public static boolean logListEnd()
public static boolean logOtherStart(java.lang.String question)
question - question string
public static boolean logOtherEnd()
public static boolean logNormalization(java.lang.String qn)
qn - question normalization
public static boolean logAnswerTypes(java.lang.String[] ats)
ats - answer types
public static boolean logInterpretations(QuestionInterpretation[] qis)
qis - question interpretations
public static boolean logPredicates(Predicate[] ps)
ps - predicates
public static boolean logQueryStrings(Query[] queries)
queries - the queries
public static boolean logResults(Result[] results)
results - the results
public static boolean logResultsJudged(Result[] results,
boolean[] correct)
results - the resultscorrect - judgements
public static boolean logScores(float precision,
float mrr)
precision - the precisionmrr - mean reciprocal rank
public static boolean logFactoidScore(float score,
float absThresh)
score - the scoreabsThresh - absolute confidence threshold for results
public static boolean logListScore(float score,
float relThresh)
score - the scorerelThresh - relative confidence threshold for results
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||