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
e76bd7c4
Commit
e76bd7c4
authored
4 years ago
by
Franck Dary
Browse files
Options
Downloads
Patches
Plain Diff
Added compute error to eval script
parent
915f6237
No related branches found
No related tags found
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
UD_any/evaluate.sh
+3
-3
3 additions, 3 deletions
UD_any/evaluate.sh
scripts/conll18_ud_eval.py
+533
-465
533 additions, 465 deletions
scripts/conll18_ud_eval.py
with
536 additions
and
468 deletions
UD_any/evaluate.sh
+
3
−
3
View file @
e76bd7c4
...
@@ -72,16 +72,16 @@ then
...
@@ -72,16 +72,16 @@ then
MCD
=
$EXPPATH
"/data/*
\.
mcd"
MCD
=
$EXPPATH
"/data/*
\.
mcd"
fi
fi
EVALCONLL
=
"../scripts/
conll18_ud_
eval.py"
EVALCONLL
=
"../scripts/eval
uate
.py"
OUTPUT
=
$EXPPATH
"/predicted_eval.tsv"
OUTPUT
=
$EXPPATH
"/predicted_eval.tsv"
if
[
"
$MODE
"
=
"tsv"
]
;
then
if
[
"
$MODE
"
=
"tsv"
]
;
then
macaon decode
--model
$EXPPATH
--mcd
$MCD
--inputTSV
$REF
$@
>
$OUTPUT
&&
$EVALCONLL
$REF
$OUTPUT
-v
||
exit
1
macaon decode
--model
$EXPPATH
--mcd
$MCD
--inputTSV
$REF
$@
>
$OUTPUT
&&
$EVALCONLL
$REF
$OUTPUT
||
exit
1
exit
0
exit
0
fi
fi
if
[
"
$MODE
"
=
"txt"
]
;
then
if
[
"
$MODE
"
=
"txt"
]
;
then
macaon decode
--model
$EXPPATH
--mcd
$MCD
--inputTXT
$REFRAW
$@
>
$OUTPUT
&&
$EVALCONLL
$REF
$OUTPUT
-v
||
exit
1
macaon decode
--model
$EXPPATH
--mcd
$MCD
--inputTXT
$REFRAW
$@
>
$OUTPUT
&&
$EVALCONLL
$REF
$OUTPUT
||
exit
1
exit
0
exit
0
fi
fi
...
...
This diff is collapsed.
Click to expand it.
scripts/conll18_ud_eval.py
+
533
−
465
View file @
e76bd7c4
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