简体   繁体   English

是否可以使用NLP? 自然语言处理

[英]Is it possible using NLP? Natural Language processing

I have a set of Project Names, a set of keywords and a set of paragraphs. 我有一组项目名称,一组关键字和一组段落。

Now my task is, to check whether keywords match any project names , and keywords match any word in any paragraph. 现在,我的任务是检查关键字是否与任何项目名称匹配,以及关键字是否与任何段落中的任何单词匹配。

If any set of paragraphs are matched with a keyword and any project matched with same keyword, then I have to assign these paragraphs to that project. 如果有任何段落与关键字匹配,而任何项目与相同关键字匹配,那么我必须将这些段落分配给该项目。

I have been using String Regex for this. 我一直在使用String Regex。 But can this be implemented using Natural Language Processing concepts. 但这可以使用自然语言处理概念来实现。

If yes... Please let me know how can it be implemented. 如果是,请告诉我如何实施。 It would be very helpful for me. 这对我会非常有帮助。

Thanks in advance. 提前致谢。

There's no NLP involved in this as such. 这样就没有NLP了。
No matter what you do, you must have to go through all the projects and all the paragraphs at least once. 无论您做什么,都必须至少浏览一次所有项目和所有段落。
Yes, you can optimize your process by using hashmaps or dictionaries but at the end of the day, you will be searching and matching strings no matter what. 是的,您可以通过使用hashmapsdictionaries来优化您的流程,但是最终, hashmaps ,您都将搜索和匹配字符串。

您可以使用dictionaries来完成此操作,因为借助dictionaries可以轻松进行映射,并且正则表达式也将起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM