phucdev commited on
Commit
b6a41b0
1 Parent(s): d761e7b

Update science_ie.py

Browse files
Files changed (1) hide show
  1. 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 = []