explosion / explosion/spacymoji

Tokens not properly split when using emoji with modifiers

Open
#10 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Python
Stars
182
Forks
20
PR merge metrics
No merged PRs in 30d

Description

```
import spacy
from spacymoji import Emoji

def test():
nlp = spacy.load('en_core_web_sm')
emoji = Emoji(nlp, merge_spans=True)
nlp.add_pipe(emoji, first=True)
doc = nlp(
'Word!👍🏿')
for token in doc:
print (token)
doc = nlp(
'Word! 👍🏿')
for token in doc:
print(token)
doc = nlp(
'Word!👍')
for token in doc:
print(token)
return doc
```
Shows the problem. "Word!" is not correctly split into "Word" and "!", when the thumbs up has a dark skin tone modifier.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.