Update SemEval2016Task5NLTK.py
Browse files- SemEval2016Task5NLTK.py +1 -1
SemEval2016Task5NLTK.py
CHANGED
|
@@ -196,7 +196,7 @@ class SemEvalXMLDataset():
|
|
| 196 |
}
|
| 197 |
Opinions.append(opinionDict)
|
| 198 |
|
| 199 |
-
Opinions.sort(key=lambda x: x["from"])
|
| 200 |
# 从小到大排序
|
| 201 |
example = {
|
| 202 |
"text": text,
|
|
|
|
| 196 |
}
|
| 197 |
Opinions.append(opinionDict)
|
| 198 |
|
| 199 |
+
Opinions.sort(key=lambda x: int(x["from"]))
|
| 200 |
# 从小到大排序
|
| 201 |
example = {
|
| 202 |
"text": text,
|