Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我如何编写带有未知单词的JSGF语法文件?
例如,我想匹配“请给我椅子”、“请给我书”等。
使用类似的结构
public <sent> = Give me <any_word> please;
我怎样才能做到这一点?
您不能为任何单词创建语法。
您可以列出预定义的单词列表,而不是<any_word>这个列表可能很大,比如 100000 个条目,涵盖 99% 的英语语言。
<any_word>