Skip to content

Commit

Permalink
Make the emoticon list a raw string (#4139)
Browse files Browse the repository at this point in the history
While working on an unrelated task I got warnings about an unsupported
escape sequence (`"\("`) in the tokenizer exceptions. Making the
tokenizer exceptions a raw string makes this warning go away.

The specific string that triggered this is `¯\(ツ)/¯`.
  • Loading branch information
polm authored and honnibal committed Aug 18, 2019
1 parent 009280f commit 7f82a1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy/lang/tokenizer_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@


emoticons = set(
"""
r"""
:)
:-)
:))
Expand Down

0 comments on commit 7f82a1f

Please sign in to comment.