Commit caddd296 authored by Norbert Ropiak's avatar Norbert Ropiak

Fix - add one more argument in for loop

parent 1677a12c
Pipeline #3637 passed with stage
in 45 seconds
......@@ -171,7 +171,7 @@ class EnglishAnonymizer(BaseAnonymizer):
def _anonymize(self, sentence):
if self._method == 'delete':
for pattern, _, _ in self._category_anonymisation.values():
for pattern, _, _, _ in self._category_anonymisation.values():
sentence = regex.sub(pattern, '', sentence)
elif self._method == 'tag':
sentence = self._tagging(sentence)
......
......@@ -179,7 +179,7 @@ class PolishAnonymizer(BaseAnonymizer):
def _anonymize(self, sentence):
if self._method == 'delete':
for pattern, _, _ in self._category_anonymisation.values():
for pattern, _, _, _ in self._category_anonymisation.values():
sentence = regex.sub(pattern, '', sentence)
elif self._method == 'tag':
sentence = self._tagging(sentence)
......
......@@ -170,7 +170,7 @@ class RussianAnonymizer(BaseAnonymizer):
def _anonymize(self, sentence):
if self._method == 'delete':
for pattern, _, _ in self._category_anonymisation.values():
for pattern, _, _, _ in self._category_anonymisation.values():
sentence = regex.sub(pattern, '', sentence)
elif self._method == 'tag':
sentence = self._tagging(sentence)
......
Markdown is supported
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