Query intention determination method and related device

By building an intent prediction model and using historical query statements and synonym replacement technology, the accuracy problem of query intent determination in the existing technology is solved, and fast and accurate user intent identification and query result improvement are achieved.

CN111428027BActive Publication Date: 2024-09-20CHINA PING AN PROPERTY INSURANCE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010121221.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-02-26
Publication Date
2024-09-20
Estimated Expiration
2040-02-26

AI Technical Summary

Technical Problem

Existing query intent determination methods cannot accurately predict the user's query intent, especially when faced with non-standard, diverse input methods and natural language queries, resulting in inaccurate query results.

Method used

By obtaining historical query statements and their query results, the query topic is determined, the target keywords and synonyms thesaurus are constructed for synonym replacement, sample query statements are generated, the intent prediction model is constructed, and the user's query intent is determined based on the model.

Benefits of technology

It can quickly and accurately determine the user's query intention, improve the accuracy and applicability of query results, and cover a wider range of query topics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111428027B
    Figure CN111428027B
Patent Text Reader

Abstract

The embodiment of the present application discloses a method for determining query intent and a related device, which is applicable to machine learning. The method includes: obtaining multiple historical query statements and the query results of each historical query statement; determining the query subject of each historical query statement; determining the target keyword thesaurus and the target synonym thesaurus corresponding to the query subject, and obtaining a sample query statement based on the target keyword thesaurus and the target synonym thesaurus; obtaining a set of sample query statements, and determining the sample intent label of each sample query statement; constructing an intent prediction model; when receiving a target query statement submitted by a user, determining the target intent label of the target query statement based on the intent prediction model, and determining the query result of the target query statement based on the target intent label. By adopting the embodiment of the present application, the user's query intent can be determined quickly and accurately, and it has high applicability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a method for determining query intent and related devices. Background Art

[0002] With the continuous development of information technology, information data is growing rapidly at an exponential rate. In the era of convenient information interaction, people may not be able to obtain accurate results when searching for information.

[0003] When a user enters a query statement, there are many difficulties in understanding the user's query intent, including irregular user input, diverse input methods, use of natural language or even non-standard natural language queries, and ambiguity in the user's query terms. This makes it difficult to accurately obtain the user's query intent after the user enters the query statement. On the other hand, existing query intent determination methods cannot accurately predict the user's query intent, and the prediction accuracy is poor.

[0004] Therefore, how to determine the query intent of the query statement entered by the user becomes an urgent problem to be solved. Summary of the invention

[0005] The embodiments of the present application provide a query intent determination method and related devices, which can quickly and accurately determine the user's query intent and have high applicability.

[0006] In a first aspect, an embodiment of the present application provides a method for determining query intent, the method comprising:

[0007] Obtain multiple historical query statements and the query results of each historical query statement;

[0008] Determine the query subject of each of the above historical query statements based on the query result of each of the above historical query statements;

[0009] Determine a target keyword thesaurus and a target synonym thesaurus corresponding to the query subject, determine the keywords and / or key words to be replaced for each of the historical query statements based on the target keyword thesaurus, and perform synonym replacement on the keywords and / or key words to be replaced based on the target synonym thesaurus to obtain a sample query statement corresponding to each of the historical query statements;

[0010] Obtain a set of sample query statements, and determine a sample intent label of each sample query statement in the set of sample query statements based on the intent label of each of the above historical query statements, wherein the intent label of any historical query statement is determined by the query result of any of the above historical query statements;

[0011] Building an intent prediction model based on the sample query statement set and the sample intent label of each sample query statement;

[0012] When a target query statement submitted by a user is received, a target intent label of the target query statement is determined based on the intent prediction model, and a query result of the target query statement is determined based on the target intent label.

[0013] In combination with the first aspect, in a possible implementation manner, obtaining the sample query statement set includes:

[0014] Determine a plurality of reorganized query statements from the sample query statements corresponding to each of the above historical query statements, wherein any reorganized query statement is obtained by combining at least two different sample query statements from the sample query statements corresponding to each of the above historical query statements;

[0015] Each reorganized query statement is determined as a sample query statement, and the sample query statements corresponding to each of the reorganized query statements and each of the historical query statements are determined as a sample query statement set.

[0016] In combination with the first aspect, in a possible implementation manner, determining the sample intent label of each sample query statement in the sample query statement set based on the intent label of each historical query statement includes:

[0017] When the first sample query statement in the sample query statement set corresponds to a historical query statement, determining the intent label of the historical query statement as the sample intent label of the first sample query statement;

[0018] When the second sample query statement in the above sample query statement set corresponds to multiple historical query statements, the same intent label is determined from the intent labels of the above multiple historical query statements, and the above same intent label is determined as the sample intent label of the above second sample query statement.

[0019] In combination with the first aspect, in a possible implementation manner, constructing the intent prediction model based on the sample query statement set and the sample intent label of each sample query statement includes:

[0020] Determine a feature vector of each sample query statement in the sample query statement set, and determine a multidimensional feature vector based on the sample intent label of each sample query statement, wherein a sample intent label of a sample query statement corresponds to a multidimensional feature vector, and a sample intent label of the sample query statement corresponds to a dimensional vector of the multidimensional feature vector;

[0021] Determine the relevance of each sample intent label of each of the above sample query statements to the query subject of each of the above sample query statements, determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than a preset relevance threshold as 0, and determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than the preset relevance threshold as 1, and obtain the intent label vector of each of the above sample query statements, where one sample query statement corresponds to one intent label vector;

[0022] A set of sample feature vector pairs is determined, and the sample query statement set and the sample feature vector pair set are trained to obtain an intent prediction model, wherein a feature vector pair in the sample feature vector pair set includes a feature vector of the sample query statement and a corresponding intent label vector.

[0023] In combination with the first aspect, in a possible implementation manner, determining the target intent label of the target query sentence based on the intent prediction model includes:

[0024] Determine a feature vector of the target query sentence;

[0025] Determine a target sample feature vector pair corresponding to the feature vector of the target query sentence based on the intention prediction model, wherein the similarity between the feature vector of the sample query sentence included in the target sample feature vector pair and the feature vector of the target query sentence is greater than a first similarity threshold;

[0026] Determine the first sample intent label corresponding to the dimension vector with a dimension value of 1 in the intent label vector included in the above-mentioned target sample feature vector pair, and determine the above-mentioned first sample intent label as the target intent label of the above-mentioned target query sentence.

[0027] In combination with the first aspect, in a possible implementation manner, the method further includes:

[0028] If the target sample feature vector pair corresponding to the feature vector of the target query sentence is not determined based on the intention prediction model, then the semantics of the target query sentence is determined based on the intention prediction model;

[0029] Determine a target sample query sentence from the sample query sentence set based on the intention prediction model, wherein the semantic similarity between the target sample query sentence and the semantics of the target query sentence is greater than a second similarity threshold;

[0030] The sample intent label of the target sample query sentence is determined as the target intent label of the target query sentence.

[0031] In combination with the first aspect, in a possible implementation manner, determining the query result of the target query sentence based on the target intent tag includes:

[0032] Determine a target historical query statement from each of the above historical query statement sets, wherein the intent label of the above target historical query statement is consistent with the above target intent label;

[0033] The query result of the target historical query statement is determined as the query result of the target query statement.

[0034] In a second aspect, an embodiment of the present application provides a query intention determination device, the determination device comprising:

[0035] An acquisition unit, used to acquire multiple historical query statements and the query result of each historical query statement;

[0036] A first determining unit, configured to determine a query subject of each of the above historical query statements based on the query result of each of the above historical query statements;

[0037] A processing unit is used to determine a target keyword thesaurus and a target synonym thesaurus corresponding to the query subject, determine the keywords and / or key words to be replaced for each of the historical query statements based on the target keyword thesaurus, and perform synonym replacement on the keywords and / or key words to be replaced based on the target synonym thesaurus to obtain a sample query statement corresponding to each of the historical query statements;

[0038] A second determination unit is used to obtain a sample query statement set, and determine a sample intent label of each sample query statement in the sample query statement set based on the intent label of each historical query statement, wherein the intent label of any historical query statement is determined by the query result of any historical query statement;

[0039] A construction unit, used to construct an intent prediction model based on the sample query statement set and the sample intent label of each sample query statement;

[0040] The third determination unit is used to determine the target intent label of the target query statement based on the intention prediction model when receiving the target query statement submitted by the user, and determine the query result of the target query statement based on the target intent label.

[0041] In conjunction with the second aspect, in a possible implementation manner, the second determining unit is configured to:

[0042] Determine a plurality of reorganized query statements from the sample query statements corresponding to each of the above historical query statements, wherein any reorganized query statement is obtained by combining at least two different sample query statements from the sample query statements corresponding to each of the above historical query statements;

[0043] Each reorganized query statement is determined as a sample query statement, and the sample query statements corresponding to each of the reorganized query statements and each of the historical query statements are determined as a sample query statement set.

[0044] In conjunction with the second aspect, in a possible implementation manner, the second determining unit is configured to:

[0045] When the first sample query statement in the sample query statement set corresponds to a historical query statement, determining the intent label of the historical query statement as the sample intent label of the first sample query statement;

[0046] When the second sample query statement in the above sample query statement set corresponds to multiple historical query statements, the same intent label is determined from the intent labels of the above multiple historical query statements, and the above same intent label is determined as the sample intent label of the above second sample query statement.

[0047] In conjunction with the second aspect, in a possible implementation manner, the above-mentioned construction unit is used to:

[0048] Determine a feature vector of each sample query statement in the sample query statement set, and determine a multidimensional feature vector based on the sample intent label of each sample query statement, wherein a sample intent label of a sample query statement corresponds to a multidimensional feature vector, and a sample intent label of the sample query statement corresponds to a dimensional vector of the multidimensional feature vector;

[0049] Determine the relevance of each sample intent label of each of the above sample query statements to the query subject of each of the above sample query statements, determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than a preset relevance threshold as 0, and determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than the preset relevance threshold as 1, and obtain the intent label vector of each of the above sample query statements, where one sample query statement corresponds to one intent label vector;

[0050] A set of sample feature vector pairs is determined, and the sample query statement set and the sample feature vector pair set are trained to obtain an intent prediction model, wherein a feature vector pair in the sample feature vector pair set includes a feature vector of the sample query statement and a corresponding intent label vector.

[0051] In combination with the second aspect, in a possible implementation manner, the third determining unit is configured to:

[0052] Determine a feature vector of the target query sentence;

[0053] Determine a target sample feature vector pair corresponding to the feature vector of the target query sentence based on the intention prediction model, wherein the similarity between the feature vector of the sample query sentence included in the target sample feature vector pair and the feature vector of the target query sentence is greater than a first similarity threshold;

[0054] Determine the first sample intent label corresponding to the dimension vector with a dimension value of 1 in the intent label vector included in the above-mentioned target sample feature vector pair, and determine the above-mentioned first sample intent label as the target intent label of the above-mentioned target query sentence.

[0055] In combination with the second aspect, in a possible implementation manner, the third determining unit is further configured to:

[0056] If the target sample feature vector pair corresponding to the feature vector of the target query sentence is not determined based on the intention prediction model, then the semantics of the target query sentence is determined based on the intention prediction model;

[0057] Determine a target sample query sentence from the sample query sentence set based on the intention prediction model, wherein the semantic similarity between the target sample query sentence and the semantics of the target query sentence is greater than a second similarity threshold;

[0058] The sample intent label of the target sample query sentence is determined as the target intent label of the target query sentence.

[0059] In combination with the second aspect, in a possible implementation manner, the third determining unit is configured to:

[0060] Determine a target historical query statement from each of the above historical query statement sets, wherein the intent label of the above target historical query statement is consistent with the above target intent label;

[0061] The query result of the target historical query statement is determined as the query result of the target query statement.

[0062] In a third aspect, an embodiment of the present application provides a device, the device comprising a processor and a memory, the processor and the memory being connected to each other. The memory is used to store a computer program that supports the terminal device to execute the method provided by the first aspect and / or any possible implementation of the first aspect, the computer program comprising program instructions, and the processor is configured to call the program instructions to execute the method provided by the first aspect and / or any possible implementation of the first aspect.

[0063] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and the computer program is executed by a processor to implement the method provided by the above-mentioned first aspect and / or any possible implementation method of the first aspect.

[0064] In an embodiment of the present application, by obtaining multiple historical query statements and performing synonym replacement on each historical query statement to obtain a sample query statement, the semantics of the sample query statement used to construct the intent prediction model can be further improved to ensure that the sample query statement can truly reflect the user's search intent. On the other hand, the sample query statement obtained after synonym replacement can further expand the number of sample query statements in the sample query statement set, which can improve the prediction accuracy of the intent prediction model. Furthermore, by constructing an intent prediction model through the sample intent label of each sample query statement, while accurately determining the user's query intent, it can also cover a wider range of query topics, which can effectively improve the query quality and have higher applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0065] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0066] Figure 1 It is a flowchart of a method for determining query intent provided in an embodiment of the present application;

[0067] Figure 2 is a schematic diagram of a method for determining a sample query statement provided in an embodiment of the present application;

[0068] Figure 3 is a schematic diagram of another method for determining a sample query statement provided in an embodiment of the present application;

[0069] Figure 4 is a schematic diagram of the structure of a query intention determination device provided in an embodiment of the present application;

[0070] Figure 5 It is a schematic diagram of the structure of the device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0071] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0072] The query intent determination method provided in the embodiment of the present application (for the convenience of description, it can be referred to as the method provided in the embodiment of the present application) can be applied to retrieval and query systems in various fields, can quickly and accurately determine the user's query intent, and then provide the user with query results that meet the user's query, and has high applicability.

[0073] See also Figure 1 , Figure 1 1 is a flow chart of a method for determining query intent provided in an embodiment of the present application. The method for determining query intent provided in an embodiment of the present application may include the following steps S101 to S106.

[0074] S101: Acquire multiple historical query statements and the query result of each historical query statement.

[0075] In some feasible implementations, the method provided in the embodiment of the present application can determine the query result of the target query statement based on the intention prediction model after receiving the target query statement submitted by the user. When constructing the intention prediction model, historical query statements of multiple users can be obtained from various fields, various search databases, and historical search records, wherein the above historical query statements are valid query statements, that is, the above historical query statements are query statements that do not include sensitive words, illegal words, and have corresponding query results. Among them, the specific method for obtaining the above historical query statements can be determined based on the actual application scenario. At the same time, after obtaining multiple historical query statements, the query result of each historical query statement can be obtained, wherein the query result of each historical query statement can be a variety of possible result information corresponding to the historical query statement, or it can be the target result information with the highest click rate and meeting the user's requirements among the multiple result information corresponding to the historical query statement. It can also be determined based on the actual application scenario, and is not limited here.

[0076] In some feasible implementations, in order to ensure that the historical query statements obtained are more representative and common, when obtaining historical query statements, the query frequency of each query statement can be obtained, and the query statement with a query frequency greater than a certain frequency threshold can be determined as a historical query statement. The specific frequency threshold can be determined based on the actual application scenario and is not limited here. Optionally, since users often do not enter long query statements when performing a certain information query, in order to ensure that the historical query statements obtained are more effective, when obtaining historical query statements, the query statement with a text length greater than a preset length threshold can be determined as a historical query statement. The specific preset length threshold can also be determined based on the actual application scenario and is not limited here.

[0077] S102: Determine the query subject of each historical query statement based on the query result of each historical query statement.

[0078] In some feasible implementations, after obtaining the query results of each historical query statement, the query subject of each historical query statement can be determined according to the query results of each historical query statement. Specifically, the query subject of each historical query statement can be determined according to the specific content of the query results, such as sports subjects, food subjects, and circuit subjects, etc. The subject category division and determination method of the specific query subject can be determined based on the actual application scenario, and is not limited here.

[0079] S103, determining a target keyword thesaurus and a target synonym thesaurus corresponding to the query subject, determining the keywords and / or key words to be replaced of each historical query statement based on the target keyword thesaurus, and performing synonym replacement on the keywords and / or key words to be replaced based on the target synonym thesaurus to obtain a sample query statement corresponding to each historical query statement.

[0080] In some feasible implementations, since the multiple historical query statements obtained are all query statements actively input by the user when searching for relevant information, there may be problems such as unclear semantics and inappropriate wording in the multiple historical query statements, which leads to the problem that each historical query statement has a weak correlation with its corresponding query result. Therefore, after determining the query subject of each historical query statement, the target keyword thesaurus and target synonym thesaurus corresponding to the query subject can be used to perform semantic enhancement processing on each historical query statement to improve the correlation between the historical query statement and the query result.

[0081] Specifically, for each historical query statement, the target keyword thesaurus corresponding to its query subject is the words in the query subject that users often use improperly and have inaccurate semantic expressions when searching for queries. For example, when searching for "national statutory holidays", users may enter words such as "national holidays", which leads to the problem that the semantic expression of the query statement entered by the user itself is unclear. The target synonym thesaurus corresponding to its query question is the synonyms corresponding to the above-mentioned target keyword thesaurus for replacing the keywords and / or keywords in the target keyword thesaurus. Among them, the specific determination and expression of keywords and / or keywords and synonyms in the target keyword thesaurus and the target synonym thesaurus corresponding to each query subject can be determined based on the actual application query subject and the actual application scenario, and is not limited here. Further, the historical query statement can be matched with the target keyword thesaurus corresponding to the query subject of the historical query statement, and the keywords and / or keywords in the historical query statement that are the same as those in the target keyword thesaurus are determined as the keywords and / or keywords to be replaced in the historical query statement, that is, the keywords and / or keywords to be replaced in the historical query statement are words that need to be further replaced to enhance the semantics of the historical query statement. Therefore, the above-mentioned keywords and / or key words to be replaced can be replaced with synonyms in the above-mentioned target synonyms to obtain semantically enhanced historical query statements. At this time, the semantically enhanced historical query statements can be used as sample query statements for training the intent prediction model.

