Change in documentation code example in Rule-Based Matching emoji #13006
Replies: 2 comments 1 reply
-
Thanks for the report and the example code! We'll look into this. |
Beta Was this translation helpful? Give feedback.
1 reply
-
I've opened an issue to track this, so let's close this discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
The example for custom extensions based on emoji descriptions used in the (third example of rule-based matching)[https://spacy.io/usage/rule-based-matching#example3] is failing because the used library
Emojipedia
isn't correctly working. Last library update was around 5 years ago, probably the website changed and the http requests implemented in the lib are not correctly updated.Because of that I propose the use of another library
emoji
, that do not make any requests to external sources, resulting in a more consistent example. Below you can find the whole code working.I have also added the printing of created extension (emoji description) in the for loop used in the "main" part of the code. Since the attribute was not being displayed in the given example
Here follows a full working source code based on original proposal.
Hope it helps.
Beta Was this translation helpful? Give feedback.
All reactions