info.ephyra.trec
Class TRECPattern

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

public class TRECPattern
extends java.lang.Object

A TRECPattern is a simple data structure consisting of the ID of the pattern and regular expressions that describe correct answers.

Version:
2006-07-07
Author:
Nico Schlaefer

Field Summary
private  java.lang.String id
          The ID of the pattern.
private  java.lang.String[] regexs
          The regular expressions that describe correct answers.
 
Constructor Summary
TRECPattern(java.lang.String id, java.lang.String[] regexs)
          Creates a TRECPattern data structure and sets the ID and the regular expressions.
 
Method Summary
 java.lang.String getId()
          Returns the ID of the pattern.
 java.lang.String[] getRegexs()
          Returns the regular expressions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

private java.lang.String id
The ID of the pattern.


regexs

private java.lang.String[] regexs
The regular expressions that describe correct answers.

Constructor Detail

TRECPattern

public TRECPattern(java.lang.String id,
                   java.lang.String[] regexs)
Creates a TRECPattern data structure and sets the ID and the regular expressions.

Parameters:
id - the ID of the pattern
regexs - the regular expressions
Method Detail

getId

public java.lang.String getId()
Returns the ID of the pattern.

Returns:
ID

getRegexs

public java.lang.String[] getRegexs()
Returns the regular expressions.

Returns:
regular expression