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.

I’m currently using this in my project, however it seems like it takes about 10-20 seconds toinstantiate this class. Is that normal or might there be something wrong with my installation?

nlp = spacy.load('en')
emoji = Emoji(nlp)

^ Takes about 21 seconds

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
buhrmanncommented, Nov 8, 2018

Ok. Will do. I think the way to go then would be with

emoji_patterns = list(nlp.tokenizer.pipe(EMOJI.keys()))

When I have a moment I will create the PR.

0reactions
inescommented, Nov 7, 2018

Thanks so much for looking int to this – I can confirm that we need to match both single and multiple tokens for emoji, and that using nlp.pipe is definitely much better than calling just nlp on each string. No idea why I didn’t do this properly (especially since this is something I recommend to others a lot) 🤦‍♀️

Would you like to submit a PR with your fix?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Top 10 Reasons for Slow Loading Websites (And How to Fix It)
1. Unoptimized Images · 2. JavaScript Issues · 3. Too Much Flash Content · 4. Excessive HTTP Requests · 5. Not Making Use...
Read more >
10 Reasons for Slow Website Loading (With Solutions)
10 Reasons for Slow Website Loading · 1. Poor Server Performance · 2. Unsuitable Server Location · 3. Heavy Traffic · 4. Excessive...
Read more >
Web Pages Loading Slowly? 11 Fixes to Try in Windows 10
Web Pages Loading Slowly? 11 Fixes to Try in Windows 10 · 1. Check for Malware, Spyware and Viruses · 2. Check for...
Read more >
7 Simple Ways to Fix a Slow Loading Website
A slow loading website can be caused by various factors such as images that are not optimized, not utilizing caching, and code errors....
Read more >
22 Ways To Speed Up A Slow Loading Website [2022]
If your website is loading slow, you can speed it up by using faster hosting, page builders, plugins, and images. Configuring a caching...
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