You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
<!--
CO_OP_TRANSLATOR_METADATA:
{
"original_hash": "2efc4c2aba5ed06c780c05539c492ae3",
"translation_date": "2025-09-03T18:50:07+00:00",
"source_file": "6-NLP/2-Tasks/assignment.md",
"language_code": "zh"
}
-->
# 让机器人回应
## 说明
在之前的课程中, 你编写了一个基础的聊天机器人。这个机器人会随机回答, 直到你说“bye”。你能让它的回答不那么随机, 并在你说特定内容( 比如“为什么”或“怎么”) 时触发特定回答吗? 思考一下, 机器学习如何让这种工作变得更自动化, 同时扩展你的机器人。你可以使用 NLTK 或 TextBlob 库来简化任务。
## 评分标准
| 标准 | 卓越表现 | 合格表现 | 需要改进 |
| -------- | ------------------------------------------ | -------------------------------------------- | ---------------------- |
| | 提供了一个新的 bot.py 文件并进行了文档记录 | 提供了一个新的 bot 文件,但存在一些问题 | 未提供文件 |
---
** 免责声明**:
本文档使用AI翻译服务[Co-op Translator](https://github.com/Azure/co-op-translator)进行翻译。尽管我们努力确保准确性,但请注意,自动翻译可能包含错误或不准确之处。应以原始语言的文档作为权威来源。对于关键信息,建议使用专业人工翻译。因使用本翻译而导致的任何误解或误读,我们概不负责。