Skip to content

Commit

Permalink
Add #number as an allowed continuation after ABBREV3. Addresses #1396
Browse files Browse the repository at this point in the history
  • Loading branch information
AngledLuffa committed Nov 28, 2023
1 parent 2852da8 commit ad37f2a
Show file tree
Hide file tree
Showing 2 changed files with 50,630 additions and 50,618 deletions.
2 changes: 1 addition & 1 deletion src/edu/stanford/nlp/process/PTBLexer.flex
Expand Up @@ -1129,7 +1129,7 @@ CP1252_MISC_SYMBOL = [\u0086\u0087\u0089\u0095\u0098\u0099]
}

/* Special case to get ca., fig. or Prop. before numbers */
<YyNotTokenizePerLine>{ABBREV3}/{SPACENL}?{DIGIT} {
<YyNotTokenizePerLine>{ABBREV3}/{SPACENL}?{HASHES}?{DIGIT} {
return processAbbrev3();
}
<YyTokenizePerLine>{ABBREV3}/{SPACE}?{DIGIT} {
Expand Down

0 comments on commit ad37f2a

Please sign in to comment.