Yaxin commited on
Commit
57bac50
1 Parent(s): 0cb959e

Update SemEval2014Task4Raw.py

Browse files
Files changed (1) hide show
  1. SemEval2014Task4Raw.py +1 -1
SemEval2014Task4Raw.py CHANGED
@@ -139,7 +139,7 @@ class SemEvalXMLDataset():
139
  self.SentenceWithOpinions = []
140
  self.xml_path = file_name
141
 
142
- self.sentenceXmlList = parse(self.xml_path).getElementsByTagName('sentence')
143
 
144
  for sentenceXml in self.sentenceXmlList:
145
 
 
139
  self.SentenceWithOpinions = []
140
  self.xml_path = file_name
141
 
142
+ self.sentenceXmlList = parse(open(self.xml_path)).getElementsByTagName('sentence')
143
 
144
  for sentenceXml in self.sentenceXmlList:
145