You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/04/20 03:56:13 UTC
[1/2] incubator-joshua git commit: bugfix: missed vocab mapping for
class-based LM
Repository: incubator-joshua
Updated Branches:
refs/heads/master a1215a667 -> c08ff710a
bugfix: missed vocab mapping for class-based LM
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/805b6431
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/805b6431
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/805b6431
Branch: refs/heads/master
Commit: 805b643187e07c1d4dcd5047c3ac2dfa0a84e256
Parents: d677bcd
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Apr 19 21:55:10 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Apr 19 21:55:10 2016 -0400
----------------------------------------------------------------------
src/joshua/decoder/ff/lm/LanguageModelFF.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/805b6431/src/joshua/decoder/ff/lm/LanguageModelFF.java
----------------------------------------------------------------------
diff --git a/src/joshua/decoder/ff/lm/LanguageModelFF.java b/src/joshua/decoder/ff/lm/LanguageModelFF.java
index 4c98704..732229c 100644
--- a/src/joshua/decoder/ff/lm/LanguageModelFF.java
+++ b/src/joshua/decoder/ff/lm/LanguageModelFF.java
@@ -121,7 +121,7 @@ public class LanguageModelFF extends StatefulFF {
lineno++;
String[] lineComp = line.trim().split("\\s+");
try {
- this.classMap.put(Vocabulary.id(lineComp[0]), Integer.parseInt(lineComp[1]));
+ this.classMap.put(Vocabulary.id(lineComp[0]), Vocabulary.id(lineComp[1]));
} catch (java.lang.ArrayIndexOutOfBoundsException e) {
System.err.println(String.format("* WARNING: bad vocab line #%d '%s'", lineno, line));
}
[2/2] incubator-joshua git commit: Merge branch 'master' of
https://git-wip-us.apache.org/repos/asf/incubator-joshua
Posted by mj...@apache.org.
Merge branch 'master' of https://git-wip-us.apache.org/repos/asf/incubator-joshua
Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/c08ff710
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/c08ff710
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/c08ff710
Branch: refs/heads/master
Commit: c08ff710ad631f729e826ea5a9df177a9c48ce81
Parents: 805b643 a1215a6
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Apr 19 21:55:58 2016 -0400
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Apr 19 21:55:58 2016 -0400
----------------------------------------------------------------------
test/run-all-tests.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------