用于NLP任务的英语问候语列表?

时间:2018-07-28 23:06:34

标签: machine-learning nlp deep-learning chatbot

我想要自然语言处理任务的英语问候短语列表,所以我想知道在哪里可以找到类似的东西?

2 个答案:

答案 0 :(得分:0)

希望它会有所帮助!

  

[“ hi”,“ hello”,“嘿”,“ helloo”,“ hellooo”,“ g morining”,“ gmorning”,“早上好”,“ morning”,“早上好”,“下午好” ”,“晚上好”,“问候”,“问候”,“见到你很高兴”,“见到你很高兴”,“你好吗”,“你好吗”,“你好吗”,“ ”您好吗?”,“您如何做”,“一切都怎么样”,“一切都好吗”,“一切都好吗”,“您好吗”,“您好吗”,“情况如何”,“如何做” “是事物”,“进展如何”,“进展如何”,“进展如何”,“进展如何”,“生活如何对待您”,“生活如何对待您”,“如何您过得好吗?,“过得好吗”,“最近怎么样”,“最近怎么样”,“正在做什么”,“正在做什么”,“什么好”,“什么好”,“正在发生什么” ”,“正在发生什么”,“新变化”,“新变化”,“新变化”,“ g'day”,“ howdy”]

将其另存为txt文件,并在以后加载。

import json
greeting_words = json.loads(open('greetings.txt', 'r').read())
print(greeting_words)

>> ["hi", "hello", "hey", "helloo", "hellooo", "g morining",  "gmorning",  "good morning", "morning", "good day", "good afternoon", "good evening", "greetings", "greeting", "good to see you", "its good seeing you", "how are you", "how're you", "how are you doing", "how ya doin'", "how ya doin", "how is everything", "how is everything going", "how's everything going", "how is you", "how's you", "how are things", "how're things", "how is it going", "how's it going", "how's it goin'", "how's it goin", "how is life been treating you", "how's life been treating you", "how have you been", "how've you been", "what is up", "what's up", "what is cracking", "what's cracking", "what is good", "what's good", "what is happening", "what's happening", "what is new", "what's new", "what is neww", "g’day", "howdy"]

答案 1 :(得分:-2)

我认为您找不到预制的问候语清单。但是,在某些网站上,您可以从中抓取数据并生成短语列表,然后将其用于NLP任务。

示例网站:

  1. https://www.fluentu.com/blog/english/basic-english-phrases/
  2. https://reallifeglobal.com/23-different-ways-greet-someone-english/

只是google,您会发现很多有用的链接。用Python编写一个快速解析器,然后完成您的工作。