info.ephyra.trec
Class TargetPreprocessor

java.lang.Object
  extended by info.ephyra.trec.TargetPreprocessor

public class TargetPreprocessor
extends java.lang.Object

A preprocessor for TREC target descriptions.

Version:
2007-07-23
Author:
Nico Schlaefer

Constructor Summary
TargetPreprocessor()
           
 
Method Summary
private static void determineTypes(TRECTarget target)
          Determines possible types for the target.
private static void normalize(TRECTarget target)
          Creates a normalized target that is used as a query for the "Other" question and a condensed target that is appended to queries for factoid and list questions.
static void preprocess(TRECTarget target)
          Preprocesses the target (normalization and type determination).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetPreprocessor

public TargetPreprocessor()
Method Detail

normalize

private static void normalize(TRECTarget target)
Creates a normalized target that is used as a query for the "Other" question and a condensed target that is appended to queries for factoid and list questions. Checks if the target is a noun phrase.

Parameters:
target - a TREC target

determineTypes

private static void determineTypes(TRECTarget target)
Determines possible types for the target.

Parameters:
target - a TREC target

preprocess

public static void preprocess(TRECTarget target)
Preprocesses the target (normalization and type determination).

Parameters:
target - a TREC target