是否有任何已知的方法(除了统计分析,但不一定将其排除为解决方案的一部分)使用自然语言处理将句子或概念相互关联。到目前为止,我只与 NLTK 和 Stanford-NLP 合作来帮助我的项目,但我对替代开源解决方案持开放态度。
以乔治奥威尔的以下文章为例(http://orwell.ru/library/essays/wiw/english/e_wiw)。假设我给应用程序的句子
"What are George Orwell's opinions on writers."
也许
"George Orwell believes writers enjoy writing to express their creativity, to make a point and for their egos."
可能会从文章中产生线条,例如
"The aesthetic motive is very feeble in a lot of writers, but even a pamphleteer or writer of textbooks will have pet words and phrases which appeal to him for non-utilitarian reasons; or he may feel strongly about typography, width of margins, etc."
或者
"Serious writers, I should say, are on the whole more vain and self-centered than journalists, though less interested in money."
我知道这并不容易,我可能无法达到很高的准确性,但我希望对已经存在的内容以及我可以尝试开始的内容提出一些想法,或者至少根据已知和已发布的内容获得可能的最佳结果那里。