from deeppavlov import build_model, configs
snips_model = build_model(configs.classifiers.intents_snips , download=True)
snips_model(["Hello! What is the weather in Boston tomorrow?"])
大家好 - 我可以使用上面 deeppavlov 的预训练模型对预先创建的意图进行意图分类。但是,我想使用 deeppavlov 用我自己的意图和自己的文本创建自己的意图分类模型。总共将有 5 到 7 个意图。
我该怎么做呢?
即我得到的带有文本和意图的样本数据
text,intent
Where is McDonald's?, resturant
What is the weather today, weather
Where is the closest Burger King?, restaurant
Is it sunny today?, weather
What is the temperature today?, weather