Update SemEval2014Task4Raw.py
Browse files- 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 |
|