LEX slot type for file name. AMAZON.LITERAL replacement

自作多情 提交于 2019-12-10 18:59:14

问题


I have to create an intent with sample utterances

  • "open file 'fileName'"
  • "show 'fileName'"
  • ...

Basically, I have to have a slot which accepts file name. User can type

  • "open my file report.pdf"
  • "open file activity1.doc"
  • "open file last year report"

It would work perfectly If I could use AMAZON.LITERAL type, but it is deprecated.

What slot type I can use? Or how to extract file name (or basically any text with no type)

So far I have tested with below slot types and all not perfect:

  • Created custom slot type (but I can't add all possible file names, because of that it doesn't work all the time)
  • AMAZON.Organization
  • AMAZON.Actor

来源:https://stackoverflow.com/questions/50976487/lex-slot-type-for-file-name-amazon-literal-replacement

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!