Method and apparatus for updating mining model
First Claim
1. A method for updating a mining model, wherein the method is applied to the mining model in a semantic analysis system and comprises:
- acquiring a semantic analysis result obtained by analyzing a query through the semantic analysis system;
generating a training format corpus according to the semantic analysis result, wherein the training format corpus comprises a first format corpus and a second format corpus;
performing an iterative updating on the mining model based on the first format corpus and the second format corpus,wherein the first format corpus is configured to label a semantic feature in the query, and the second format corpus is configured to label a template feature in the query;
analyzing a plurality of test statements based on the mining model before the iterative updating so as to acquire a first analysis result;
analyzing the plurality of test statements based on the mining model after the iterative updating so as to acquire a second analysis result;
according to a preset model scoring rule, scoring the first analysis result so as to acquire a first score, and scoring the second analysis result so as to acquire a second score; and
regarding the mining model after the iterative updating as the mining model of the semantic analysis system when the second score is larger than the first score.
0 Assignments
0 Petitions
Accused Products
Abstract
The present disclosure provides a method and an apparatus for updating a mining model, which are applied to the mining model in a semantic analysis system. The method includes: acquiring a semantic analysis result obtained by analyzing a query through the semantic analysis system; generating a training format corpus according to the semantic analysis result, in which the training format corpus includes a first format corpus and a second format corpus; and performing an iterative updating on the mining model based on the first format corpus and the second format corpus, in which the first format corpus is configured to label a semantic feature in the query, and the second format corpus is configured to label a template feature in the query. With the present disclosure, a semantic analysis effect of the semantic analysis system may be improved effectively.
8 Citations
17 Claims
-
1. A method for updating a mining model, wherein the method is applied to the mining model in a semantic analysis system and comprises:
-
acquiring a semantic analysis result obtained by analyzing a query through the semantic analysis system; generating a training format corpus according to the semantic analysis result, wherein the training format corpus comprises a first format corpus and a second format corpus; performing an iterative updating on the mining model based on the first format corpus and the second format corpus, wherein the first format corpus is configured to label a semantic feature in the query, and the second format corpus is configured to label a template feature in the query; analyzing a plurality of test statements based on the mining model before the iterative updating so as to acquire a first analysis result; analyzing the plurality of test statements based on the mining model after the iterative updating so as to acquire a second analysis result; according to a preset model scoring rule, scoring the first analysis result so as to acquire a first score, and scoring the second analysis result so as to acquire a second score; and regarding the mining model after the iterative updating as the mining model of the semantic analysis system when the second score is larger than the first score. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. An apparatus for updating a mining model, wherein the apparatus is applied to the mining model in a semantic analysis system and comprises:
-
a processor; a memory for storing programs executable by the processor, wherein the processor is configured to; acquire a semantic analysis result obtained by analyzing a query through the semantic analysis system; generate a training format corpus according to the semantic analysis result, wherein the training format corpus comprises a first format corpus and a second format corpus; perform an iterative updating on the mining model based on the first format corpus and the second format corpus, wherein the first format corpus is configured to label a semantic feature in the query, and the second format corpus is configured to label a template feature in the query; analyze a plurality of test statements based on the mining model before the iterative updating so as to acquire a first analysis result; analyze the plurality of test statements based on the mining model after the iterative updating so as to acquire a second analysis result; according to a preset model scoring rule, score the first analysis result so as to acquire a first score, and score the second analysis result so as to acquire a second score; and regard the mining model after the iterative updating as the mining model of the semantic analysis system when the second score is larger than the first score. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A non-transitory computer-readable storage medium having stored therein instructions that, when executed by a processor of an apparatus, causes the apparatus to perform method for updating a mining model, the method comprising:
-
acquiring a semantic analysis result obtained by analyzing a query through the semantic analysis system; generating a training format corpus according to the semantic analysis result, wherein the training format corpus comprises a first format corpus and a second format corpus; performing an iterative updating on the mining model based on the first format corpus and the second format corpus, wherein the first format corpus is configured to label a semantic feature in the query, and the second format corpus is configured to label a template feature in the query; analyzing a plurality of test statements based on the mining model before the iterative updating so as to acquire a first analysis result; analyzing the plurality of test statements based on the mining model after the iterative updating so as to acquire a second analysis result; according to a preset model scoring rule, scoring the first analysis result so as to acquire a first score, and scoring the second analysis result so as to acquire a second score; and regarding the mining model after the iterative updating as the mining model of the semantic analysis system when the second score is larger than the first score. - View Dependent Claims (14, 15, 16, 17)
-
Specification