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:19+00:00",
"source_file": "6-NLP/2-Tasks/assignment.md",
"language_code": "tw"
}
-->
# 讓機器人回應
## 說明
在過去的幾節課中, 你已經編寫了一個基本的聊天機器人。這個機器人會隨機回答, 直到你說「bye」為止。你能否讓它的回答不再那麼隨機, 並在你說特定詞語( 例如「why」或「how」) 時觸發特定回答? 思考一下, 機器學習如何讓這類工作變得更自動化, 並擴展你的機器人。你可以使用 NLTK 或 TextBlob 庫來簡化你的任務。
## 評分標準
| 評分標準 | 卓越 | 合格 | 需要改進 |
| -------- | --------------------------------------------- | ------------------------------------------------ | ----------------------- |
| | 提供了一個新的 bot.py 文件並且有完整的註解 | 提供了一個新的 bot 文件,但包含錯誤 | 未提供文件 |
---
** 免責聲明**:
本文件使用 AI 翻譯服務 [Co-op Translator ](https://github.com/Azure/co-op-translator ) 進行翻譯。我們致力於提供準確的翻譯,但請注意,自動翻譯可能包含錯誤或不準確之處。應以原始語言的文件作為權威來源。對於關鍵資訊,建議尋求專業人工翻譯。我們對於因使用此翻譯而產生的任何誤解或錯誤解讀概不負責。