Text processing method and apparatus, electronic device, and storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorsDongling XIAO, Jiaqi Han, Gang Yuan, Binghuai Lin
Life of this patent
Estimating the term…
Abstract
A text processing method performed by an electronic device includes: obtaining a text of a spoken language request; predicting a quantity N of sub-requests of the spoken language request and N sub-request texts in one-to-one correspondence with the N sub-requests through a prediction model by using the spoken language request text, N being a positive integer; and predicting target instruction information corresponding to each of the N sub-request texts through the prediction model based on the quantity N of sub-requests and the N sub-request texts for determining a response to the spoken language request.
Claims20
A text processing method performed by an electronic device, comprising:
- obtaining a text of a spoken language request;
- predicting a quantity N of sub-requests of the spoken language request and N sub-request texts in one-to-one correspondence with the N sub-requests through an application of a prediction model to the spoken language request text, N being a positive integer;
- and
- predicting target instruction information corresponding to each of the N sub-request texts through the prediction model based on the quantity N of sub-requests and the N sub-request texts for determining a response to the spoken language request.
An electronic device, comprising a processor and a memory, the memory storing a plurality of instructions;
- and the processor loading the instructions from the memory to cause the electronic device to perform a text processing method including:
- obtaining a text of a spoken language request;
- predicting a quantity N of sub-requests of the spoken language request and N sub-request texts in one-to-one correspondence with the N sub-requests through an application of a prediction model to the spoken language request text, N being a positive integer;
- and
- predicting target instruction information corresponding to each of the N sub-request texts through the prediction model based on the quantity N of sub-requests and the N sub-request texts for determining a response to the spoken language request.
A non-transitory computer-readable storage medium having a plurality of instructions stored therein, and the instructions, when loaded by a processor of an electronic device, causing the electronic device to perform a text processing method including:
- obtaining a text of a spoken language request;
- predicting a quantity N of sub-requests of the spoken language request and N sub-request texts in one-to-one correspondence with the N sub-requests through an application of a prediction model to the spoken language request text, N being a positive integer;
- and
- predicting target instruction information corresponding to each of the N sub-request texts through the prediction model based on the quantity N of sub-requests and the N sub-request texts for determining a response to the spoken language request.
Dependencies are inferred from the claim text.