Unlock instant, AI-driven research and patent intelligence for your innovation.

FAQ library matching method and system based on twin network

A technology of twinning network and matching method, which is applied in the field of FAQ question answering library matching based on twinning network, which can solve the problems of poor matching accuracy of questions and so on.

Pending Publication Date: 2021-05-14
BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0006] Aiming at the above-mentioned technical problem of poor matching accuracy of questions and sentences, the present invention proposes a method and system for matching FAQ questions and answers database based on twin networks

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • FAQ library matching method and system based on twin network
  • FAQ library matching method and system based on twin network
  • FAQ library matching method and system based on twin network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0069] figure 1 It is a schematic diagram of the steps of a twin network-based FAQ question-answer database matching method provided by the present invention. Such as figure 1 As shown, this embodiment discloses a specific implementation of a twin network-based FAQ question-answer library matching method (hereinafter referred to as "method").

[0070] The method of the present invention has three precondition assumptions: 1, guarantee the timeliness of the data of the FAQ question-and-answer database, that is, include certain hot issues that users often raise; 2, under the premise of keeping accurate, the sentences are as short as possible; The historical record of user questions, sorting the data of the FAQ question and answer database by the number of occurrences.

[0071] Specifically, the method disclosed in this embodiment mainly includes the following steps:

[0072] Step S1: Input two questions into the embedding layer and process them, and input the word vectors and...

Embodiment 2

[0100] In combination with the twin network-based FAQ question-answer database matching method disclosed in Embodiment 1, this embodiment discloses a specific implementation example of a twin network-based FAQ question-answer database matching system (hereinafter referred to as the "system").

[0101] refer to Figure 9 As shown, the system includes:

[0102] Input module 11: input two question sentences in the embedding layer and process them, and input the word vector and word vector fusion in the said question sentence after processing to the encoding layer;

[0103] Information extraction module 12: using twin network architecture in the encoding layer, using two bidirectional LSTM networks, respectively performing context encoding on the fused word vector and the word vector from the two directions of the question sentence, And perform question feature extraction, and input the state value of the hidden layer of each time step of the LSTM network to the attention layer; ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an FAQ library matching method and system based on a twin network. The method comprises the following steps: performing joint embedding representation on two input questions by using pre-trained word vectors and word vectors in an embedding layer; utilizing a twin network architecture in the coding layer, using two bidirectional LSTM networks, carrying out context coding on the question, carrying out feature extraction, and inputting a hidden layer state value of each time step of the LSTM networks to the attention layer; performing weighted summation on the hidden layer state value on the attention layer based on an attention mechanism to obtain a semantic representation vector of the question; splicing the semantic representation vectors in a feature fusion layer by adopting a feature enhancement method to obtain a total feature vector; carrying out linear transformation on the total feature vector in an output layer through a full connection layer to convert the output dimension, finally obtaining probability distribution of the two questions through a softmax function, and outputting the semantic similarity of the two questions.

Description

technical field [0001] The invention relates to the technical field of information processing, in particular to a twin network-based FAQ question-answer database matching method and system. Background technique [0002] Question Answering System (Question Answering System, QA) is an important function of the industrial maintenance assistant application. This function aims to answer the questions raised by users in natural language with accurate and concise natural language. Information interaction, and semantic understanding and analysis of the questions raised by users, so as to provide decision-making basis for the problems that users need to solve urgently, and finally use the knowledge base to query, reason and return solutions that meet the current intentions of users. The FAQ (Frequently Asked Questions) module is an important sub-function of the QA model. It can directly return the required answer for maintenance problems, which is fast and efficient. Therefore, how...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F16/332G06F40/30G06K9/62G06N3/04G06N3/08
CPCG06F16/3329G06F40/30G06N3/049G06N3/08G06F18/25Y02D10/00
Inventor 孙旭恩
Owner BEIJING MININGLAMP SOFTWARE SYST CO LTD