forked from UniversalDependencies/tools
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsave_evaluation_logs.sh
More file actions
executable file
·27 lines (26 loc) · 962 Bytes
/
save_evaluation_logs.sh
File metadata and controls
executable file
·27 lines (26 loc) · 962 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
# Run this script in the folder where all UD treebank repositories exist as
# subfolders. In addition, a subfolder named master-eval-logs is expected,
# where verbose outputs from evaluate_treebank.pl are stored. Filename
# convention: UD_Urdu.eval.log. The script will go to each repository's master
# branch, copy the eval log there (and name it just eval.log), then push it and
# switch back to the dev branch.
# Copyright © 2018 Dan Zeman <zeman@ufal.mff.cuni.cz>
# License: GNU GPL
for i in master-eval-logs/UD_*.eval.log ; do
treebank=`basename $i .eval.log`
echo ============================================================
pwd
echo $treebank
if [ -d $treebank ] ; then
cd $treebank
git checkout master
git pull --no-edit
cp ../$i ./eval.log
git add eval.log
git commit -m 'Evaluation report for UD 2.1.'
git push
git checkout dev
cd ..
fi
done