I am doing a research regarding on automatic text summarizing. So in order to weighting sentences I need to get words related to a particular field or domain like shown below.

Topic word - Car
Related words - engine, driver, road, break, accelerator 

Is there any direct method that I can use like wordnet synsets.


One very obvious way is to use gensim's word2vec most_similar() function to get the most related words to the queried word.

You can check an online version of how it works out here: https://projector.tensorflow.org/

Again it depends on what kind of relations you seek. Other useful methods include:

from nltk.corpus import wordnet as wn

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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