Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -5,7 +5,7 @@ import pandas as pd
|
|
5 |
import inspect
|
6 |
import copy
|
7 |
import ftfy
|
8 |
-
|
9 |
|
10 |
key_to_entry = requests.get('https://www.dropbox.com/scl/fi/85pnc7n6e4puoureavtzo/filtered_disrpt.json?rlkey=6cbgbe9vn2549eths7ah8gm7u&dl=1').json()
|
11 |
citation="\n".join(key_to_entry.values())
|
@@ -154,6 +154,7 @@ class Dataset(datasets.GeneratorBasedBuilder):
|
|
154 |
)
|
155 |
|
156 |
def _generate_examples(self, filepath):
|
|
|
157 |
with open(filepath, encoding="utf-8") as f:
|
158 |
if "conllu" in self.config.name:
|
159 |
stream=parse_conll_stream(f)
|
|
|
5 |
import inspect
|
6 |
import copy
|
7 |
import ftfy
|
8 |
+
from process_underscores import run
|
9 |
|
10 |
key_to_entry = requests.get('https://www.dropbox.com/scl/fi/85pnc7n6e4puoureavtzo/filtered_disrpt.json?rlkey=6cbgbe9vn2549eths7ah8gm7u&dl=1').json()
|
11 |
citation="\n".join(key_to_entry.values())
|
|
|
154 |
)
|
155 |
|
156 |
def _generate_examples(self, filepath):
|
157 |
+
print(filepath)
|
158 |
with open(filepath, encoding="utf-8") as f:
|
159 |
if "conllu" in self.config.name:
|
160 |
stream=parse_conll_stream(f)
|