Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derivational Morphemes #8

Open
usbader opened this issue Dec 9, 2020 · 5 comments
Open

Derivational Morphemes #8

usbader opened this issue Dec 9, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@usbader
Copy link

usbader commented Dec 9, 2020

Hi all,

It would be great to have arrival from arrive. I checked the following function, but it did not return arrival

getAllInflections('arrive')
{'VBD': ('arrived',), 'VBG': ('arriving',), 'VBZ': ('arrives',), 'VB': ('arrive',), 'VBP': ('arrive',)}

@bjascob bjascob added the enhancement New feature or request label Dec 9, 2020
@bjascob
Copy link
Owner

bjascob commented Dec 9, 2020

arrival is a noun but arrive is a verb so one can't be an inflection of the other.
The base Lexicon does have nominalization and nominalization_of so I might be able to include some functionality for finding related words. However, I think nltk already has functions for this. Check nltk's derivationally_related_forms() for lemmas and see if it fits your needs.

@usbader
Copy link
Author

usbader commented Dec 10, 2020

Awesome! I am really looking forward to checking your enhancement.

@usbader
Copy link
Author

usbader commented Dec 10, 2020

This function does help, but I need to filter out unrelated words from it as you can see from the following list.
['comer', 'coming', 'arriver', 'arrival']

@OmriPi
Copy link

OmriPi commented May 8, 2022

Is it supposed to be possible to convert between adverb->adjective->noun?
For example "easily"->"easy" etc.
I tried but it's not working for me, it just returns "easily".

@bjascob
Copy link
Owner

bjascob commented May 8, 2022

No. The library if for Lemmatization and Inflection only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants