Update E3C.py
Browse files
E3C.py
CHANGED
@@ -284,8 +284,8 @@ class E3C(datasets.GeneratorBasedBuilder):
|
|
284 |
|
285 |
all_res.append({
|
286 |
"id": key,
|
287 |
-
"text": sentence[-1],
|
288 |
-
"tokens": list(map(lambda token: token[2], filtered_tokens)),
|
289 |
"ner_tags": _labels,
|
290 |
"is_oov": [_VOCAB.find(tt.lower()) for tt in list(map(lambda token: token[2], filtered_tokens))],
|
291 |
})
|
|
|
284 |
|
285 |
all_res.append({
|
286 |
"id": key,
|
287 |
+
"text": sentence[-1].lower(),
|
288 |
+
"tokens": [tok.lower() for tok in list(map(lambda token: token[2], filtered_tokens))],
|
289 |
"ner_tags": _labels,
|
290 |
"is_oov": [_VOCAB.find(tt.lower()) for tt in list(map(lambda token: token[2], filtered_tokens))],
|
291 |
})
|