Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pos_tagger
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
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
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
pos_tagger
Commits
d46fb24f
Commit
d46fb24f
authored
Aug 11, 2023
by
Paweł Walkowiak
Browse files
Options
Downloads
Plain Diff
Merge branch 'dir_style_bug' into 'master'
Check dir_style bug fix Closes
#7
See merge request
!9
parents
8367c169
599cef9a
No related branches found
No related tags found
1 merge request
!9
Check dir_style bug fix
Pipeline
#13759
passed
Sep 29, 2023
Stage: check_style
Stage: tests
Stage: pages
Stage: build_develop
Stage: deploy
Changes
1
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tagger.py
+5
-4
5 additions, 4 deletions
src/tagger.py
with
5 additions
and
4 deletions
src/tagger.py
+
5
−
4
View file @
d46fb24f
...
@@ -137,6 +137,7 @@ class TaggerWorker(nlp_ws.NLPWorker):
...
@@ -137,6 +137,7 @@ class TaggerWorker(nlp_ws.NLPWorker):
_dir_style
=
True
_dir_style
=
True
json_lpmn
=
[
json_lpmn
]
json_lpmn
=
[
json_lpmn
]
if
not
_dir_style
:
with
open
(
input_path
,
"
r
"
,
encoding
=
"
utf-8
"
)
as
f
:
with
open
(
input_path
,
"
r
"
,
encoding
=
"
utf-8
"
)
as
f
:
text
=
f
.
read
(
50
)
text
=
f
.
read
(
50
)
if
text
.
startswith
(
"
<?xml version=
'
1.0
'
encoding=
'
UTF-8
'
?>
"
):
if
text
.
startswith
(
"
<?xml version=
'
1.0
'
encoding=
'
UTF-8
'
?>
"
):
...
...
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