qanastek commited on
Commit
5311176
1 Parent(s): e6dfc86

Update ESSAI.py

Browse files
Files changed (1) hide show
  1. ESSAI.py +4 -4
ESSAI.py CHANGED
@@ -266,7 +266,7 @@ class ESSAI(datasets.GeneratorBasedBuilder):
266
  all_res.append({
267
  "id": str(doc_id),
268
  "document_id": doc_id,
269
- "tokens": tokens,
270
  "lemmas": text_lemmas,
271
  "pos_tags": pos_tags,
272
  "is_oov": [_VOCAB.find(tt.lower()) for tt in tokens],
@@ -326,7 +326,7 @@ class ESSAI(datasets.GeneratorBasedBuilder):
326
  all_res.append({
327
  "id": key,
328
  "document_id": doc_id,
329
- "tokens": tokens,
330
  "lemmas": text_lemmas,
331
  "ner_tags": ner_tags,
332
  "is_oov": [_VOCAB.find(tt.lower()) for tt in tokens],
@@ -373,7 +373,7 @@ class ESSAI(datasets.GeneratorBasedBuilder):
373
  all_res[index_l] = {
374
  "id": str(identifier),
375
  "document_id": identifier,
376
- "tokens": tokens,
377
  "label": l,
378
  }
379
 
@@ -382,7 +382,7 @@ class ESSAI(datasets.GeneratorBasedBuilder):
382
  all_res.append({
383
  "id": str(identifier),
384
  "document_id": identifier,
385
- "tokens": tokens,
386
  "label": l,
387
  })
388
 
 
266
  all_res.append({
267
  "id": str(doc_id),
268
  "document_id": doc_id,
269
+ "tokens": [tok.lower() for tok in tokens],
270
  "lemmas": text_lemmas,
271
  "pos_tags": pos_tags,
272
  "is_oov": [_VOCAB.find(tt.lower()) for tt in tokens],
 
326
  all_res.append({
327
  "id": key,
328
  "document_id": doc_id,
329
+ "tokens": [tok.lower() for tok in tokens],
330
  "lemmas": text_lemmas,
331
  "ner_tags": ner_tags,
332
  "is_oov": [_VOCAB.find(tt.lower()) for tt in tokens],
 
373
  all_res[index_l] = {
374
  "id": str(identifier),
375
  "document_id": identifier,
376
+ "tokens": [tok.lower() for tok in tokens],
377
  "label": l,
378
  }
379
 
 
382
  all_res.append({
383
  "id": str(identifier),
384
  "document_id": identifier,
385
+ "tokens": [tok.lower() for tok in tokens],
386
  "label": l,
387
  })
388