TheCodeArtist / deep-thought-tabs

Instantly funny, profound observations with relevant images in newly opened empty tabs.
https://addons.mozilla.org/en-GB/firefox/addon/deep-thought-tabs/
BSD 3-Clause "New" or "Revised" License
12 stars 0 forks source link

Identifying the KEY words in a sentence/paragraph #3

Open TheCodeArtist opened 7 years ago

TheCodeArtist commented 7 years ago

How to programmatically determine the couple of KEY words that in a sentence or paragraph and use them to query for related images.

Approach Accuracy Comments
Longest words Low Current default approach
Review and Add an array of related keywords High Manual work :-/
Pick Objects > Subjects > Verbs > ... using NLTK High http://www.nltk.org/book/ch05.html
NLTK in/from JS?
TF-IDF High Example? in JS?
... ...