Update MANTRAGSC.py
Browse files- MANTRAGSC.py +2 -1
MANTRAGSC.py
CHANGED
@@ -20,6 +20,7 @@ from pathlib import Path
|
|
20 |
from itertools import product
|
21 |
from dataclasses import dataclass
|
22 |
from typing import Dict, List, Tuple
|
|
|
23 |
|
24 |
import xmltodict
|
25 |
import numpy as np
|
@@ -119,7 +120,7 @@ class StringIndex:
|
|
119 |
|
120 |
return "is_not_oov" if t in self.vocab_struct[key] else "is_oov"
|
121 |
|
122 |
-
_VOCAB = StringIndex(vocab=
|
123 |
|
124 |
@dataclass
|
125 |
class DrBenchmarkConfig(datasets.BuilderConfig):
|
|
|
20 |
from itertools import product
|
21 |
from dataclasses import dataclass
|
22 |
from typing import Dict, List, Tuple
|
23 |
+
import requests
|
24 |
|
25 |
import xmltodict
|
26 |
import numpy as np
|
|
|
120 |
|
121 |
return "is_not_oov" if t in self.vocab_struct[key] else "is_oov"
|
122 |
|
123 |
+
_VOCAB = StringIndex(vocab=requests.get("https://huggingface.co/datasets/BioMedTok/vocabulary_nachos_lowercased/resolve/main/vocabulary_nachos_lowercased.txt").text.split("\n"))
|
124 |
|
125 |
@dataclass
|
126 |
class DrBenchmarkConfig(datasets.BuilderConfig):
|