[0082] In some feasible implementations, the historical query statements can also be segmented to obtain the keywords and / or keywords of the historical query statements, and the keywords and / or keywords of the historical query statements can be matched with the corresponding target keyword word library to obtain the same keywords and / or keywords. At this time, the same keywords and / or keywords can be determined as the keywords and / or keywords to be replaced by the historical query statements, and then the keywords and / or keywords to be replaced by the historical query statements can be replaced with synonyms based on the above target synonym word library to obtain the sample query statements corresponding to each historical query statement. Among them, when segmenting each historical query statement, the Chinese substring of each historical query statement can be matched with the word segmentation dictionary based on the word segmentation method of string matching, according to the forward maximum matching method (from left to right), the reverse maximum matching method (from right to left), the minimum segmentation (the minimum number of words cut out in each sentence) and the two-way maximum matching (scanning twice from left to right and from right to left). If a certain string is found in the dictionary, the match is successful. At this time, the successfully matched string is a keyword and / or keyword. Optionally, it is also possible to obtain the keywords and / or keywords of each historical query sentence by performing grammatical and semantic analysis on each historical query sentence based on a semantic analysis method, and using syntactic information and semantic information (simulating the process of human understanding of the sentence). Optionally, it is also possible to obtain the keywords and / or keywords of each historical query sentence based on a statistical word segmentation method, using a machine learning model to learn the law of word segmentation and then achieve the segmentation of each historical query sentence, and then obtain the keywords and / or keywords of each historical query sentence. Among them, the above-mentioned statistical word segmentation method includes but is not limited to the maximum probability word segmentation method and the maximum entropy word segmentation method, and the above-mentioned learning model includes but is not limited to the N-gram model, the hidden Markov model, the maximum entropy model, and the conditional random field model, etc., again without restriction. In addition, the historical query sentence can also be segmented based on a Chinese word segmentation tool (such as a THULAC word segmentation tool, an NLPIR word segmentation system, etc.) to obtain the keywords and / or keywords of each historical query sentence. The specific implementation method can be determined based on the actual application scenario, and is not limited here.

[0083] For example, see Figure 2 , Figure 2 Schematic diagram of a method for determining a sample query statement provided by an embodiment of the present application. Figure 2In the example, assuming that a certain historical query is "Little Emperor's historical total score in NBA", the query subject of the historical query can be determined to be "Sports-NBA", and the corresponding target keyword vocabulary can be determined to be the Sports-NBA keyword vocabulary. After matching the historical query with the Sports-NBA vocabulary, the keywords to be replaced in the historical query can be obtained as "Little Emperor" and "Score". Furthermore, the Sports-NBA synonym vocabulary can be used to replace "Little Emperor" and "Score" to obtain the sample query corresponding to the historical query "James' historical total score in NBA", so as to achieve the purpose of replacing the historical query with synonyms to obtain the semantically enhanced sample query.

[0084] S104: Obtain a set of sample query statements, and determine a sample intent label of each sample query statement in the set of sample query statements based on the intent label of each historical query statement.

[0085] In some feasible implementations, since the training query corresponding to each historical query can only represent the query intention of a part of users, each historical query can be reorganized to obtain multiple reorganized query statements, and then the multiple reorganized query statements obtained can also be determined as sample query statements, so as to form a sample query statement set for training the intention prediction model together with the sample query corresponding to each historical query. Specifically, any at least two different sample query statements in the sample query corresponding to each historical query can be combined, that is, any multiple different sample query statements can be combined to obtain multiple reorganized query statements, and each reorganized query statement obtained at this time can be used as a sample query statement in the sample query statement set. Optionally, in order to avoid semantic confusion caused by the long text length of the reorganized query statement, the sample query statements corresponding to each historical query can be screened in advance, and the sample query statements for sentence reorganization whose text length does not exceed the second preset text length can be screened from the sample query statements corresponding to each historical query, and then multiple reorganized query statements are obtained based on the sample query statements for sentence reorganization. Optionally, the sample query statements corresponding to each historical query statement may be reorganized to obtain multiple reorganized query statements, and then a target reorganized query statement whose text length does not exceed a third preset text length may be determined from the multiple reorganized query statements as a sample query statement in the sample query statement set. It should be noted that the specific implementation method of determining multiple reorganized query statements from the sample query statements corresponding to each historical query statement may be determined based on actual application scenarios and is not limited here.

[0086] For example, see Figure 3 , Figure 3is a schematic diagram of another method for determining a sample query statement provided in an embodiment of the present application. Figure 3 In the example, it is assumed that the sample query statements obtained after synonym replacement for each historical query statement include sample query statement 1: "Integration of Beijing, Tianjin and Hebei" and sample query statement 2: "Integration pattern is basically formed". At this time, sample query statement 1 and sample query statement 2 can be reorganized to obtain a reorganized query statement: "Integration pattern of Beijing, Tianjin and Hebei is basically formed". At this time, the reorganized query statement can be used as a new sample query statement together with the sample query statements obtained after synonym replacement to construct a sample query statement set.

[0087] In some feasible implementations, after obtaining a set of sample query statements for training an intent prediction model, a sample intent label of each sample query statement in the set of sample query statements can be determined based on the intent label of each of the above historical query statements. Specifically, for a sample query statement in the set of sample query statements, for a sample query statement obtained after synonym replacement, the intent label of the corresponding historical query statement can be determined as the sample intent label of the sample query statement. For a reorganized query statement in the set of sample query statements, a plurality of corresponding sample query statements can be determined first, and then a plurality of historical query statements corresponding to the above plurality of sample query statements can be determined, and the intent labels of the above plurality of historical query statements can be determined as the sample intent labels of the reorganized query statement. In other words, the sample intent labels of the corresponding plurality of sample query statements can be determined as the sample intent labels of the reorganized query statement. Optionally, since the sample intent labels of the plurality of historical query statements corresponding to each reorganized query statement may be greatly different, the same intent labels in the sample intent labels of the plurality of historical query statements corresponding to each reorganized query statement can be determined as the sample intent label of each reorganized query statement. The specific implementation method can be determined based on the actual application scenario and is not limited here.

[0088] It should be noted that the intent tag of each historical query statement can be determined by its corresponding query result, that is, the intent tag of each historical query statement can be the keywords, summary information, etc. of the corresponding query result. The number of intent tags of each historical query statement can be determined based on the actual application scenario and is not limited here. For example, assuming that a historical query statement is "What is the structure of a block in a blockchain?", according to its corresponding query result, it can be determined that the intent tag corresponding to the historical query statement can be "block header", "block body", etc., or "block header structure", "block body structure", etc., which can be determined based on the actual query results.

[0089] S105: construct an intent prediction model based on the sample query statement set and the sample intent label of each sample query statement.

[0090] In some feasible implementations, after obtaining a set of sample query statements and determining the sample intent label of each sample query statement in the set of sample query statements, an intent prediction model can be constructed based on the set of sample query statements and the sample intent label of each sample query statement. Specifically, the feature vector of each sample query statement can be determined first, which can be based on the TF-IDF algorithm, the word frequency method, the mutual information algorithm, the expected cross entropy algorithm, the quadratic information entropy, the information gain method, the x2 statistic method, the principal component analysis method (Principal Component Analysis, PCA), the simulated annealing algorithm (Simulating Anneal, SA), and the N-Gram algorithm. It can be determined based on the actual application scenario and is not limited here. Further, a multidimensional feature vector can be determined based on the sample intent label of each sample query statement, that is, the number of dimensions of the multidimensional feature vector corresponding to each sample query statement is consistent with the number of its sample intent labels. In other words, the sample intent label of a sample query statement corresponds to a multidimensional feature vector, and a sample intent label of a sample query statement corresponds to a dimensional vector of the above-mentioned multidimensional feature vector. At this time, after obtaining the multidimensional feature vector of each sample query statement, the relevance of each sample intent label of each basic query statement to the query subject of each sample query statement can be determined, and the dimension value of the dimension vector corresponding to the sample intent label with a relevance greater than the preset relevance threshold is determined to be 0, and the dimension value of the dimension vector corresponding to the sample intent label with a relevance greater than the preset relevance threshold is determined to be 1, so as to reduce the dimension of the multidimensional feature vector corresponding to each sample query statement, and at the same time, the sample intent labels with low relevance can be eliminated to avoid prediction errors. At this time, the multidimensional feature vector after dimensionality reduction can be determined as the intent label vector of the sample query statement. Similarly, one sample query statement corresponds to one intent label vector.

[0091] In some feasible implementations, a sample query statement and the corresponding intent label vector can be further determined as a sample feature vector pair to obtain a set of sample feature vector pairs. At this time, text classification methods such as FastText, TextCNN, TextRNN, TextRCNN, and reverse BP neural network algorithms, adaptive resonance theory algorithms, learning vector quantization network algorithms, Kohonen network algorithms, and Hopfield network algorithms can be used to train the sample query statement set and the sample feature vector pair set to obtain an intent prediction model. Among them, the specific prediction method of the above intent prediction model can be determined based on the actual application scenario, and is not limited here.

[0092] S106. When a target query statement submitted by a user is received, a target intent label of the target query statement is determined based on the intent prediction model, and a query result of the target query statement is determined based on the target intent label.

[0093] In some feasible implementations, when a target query statement for submission is received, the target intent label of the target query statement can be first determined based on the intent prediction model. Specifically, the feature vector of the target query statement can be determined first, and the specific determination method is consistent with the method of determining the feature vector of the above-mentioned sample query statement, which will not be repeated here. At this time, the similarity between the feature vector of the sample query statement and the feature vector of the target query statement in each sample feature vector pair can be calculated based on the intent prediction model, which can be specifically determined based on the Pearson correlation coefficient, Euclidean distance, angle cosine, etc. of the feature vectors of each sample query statement and the target query statement, and can be specifically determined based on the actual application scenario, which is not limited here. Among them, the sample feature vector pair corresponding to the feature vector of the query statement with a similarity greater than the first similarity threshold can be determined as the target feature vector pair, and the intent label vector in the target feature vector pair can be determined as the intent label vector of the above-mentioned target query statement, and the sample intent label corresponding to the dimension vector with a dimension value of 1 in the intent label vector is determined as the intent label of the target query statement. It should be particularly noted that the above-mentioned first similarity threshold can also be determined based on the actual application scenario, which is not limited here.

[0094] Further, after determining the intent label of the target query statement, since the similarity between the sample feature vector in the target feature vector pair and the target query statement is greater than the first similarity threshold, the query results of one or more historical query statements corresponding to the sample feature vector in the target feature vector pair can be used as the query result of the target query statement. Optionally, the query results of the historical query statements corresponding to the sample query statements corresponding to the sample feature vectors with a similarity of 100% can be used as the query result of the target query statement. When the similarity is greater than the first similarity threshold and is not 100%, the result information corresponding to the intent label can be determined based on the intent label of the target query statement as the query result of the target query statement. The specific determination method can be determined based on the actual application scenario and is not limited here.

[0095] In some feasible implementations, assuming that the above-mentioned target sample feature vector pair is not determined based on the above-mentioned intent prediction model, the semantics of the target query statement can be determined based on the above-mentioned intent prediction model, and the statements of each sample query statement in the sample query statement set can be determined to be compared with the semantics of the target query statement. When there is a sample query statement in the sample query statement set whose semantic similarity with the target query statement is greater than the second similarity threshold, the sample intent label of the sample query statement can be determined as the intent label of the target query statement. Further, the intent label of the target query statement can be matched with the intent label of each historical query statement to determine the target historical query statement whose intent label is consistent with the intent label of the target query statement. At this time, the query result of the target historical query statement can be obtained, and the query result of the target historical query statement can be determined as the query result of the target query statement.

[0096] In an embodiment of the present application, by obtaining multiple historical query statements and performing synonym replacement on each historical query statement to obtain a sample query statement, the semantics of the sample query statement used to construct the intent prediction model can be further improved to ensure that the sample query statement can truly reflect the user's search intent. On the other hand, the sample query statement obtained after synonym replacement can further expand the number of sample query statements in the sample query statement set, which can improve the prediction accuracy of the intent prediction model. Furthermore, by constructing an intent prediction model through the sample intent label of each sample query statement, while accurately determining the user's query intent, it can also cover a wider range of query topics, which can effectively improve the query quality and have higher applicability.

[0097] See also Figure 4 , Figure 4 1 is a schematic diagram of the structure of a query intention determination device provided in an embodiment of the present application. The device 1 provided in an embodiment of the present application includes:

[0098] An acquisition unit 11 is used to acquire multiple historical query statements and the query result of each historical query statement;

[0099] A first determining unit 12, configured to determine a query subject of each of the above historical query statements based on the query result of each of the above historical query statements;

[0100] The processing unit 13 is used to determine a target keyword thesaurus and a target synonym thesaurus corresponding to the query subject, determine the keywords and / or keywords to be replaced for each of the historical query statements based on the target keyword thesaurus, and perform synonym replacement on the keywords and / or keywords to be replaced based on the target synonym thesaurus to obtain a sample query statement corresponding to each of the historical query statements;

[0101] The second determining unit 14 is used to obtain a sample query statement set, and determine the sample intent label of each sample query statement in the sample query statement set based on the intent label of each historical query statement, wherein the intent label of any historical query statement is determined by the query result of any historical query statement;

[0102] A construction unit 15 is used to construct an intent prediction model based on the sample query statement set and the sample intent label of each sample query statement;

[0103] The third determination unit 16 is used to determine the target intent label of the target query statement based on the intent prediction model when receiving the target query statement submitted by the user, and determine the query result of the target query statement based on the target intent label.

[0104] In some feasible implementations, the second determining unit 14 is configured to:

[0105] Determine a plurality of reorganized query statements from the sample query statements corresponding to each of the above historical query statements, wherein any reorganized query statement is obtained by combining at least two different sample query statements from the sample query statements corresponding to each of the above historical query statements;

[0106] Each reorganized query statement is determined as a sample query statement, and the sample query statements corresponding to each of the reorganized query statements and each of the historical query statements are determined as a sample query statement set.

[0107] In some feasible implementations, the second determining unit 14 is configured to:

[0108] When the first sample query statement in the sample query statement set corresponds to a historical query statement, determining the intent label of the historical query statement as the sample intent label of the first sample query statement;

[0109] When the second sample query statement in the above sample query statement set corresponds to multiple historical query statements, the same intent label is determined from the intent labels of the above multiple historical query statements, and the above same intent label is determined as the sample intent label of the above second sample query statement.

[0110] In some feasible implementations, the construction unit 15 is used to:

[0111] Determine a feature vector of each sample query statement in the sample query statement set, and determine a multidimensional feature vector based on the sample intent label of each sample query statement, wherein a sample intent label of a sample query statement corresponds to a multidimensional feature vector, and a sample intent label of the sample query statement corresponds to a dimensional vector of the multidimensional feature vector;

[0112] Determine the relevance of each sample intent label of each of the above sample query statements to the query subject of each of the above sample query statements, determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than a preset relevance threshold as 0, and determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than the preset relevance threshold as 1, and obtain the intent label vector of each of the above sample query statements, where one sample query statement corresponds to one intent label vector;

[0113] A set of sample feature vector pairs is determined, and the sample query statement set and the sample feature vector pair set are trained to obtain an intent prediction model, wherein a feature vector pair in the sample feature vector pair set includes a feature vector of the sample query statement and a corresponding intent label vector.

[0114] In some feasible implementations, the third determining unit 16 is configured to:

[0115] Determine a feature vector of the target query sentence;

[0116] Determine a target sample feature vector pair corresponding to the feature vector of the target query sentence based on the intention prediction model, wherein the similarity between the feature vector of the sample query sentence included in the target sample feature vector pair and the feature vector of the target query sentence is greater than a first similarity threshold;

[0117] Determine the first sample intent label corresponding to the dimension vector with a dimension value of 1 in the intent label vector included in the above-mentioned target sample feature vector pair, and determine the above-mentioned first sample intent label as the target intent label of the above-mentioned target query sentence.

[0118] In some feasible implementation manners, the third determining unit 16 is further configured to:

[0119] If the target sample feature vector pair corresponding to the feature vector of the target query sentence is not determined based on the intention prediction model, then the semantics of the target query sentence is determined based on the intention prediction model;

[0120] Determine a target sample query sentence from the sample query sentence set based on the intention prediction model, wherein the semantic similarity between the target sample query sentence and the semantics of the target query sentence is greater than a second similarity threshold;

[0121] The sample intent label of the target sample query sentence is determined as the target intent label of the target query sentence.

[0122] In some feasible implementations, the third determining unit 16 is configured to:

[0123] Determine a target historical query statement from each of the above historical query statement sets, wherein the intent label of the above target historical query statement is consistent with the above target intent label;

[0124] The query result of the target historical query statement is determined as the query result of the target query statement.

[0125] In a specific implementation, the device 1000 can execute the above-mentioned functions through its built-in functional modules. Figure 1 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0126] In an embodiment of the present application, by obtaining multiple historical query statements and performing synonym replacement on each historical query statement to obtain a sample query statement, the semantics of the sample query statement used to construct the intent prediction model can be further improved to ensure that the sample query statement can truly reflect the user's search intent. On the other hand, the sample query statement obtained after synonym replacement can further expand the number of sample query statements in the sample query statement set, which can improve the prediction accuracy of the intent prediction model. Furthermore, by constructing an intent prediction model through the sample intent label of each sample query statement, while accurately determining the user's query intent, it can also cover a wider range of query topics, which can effectively improve the query quality and have higher applicability.

[0127] See also Figure 5 , Figure 5 Schematic diagram of the structure of the device provided in the embodiment of the present application. Figure 5 As shown, the device 1000 in this embodiment may include: a processor 1001, a network interface 1004 and a memory 1005. In addition, the above-mentioned device 1000 may also include: a user interface 1003, and at least one communication bus 1002. Among them, the communication bus 1002 is used to realize the connection and communication between these components. Among them, the user interface 1003 may include a display screen (Display), a keyboard (Keyboard), and the user interface 1003 may optionally include a standard wired interface and a wireless interface. The network interface 1004 may optionally include a standard wired interface and a wireless interface (such as a WI-FI interface). The memory 1005 may be a high-speed RAM memory, or it may be a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 1005 may optionally also be at least one storage device located away from the aforementioned processor 1001. As Figure 5 As shown, the memory 1005 as a computer-readable storage medium may include an operating system, a network communication module, a user interface module, and a device control application program.

[0128] exist Figure 5 In the device 1000 shown, the network interface 1004 can provide a network communication function; the user interface 1003 is mainly used to provide an input interface for the user; and the processor 1001 can be used to call the device control application stored in the memory 1005 to achieve:

[0129] Obtain multiple historical query statements and the query results of each historical query statement;

[0130] Determine the query subject of each of the above historical query statements based on the query result of each of the above historical query statements;

[0131] Determine a target keyword thesaurus and a target synonym thesaurus corresponding to the query subject, determine the keywords and / or key words to be replaced for each of the historical query statements based on the target keyword thesaurus, and perform synonym replacement on the keywords and / or key words to be replaced based on the target synonym thesaurus to obtain a sample query statement corresponding to each of the historical query statements;

[0132] Obtain a set of sample query statements, and determine a sample intent label of each sample query statement in the set of sample query statements based on the intent label of each of the above historical query statements, wherein the intent label of any historical query statement is determined by the query result of any of the above historical query statements;

[0133] Building an intent prediction model based on the sample query statement set and the sample intent label of each sample query statement;

[0134] When a target query statement submitted by a user is received, a target intent label of the target query statement is determined based on the intent prediction model, and a query result of the target query statement is determined based on the target intent label.

[0135] In some feasible implementations, the processor 1001 is configured to:

[0136] Determine a plurality of reorganized query statements from the sample query statements corresponding to each of the above historical query statements, wherein any reorganized query statement is obtained by combining at least two different sample query statements from the sample query statements corresponding to each of the above historical query statements;

[0137] Each reorganized query statement is determined as a sample query statement, and the sample query statements corresponding to each of the reorganized query statements and each of the historical query statements are determined as a sample query statement set.

[0138] In some feasible implementations, the processor 1001 is configured to:

[0139] When the first sample query statement in the sample query statement set corresponds to a historical query statement, determining the intent label of the historical query statement as the sample intent label of the first sample query statement;

[0140] When the second sample query statement in the above sample query statement set corresponds to multiple historical query statements, the same intent label is determined from the intent labels of the above multiple historical query statements, and the above same intent label is determined as the sample intent label of the above second sample query statement.

[0141] In some feasible implementations, the processor 1001 is configured to:

[0142] Determine a feature vector of each sample query statement in the sample query statement set, and determine a multidimensional feature vector based on the sample intent label of each sample query statement, wherein a sample intent label of a sample query statement corresponds to a multidimensional feature vector, and a sample intent label of the sample query statement corresponds to a dimensional vector of the multidimensional feature vector;

[0143] Determine the relevance of each sample intent label of each of the above sample query statements to the query subject of each of the above sample query statements, determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than a preset relevance threshold as 0, and determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than the preset relevance threshold as 1, and obtain the intent label vector of each of the above sample query statements, where one sample query statement corresponds to one intent label vector;

[0144] A set of sample feature vector pairs is determined, and the sample query statement set and the sample feature vector pair set are trained to obtain an intent prediction model, wherein a feature vector pair in the sample feature vector pair set includes a feature vector of the sample query statement and a corresponding intent label vector.

[0145] In some feasible implementations, the processor 1001 is configured to:

[0146] Determine a feature vector of the target query sentence;

[0147] Determine a target sample feature vector pair corresponding to the feature vector of the target query sentence based on the intention prediction model, wherein the similarity between the feature vector of the sample query sentence included in the target sample feature vector pair and the feature vector of the target query sentence is greater than a first similarity threshold;

[0148] Determine the first sample intent label corresponding to the dimension vector with a dimension value of 1 in the intent label vector included in the above-mentioned target sample feature vector pair, and determine the above-mentioned first sample intent label as the target intent label of the above-mentioned target query sentence.

[0149] In some feasible implementations, the processor 1001 is further configured to:

[0150] If the target sample feature vector pair corresponding to the feature vector of the target query sentence is not determined based on the intention prediction model, then the semantics of the target query sentence is determined based on the intention prediction model;

[0151] Determine a target sample query sentence from the sample query sentence set based on the intention prediction model, wherein the semantic similarity between the target sample query sentence and the semantics of the target query sentence is greater than a second similarity threshold;

[0152] The sample intent label of the target sample query sentence is determined as the target intent label of the target query sentence.

[0153] In some feasible implementations, the processor 1001 is configured to:

[0154] Determine a target historical query statement from each of the above historical query statement sets, wherein the intent label of the above target historical query statement is consistent with the above target intent label;

[0155] The query result of the target historical query statement is determined as the query result of the target query statement.

[0156] It should be understood that in some feasible implementations, the processor 1001 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The memory may include a read-only memory and a random access memory, and provide instructions and data to the processor. A portion of the memory may also include a non-volatile random access memory. For example, the memory may also store information about the device type.

[0157] In a specific implementation, the device 1000 can execute the above-mentioned functions through its built-in functional modules. Figure 1 For the implementation methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0158] In an embodiment of the present application, by obtaining multiple historical query statements and performing synonym replacement on each historical query statement to obtain a sample query statement, the semantics of the sample query statement used to construct the intent prediction model can be further improved to ensure that the sample query statement can truly reflect the user's search intent. On the other hand, the sample query statement obtained after synonym replacement can further expand the number of sample query statements in the sample query statement set, which can improve the prediction accuracy of the intent prediction model. Furthermore, by constructing an intent prediction model through the sample intent label of each sample query statement, while accurately determining the user's query intent, it can also cover a wider range of query topics, which can effectively improve the query quality and have higher applicability.

[0159] The present application also provides a computer-readable storage medium, which stores a computer program and is executed by a processor to implement Figure 1 For the methods provided in each step, please refer to the implementation methods provided in the above steps for details, which will not be repeated here.

[0160] The computer-readable storage medium may be an internal storage unit of the task processing device provided in any of the aforementioned embodiments, such as a hard disk or memory of an electronic device. The computer-readable storage medium may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., equipped on the electronic device. The computer-readable storage medium may also include a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc. Further, the computer-readable storage medium may also include both an internal storage unit of the electronic device and an external storage device. The computer-readable storage medium is used to store the computer program and other programs and data required by the electronic device. The computer-readable storage medium may also be used to temporarily store data that has been output or is to be output.

[0161] The terms "first", "second", etc. in the claims, specification and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. Mentioning "embodiment" in this article means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. Displaying the phrase at various positions in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments. The term "and / or" used in the present application specification and the attached claims refers to any combination of one or more of the items listed in association and all possible combinations, and includes these combinations.

[0162] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in terms of function in the above description. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0163] The above disclosure is only the preferred embodiment of the present application, which certainly cannot be used to limit the scope of rights of the present application. Therefore, equivalent changes made according to the claims of the present application are still within the scope covered by the present application.

Claims

1. A method for determining query intent, It is characterized in that The method comprises: Obtain multiple historical query statements and the query results of each historical query statement; Determining a query subject of each historical query statement based on the query result of each historical query statement; Determine a target keyword thesaurus and a target synonym thesaurus corresponding to the query subject, determine the keywords and / or key words to be replaced of each historical query statement based on the target keyword thesaurus, and perform synonym replacement on the keywords and / or key words to be replaced based on the target synonym thesaurus to obtain a sample query statement corresponding to each historical query statement; Obtain a set of sample query statements, and determine a sample intent label of each sample query statement in the set of sample query statements based on the intent label of each historical query statement, wherein the intent label of any historical query statement is determined by a query result of any historical query statement; Determine a feature vector of each sample query statement in the sample query statement set, and determine a multidimensional feature vector based on the sample intent label of each sample query statement, wherein a sample intent label of a sample query statement corresponds to a multidimensional feature vector, and a sample intent label of a sample query statement corresponds to a dimensional vector of the multidimensional feature vector; Determine the relevance of each sample intent label of each sample query statement to the query subject of each sample query statement, determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than a preset relevance threshold as 0, and determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than the preset relevance threshold as 1, and obtain the intent label vector of each sample query statement, where one sample query statement corresponds to one intent label vector; Determine a set of sample feature vector pairs, and train the sample query statement set and the sample feature vector pair set to obtain an intent prediction model, wherein a feature vector pair in the sample feature vector pair set includes a feature vector of the sample query statement and a corresponding intent label vector; When a target query statement submitted by a user is received, a target intent label of the target query statement is determined based on the intent prediction model, and a query result of the target query statement is determined based on the target intent label.

2. The method according to claim 1, It is characterized in that The obtaining of a sample query statement set includes: Determine a plurality of reorganized query statements from the sample query statements corresponding to each of the historical query statements, wherein any reorganized query statement is obtained by combining at least two different sample query statements from the sample query statements corresponding to each of the historical query statements; Each reorganized query statement is determined as a sample query statement, and the sample query statements corresponding to each reorganized query statement and each historical query statement are determined as a sample query statement set.

3. The method according to claim 2, It is characterized in that The determining of the sample intent label of each sample query statement in the sample query statement set based on the intent label of each historical query statement includes: When a first sample query statement in the sample query statement set corresponds to a historical query statement, determining the intent label of the historical query statement as the sample intent label of the first sample query statement; When the second sample query statement in the sample query statement set corresponds to multiple historical query statements, the same intent label is determined from the intent labels of the multiple historical query statements, and the same intent label is determined as the sample intent label of the second sample query statement.

4. The method according to claim 1, It is characterized in that Determining the target intent label of the target query sentence based on the intent prediction model includes: Determining a feature vector of the target query sentence; Determine, based on the intention prediction model, a target sample feature vector pair corresponding to the feature vector of the target query sentence, wherein the similarity between the feature vector of the sample query sentence included in the target sample feature vector pair and the feature vector of the target query sentence is greater than a first similarity threshold; Determine a first sample intent label corresponding to a dimension vector having a dimension value of 1 in the intent label vector included in the target sample feature vector pair, and determine the first sample intent label as a target intent label of the target query statement.

5. The method according to claim 4, It is characterized in that The method further comprises: If the target sample feature vector pair corresponding to the feature vector of the target query sentence is not determined based on the intention prediction model, determining the semantics of the target query sentence based on the intention prediction model; Determining a target sample query statement from the sample query statement set based on the intention prediction model, wherein the semantic similarity between the target sample query statement and the semantics of the target query statement is greater than a second similarity threshold; The sample intent label of the target sample query statement is determined as the target intent label of the target query statement.

6. The method according to claim 5, It is characterized in that The step of determining the query result of the target query sentence based on the target intent tag includes: Determining a target historical query statement from the multiple historical query statements, wherein the intent tag of the target historical query statement is consistent with the target intent tag; The query result of the target historical query statement is determined as the query result of the target query statement.

7. A query intention determination device, It is characterized in that The determining device comprises: An acquisition unit, used to acquire multiple historical query statements and the query result of each historical query statement; A first determining unit, configured to determine a query subject of each historical query statement based on a query result of each historical query statement; A processing unit is used to determine a target keyword thesaurus and a target synonym thesaurus corresponding to the query subject, determine the keywords and / or keywords to be replaced of each historical query statement based on the target keyword thesaurus, and perform synonym replacement on the keywords and / or keywords to be replaced based on the target synonym thesaurus to obtain a sample query statement corresponding to each historical query statement; A second determination unit is used to obtain a sample query statement set, and determine a sample intent label of each sample query statement in the sample query statement set based on the intent label of each historical query statement, wherein the intent label of any historical query statement is determined by a query result of any historical query statement; A construction unit is used to determine the feature vector of each sample query statement in the sample query statement set, determine a multidimensional feature vector based on the sample intent label of each sample query statement, the sample intent label of a sample query statement corresponds to a multidimensional feature vector, and a sample intent label of a sample query statement corresponds to a dimension vector of the multidimensional feature vector; determine the relevance of each sample intent label of each sample query statement to the query subject of each sample query statement, determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than a preset relevance threshold as 0, and determine the dimension value of the dimension vector corresponding to the sample intent label whose relevance is greater than the preset relevance threshold as 1, to obtain the intent label vector of each sample query statement, and one sample query statement corresponds to one intent label vector; determine a set of sample feature vector pairs, train the sample query statement set and the sample feature vector pair set to obtain an intent prediction model, and a feature vector pair in the sample feature vector pair set includes the feature vector of the sample query statement and the corresponding intent label vector; The third determination unit is used to determine the target intent label of the target query statement based on the intent prediction model when receiving the target query statement submitted by the user, and determine the query result of the target query statement based on the target intent label.

8. A device, It is characterized in that comprising a processor and a memory, wherein the processor and the memory are connected to each other; The memory is used to store a computer program, the computer program includes program instructions, and the processor is configured to call the program instructions to execute the method according to any one of claims 1 to 6.

9. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program is executed by a processor to implement the method according to any one of claims 1 to 6.