Artificial intelligence-based semantic recognition method, apparatus, and device
AssigneeHuawei Technologies Co., Ltd.
InventorsQing Zhang, Chang Liu, Ruidong Yang
Life of this patent
Estimating the term…
Abstract
An artificial intelligence-based semantic recognition method, apparatus, and device. In the artificial intelligence-based semantic recognition method, a pre-trained semantic recognition model is trained by using a training corpus configured by a developer on a model training platform such as a Bot platform and a negative corpus provided on the model training platform, where the negative corpus is extracted by mapping an encoding value of the training corpus to a negative corpus set. Therefore, the negative corpus is extracted based on the encoding value of the training corpus, and a randomized method for generating the negative corpus is changed into a stable method.
Claims20
An artificial intelligence-based semantic recognition method, comprising:
- obtaining a query statement entered by a user;
- recognizing the query statement by using a pre-trained semantic recognition model, to obtain an intent of the query statement, wherein the pre-trained semantic recognition model is trained by using a training corpus and a negative corpus, and the negative corpus is extracted by mapping an encoding value of the training corpus to a negative corpus set, comprising one of:
- matching the encoding value to the negative corpus in the negative corpus set based on a mapping relationship between the encoding value of the training corpus and a sampling value of the negative corpus, and newly assigning the encoding value to the negative corpus in the negative corpus set and creating the mapping relationship;
- obtaining, based on the query statement and the intent of the query statement, a response corresponding to the query statement;
- and
- displaying the response corresponding to the query statement.
An artificial intelligence-based semantic recognition device, comprising:
- a display;
- one or more processors;
- a memory;
- a plurality of application programs;
- and
- one or more computer programs, wherein the one or more computer programs are stored in the memory and comprise instructions, and, when the instructions are executed by the device, the device is configured to perform the following steps:
- obtaining a query statement entered by a user;
- recognizing the query statement by using a pre-trained semantic recognition model, to obtain an intent of the query statement, wherein the pre-trained semantic recognition model is trained by using a training corpus and a negative corpus, and the negative corpus is extracted by mapping an encoding value of the training corpus to a negative corpus set, comprising one of:
- matching the encoding value to the negative corpus in the negative corpus set based on a mapping relationship between the encoding value of the training corpus and a sampling value of the negative corpus, and newly assigning the encoding value to the negative corpus in the negative corpus set and creating the mapping relationship;
- obtaining, based on the query statement and the intent of the query statement, a response corresponding to the query statement;
- and
- displaying the response corresponding to the query statement.
A non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores a computer program, and when the computer program is run on a computer, the computer is configured to perform the following steps:
- obtaining a query statement entered by a user;
- recognizing the query statement by using a pre-trained semantic recognition model, to obtain an intent of the query statement, wherein the pre-trained semantic recognition model is trained by using a training corpus and a negative corpus, and the negative corpus is extracted by mapping an encoding value of the training corpus to a negative corpus set, comprising one of:
- matching the encoding value to the negative corpus in the negative corpus set based on a mapping relationship between the encoding value of the training corpus and a sampling value of the negative corpus, and newly assigning the encoding value to the negative corpus in the negative corpus set and creating the mapping relationship;
- obtaining, based on the query statement and the intent of the query statement, a response corresponding to the query statement;
- and
- displaying the response corresponding to the query statement.
Dependencies are inferred from the claim text.