当前位置:网站首页>Generalized semantic recognition based on semantic similarity
Generalized semantic recognition based on semantic similarity
2022-06-12 07:33:00 【Turned_ MZ】
In the previous chapter , Here we are , For a vertical region BOT The identification of , There will be classification models 、 Intention slot model to identify its corresponding semantics , But this is generally aimed at those that are already mature ( That is, those who have accumulated certain data ) Scene can be done , For the following three scenarios , This approach is not applicable :
- Scene cold start , A new scene , There is no script corresponding to the scene on the line , Generally, we will use the template matching method for the cold start problem , But its generalization ability is limited , How to improve its generalization ability ?
- Vertical domain BOT Unrecognized script , That is, the previous chapter 《 Potential skills and uncalled calls 》 The uncalled script mentioned in , In this part of the script, we will add it to the existing scene classification 、 Intention slot model , But there is a period for the algorithm to iterate and then go online , Besides algorithm training , It has to go through strict tests , How can we do more timely identification ?
- For some festivals or activities , Some skills will be configured for the operation of the student union as festival eggs , But the scripts they usually configure are quite rigid , such as :“ Set off a fireworks ”, How can I recognize “ Have a fireworks ”,“ Set off some fireworks ” This kind of script ?
Answer the above question , We build a generalized semantic recognition system based on semantic similarity . Here's the picture :

This system is divided into offline part and online part , The offline part collects scripts of operation configuration 、 Scenario standard script of product definition 、BOT Medium TOP Script together , As a standard script library , Stored as query-intent Data on , These scripts are also stored in ES In the database , Use these data to train BERT, Make the same intent Of query The vector is closer , The training method is not expanded here , You can use comparative learning or the twin tower model to train . After the training, we can get the pre trained BERT, To get the corresponding query Semantic vector of .
The online part is a real-time recognition algorithm , For the user query, First go through the defined BOT Semantic recognition , For unrecognized query, after ES A preliminary search of the database , For the retrieved query, Use pre trained BERT Get the semantic vector , At the same time, the user query We also get the semantic vector , The vectors obtained by both sides are matched by similarity , The final results are sorted based on the score threshold .
边栏推荐
- ‘CMRESHandler‘ object has no attribute ‘_timer‘,socket.gaierror: [Errno 8] nodename nor servname pro
- Esp8266 firmware upgrade method (esp8266-01s module)
- Qt实现托盘
- Class as a non type template parameter of the template
- R语言将dataframe数据中指定数据列的数据从小数转化为百分比表示、数据转换为百分数
- Detailed explanation of 14 registers in 8086CPU
- Construction of running water lamp experiment with simulation software proteus
- 5 lines of code identify various verification codes
- Leetcode34. find the first and last positions of elements in a sorted array
- Interview computer network - transport layer
猜你喜欢

ROS dynamic parameter configuration: use of dynparam command line tool (example + code)

Exploring shared representations for personalized federated learning paper notes + code interpretation

Imx6q PWM drive

Personalized federated learning with exact stochastic gradient descent

Question bank and answers of special operation certificate examination for safety management personnel of hazardous chemical business units in 2022

2022年危险化学品经营单位安全管理人员特种作业证考试题库及答案

Federated meta learning with fast convergence and effective communication

Pyhon的第四天

Federated reconnaissance: efficient, distributed, class incremental learning paper reading + code analysis

There is no solid line connection between many devices in Proteus circuit simulation design diagram. How are they realized?
随机推荐
Personalized federated learning using hypernetworks paper reading notes + code interpretation
Detailed explanation of addressing mode in 8086
openwrt uci c api
AI fanaticism | come to this conference and work together on the new tools of AI!
QT realization tray
LeetCode34. 在排序数组中查找元素的第一个和最后一个位置
Right click the general solution of file rotation jam, refresh, white screen, flash back and desktop crash
右击文件转圈卡住、刷新、白屏、闪退、桌面崩溃的通用解决方法
Xshell installation
Complete set of typescript Basics
Explain in detail the use of dynamic parameter adjustment and topic communication in ROS (principle + code + example)
i. Mx6ul porting openwrt
2022 electrician (elementary) examination question bank and simulation examination
The most understandable explanation of coordinate transformation (push to + diagram)
Class as a non type template parameter of the template
Day 4 of pyhon
我人生中的第一个需求——Excel数据批量上传到数据库
R语言使用caTools包的sample.split函数将机器学习数据集划分为训练集和测试集
Detailed explanation of TF2 command line debugging tool in ROS (parsing + code example + execution logic)
Fcpx plug-in: simple line outgoing text title introduction animation call outs with photo placeholders for fcpx