开发者

Finding keywords in a sentence

开发者 https://www.devze.com 2023-03-07 03:43 出处:网络
I\'m trying to implement few algorithms for measuring similarity between two sentences. I think it would be helpful if I had some kind of expanded representation of a sentence.

I'm trying to implement few algorithms for measuring similarity between two sentences. I think it would be helpful if I had some kind of expanded representation of a sentence.

We could get this expanded representation with google/bing search, but putting whole sentence as a keyword doesn't give 开发者_如何学编程good results, especially if sentence is long. So I was thinking that finding keywords in a sentence and using them as search terms would improve our results.

Anybody aware of an algorithm for finding keywords in a sentence?

Thank you!


Lucene can handle that extraction as well as the comparison.

0

精彩评论

暂无评论...
验证码 换一张
取 消