question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't merge non-disjoint spans. '🇸' is already part of tokens to merge.

See original GitHub issue

First 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:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:12 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
scribucommented, Jul 19, 2019

#8 is my attempt at fixing this. Please try it out and let me know if you encounter other edge cases.

2reactions
i-like-the-ideacommented, Dec 21, 2020

Can someone merge the fix please?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found