摘要 |
PROBLEM TO BE SOLVED: To actualize a cost determining means for natural language analysis that an determine the cast with high precision and eliminates the need for a human judgment for the cost determination. SOLUTION: A cost given by a rule (i) is regarded as a weight coefficient Ai, which is set to a proper value (step S1). With the weight coefficient Ai, the cost Z=A1×X1+A2×X2+...+An×Xn (Xi: frequency at which the rule (i) is applied) of a candidate for a solution is calculated (step S2). When the correct answer is larger than an error a sample xi (=xi of error - Xi of correct answer) is generated (step S4). On the basis of this sample xi, a new weight coefficient Ai=xij/the number of samples is found (step S7). The processes are carried on until a new sample is not generated (step S5). Then a determining process for those weight coefficients Ai is performed for all corpuses (step S8). |