Method, electronic device and storage medium for semantic parsing

US12236196B2 · US · B2

Patent metadata
FieldValue
Publication numberUS-12236196-B2
Application numberUS-202117519515-A
CountryUS
Kind codeB2
Filing dateNov 4, 2021
Priority dateApr 29, 2021
Publication dateFeb 25, 2025
Grant dateFeb 25, 2025

How to read this patent

A practical reading order for non-experts. Skip the full description unless you need deep technical detail.

  1. Title

    What the patent document calls the invention.

  2. Abstract

    A short plain-language summary of the technical disclosure.

  3. Assignees and inventors

    Who owns or filed the patent and who is credited as inventor.

  4. Key dates

    Filing, priority, publication, and grant dates set the timeline.

  5. First independent claim

    The legal scope of protection — read this for what is actually claimed.

  6. CPC / IPC classifications

    Technology tags used to group this patent with similar filings.

  7. Citations and related patents

    Prior art links and similar publications in this corpus.

Abstract

Official abstract text for this publication.

Methods, electronic device, and non-transitory computer-readable storage mediums are provided for semantic parsing. The equipment may obtain a first recognition result of a target statement. The first recognition result may include a first intention recognition result and a first entity recognition result. The first entity recognition result may correspond to a plurality of vertical domains. The equipment may also determine one of the plurality of vertical domains corresponding to the first entity recognition result as a target vertical domain corresponding to the target statement according to the first intention recognition result. The equipment may further convert the first entity recognition result into a second entity recognition result in the target vertical domain. The equipment may also parse an intention of the target statement according to the second entity recognition result.

First claim

Opening claim text (preview).

