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 problems such as low accuracy rate and slow coding speed, and achieve the effect of wide application range and rich paragraph vector expression

Active Publication Date: 2019-08-20
TENCENT TECH (SHENZHEN) CO LTD
View PDF14 Cites 6 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

[0037] In order to make the objectives, technical solutions and advantages of the present invention clearer, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0038] The embodiment of the present invention provides a memory coding model, which acquires a target paragraph and a context sentence of the target paragraph, inputs them into the memory coding model, and applies the memory coding model to encode the target paragraph to obtain the paragraph vector of the target paragraph, thereby Ability to process based on paragraph vectors. In the encoding process, the target paragraph can be used as a unit, and the memory encoding model can be applied to encode the target paragraph at one time, and there is no need to encode each sentence in the target paragraph separately in a serial manner. Moreover, considering not only the meaning of each sentence in the target paragraph, but also the association bet...

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 context statement of the target paragraph, and inputting the target paragraph and the context statement into a memory coding model; and obtaining an original vector setand a memory vector set in an input layer, obtaining a first target statement matrix of the original vector set in a memory layer according to the original vector set and the memory vector set, obtaining a paragraph vector of a target paragraph according to the first target statement matrix in an output layer, and carrying out processing based on the paragraph vector. And each statement is codedby taking the target paragraph as a unit, so that the coding speed is increased. Moreover, in the coding process, the target paragraph itself is considered; the context statement of the target paragraph is also considered; the paragraph vector for accurately describing the target paragraph can be obtained according to the association relationship between the statement in the target paragraph and the context statement; and the coding accuracy is improved.

Description

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

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/22G06F16/332
CPCG06F40/151G06F40/30Y02D10/00G06F40/126
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