class documentation
class RTEPair(object): (source)
Constructor: RTEPair(pair, challenge, id, text, ...)
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.
Method | __init__ |
No summary |
Method | __repr__ |
Undocumented |
Instance Variable | challenge |
Undocumented |
Instance Variable | gid |
Undocumented |
Instance Variable | hyp |
Undocumented |
Instance Variable | id |
Undocumented |
Instance Variable | length |
Undocumented |
Instance Variable | task |
Undocumented |
Instance Variable | text |
Undocumented |
Instance Variable | value |
Undocumented |
def __init__(self, pair, challenge=None, id=None, text=None, hyp=None, value=None, task=None, length=None):
(source)
¶
Parameters | |
pair | Undocumented |
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 |