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

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

    self.challenge = challenge
    self.id = pair.attrib[u'id']
    self.gid = (u'%s-%s' % (self.challenge, self.id))
    self.text = pair[0].text
    self.hyp = pair[1].text
    if (u'value' in pair.attrib):
        self.value = norm(pair.attrib[u'value'])
    elif (u'entailment' in pair.attrib):
        self.value = norm(pair.attrib[u'entailment'])
    else:
        self.value = value
    if (u'task' in pair.attrib):
        self.task = pair.attrib[u'task']
    else:
        self.task = task
    if (u'length' in pair.attrib):
        self.length = pair.attrib[u'length']
    else:
        self.length = length
