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.

Add Lemmatization

See original GitHub issue

Lemmatization can be thought of as a more advanced stemming that we already have in the preprocessing module. You can read about it e.g. here. Implementation should be done with spaCy.

ToDo

Implement a function hero.lemmatize(s: TokenSeries) (or mayber rather TextSeries?). Using spaCy this should be fairly straightforward. It should go into the NLP module and probably look very similar to the other spacy-based functions there.

Just comment below if you want to work on this and/or have any questions. I think this is a good first issue for new contributors.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
jbesomicommented, Sep 8, 2020

If the guys at spaCy decided to replace pronouns with -PRON- there must be a reason. I guess that’s because when we lemmatize a text, we want to normalize it. With the -PRON- token we are achieving this.

What I suggest is to keep as default their approach but to give the user the opportunity to replace -PRON- with the respective token throughout a keep_pron (or keep_pronouns) parameter or something similar.

3reactions
adrianhosakcommented, Sep 3, 2020

Hi, I would like to work on this issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python - Lemmatization Approaches with Examples
The following is a step by step guide to exploring various kinds of Lemmatization approaches in python along with a few examples and...
Read more >
Stemming and lemmatization - Stanford NLP Group
The goal of both stemming and lemmatization is to reduce inflectional forms and sometimes derivationally related forms of a word to a common...
Read more >
Lemmatization Approaches with Examples in Python
Lemmatization is the process of converting a word to its base form. Python has nice implementations through the NLTK, TextBlob, Pattern, ...
Read more >
NLTK Lemmatization: How to Lemmatize Words with NLTK?
Append the tokenized and lemmatized words into a dictionary to compare their lemma and original forms to each other.
Read more >
How to build a Lemmatizer. And why | by Tiago Duque - Medium
First, we make a new folder scaffold and add our word lemma dictionary and our irregular noun dictionary (preloaded/dictionaries/lemmas/). I ...
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