【发布时间】:2019-01-05 15:20:20
【问题描述】:
我想要用于自然语言处理任务的英文问候短语列表,所以我想知道在哪里可以找到类似的内容?
【问题讨论】:
-
在dialogflow上创建一个代理,启用song-talk,并从
smalltalk.greetings.hello的话语中获取问候语
标签: machine-learning nlp deep-learning chatbot
我想要用于自然语言处理任务的英文问候短语列表,所以我想知道在哪里可以找到类似的内容?
【问题讨论】:
smalltalk.greetings.hello的话语中获取问候语
标签: machine-learning nlp deep-learning chatbot
我认为您找不到预先制作的问候语列表。但是,您可以从某些网站中抓取数据并生成短语列表,然后将其用于您的 NLP 任务。
示例网站:
只需 google,您就会发现很多有用的链接。用 Python 编写一个快速解析器并完成您的工作。
【讨论】:
希望对您有所帮助!
[“嗨”、“你好”、“嘿”、“你好”、“你好”、“早上好”、“早上好”、“早上好”、“早上好”、“下午好” ”,“晚上好”,“问候”,“问候”,“很高兴见到你”,“很高兴见到你”,“你好吗”,“你好吗”,“你好吗”,“你好吗? “事情怎么样了”、“怎么样了”、“怎么样了”、“怎么样了”、“怎么样了”、“生活怎么样了”、“生活怎么样了”、“怎么样了”你去过吗?,你好吗? "、"发生了什么"、"什么是新的"、"什么是新的"、"什么是新的"、"g'day"、"你好"]
将此保存为 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"]
【讨论】: