Sentence encoding and decoding method, storage medium, and device
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsFandong MENG, Jinchao ZHANG, Jie ZHOU
Life of this patent
Estimating the term…
Loading patent…
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsFandong MENG, Jinchao ZHANG, Jie ZHOU
Estimating the term…
Embodiments of this disclosure disclose a sentence processing method and device. The method may include performing word segmentation operation on a source sentence to be encoded to obtain m words. The method may further include obtaining an ith word in the m words using an ith encoding processing node in the n encoding processing nodes, and obtaining an (i−1)th word vector from an (i−1)th encoding processing node. The method may further include performing linear operation and non-linear operation on the ith word and the (i−1)th word vector using the first unit of the ith encoding processing node to obtain an ith operation result, and outputting the ith operation result to the at least one second unit for processing to obtain an ith word vector. The method may further include generating, in response to obtaining m word vectors, a sentence vector according to the m word vectors.
A method for processing a sentence, performed by a sentence processing device and applicable to an encoding model, the encoding model comprising n cascaded encoding processing nodes, the encoding processing nodes comprising a first unit and at least one second unit that are cascaded, n>2, the method comprising:
A method for decoding a sentence, performed by a sentence processing device and applicable to a decoding model, the decoding model comprising a decoding processing node, the decoding processing node comprising a first unit and at least one second unit that are cascaded, the method comprising:
A device for processing a sentence, comprising a memory and a processor, the memory storing computer-readable instructions and an encoding model, the encoding model comprising n cascaded encoding processing nodes, the encoding processing nodes comprising a first unit and at least one second unit that are cascaded, n>2, the computer-readable instructions, when executed by the processor, causing the processor to:
A non-transitory machine-readable storage medium, having processor executable instructions and an encoding model stored thereon, the encoding model comprising n cascaded encoding processing nodes, the encoding processing nodes comprising a first unit and at least one second unit that are cascaded, n>2, the processor executable instructions being for causing a processor to:
Dependencies are inferred from the claim text.