Add Lemmatization
See original GitHub issueLemmatization 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:
- Created 3 years ago
- Reactions:1
- Comments:15 (5 by maintainers)
Top 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 >
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 Free
Top 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
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
(orkeep_pronouns
) parameter or something similar.Hi, I would like to work on this issue.