Coding method, device and equipment, and storage medium

A coding method and coding model technology, applied in the field of natural language processing, can solve the problems of slow coding speed and low accuracy, and achieve the effect of wide application range and rich paragraph vector expression.

Pending Publication Date: 2019-08-20
TENCENT TECH (SHENZHEN) CO LTD
View PDF11 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The embodiment of the present invention provides an encoding method, device, equipment, and storage medium, which solves the problems of slow encoding speed and low accuracy in related technologies

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
  • Coding method, device and equipment, and storage medium
  • Coding method, device and equipment, and storage medium
  • Coding method, device and equipment, and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0044] An embodiment of the present invention provides a memory encoding model, which acquires a target paragraph and a preset database, and inputs it into the memory encoding model, and uses the memory encoding model to encode the target paragraph to obtain a paragraph vector of the target paragraph, so that it can be based on Paragraph vectors to process. In the encoding process, the target paragraph can be used as a unit, and the memory coding model can be used to encode the target paragraph at one time, without the need to encode each sentence in the target paragraph separately in a serial manner. Moreover, not only the meaning of each sentence in the target paragraph is considered, but also the knowledge data in the preset databas...

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 embodiment of the invention discloses coding method, device and equipment, and a storage medium, and belongs to the field of natural language processing. The coding method comprises the steps: obtaining a target paragraph and a preset database, and inputting the target paragraph and the preset database into a memory coding model; obtaining an original vector set of the target paragraph and a knowledge vector set of the preset database in an input layer; obtaining a first target statement matrix in the first memory layer according to the original vector set and the knowledge vector set; andacquiring a paragraph vector of the target paragraph in the output layer according to the first target statement matrix, and processing based on the paragraph vector. And with the target paragraph asa unit, the memory coding model is applied to code the target paragraph, so that the coding speed is increased. And in the coding process, the target paragraph itself is considered; knowledge data inthe preset database is also considered; and the coding accuracy is improved.

Description

technical field [0001] The present invention relates to the field of natural language processing, in particular to an encoding method, device, equipment and storage medium. Background technique [0002] Encoding is the process of converting text into coded values ​​to obtain vectors that accurately describe the meaning of the text. By encoding, text can be converted into a vector form that is convenient for calculation and processing, and it has been widely used in various fields such as sentence selection and sentence generation. [0003] At present, a hierarchical coding scheme is proposed. When a target paragraph including multiple sentences is to be coded, the word vector of each word in each sentence in the target paragraph is obtained. For each sentence in the target paragraph, apply the first encoding model based on the word level, encode the word vector of each word in the sentence into a vector, obtain the sentence vector of the sentence, and then obtain the word v...

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): G06F17/22G06F17/27
CPCG06F40/126G06F40/211G06F40/30G06F16/3347G06N3/044G06N3/045Y02D10/00G06N3/02G06N3/04
Inventor 谭翊章孙硕曹杰田乐牛成周杰
Owner TENCENT TECH (SHENZHEN) CO LTD
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