Skip to content

Commit

Permalink
Update to CoreNLP 3.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
rayder441 committed Mar 21, 2016
1 parent 037d92d commit bcce72a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ dependencies {
compile fileTree(dir: 'lib', include: '*.jar')

// lilt/core Maven dependencies
compile group: 'edu.stanford.nlp', name: 'stanford-corenlp', version: '3.5.2'
compile group: 'edu.stanford.nlp', name: 'stanford-corenlp', version: '3.6.0'
compile group: 'com.esotericsoftware', name: 'kryo', version: '3.0.1'
compile group: 'it.unimi.dsi', name: 'fastutil', version: '7.0.7'
compile group: 'com.google.guava', name: 'guava', version: '18.0'
Expand Down
4 changes: 2 additions & 2 deletions src/edu/stanford/nlp/mt/util/PhraseAlignment.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public int findSrcAvgPos(int tgtPos){
alignments = (rightPos < t2s.length ? t2s[rightPos] : null); // t2s(rightPos);
if (alignments != null) {
// System.err.print("right " + rightPos + ": " + Util.intArrayToString(alignments));
srcAvgPos = ArrayMath.mean(alignments);
srcAvgPos = (int) ArrayMath.mean(alignments);
break;
}

Expand All @@ -184,7 +184,7 @@ public int findSrcAvgPos(int tgtPos){
alignments = (leftPos < t2s.length ? t2s[leftPos] : null); // t2s(leftPos);
if (alignments != null) {
// System.err.print("left " + leftPos + ": " + Util.intArrayToString(alignments));
srcAvgPos = ArrayMath.mean(alignments);
srcAvgPos = (int) ArrayMath.mean(alignments);
break;
}

Expand Down

0 comments on commit bcce72a

Please sign in to comment.