【发布时间】:2019-07-12 03:21:06
【问题描述】:
我有一个data.md 文件如下:
## intent:greet
- hey
- hello
- hi
- good morning
- good evening
- hey there
## intent:goodbye
- bye
- goodbye
- see you around
- see you later
## intent:affirm
- yes
- indeed
- of course
- that sounds good
- correct
## intent:deny
- no
- never
- I don't think so
- don't like that
- no way
- not really
现在我想在## intent:affirm 中添加一个新示例yes, I affirm,使其变为如下:
## intent:affirm
- yes
- indeed
- of course
- that sounds good
- correct
- yes, I affirm
如何在 Python 中实现这一点?
目前,我不知道从什么开始,因为我是 Python 新手,所以在在这里寻求帮助之前除了在线搜索相关文章之外,还没有做任何具体的事情。
【问题讨论】: