Commit 7eb47376 authored by Tomasz Walkowiak's avatar Tomasz Walkowiak

Merge branch 'fix_too_many_values_unpack' into 'master'

Fix - add one more argument in for loop

See merge request !6
parents 1677a12c caddd296
Pipeline #3638 passed with stages
in 2 minutes and 46 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