Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
anonymizer
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
anonymizer
Commits
f65c857a
Commit
f65c857a
authored
1 year ago
by
Bartlomiej
Browse files
Options
Downloads
Patches
Plain Diff
Fix pep8,docstyle
parent
77f1a90e
Branches
Branches containing commit
1 merge request
!11
Clarin json support
Pipeline
#14180
passed with stage
in 17 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-5
5 additions, 5 deletions
.gitlab-ci.yml
src/input_parsers/wiktor_ner.py
+1
-3
1 addition, 3 deletions
src/input_parsers/wiktor_ner.py
with
6 additions
and
8 deletions
.gitlab-ci.yml
+
5
−
5
View file @
f65c857a
image
:
'
python:3.8'
stages
:
-
check_style
-
test
#
- test
-
build
before_script
:
-
pip install tox==4.5.1
...
...
@@ -16,10 +16,10 @@ docstyle:
script
:
-
tox -v -e docstyle
auto_tests
:
stage
:
test
script
:
-
tox -v -e tests
#
auto_tests:
#
stage: test
#
script:
#
- tox -v -e tests
build_image
:
stage
:
build
...
...
This diff is collapsed.
Click to expand it.
src/input_parsers/wiktor_ner.py
+
1
−
3
View file @
f65c857a
"""
Module for parsing WiktorNER files.
"""
import
json
from
typing
import
List
,
Tuple
from
src.annotations
import
Annotation
,
MorphosyntacticAnnotation
,
NerAnnotation
from
src.annotations
import
Annotation
,
MorphosyntacticAnnotation
from
src.input_parsers.interface
import
InputParser
...
...
@@ -73,7 +72,6 @@ class WiktorNERInputParser(InputParser):
Tuple[str, List[Tuple[int, int, Annotation]]]: Text and annotations.
"""
if
content
.
text
:
text
=
content
.
text
else
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment