Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
combo
Manage
Activity
Members
Labels
Plan
Issues
20
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
2
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
Syntactic Tools
combo
Commits
2d013535
Commit
2d013535
authored
1 year ago
by
Maja Jablonska
Browse files
Options
Downloads
Patches
Plain Diff
Small api.py fixes
parent
f655a079
1 merge request
!46
Merge COMBO 3.0 into master
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
combo/data/api.py
+0
-4
0 additions, 4 deletions
combo/data/api.py
with
0 additions
and
4 deletions
combo/data/api.py
+
0
−
4
View file @
2d013535
...
@@ -36,10 +36,6 @@ def sentence2conllu(sentence: Sentence, keep_semrel: bool = True) -> conllu.mode
...
@@ -36,10 +36,6 @@ def sentence2conllu(sentence: Sentence, keep_semrel: bool = True) -> conllu.mode
tokens
=
[]
tokens
=
[]
for
token
in
sentence
.
tokens
:
for
token
in
sentence
.
tokens
:
token_dict
=
collections
.
OrderedDict
(
token
.
as_dict
(
keep_semrel
))
token_dict
=
collections
.
OrderedDict
(
token
.
as_dict
(
keep_semrel
))
# Remove semrel to have default conllu format.
# if not keep_semrel:
# del token_dict["semrel"]
# del token_dict["embeddings"]
tokens
.
append
(
token_dict
)
tokens
.
append
(
token_dict
)
# Range tokens must be tuple not list, this is conllu library requirement
# Range tokens must be tuple not list, this is conllu library requirement
for
t
in
tokens
:
for
t
in
tokens
:
...
...
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