Can't merge non-disjoint spans. '🇸' is already part of tokens to merge.
See original GitHub issueFirst off, thanks for this amazingly useful library! Really takes the sting out of working with social media texts.
I found something that looks like a bug occurring with multi-codepoint emoji’s. Repro case:
import en_core_web_sm
from spacymoji import Emoji
nlp = en_core_web_sm.load()
em = Emoji(nlp)
em(nlp(u"🇺🇸🇦🇷"))
This raises the exception shown in the title.
Initializing Emoji
with merge_spans=False
circumvents this.
Let me know if I can help!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:12 (1 by maintainers)
Top Results From Across the Web
Can't merge non-disjoint spans. '🇸' is already part of tokens to ...
Hello. I am also getting the Can't merge non-disjoint spans. '🇦' is already part of tokens to merge. Using the latest off of...
Read more >Can't merge non-disjoint spans when using terms.train-vectors
ValueError: [E102 ] Can't merge non-disjoint spans. 'the' is already part of tokens to merge. If you want to find the longest non-overlapping ......
Read more >AttributeError: 'spacy.tokens.span.Span' object has no attribute ...
ValueError: [E102 ] Can't merge non-disjoint spans. 'Computing' is already part of tokens to merge. If you want to find the longest ...
Read more >What the Ethereum Merge Means for Ordinary Users ... - Decrypt
Ethereum is changing: moving from proof of work to proof of stake. But what does this mean to ordinary users? Here's what you...
Read more >https://hub.xpub.nl/sandbox/~avital/flask_chat2/ve...
E102 = ("Can't merge non-disjoint spans. '{token}' is already part of " "tokens to merge. If you want to find the longest non-overlapping...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#8 is my attempt at fixing this. Please try it out and let me know if you encounter other edge cases.
Can someone merge the fix please?