Patent ID: 11900918
Assignee: BEIJING BAIDU NETCOM SCIENCE TECHNOLOGY CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 5:
6. The method according to claim 5, wherein determining the grammar frequency based on the weight of the grammar, the weight of the slot, and the weight of the slot value in the at least one grammar graph when the slot values of the N adjacent slots are fixed to obtain the N-th-order grammar frequency comprises:
determining a product of weights corresponding to the slot values of the N adjacent slots in each grammar graph to obtain a first product corresponding to each grammar graph;
determining a product of the first product and weights of slots other than the N adjacent slots in the corresponding grammar graph to obtain a second product corresponding to each grammar graph;
determining a product of the second product and the weight of the grammar in the corresponding grammar graph to obtain a third product corresponding to each grammar graph; and
determining a sum of the at least one third product corresponding to the at least one grammar graph to obtain the N-th order grammar frequency.