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