mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
parent
16a785a5e4
commit
94ba6e650f
@ -10,10 +10,8 @@ DATA_PATH = pathlib.Path(resource_filename('wordfreq', 'data'))
|
|||||||
|
|
||||||
def _emoji_char_class():
|
def _emoji_char_class():
|
||||||
"""
|
"""
|
||||||
Build a regex for emoji substitution. First we create a regex character set
|
Build a regex for emoji substitution. We create a regex character set
|
||||||
(like "[a-cv-z]") matching characters we consider emoji. The final regex
|
(like "[a-cv-z]") matching characters we consider emoji.
|
||||||
matches one such character followed by any number of spaces and identical
|
|
||||||
characters.
|
|
||||||
"""
|
"""
|
||||||
emoji_file = DATA_PATH / 'emoji.txt'
|
emoji_file = DATA_PATH / 'emoji.txt'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user