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