Text semantic matching method and apparatus

A semantic matching and text technology, applied in semantic analysis, neural learning methods, special data processing applications, etc., can solve the problems of gradient explosion, gradient disappearance, lack of sequence information, etc., and achieve the effect of increasing accuracy and comprehensive expression

Active Publication Date: 2018-06-08
ZHONGKE DINGFU BEIJING TECH DEV
View PDF3 Cites 32 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] This application provides a text semantic matching method and device, which organically combines multiple text representations and text semantic matching methods to solve the problems of lack of sequence information, gradient disappearance or gradient explosion in traditional text semantic matching methods

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
  • Text semantic matching method and apparatus
  • Text semantic matching method and apparatus
  • Text semantic matching method and apparatus

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0094] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0095] The solution of this application is partly based on the calculation model of CNN, RNN or LSTM text similarity to calculate the similarity of two similar texts.

[0096] In this application, the standard text is the base text, and the text used for comparison with the base text is the target text.

[0097] figure 1 A model schematic diagram of a text semantic matching method provided by this application, figure 2 A flow chart of an embodiment of a tex...

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 provides a text semantic matching method. The method comprises the steps of obtaining total vectors by using word vectors and character vectors corresponding to words and characters in ato-be-processed text; performing convolution processing, averaging processing and bidirectional LSTM processing on the total vectors, wherein an LSTM method without an attention mechanism is adoptedduring basic text processing, and an LSTM method with the attention mechanism is adopted during target text processing; obtaining pooling vectors; and taking the similarity of the two pooling vectorsas the similarity of two texts. According to the method, not only a semantic relationship among the words in the text but also a semantic relationship among the characters are considered; not only a positive semantic relationship between the characters and the words but also a negative semantic relationship between the characters and the words are considered; and multiple text matching models arecomprehensively applied, so that feature information among text contexts is expressed more comprehensively, accurately and fully, and the text matching accuracy is improved.

Description

technical field [0001] The present application belongs to the field of natural language processing, and in particular relates to a method and device for text semantic matching. Background technique [0002] Text matching is used to obtain the degree of correlation or similarity between two texts. It is a core technology in the field of natural language processing. It can effectively represent and extract the semantic information of texts. It has important significance in the fields of information retrieval, information extraction, and automatic question answering. . [0003] The existing text matching technology mainly converts the two texts into the form of vectors, and then calculates the similarity of the two vectors by cosine, Euclidean distance and other methods, and uses the obtained similarity to represent the text matching of the two texts. result. [0004] With the rise of deep learning neural networks, CNN (Convolutional Neural Networks, convolutional neural netw...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/27G06K9/62G06N3/04G06N3/08
CPCG06N3/084G06F40/30G06N3/045G06F18/22
Inventor 蒋宏飞赵红红晋耀红杨凯程
Owner ZHONGKE DINGFU BEIJING TECH DEV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products