Skip to content

Commit

Permalink
Split off period after two or more uppercase letters (fixes #483)
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Jan 8, 2017
1 parent a89a600 commit eef94e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spacy/language_data/punctuation.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
r'(?<=[0-9])(?:{c})'.format(c=CURRENCY),
r'(?<=[0-9])(?:{u})'.format(u=UNITS),
r'(?<=[0-9{al}{p}(?:{q})])\.'.format(al=ALPHA_LOWER, p=r'%²\-\)\]\+', q=QUOTES),
r'(?<=[{au}][{au}])\.'.format(au=ALPHA_UPPER),
"'s", "'S", "’s", "’S"
]
)
Expand Down

0 comments on commit eef94e3

Please sign in to comment.