formating

This commit is contained in:
thomwolf committed 2020-01-16 13:21:30 +01:00
1 parent e25b6fe354
commit 1c9333584a
3 files changed
+353 -235

No files matched your search

+5 -3
View File
@@ -14,10 +14,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
import csv
import sys
import copy
import csv
import json
import sys
class InputExample(object):
"""
@@ -32,6 +33,7 @@ class InputExample(object):
label: (Optional) string. The label of the example. This should be
specified for train and dev examples, but not for test examples.
"""
def __init__(self, guid, text_a, text_b=None, label=None, pairID=None):
self.guid = guid
self.text_a = text_a
@@ -117,6 +119,6 @@ class DataProcessor(object):
lines = []
for line in reader:
if sys.version_info[0] == 2:
line = list(unicode(cell, 'utf-8') for cell in line)
line = list(unicode(cell, "utf-8") for cell in line)
lines.append(line)
return lines