Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
nlpworkers
anonymizer
Commits
7eb47376
Commit
7eb47376
authored
Sep 09, 2021
by
Tomasz Walkowiak
Browse files
Options
Browse Files
Download
Plain Diff
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
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/anonymizers/english_anonymizer.py
src/anonymizers/english_anonymizer.py
+1
-1
src/anonymizers/polish_anonymizer.py
src/anonymizers/polish_anonymizer.py
+1
-1
src/anonymizers/russian_anonymizer.py
src/anonymizers/russian_anonymizer.py
+1
-1
No files found.
src/anonymizers/english_anonymizer.py
View file @
7eb47376
...
...
@@ -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
)
...
...
src/anonymizers/polish_anonymizer.py
View file @
7eb47376
...
...
@@ -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
)
...
...
src/anonymizers/russian_anonymizer.py
View file @
7eb47376
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment