Update E3C.py
Browse files
E3C.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2 |
|
3 |
import os
|
4 |
import random
|
|
|
5 |
|
6 |
import datasets
|
7 |
|
@@ -67,7 +68,7 @@ class StringIndex:
|
|
67 |
|
68 |
return "is_not_oov" if t in self.vocab_struct[key] else "is_oov"
|
69 |
|
70 |
-
_VOCAB = StringIndex(vocab=
|
71 |
|
72 |
class E3C(datasets.GeneratorBasedBuilder):
|
73 |
|
|
|
2 |
|
3 |
import os
|
4 |
import random
|
5 |
+
import requests
|
6 |
|
7 |
import datasets
|
8 |
|
|
|
68 |
|
69 |
return "is_not_oov" if t in self.vocab_struct[key] else "is_oov"
|
70 |
|
71 |
+
_VOCAB = StringIndex(vocab=requests.get("https://huggingface.co/datasets/BioMedTok/vocabulary_nachos_lowercased/resolve/main/vocabulary_nachos_lowercased.txt").text.split("\n"))
|
72 |
|
73 |
class E3C(datasets.GeneratorBasedBuilder):
|
74 |
|