forked from dmcc/bllip-parser
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
first-stage and python: Safer maximum sentence length checks
Turns out max_sentence_length (MAXSENTLEN) is not really the maximum sentence length but two more than it (yikes). See issue #32. first-stage/PARSE/parseIt.C: fix check to avoid segfaults for sentence lengths one fewer than user-requested maximum length. python/bllipparser/RerankingParser.py: fixed similar check as above python/tests/test_reranking_parser.py: added long sentence tests
- Loading branch information
Showing
3 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters