Skip to content
Snippets Groups Projects
Commit e637912b authored by Jarema Radom's avatar Jarema Radom
Browse files

Final fix

parent f75b15f1
Branches languagetools
Tags
2 merge requests!14Support for russian and english models,!13Add languagetool postprocessing
Pipeline #3144 passed with stages
in 3 minutes and 29 seconds
...@@ -49,7 +49,6 @@ class Worker(nlp_ws.NLPWorker): ...@@ -49,7 +49,6 @@ class Worker(nlp_ws.NLPWorker):
self.languagetool_path = self.config["languagetool_path"] self.languagetool_path = self.config["languagetool_path"]
os.environ["LTP_PATH"] = self.languagetool_path os.environ["LTP_PATH"] = self.languagetool_path
self.tool = language_tool_python.LanguageTool('pl-PL') self.tool = language_tool_python.LanguageTool('pl-PL')
model_path = self.config["model_path"] model_path = self.config["model_path"]
self.model = AutoModelForTokenClassification.from_pretrained( self.model = AutoModelForTokenClassification.from_pretrained(
model_path model_path
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment