parameters: (self, data_dir)
return_statement: return examples
docstring: See base class.
docstring_summary: See base class.
docstring_tokens: See base class .
function: def get_dev_examples(self, data_dir):
      """See base class."""
      lines = self._read_tsv(os.path.join(data_dir, "xnli.dev.tsv"))
      examples = []
      for (i, line) in enumerate(lines):
        if i == 0:
          continue
        guid = "dev-%d" % (i)
        language = tokenization.convert_to_unicode(line[0])
        if language != tokenization.convert_to_unicode(self.language):
          continue
        text_a = tokenization.convert_to_unicode(line[6])
        text_b = tokenization.convert_to_unicode(line[7])
        label = tokenization.convert_to_unicode(line[1])
        examples.append(
            InputExample(guid=guid, text_a=text_a, text_b=text_b, label=label))
      return examples
function_tokens: def get_dev_examples ( self , data_dir ) : lines = self . _read_tsv ( os . path . join ( data_dir , "xnli.dev.tsv" ) ) examples = [ ] for ( i , line ) in enumerate ( lines ) : if i == 0 : continue guid = "dev-%d" % ( i ) language = tokenization . convert_to_unicode ( line [ 0 ] ) if language != tokenization . convert_to_unicode ( self . language ) : continue text_a = tokenization . convert_to_unicode ( line [ 6 ] ) text_b = tokenization . convert_to_unicode ( line [ 7 ] ) label = tokenization . convert_to_unicode ( line [ 1 ] ) examples . append ( InputExample ( guid = guid , text_a = text_a , text_b = text_b , label = label ) ) return examples