(self, data_dir)
return examples
:param data_dir:
        :return:
def get_test_examples(self, data_dir):
        """

        :param data_dir:
        :return:
        """
        examples = []
        i = 0
        with open(os.path.join(data_dir, "cnews.test.txt")) as f:
            for line in f:
                line = line.strip().split("\t")
                i += 1
                guid = "train-%d" % (i)
                text_a = tokenization.convert_to_unicode(line[1])
                label = tokenization.convert_to_unicode(line[0])
                examples.append(
                    InputExample(guid=guid, text_a=text_a, text_b=None, label=label))
        return examples
def get_test_examples ( self , data_dir ) : examples = [ ] i = 0 with open ( os . path . join ( data_dir , "cnews.test.txt" ) ) as f : for line in f : line = line . strip ( ) . split ( "\t" ) i += 1 guid = "train-%d" % ( i ) text_a = tokenization . convert_to_unicode ( line [ 1 ] ) label = tokenization . convert_to_unicode ( line [ 0 ] ) examples . append ( InputExample ( guid = guid , text_a = text_a , text_b = None , label = label ) ) return examples