What is claimed is: 1. A method for semantic parsing, performed by an intelligent Q&A system based on a neural network, comprising: obtaining a first recognition result of a target statement by a recognition at a coarse-grained level, wherein the first recognition result comprises a first intention recognition result and a first entity recognition result, and wherein the first entity recognition result corresponds to a plurality of vertical domains, each of the plurality of vertical domains comprises respective slots and respective intentions, the first entity recognition result includes at least one first slot and corresponding slot information, and wherein the first intention recognition result is a coarse-grained intention recognition result, the first entity recognition result is a coarse-grained entity recognition result; determining one of the plurality of vertical domains corresponding to the first entity recognition result as a target vertical domain corresponding to the target statement according to the first intention recognition result, wherein the target vertical domain includes at least one second slot; converting the first entity recognition result into a second entity recognition result in the target vertical domain, wherein the second entity recognition result is a fine-grained entity recognition result; parsing a fine-grained intention of the target statement according to the second entity recognition result; and generating and outputting a query statement for the target statement according to the second entity recognition result in the target vertical domain and the fine-grained intention of the target statement, to implement intelligent voice interaction, wherein the method for semantic parsing further comprises: establishing, before obtaining the first recognition result of the target statement, at least one first slot and a first intention corresponding to the at least one first slot, wherein the at least one first slot is established based on commonality of part of the second slots in all the vertical domains, so that different second slots in different vertical domains are mapped onto one first slot; performing mapping of the target vertical domain to the first slots and establishing an association relationship between second slots and the first slots in the target vertical domain, wherein each of the second slots corresponds to one first slot, wherein each of the first slots corresponds to at least one second slot, and wherein a total quantity of the first slots is smaller than or equal to that of the second slots; and associating the target vertical domain to the first intention, wherein a plurality of the first intentions are defined, each of the first intentions points to one or more of the vertical domains, and after the first intentions are determined, the target vertical domain is determined according to vertical domains to which the first intentions point; wherein the first entity recognition result comprises an entity recognition result of at least one first slot, and wherein converting the first entity recognition result into the second entity recognition result in the target vertical domain comprises: obtaining a corresponding relation between all the second slots and the first slots in the target vertical domain; and determining an entity recognition result of the corresponding second slots according to the entity recognition result of the first slots so as to generate the second entity recognition result in the target vertical domain. 2. The method according to claim 1 , further comprising: generating training samples according to the first slots and the first intention, wherein the training samples comprise positive samples and negative samples of the target vertical domain; and training a first recognition model by using the training samples. 3. The method according to claim 2 , wherein obtaining the first recognition result of the target statement comprises: inputting the target statement into the first recognition model so as to obtain the first recognition result. 4. The method according to claim 3 , further comprising: collecting a recognition result of the first recognition model; and adding the recognition result into the training samples. 5. The method according to claim 1 , wherein parsing the fine-grained intention of the target statement according to the second entity recognition result comprises: parsing the fine-grained intention of the target statement according to the second entity recognition result and keywords of the target statement. 6. An electronic device, applied to an intelligent Q&A system based on a neural network, comprising: one or more processors; and a non-transitory computer readable storage medium, configured to store instructions executable by the one or more processors; wherein the one or more processors are configured to: obtain a first recognition result of a target statement by a recognition at a coarse-grained level, wherein the first recognition result comprises a first intention recognition result and a first entity recognition result, and wherein the first entity recognition result corresponds to a plurality of vertical domains, each of the plurality of vertical domains comprises respective slots and respective intentions, the first entity recognition result includes at least one first slot and corresponding slot information, and wherein the first intention recognition result is a coarse-grained intention recognition result, the first entity recognition result is a coarse-grained entity recognition result; determine one of the plurality of vertical domains corresponding to the first entity recognition result as a target vertical domain corresponding to the target statement according to the first intention recognition result, wherein the target vertical domain includes at least one second slot; convert the first entity recognition result into a second entity recognition result in the target vertical domain, wherein the second entity recognition result is a fine-grained entity recognition result; parse a fine-grained intention of the target statement according to the second entity recognition result; and generate and output a query statement for the target statement according to the second entity recognition result in the target vertical domain and the fine-grained intention of the target statement, to implement intelligent voice interaction, wherein the one or more processors are further configured to: establish, before obtaining the first recognition result of the target statement, at least one first slot and a first intention corresponding to the at least one first slot, wherein the at least one first slot is established based on commonality of part of the second slots in all the vertical domains, so that different second slots in different vertical domains are mapped onto one first slot; perform mapping of the target vertical domain to the first slots and establish an association relationship between second slots and the first slots in the target vertical domain, wherein each of the second slots corresponds to one first slot, each of the first slots corresponds to at least one second slot, and a total quantity of the first slots is smaller than or equal to that of the second slots; and associate the target vertical domain to the first intention, wherein a plurality of the first intentions are defined, each of the first intentions points to one or more of the vertical domains, and after the first intentions are determined, the target vertical domain is determined according to vertical domains to which the first intentions point; wherein the first entity recognition result comprises an entity recognition result of at least one first slot, and wherein the one or more processors configured to

Assignees

Inventors

Classifications

  • characterised by memory or gating, e.g. long short-term memory [LSTM] or gated recurrent units [GRU] · CPC title

  • Supervised learning · CPC title

  • G06F40/295Primary

    Named entity recognition · CPC title

  • Parsing · CPC title

  • Recurrent networks, e.g. Hopfield networks · CPC title

Patent family

Related publications grouped by family.

External sources

Frequently asked questions

Answers are generated from the same data shown on this page.

What does patent US12236196B2 cover?
Methods, electronic device, and non-transitory computer-readable storage mediums are provided for semantic parsing. The equipment may obtain a first recognition result of a target statement. The first recognition result may include a first intention recognition result and a first entity recognition result. The first entity recognition result may correspond to a plurality of vertical domains. Th…
Who is the assignee on this patent?
Beijing Xiaomi Mobile Software Co Ltd, Beijing Xiaomi Pinecone Electronics Co Ltd
What technology area does this patent fall under?
Primary CPC classification G06F40/295. Mapped technology areas include Physics.
When was this patent published?
Publication date Tue Feb 25 2025 00:00:00 GMT+0000 (Coordinated Universal Time) (B2). Legal status and post-grant events are not shown on this page.
What related patents are in patentsdb?
We list 11 related publications on this page (citations in our corpus or others sharing the same primary CPC).