Spaces:
Sleeping
Sleeping
Update src/tagger.py
Browse files- src/tagger.py +6 -2
src/tagger.py
CHANGED
|
@@ -174,12 +174,16 @@ def checkTerm(tk, SID, dump, samples):
|
|
| 174 |
print("{}\t{}\t{}".format(SID, tk[0], msg_Trule15), file=dump)
|
| 175 |
if (tk[1][-1] == "ª") and (tk[1][:-1].isdigit()):
|
| 176 |
if (tk[5] not in ["Gender=Fem|Number=Sing|NumType=Ord",
|
| 177 |
-
"Gender=Fem|Number=Plur|NumType=Ord"
|
|
|
|
|
|
|
| 178 |
acc += 1
|
| 179 |
print("{}\t{}\t{}".format(SID, tk[0], msg_Trule16), file=dump)
|
| 180 |
elif (tk[1][-1] == "º") and (tk[1][:-1].isdigit()):
|
| 181 |
if (tk[5] not in ["Gender=Masc|Number=Sing|NumType=Ord",
|
| 182 |
-
"Gender=Masc|Number=Plur|NumType=Ord"
|
|
|
|
|
|
|
| 183 |
acc += 1
|
| 184 |
print("{}\t{}\t{}".format(SID, tk[0], msg_Trule16), file=dump)
|
| 185 |
else:
|
|
|
|
| 174 |
print("{}\t{}\t{}".format(SID, tk[0], msg_Trule15), file=dump)
|
| 175 |
if (tk[1][-1] == "ª") and (tk[1][:-1].isdigit()):
|
| 176 |
if (tk[5] not in ["Gender=Fem|Number=Sing|NumType=Ord",
|
| 177 |
+
"Gender=Fem|Number=Plur|NumType=Ord",
|
| 178 |
+
"Gender=Fem|NumType=Ord",
|
| 179 |
+
"NumType=Ord"]):
|
| 180 |
acc += 1
|
| 181 |
print("{}\t{}\t{}".format(SID, tk[0], msg_Trule16), file=dump)
|
| 182 |
elif (tk[1][-1] == "º") and (tk[1][:-1].isdigit()):
|
| 183 |
if (tk[5] not in ["Gender=Masc|Number=Sing|NumType=Ord",
|
| 184 |
+
"Gender=Masc|Number=Plur|NumType=Ord",
|
| 185 |
+
"Gender=Masc|NumType=Ord",
|
| 186 |
+
"NumType=Ord"]):
|
| 187 |
acc += 1
|
| 188 |
print("{}\t{}\t{}".format(SID, tk[0], msg_Trule16), file=dump)
|
| 189 |
else:
|