在被 rasa-nlu 模型分类为哪个意图之前,如何(编辑或处理)来自用户的消息?

How to (edit or process ) the message from the user before being classified which intent by rasa-nlu model?

我是 RASA 的新手。我阅读了最新更新的文档 Rasa 1.0 但是我不知道如何处理nlu-model
之前用户的消息 我想做一些事情,比如词干拼写检查等......

我感谢 spaCy 库的任何代码示例:)

Rasa 已经带有一些 pre-processing 组件Tokenizers and you can include them in your configuration file of the NLU pipeline

对于词干提取和 spell-checker 等任务,它们目前不在 Rasa NLU 的范围内。开发人员必须 pre-process 输入并将处理后的文本作为字符串传递给 NLU 管道进行解析。

尽管如此,这里有一些您可以查看的资源 -

  • Tutorial 使用 python 和 spacy.
  • 的常见 pre-processing 任务
  • Hunspell 拼写检查器和与 Spacy 的集成