Skip to content

Commit

Permalink
bug fix for bug #256 -- off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
linas committed May 5, 2017
1 parent f6c4169 commit 301695c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/java/relex/parser/LocalLGParser.java
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,9 @@ private void addLinkageStructure(ParsedSentence s,
}
}

// Ignore the last word (RIGHT-WALL) if this is set.
if (ignoreLast) length--;

for (int i = 0; i < length; i++)
{
// We'll hang the disjunct right off the word node.
Expand Down

0 comments on commit 301695c

Please sign in to comment.