-
Hello, I'm exploring Quantum NLP and I found this awesome work from you guys. I was wondering if, apart from question answering and classification tasks showed in the documentation, I could use it for keyword extraction in short messages of 20-25 words. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Hi @chin-jey and thanks for the question. In general, lambeq works at the sentence level, and keyword extraction is a task that does not fit very well in this. In keyword extraction, each word needs to be evaluated individually, so compositionality here is not very helpful. The simplest way to do keyword extraction would be to compute TF-IDF values for each word in your dataset and use them to extract the important words, or use something more clever like a PageRank-style algorithm at the lever of words. A suggestion for further reading: In this paper, Bob Coecke proposes a way to connect sentences into document-level circuits, and measure how each word is changed at the end of the interaction. Looks it might have a possible application to keyword extraction. |
Beta Was this translation helpful? Give feedback.
Hi @chin-jey and thanks for the question. In general, lambeq works at the sentence level, and keyword extraction is a task that does not fit very well in this. In keyword extraction, each word needs to be evaluated individually, so compositionality here is not very helpful. The simplest way to do keyword extraction would be to compute TF-IDF values for each word in your dataset and use them to extract the important words, or use something more clever like a PageRank-style algorithm at the lever of words.
A suggestion for further reading: In this paper, Bob Coecke proposes a way to connect sentences into document-level circuits, and measure how each word is changed at the end of the intera…