Package nltk :: Package corpus :: Package reader :: Module rte :: Class RTEPair
[hide private]
[frames] | no frames]

Class RTEPair

source code

Container for RTE text-hypothesis pairs.

The entailment relation is signalled by the value attribute in RTE1, and by entailment in RTE2 and RTE3. These both get mapped on to the entailment attribute of this class.

Instance Methods [hide private]
 
__init__(self, pair, challenge=None, id=None, text=None, hyp=None, value=None, task=None, length=None) source code
 
__repr__(self) source code
Method Details [hide private]

__init__(self, pair, challenge=None, id=None, text=None, hyp=None, value=None, task=None, length=None)
(Constructor)

source code 
Parameters:
  • challenge - version of the RTE challenge (i.e., RTE1, RTE2 or RTE3)
  • id - identifier for the pair
  • text - the text component of the pair
  • hyp - the hypothesis component of the pair
  • value - classification label for the pair
  • task - attribute for the particular NLP task that the data was drawn from
  • length - attribute for the length of the text of the pair