Datasets:
Update science_ie.py
Browse files- science_ie.py +1 -1
science_ie.py
CHANGED
@@ -208,7 +208,7 @@ class ScienceIE(datasets.GeneratorBasedBuilder):
|
|
208 |
doc_id = f_anno_path.stem
|
209 |
with open(f_anno_path, mode="r", encoding="utf8") as f_anno, \
|
210 |
open(f_text_path, mode="r", encoding="utf8") as f_text:
|
211 |
-
text = f_text.read()
|
212 |
doc = word_splitter(text)
|
213 |
entities = []
|
214 |
synonym_groups = []
|
|
|
208 |
doc_id = f_anno_path.stem
|
209 |
with open(f_anno_path, mode="r", encoding="utf8") as f_anno, \
|
210 |
open(f_text_path, mode="r", encoding="utf8") as f_text:
|
211 |
+
text = f_text.read().strip()
|
212 |
doc = word_splitter(text)
|
213 |
entities = []
|
214 |
synonym_groups = []
|