Artificial intelligence based method and apparatus for classifying voice-recognized text
First Claim
1. An artificial intelligence based method for classifying a voice-recognized text, the method comprising:
- acquiring a current interactive text of a voice query from a user;
analyzing the current interactive text using a lexical analyzer to obtain a current lexical structure;
determining whether the current lexical structure matches a template of a given category in a classifier; and
classifying, if the current lexical structure matches the template of the given category in the classifier, the current interactive text corresponding to the current lexical structure into the given category belonging to the matched template, wherein the template in the given category includes a plurality of keywords, and each of the keywords of the template in the given category is determined by;
acquiring the given category for a predetermined interaction scenario;
acquiring a plurality of pieces of to-be-generalized interactive text having same or similar meanings in the given category;
generating one generalized keyword matching the pieces of to-be-generalized interactive text having same or similar meanings in the given category; and
using the generalized keyword as the keyword of the template in the given category.
1 Assignment
0 Petitions
Accused Products
Abstract
Embodiments of the present disclosure disclose an artificial intelligence based method and apparatus for classifying a voice-recognized text. A specific embodiment of the method includes: acquiring a current interactive text of a voice query from a user; analyzing the current interactive text using a lexical analyzer to obtain a current lexical structure; determining whether the current lexical structure matches a template of a category in a classifier; and classifying, if the current lexical structure matches the template of the category in the classifier, the current interactive text corresponding to the current lexical structure into the category belonging to the matched template. The embodiment can fast classify texts, effectively reduce the magnitude of manually annotated texts, and improve the annotation efficiency in intelligent voice interaction services.
24 Citations
16 Claims
-
1. An artificial intelligence based method for classifying a voice-recognized text, the method comprising:
-
acquiring a current interactive text of a voice query from a user; analyzing the current interactive text using a lexical analyzer to obtain a current lexical structure; determining whether the current lexical structure matches a template of a given category in a classifier; and classifying, if the current lexical structure matches the template of the given category in the classifier, the current interactive text corresponding to the current lexical structure into the given category belonging to the matched template, wherein the template in the given category includes a plurality of keywords, and each of the keywords of the template in the given category is determined by; acquiring the given category for a predetermined interaction scenario; acquiring a plurality of pieces of to-be-generalized interactive text having same or similar meanings in the given category; generating one generalized keyword matching the pieces of to-be-generalized interactive text having same or similar meanings in the given category; and using the generalized keyword as the keyword of the template in the given category. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. An artificial intelligence based apparatus for classifying a voice-recognized text, the apparatus comprising:
-
at least one processor; and a memory storing instructions, the instructions when executed by the at least one processor, cause the at least one processor to perform operations, the operations comprising; acquiring a current interactive text of a voice query from a user; analyzing the current interactive text using a lexical analyzer to obtain a current lexical structure; determining whether the current lexical structure matches a template of a given category in a classifier; and classifying, if the current lexical structure matches the template of the given category in the classifier, the current interactive text corresponding to the current lexical structure into the given category belonging to the matched template, wherein the template in the given category includes a plurality of keywords, and each of the keywords of the template in the given category is determined by; acquiring the given category for a predetermined interaction scenario; acquiring a plurality of pieces of to-be-generalized interactive text having same or similar meanings in the given category; generating one generalized keyword matching the pieces of to-be-generalized interactive text having same or similar meanings in the given category; and using the generalized keyword as the keyword of the template in the given category. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A non-transitory computer readable storage medium storing a computer program, wherein the computer program, when executed by a processor, cause the processor to perform operations, the operation comprising:
-
acquiring a current interactive text of a voice query from a user; analyzing the current interactive text using a lexical analyzer to obtain a current lexical structure; determining whether the current lexical structure matches a template of a given category in a classifier; and classifying, if the current lexical structure matches the template of the given category in the classifier, the current interactive text corresponding to the current lexical structure into the given category belonging to the matched template, wherein the template in the given category includes a plurality of keywords, and each of the keywords of the template in the given category is determined by; acquiring the given category for a predetermined interaction scenario; acquiring a plurality of pieces of to-be-generalized interactive text having same or similar meanings in the given category; generating one generalized keyword matching the pieces of to-be-generalized interactive text having same or similar meanings in the given category; and using the generalized keyword as the keyword of the template in the given category.
-
Specification