Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
anonymizer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
nlpworkers
anonymizer
Commits
f65c857a
Commit
f65c857a
authored
Oct 18, 2023
by
Bartlomiej
Browse files
Options
Downloads
Patches
Plain Diff
Fix pep8,docstyle
parent
77f1a90e
No related branches found
No related tags found
1 merge request
!11
Clarin json support
Checking pipeline status
Changes
2
Pipelines
1
Show 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%
Loading
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