Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Germann <Ulrich.Germann@gmail.com>2016-10-16 03:33:10 +0300
committerUlrich Germann <Ulrich.Germann@gmail.com>2016-10-16 03:33:10 +0300
commit4c4fe158fc7ca209d5c3c2b730d2570755c7537f (patch)
treed76e2ed84abcf1558538190b51dc50f57ca758da
parentdb94ad0c58e5c77f5a27cc221b6d388fa849c272 (diff)
Poor man's way of rolling back to the lastest working version.ug-debug
-rwxr-xr-xcontrib/UG/auto-rollback.sh11
-rw-r--r--test.ini24
2 files changed, 35 insertions, 0 deletions
diff --git a/contrib/UG/auto-rollback.sh b/contrib/UG/auto-rollback.sh
new file mode 100755
index 000000000..52dc804f5
--- /dev/null
+++ b/contrib/UG/auto-rollback.sh
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+git submodule init
+git submodule update regtest
+while [ true ] ; do
+ echo 'test' | bin/moses -f test.ini && break
+ commit=$(git log | grep ^commit | head -n2 | tail -n1 | sed 's/commit //')
+ echo REVERTING TO COMMIT $commit
+ git checkout $commit
+ ./bjam -j$(nproc) --with-boost=$(pwd)/opt --with-mm -a -q
+done
diff --git a/test.ini b/test.ini
new file mode 100644
index 000000000..7a03d73b6
--- /dev/null
+++ b/test.ini
@@ -0,0 +1,24 @@
+[mapping]
+0 T 0
+
+[search-algorithm]
+1
+
+[stack]
+500
+
+[cube-pruning-pop-limit]
+500
+
+[distortion-limit]
+6
+
+[feature]
+UnknownWordPenalty
+WordPenalty
+Distortion
+PhrasePenalty
+KENLM name=LM0 path=/home/germann/mmt/exp/3-domains/system/empty/mdl/it.5grams.kenlm order=5 factor=0 lazyken=0
+LexicalReordering name=DM0 type=hier-mslr-bidirectional-fe-allff input-factor=0 output-factor=0
+Mmsapt name=PT0 path=/home/germann/mmt/exp/3-domains/system/empty/mdl/ L1=en L2=it lr-func=DM0 bias-loglevel=1 method=random
+