Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
226 views
in Technique[技术] by (71.8m points)

Dialogflow - trainingphrases in intents

I have the following question: should the number of training phrases in intents always be equal across different intents? I'm guessing it's not really required but I'm just trying to gain a deeper understanding of what happens if a certain intent has more training phrases than another intent.

Thanks!

question from:https://stackoverflow.com/questions/65842079/dialogflow-trainingphrases-in-intents

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

No there is no requirement for you to have an exact matching amount of intent phrases. Usually its recommended to add as many example phrases as possible so that your bot has a wide selection of examples to learn from. If you add very little your bot won't be able to detect user input as valid input for an intent.

Now before you start importing complete dictionaries or webpages with example content, do be careful. More phrases doesn't always mean a better bot. If you have a bot that allows you to ask questions about a company and you start adding example phrases for a cooking FAQ bot, your bot will start responding to cooking questions. So you have to find a good balance between enough phrases and good quality questions that your users will ask.

Having a difference in an amount of phrases has little effect, if you have all your intents available at all times your intents with a lot of examples might get more matches as the bot understands that intent better, but it should still match intents with less examples if the user input is a close match.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...