Skip to content

Commit

Permalink
fixed bug in spotting known surface forms
Browse files Browse the repository at this point in the history
  • Loading branch information
rschwab68 committed Apr 5, 2016
1 parent 81c16ee commit 80afd47
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 80afd47

Please sign in to comment.