Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
macaon_data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Franck Dary
macaon_data
Commits
6e33d91c
Commit
6e33d91c
authored
4 years ago
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
added vaiable in script print_results.py to control the variable to output
parent
0938f428
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
UD_any/print_results.py
+3
-1
3 additions, 1 deletion
UD_any/print_results.py
with
3 additions
and
1 deletion
UD_any/print_results.py
+
3
−
1
View file @
6e33d91c
...
@@ -6,6 +6,8 @@ import math
...
@@ -6,6 +6,8 @@ import math
if
__name__
==
"
__main__
"
:
if
__name__
==
"
__main__
"
:
scoreCol
=
-
1
metrics
=
[
"
LAS
"
,
"
UAS
"
,
"
Tokens
"
,
"
Words
"
,
"
Sentences
"
,
"
UPOS
"
,
"
UFeats
"
,
"
Lemmas
"
]
metrics
=
[
"
LAS
"
,
"
UAS
"
,
"
Tokens
"
,
"
Words
"
,
"
Sentences
"
,
"
UPOS
"
,
"
UFeats
"
,
"
Lemmas
"
]
output
=
[]
output
=
[]
...
@@ -39,7 +41,7 @@ if __name__ == "__main__" :
...
@@ -39,7 +41,7 @@ if __name__ == "__main__" :
if
splited
[
0
]
not
in
outputByModelScore
[
corpus
][
model
]
:
if
splited
[
0
]
not
in
outputByModelScore
[
corpus
][
model
]
:
outputByModelScore
[
corpus
][
model
][
splited
[
0
]]
=
[]
outputByModelScore
[
corpus
][
model
][
splited
[
0
]]
=
[]
outputByModelScore
[
corpus
][
model
][
splited
[
0
]].
append
([
corpus
,
splited
[
0
],
splited
[
-
1
],
model
])
outputByModelScore
[
corpus
][
model
][
splited
[
0
]].
append
([
corpus
,
splited
[
0
],
splited
[
scoreCol
],
model
])
for
corpus
in
outputByModelScore
:
for
corpus
in
outputByModelScore
:
for
model
in
outputByModelScore
[
corpus
]
:
for
model
in
outputByModelScore
[
corpus
]
:
...
...
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