Ahmet Yildirim commited on
Commit ·
f321e87
1
Parent(s): cc6325d
- Fix lemmatization handling problem
Browse files- modeling_humit_tagger.py +0 -14
modeling_humit_tagger.py
CHANGED
|
@@ -988,20 +988,6 @@ class HumitTaggerModel(torch.nn.Module):
|
|
| 988 |
del tag_config["lemmatization"]
|
| 989 |
else:
|
| 990 |
tag_config["lemmatize"] = True
|
| 991 |
-
if "lemmatisation" in tag_config and tag_config["lemmatisation"]==False:
|
| 992 |
-
tag_config["lemmatize"] = False
|
| 993 |
-
del tag_config["lemmatisation"]
|
| 994 |
-
elif "lemmatisation" in tag_config:
|
| 995 |
-
tag_config["lemmatize"] = True
|
| 996 |
-
del tag_config["lemmatisation"]
|
| 997 |
-
elif "lemmatization" in tag_config and tag_config["lemmatization"]==False:
|
| 998 |
-
tag_config["lemmatize"] = False
|
| 999 |
-
del tag_config["lemmatization"]
|
| 1000 |
-
elif "lemmatization" in tag_config:
|
| 1001 |
-
tag_config["lemmatize"] = True
|
| 1002 |
-
del tag_config["lemmatization"]
|
| 1003 |
-
else:
|
| 1004 |
-
tag_config["lemmatize"] = True
|
| 1005 |
|
| 1006 |
if "one_sentence_per_line" not in tag_config:
|
| 1007 |
tag_config["one_sentence_per_line"]=False
|
|
|
|
| 988 |
del tag_config["lemmatization"]
|
| 989 |
else:
|
| 990 |
tag_config["lemmatize"] = True
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 991 |
|
| 992 |
if "one_sentence_per_line" not in tag_config:
|
| 993 |
tag_config["one_sentence_per_line"]=False
|