2

I'm new to NLP, so this might seem very basic.

How can I determine the best synonyms for a word based on the context of the sentence or paragraph it is in?

Is there an API or library that does this automatically? Something that takes a word and a paragraph and returns contextually relevant synonyms based on that paragraph.

Any help would be greatly appreciated.

1 Answer 1

0

What you want to do is called word sense disambiguation. There are many methods, and I'm not an expert in them, but one pythonic option with NLTK is detailed here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.