"The first thing we do is let all the lawyers be killed." - William Shakespeare
Considering the above quotation, I would like to highlight "kill", and "lawyers"as the two key words to describe the general meaning of a sentence. I extracted the following POS noun / verb tags:
[["First", "NNP"], ["thing", "NN"], ["do", "VBP"], ["lets", "NNS"], ["kill", "VB"], ["lawyers", "NNS"]]
The more general problem I'm trying to solve is to translate the sentence into the “most important” words / tags in order to summarize the overall “meaning” of the sentence.
* pay attention to quotation marks. I admit that this is a very difficult problem, and at the moment, most likely, there is no perfect solution. Nevertheless, I am interested to see attempts to solve a specific problem (extracting "kill"and "lawyers") and a general problem (summing up the general meaning of the sentence in keywords / tags)
source
share