Skip to content
Snippets Groups Projects
Commit 456c5bd9 authored by leszeks's avatar leszeks
Browse files

CI addition, slight code modification

parent 0b293cb8
No related branches found
No related tags found
1 merge request!4Polem2rancher
Pipeline #597 failed
......@@ -5,6 +5,7 @@ import lex_ws
class Polem(lex_ws.LexWorker):
"""Implements lex_worker for polem service. It's a mock object."""
@classmethod
def static_init(cls, config):
"""Class constructor."""
......@@ -24,11 +25,9 @@ class Polem(lex_ws.LexWorker):
output = []
for lexeme in task_options['lexeme_polem']:
if len(lexeme) == 3:
output.append(self._lemmatizer.lemmatizeS(
lexeme[0], lexeme[1], lexeme[2], False))
output.append(self._lemmatizer.lemmatizeS(*lexeme, False))
elif len(lexeme) == 5:
output.append(self._lemmatizer.lemmatizeS(
lexeme[0], lexeme[1], lexeme[2], lexeme[3], lexeme[4], False))
output.append(self._lemmatizer.lemmatizeS(*lexeme, False))
else:
raise Exception("Invalid number of arguments")
return output
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment