The present disclosure provides a method and an apparatus for analyzing an intention based on artificial intelligence. The method includes: receiving a query; acquiring a keyword of an intention of the query according to a preset strategy; acquiring a qualifier of the intention of the query according to the keyword based on a syntax tree; and determining the intention of the query according to the keyword and the qualifier.
Please help me write a proper abstract based on the patent claims. CLAIM: 1. A method for analyzing an intention based on artificial intelligence, comprising: receiving a query; acquiring a keyword of an intention of the query according to a preset strategy; acquiring a qualifier of the intention of the query according to the keyword based on a syntax tree; and determining the intention of the query according to the keyword and the qualifier. 2. The method according to claim 1, wherein acquiring a keyword of the intention of the query according to a preset strategy comprises: acquiring the keyword of the intention of the query according to a template strategy; or acquiring the keyword of the intention of the query according to a rule strategy; or acquiring the keyword of the intention of the query according to a model strategy. 3. The method according to claim 2, wherein acquiring the keyword of the intention of the query according to a template strategy comprises: analyzing the query and acquiring a query segment or a query sentence pattern of the query; matching the query segment or the query sentence pattern to a template set pre-labeled; acquiring a label corresponding to a successfully matched template, wherein the label is regarded as the keyword of the intention of the query. 4. The method according to claim 2, wherein acquiring the keyword of the intention of the query according to a rule strategy comprises: acquiring a syntactic structure segment of the query and a knowledge base required by the syntactic structure segment; determining a judgment rule corresponding to the query according to the syntactic structure segment and the knowledge base; and acquiring the keyword of the intention of the query based on the judgment rule. 5. The method according to claim 2, wherein acquiring the keyword of the intention of the query according to a model strategy comprises: analyzing the query and acquiring a query segment of the query; generating a plurality of candidate intentions according to the query segment; and screening the keyword of the intention of the query from the plurality of candidate intentions based on a pre-established intention recognition model. 6. The method according to claim 1, wherein acquiring a qualifier of the intention of the query according to the keyword based on a syntax tree comprises: acquiring a syntactic structure and a syntactic relation based on the syntax tree; and determining the qualifier of the intention of the query according to the syntactic structure and the syntactic relation. 7. The method according to claim 1, further comprising: searching according to the intention and acquiring a search result corresponding to the intention after the intention is determined. 8. An apparatus for analyzing an intention based on artificial intelligence, comprising: one or more processors, a memory, one or more software modules, stored in the memory, executable by the one or more processors, and comprising: a receiving module, configured to receive a query; a first acquiring module, configured to acquire a keyword of an intention of the query according to a preset strategy; a second acquiring module, configured to acquire a qualifier of the intention of the query according to the keyword based on a syntax tree; and a determining module, configured to determine the intention of the query according to the keyword and the qualifier. 9. The apparatus according to claim 8, wherein the first acquiring module is configured to: acquire the keyword of the intention of the query according to a template strategy; or acquire the keyword of the intention of the query according to a rule strategy; or acquire the keyword of the intention of the query according to a model strategy. 10. The apparatus according to claim 9, wherein the first acquiring module is configured to: analyze the query and acquire a query segment or a query sentence pattern of the query; match the query segment or the query sentence pattern to a template set pre-labeled; acquire a label corresponding to a successfully matched template, wherein the label is regarded as the keyword of the intention of the query. 11. The apparatus according to claim 9, wherein the first acquiring module is configured to: acquire a syntactic structure segment of the query and a knowledge base required by the syntactic structure segment; determine a judgment rule corresponding to the query according to the syntactic structure segment and the knowledge base; and acquire the keyword of the intention of the query based on the judgment rule. 12. The apparatus according to claim 9, wherein the first acquiring module is configured to: analyze the query and acquire a query segment of the query; generate a plurality of candidate intentions according to the query segment; and screen the keyword of the intention of the query from the plurality of candidate intentions based on a pre-established intention recognition model. 13. The apparatus according to claim 8, wherein the second acquiring module comprises: an analysis unit, configured to acquire a syntactic structure and a syntactic relation based on the syntax tree; and a determining unit, configured to determine the qualifier of the intention of the query according to the syntactic structure and the syntactic relation. 14. The apparatus according to claim 8, wherein the one or more software modules further comprises: a searching module, configured to search according to the intention and to acquire a search result corresponding to the intention after the intention is determined. 15. A non-transitory computer readable storage medium comprising instructions, wherein when the instructions are executed by a processor of a device to perform acts of: receiving a query; acquiring a keyword of an intention of the query according to a preset strategy; acquiring a qualifier of the intention of the query according to the keyword based on a syntax tree; and determining the intention of the query according to the keyword and the qualifier. 16. The non-transitory computer readable storage medium according to claim 15, wherein acquiring a keyword of the intention of the query according to a preset strategy comprises: acquiring the keyword of the intention of the query according to a template strategy; or acquiring the keyword of the intention of the query according to a rule strategy; or acquiring the keyword of the intention of the query according to a model strategy. 17. The non-transitory computer readable storage medium according to claim 16, wherein acquiring the keyword of the intention of the query according to a template strategy comprises: analyzing the query and acquiring a query segment or a query sentence pattern of the query; matching the query segment or the query sentence pattern to a template set pre-labeled; acquiring a label corresponding to a successfully matched template, wherein the label is regarded as the keyword of the intention of the query. 18. The non-transitory computer readable storage medium according to claim 16, wherein acquiring the keyword of the intention of the query according to a rule strategy comprises: acquiring a syntactic structure segment of the query and a knowledge base required by the syntactic structure segment; determining a judgment rule corresponding to the query according to the syntactic structure segment and the knowledge base; and acquiring the keyword of the intention of the query based on the judgment rule. 19. The non-transitory computer readable storage medium according to claim 16, wherein acquiring the keyword of the intention of the query according to a model strategy comprises: analyzing the query and acquiring a query segment of the query; generating a plurality of candidate intentions according to the query segment; and screening the keyword of the intention of the query from the plurality of candidate intentions based on a pre-established intention recognition model. 20. The non-transitory computer readable storage medium according to claim 15, wherein acquiring a qualifier of the intention of the query according to the keyword based on a syntax tree comprises: acquiring a syntactic structure and a syntactic relation based on the syntax tree; and determining the qualifier of the intention of the query according to the syntactic structure and the syntactic relation.