Linear95 / bert-intent-slot-detector

BERT-based intent and slots detector for chatbots.
124 stars 17 forks source link

训练数据可以是多意图和多槽位吗 #8

Open xxll88 opened 3 months ago

Linear95 commented 3 months ago

多槽位直接支持,多意图需要从 model.pyBertMultiHeadJointClassification类重新继承,JointBert类无法直接支持。

xxll88 commented 3 months ago

多槽位数据,可以这样吗: { "text": "如何购买虚机、存储和redis服务", "intent": "业务咨询", "slots": {"IaaS": ["虚机", "存储"],"PaaS": ["redis"]} }

Linear95 commented 3 months ago

可以的