Skip to content

Commit

Permalink
Merge pull request diffbot#1 from rschwab68/master
Browse files Browse the repository at this point in the history
fixed bug in spotting known surface forms
  • Loading branch information
jodaiber committed Apr 5, 2016
2 parents 81c16ee + 80afd47 commit 9ed6ab8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ public static List<String> getKnownSurfaceFormsInParagraph(String paragraph, Set
for (int i = 0; i < spans.length; i++) {
for (int j = 0; j < MAX_NB_TOKEN_SF-1; j++) {
if (i+j < spans.length) {
String substr = paragraph.substring(spans[i].getStart(), spans[i + j].getEnd());
String substr = clean_paragraph_text.substring(spans[i].getStart(), spans[i + j].getEnd());
if (allowedSFs.contains(substr)) {
knownSurfaceForms.add(substr);
}
Expand Down

0 comments on commit 9ed6ab8

Please sign in to comment.