You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by le...@apache.org on 2016/11/09 23:32:41 UTC
incubator-joshua git commit: JOSHUA-321 Add JOSHUA env to ./bin/bleu
and ./bin/extract-1best bash scripts
Repository: incubator-joshua
Updated Branches:
refs/heads/master 2a43cecc5 -> 2f3e75296
JOSHUA-321 Add JOSHUA env to ./bin/bleu and ./bin/extract-1best bash scripts
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/2f3e7529
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/2f3e7529
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/2f3e7529
Branch: refs/heads/master
Commit: 2f3e752969a2bacc17aa029595c9a56b93331e9e
Parents: 2a43cec
Author: Lewis John McGibbney <le...@gmail.com>
Authored: Wed Nov 9 15:31:30 2016 -0800
Committer: Lewis John McGibbney <le...@gmail.com>
Committed: Wed Nov 9 15:31:30 2016 -0800
----------------------------------------------------------------------
bin/bleu | 1 +
bin/extract-1best | 1 +
2 files changed, 2 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/2f3e7529/bin/bleu
----------------------------------------------------------------------
diff --git a/bin/bleu b/bin/bleu
index cef6fed..704eb10 100755
--- a/bin/bleu
+++ b/bin/bleu
@@ -32,6 +32,7 @@ fi
numrefs=$(ls $refs* | wc -l)
verbose=0
+JOSHUA=$(dirname $0)/..
java -cp $JOSHUA/target/joshua-*-jar-with-dependencies.jar \
-Dfile.encoding=utf8 -Djava.library.path=$JOSHUA/lib \
-Xmx256m -Xms256m \
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/2f3e7529/bin/extract-1best
----------------------------------------------------------------------
diff --git a/bin/extract-1best b/bin/extract-1best
index 22bd827..386d723 100755
--- a/bin/extract-1best
+++ b/bin/extract-1best
@@ -15,4 +15,5 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+JOSHUA=$(dirname $0)/..
java -Xmx500m -cp $JOSHUA/class -Dfile.encoding=utf8 joshua.util.ExtractTopCand $1 - $2