What model should i use to extract relation between words

I want to create a ML model which would give a score from 0 to 1 which would signify the relation between them.

I know about Relationship Extraction(RE) but that's more related with sentences based relation. Instead i want to input two words and that should output the relation between them and a input dataset being a lot of sentences.

Topic word nlp machine-learning

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.