Yaxin commited on
Commit
6cba900
·
1 Parent(s): f5c0679

Update SemEval2015Task12NLTK.py

Browse files
Files changed (1) hide show
  1. SemEval2015Task12NLTK.py +1 -1
SemEval2015Task12NLTK.py CHANGED
@@ -177,7 +177,7 @@ class SemEvalXMLDataset():
177
  }
178
  Opinions.append(opinionDict)
179
 
180
- Opinions.sort(key=lambda x: x["from"])
181
  # 从小到大排序
182
  example = {
183
  "text": text,
 
177
  }
178
  Opinions.append(opinionDict)
179
 
180
+ Opinions.sort(key=lambda x: int(x["from"]))
181
  # 从小到大排序
182
  example = {
183
  "text": text,