How to automatically identify tags (keywords) from a given text?

It should behave like a Delicious toolbar for Firefox; it lists possible tags for a click. The effect is shown below:

enter image description here

The code should be able to find keywords for the text. Any good algorithm or open source project to recommend?

I found this post , but it is too general for my specific need.

+4
source share
1 answer

I think you are looking for one of these answers,

In short - you are looking for extracting unigrams from text that somehow represent concepts within it - the method for this is called Pointwise Mutual Information, which is illustrated by an example in the first two links. Using the Python NLTK framework (which already has a bunch of built-in algorithms) may be your best starting point to work with.

Good luck

+6
source

Source: https://habr.com/ru/post/1338200/


All Articles