Service provider information query method, device, electronic device and storage medium
The text classification machine learning model is used to predict the keywords input by the user, which solves the problem of inaccurate query results in the existing technology and achieves higher accuracy and user experience.
Patent Information
- Application Number
- CN201910907622.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-09-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2040-08-19
AI Technical Summary
In the existing technology, when users enter keyword queries on the client, they cannot accurately identify the query requirements, resulting in low accuracy of query results.
A query method based on service provider information is adopted, and the text classification machine learning model is used to predict based on the keywords and historical service information input by the user, determine the probability that the keyword matches the preset type, and output the accuracy evaluation results and push them to the user.
It improves the accuracy and experience of user query results, enables more accurate identification of user needs, and obtains accurate query results.
Smart Images

Figure CN111858922B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data query technology, and in particular to a service provider information query method, device, electronic device and storage medium. Background Art
[0002] At present, with the rapid development of network informatization, people have more and more demands for data query services. For example, the query functions provided in many clients (applications) can query locations, shops, enterprises, etc.
[0003] In the prior art, users usually input relevant keywords in a query interface provided by a client, and then perform a query based on the keywords through a search engine to obtain corresponding results.
[0004] However, using the existing technology, the query results obtained based only on keywords are not necessarily the content that the user actually wants to query, and the accuracy is not high. Summary of the invention
[0005] In view of this, the purpose of this application is to provide a service provider information query method, device, electronic device and storage medium, which can predict the user's service provider query results through service provider query information and text classification machine learning model, so as to achieve the technical effect of accurately identifying the user's query needs and obtaining accurate query results.
[0006] In a first aspect, an embodiment of the present application provides a method for querying service provider information, including:
[0007] Obtaining service provider query information, the service provider query information includes: user ID, and keywords of the service provider to be queried;
[0008] According to the service provider query information and the text classification machine learning model, obtain the probability that the service provider keyword to be queried meets the preset type to be queried, and determine whether the probability is not less than a first preset threshold;
[0009] If the probability is not less than the first preset threshold, at least one pending service provider corresponding to the service provider keyword to be queried and the accuracy evaluation result corresponding to each pending service provider are output, wherein the text classification machine learning model is obtained through training based on historical service information.
[0010] Optionally, before obtaining the service provider query information, the method further includes:
[0011] Obtaining historical service information, where the historical service information includes historical service order information, historical service provider query information, service provider information, and historical service provider query results;
[0012] Based on historical service information, a text classification machine learning model is trained.
[0013] Furthermore, based on the historical service information, a text classification machine learning model is trained, including:
[0014] Identify historical query service provider keywords and historical service provider query results in historical service provider query information;
[0015] Obtaining a historical query service provider keyword corresponding to a historical query service provider query result, wherein one historical query service provider query result corresponds to multiple historical query service provider keywords, and / or one historical query service provider keyword corresponds to multiple historical query service provider query results;
[0016] According to the historical query service keywords corresponding to the historical service query results, a text classification machine learning model is trained.
[0017] Optionally, before obtaining the service provider query information, the method further includes:
[0018] Obtaining historical service information, where the historical service information includes historical service order information, historical service provider query information, service provider information, and historical service provider query results;
[0019] Based on historical service information, a text classification machine learning model is trained.
[0020] Furthermore, after outputting the pending service provider and the accuracy evaluation result corresponding to the pending service provider, the method further includes:
[0021] Compare the accuracy evaluation result corresponding to each pending service provider with a second preset threshold;
[0022] If at least one accuracy evaluation result is not less than the second preset threshold, at least one pending service provider corresponding to the accuracy evaluation result not less than the second preset threshold is pushed to the user.
[0023] Furthermore, after outputting the pending service provider and the accuracy evaluation result corresponding to the pending service provider, the method further includes:
[0024] Compare the accuracy evaluation result corresponding to the pending service provider with the highest accuracy evaluation result with a third preset threshold;
[0025] If the accuracy evaluation result is not less than the third preset threshold, the unique service provider corresponding to the third preset threshold is pushed to the user.
[0026] Furthermore, after determining whether there is a service provider corresponding to the service provider keyword to be queried, the method further includes:
[0027] If it is determined that there is at least one pending service provider corresponding to the service provider keyword to be queried, and if there are multiple pending service providers, the multiple pending service providers are sorted according to a preset sorting model to obtain sorting results corresponding to the multiple pending service providers.
[0028] Furthermore, the above method also includes:
[0029] The sorting results are updated according to the accuracy evaluation results corresponding to each pending service provider and the preset sorting model.
[0030] In a second aspect, an embodiment of the present application provides a service provider information query device, including: an acquisition module, a judgment module and an output module;
[0031] The acquisition module is used to acquire the service provider query information, the service provider query information includes: user identification, and keywords of the service provider to be queried;
[0032] A judgment module, used to obtain the probability that the service provider keyword to be queried meets the preset type to be checked according to the service provider query information and the text classification machine learning model, and judge whether the probability is not less than a first preset threshold;
[0033] The output module is used to output at least one pending service provider corresponding to the keyword of the service provider to be queried and the accuracy evaluation result corresponding to each pending service provider if the probability is not less than a first preset threshold, wherein the text classification machine learning model is obtained through training based on historical service information.
[0034] Optionally, the device further comprises: a training module;
[0035] The acquisition module is further used to acquire historical service information before acquiring the service provider query information, wherein the historical service information includes historical service order information, historical service provider query information, service provider information and historical service provider query results;
[0036] The training module is used to train a text classification machine learning model based on historical service information.
[0037] Furthermore, the training module is used to train a text classification machine learning model based on historical service information, specifically including:
[0038] Identify historical query service provider keywords and historical service provider query results in historical service provider query information;
[0039] Obtaining a historical query service provider keyword corresponding to a historical query service provider query result, wherein one historical query service provider query result corresponds to multiple historical query service provider keywords, and / or one historical query service provider keyword corresponds to multiple historical query service provider query results;
[0040] According to the historical query service keywords corresponding to the historical service query results, a text classification machine learning model is trained.
[0041] Furthermore, the above device also includes:
[0042] A first comparison module, configured to output the pending service providers and the accuracy evaluation results corresponding to the pending service providers, and then compare the accuracy evaluation results corresponding to the pending service providers with a second preset threshold;
[0043] The first push module is used to push at least one pending service party corresponding to the second preset threshold to the user if at least one accuracy evaluation result is not less than the second preset threshold.
[0044] Furthermore, the above device also includes:
[0045] A second comparison module is used to compare the accuracy evaluation result corresponding to the pending service party with the highest accuracy evaluation result with a third preset threshold value after outputting the pending service party and the accuracy evaluation results corresponding to the pending service party;
[0046] The second push module is used to push the only service provider corresponding to the third preset threshold to the user if the accuracy evaluation result is not less than the third preset threshold.
[0047] Furthermore, the above-mentioned device also includes: a sorting module, which is used to, after determining whether there is a service party corresponding to the service party keyword to be queried, if it is determined that there is at least one pending service party corresponding to the service party keyword to be queried, and if there are multiple pending service parties, sort the multiple pending service parties according to a preset sorting model to obtain sorting results corresponding to the multiple pending service parties.
[0048] Furthermore, the above-mentioned device also includes: an updating module, which is used to update the sorting results according to the accuracy evaluation results corresponding to each pending service provider and a preset sorting model.
[0049] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, the memory storing machine-readable instructions executable by the processor, when the electronic device is running, the processor and the memory communicate through the bus, and the processor executes the machine-readable instructions to perform the steps of the service-side information query method as described in the first aspect.
[0050] In a fourth aspect, an embodiment of the present application further provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the service provider information query method as described in the first aspect are executed.
[0051] Based on any of the above aspects, the present application has the following beneficial effects:
[0052] The embodiment of the present application obtains service provider query information, makes predictions based on the service provider query information and a text classification machine learning model, and determines whether there is a service provider corresponding to the service provider keyword to be queried, then outputs the pending service provider and the accuracy assessment result corresponding to the pending service provider. Since the text classification machine learning model is trained based on historical service information, and the service provider keywords to be queried are predicted based on the text classification machine learning model, the user's query needs can be identified more accurately, and accurate query results can be obtained for the user, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0054] Figure 1 A schematic diagram of the architecture of a service system provided by an embodiment of the present application is shown;
[0055] Figure 2 A flow chart of a service provider information query method provided in an embodiment of the present application is shown;
[0056] Figure 3 Another flow chart of the service provider information query method provided in an embodiment of the present application is shown;
[0057] Figure 4 Another flow chart of the service provider information query method provided in the embodiment of the present application is shown;
[0058] Figure 5 Another flow chart of the service provider information query method provided in the embodiment of the present application is shown;
[0059] Figure 6 Another flow chart of the service provider information query method provided in the embodiment of the present application is shown;
[0060] Figure 7 A schematic diagram of the structure of a service provider information query device provided in an embodiment of the present application is shown;
[0061] Figure 8 Another structural schematic diagram of the service provider information query device provided in an embodiment of the present application is shown;
[0062] Fig. 9 A schematic structural diagram of an electronic device provided in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0063] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.
[0064] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0065] In order to enable those skilled in the art to use the contents of this application, the following implementation methods are given in combination with the specific application scenario "the interactive process of querying service provider information during the service process", which can be: ride-hailing service, meal delivery service, bicycle service, payment service, etc. For those skilled in the art, the general principles defined here can be applied to other embodiments and application scenarios without departing from the spirit and scope of this application. Although this application mainly describes the process of querying chain stores during the ride-hailing service, it should be understood that this is only an exemplary embodiment.
[0066] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.
[0067] The terms "passenger", "requester", "service requester" and "customer" in this application are used interchangeably to refer to individuals, entities or tools that can request or order services. The terms "driver", "service provider", "service provider" and "supplier" in this application are used interchangeably to refer to individuals, entities or tools that can provide services. The term "user" in this application may refer to an individual, entity or tool that requests a service, orders a service, provides a service or facilitates the provision of a service. For example, a user may be a passenger, a driver, an operator, etc., or any combination thereof. In this application, "passenger" and "passenger terminal" are used interchangeably, and "driver" and "driver terminal" are used interchangeably.
[0068] The terms "service request" and "order" in this application are used interchangeably to refer to a request initiated by a passenger, a service requester, a driver, a service provider, a supplier, etc., or any combination thereof. The "service request" or "order" may be accepted by a passenger, a service requester, a driver, a service provider, a supplier, etc., or any combination thereof. A service request may be charged or free of charge.
[0069] Before the present application was filed, the existing technical solution was that people usually input relevant keywords, query data through search engines, and obtain corresponding results. The technical problem caused by this is that it is impossible to accurately identify the user's query needs and obtain accurate query results. However, the embodiment of the present application provides a service party information query method, which accurately predicts the service party query results through service party query information and text classification machine learning models, thereby achieving the technical effect of accurately identifying the user's query needs and obtaining accurate query results.
[0070] One aspect of the present application relates to a service provider information query system. The system can establish a connection between a service requester terminal and a service provider terminal through service provider query information, and accurately predict the service provider query results through the service provider query information and a text classification machine learning model, thereby achieving the technical effect of accurately identifying the user's query needs and obtaining accurate query results.
[0071] Figure 1 1 is a schematic diagram of the architecture of a service provider information query system 100 provided in an embodiment of the present application. For example, the service provider information query system 100 may be an online transportation service platform for transportation services such as taxis, chauffeur services, express trains, carpooling, bus services, driver rentals, or shuttle services, or any combination thereof. The service provider information query system 100 may include one or more of a server 110, a network 120, a service requester terminal 130, a service provider terminal 140, and a database 150.
[0072] In some embodiments, the server 110 may include a processor. The processor may process information and / or data related to the service request to perform one or more functions described in the present application. For example, the processor may determine the target vehicle based on the service request obtained from the service requester terminal 130. In some embodiments, the processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). By way of example only, the processor may include a central processing unit (CPU), an application specific integrated circuit (ASIC), an application specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a field programmable gate array (FPGA), a programmable logic device (PLD), a controller, a microcontroller unit, a reduced instruction set computer (RISC), or a microprocessor, or any combination thereof.
[0073] In some embodiments, the device types corresponding to the service requester terminal 130 and the service provider terminal 140 may be mobile devices, such as smart home devices, wearable devices, smart mobile devices, virtual reality devices, or augmented reality devices, etc., or they may be tablet computers, laptop computers, or built-in devices in motor vehicles, etc.
[0074] In some embodiments, the database 150 may be connected to the network 120 to communicate with one or more components (e.g., the server 110, the service requester terminal 130, the service provider terminal 140, etc.) in the service information query system 100. One or more components in the service information query system 100 may access data or instructions stored in the database 150 via the network 120. In some embodiments, the database 150 may be directly connected to one or more components in the service information query system 100, or the database 150 may also be part of the server 110.
[0075] The following is combined with the above Figure 1The content described in the service provider information query system 100 shown is used to explain in detail the service provider information query method provided in the embodiment of the present application.
[0076] Reference Figure 2 As shown, it is a flow chart of a service provider information query method provided in an embodiment of the present application. The method can be executed by the service provider terminal 140 in the service provider information query system 100. The specific execution process is:
[0077] Step 101: Obtain service provider query information, which includes: user identification and keywords of the service provider to be queried.
[0078] For example, when a user wants to take a taxi, he wants to find a chain hotel near the destination. At this time, the user will enter the keyword of the chain hotel in real time, for example, 7 Days Inn. The service provider obtains the service query information of the user, that is, the user ID, which can be the user's name, mobile phone number, registered account, etc., which can identify the user, and the keyword of the service provider to be queried, for example: 7 Days, 7 Days Inn, 7Days Inn, etc., which can identify the keyword or character string of the service provider. In addition, the types of keywords and character strings can be Chinese, English, Pinyin, simplified spelling, and even text expressions with typos, etc., but are not limited to this.
[0079] Step 102: According to the service provider query information and the text classification machine learning model, obtain the probability that the service provider keyword to be queried meets the preset type to be queried, and determine whether the probability is greater than a first preset threshold.
[0080] Specifically, the query needs of users are predicted based on the service provider query information obtained above and the text classification machine learning model, wherein the text classification machine learning model can use FastText (fast text classifier). FastText is a word vector and text classification tool open sourced by Facebook. Its characteristic is that it is fast and can greatly shorten the training time while maintaining the classification effect. It is suitable for large-scale data processing and can support multi-language expression. A word sequence (a paragraph of text or a sentence) is input through the FastText model, and the probability that the word sequence belongs to different categories is output. In this application, the text classification machine learning model is based on the historical service The service information is obtained, and the probability that the keyword of the service party to be queried meets the preset type to be checked can be obtained according to the service party query information and the trained text classification machine learning model, wherein the preset type to be checked can be a chain brand service party, an independent service party, a specific service party, etc. The specific type setting can be set according to the actual situation. For example, if the keyword of the service party to be queried is "7 days", the probability value of "7 days" meeting the chain brand service party is 80%, and it is judged whether the probability value corresponding to "7 days" is not less than the first preset threshold value. Assuming that the first threshold value is 60%, it means that the keyword of the service party to be queried meets the preset type to be checked, that is, "7 days" is the type of the chain brand service party. For example, if the keyword of the service party to be queried is "Beijing", the probability value obtained is 0, which means that "Beijing" does not meet the preset type to be checked, and there will be no pending service party corresponding to the chain brand service party. The specific type can also be determined according to the actual situation, which is not limited here.
[0081] Step 103: If the probability is not less than the first preset threshold, output at least one pending service provider corresponding to the keyword of the service provider to be queried and the accuracy evaluation result corresponding to each pending service provider, wherein the text classification machine learning model is obtained by training based on historical service information.
[0082] Specifically, if the probability that the keyword of the service provider to be queried meets the preset type to be checked is not less than the first preset threshold, it means that it meets the requirements of the type to be checked, and at least one pending service provider corresponding to the keyword of the service provider to be queried will continue to be obtained. These pending service providers may be words whose names contain the same or similar words as the keyword of the service provider to be queried. Continuing with the above example, when the keyword of the service provider to be queried is "7 days", it meets the type to be checked of the chain brand service provider, then the text classification machine learning model can be used to obtain multiple pending service providers such as "7 Days Hotel Chain" and "7 Days Premium", as well as the corresponding accuracy evaluation results. The accuracy evaluation results can be expressed as probability values, or can be expressed in grades such as accurate, inaccurate, and fuzzy. Among them, using probability values as accuracy evaluation results can be more accurate. For example, the probability of "7 Days Hotel Chain" is 80%, and the probability of "7 Days Premium" is 20%. In short, the sum of the probabilities output by each pending service provider is 1, which can be determined according to actual conditions and is not limited here.
[0083] In the service provider information query method provided in the present embodiment, by obtaining the service provider query information, based on the service provider query information and the text classification machine learning model, it is first determined whether the service provider keyword to be queried meets the preset type to be checked. If it meets the preset type to be checked, at least one pending service provider corresponding to the service provider keyword to be queried and the accuracy evaluation result corresponding to each pending service provider are obtained. Since the text classification machine learning model is trained based on historical service information, and the text classification machine learning model is used to first determine whether the service provider keyword to be queried meets the preset type to be checked, and then at least one pending service provider corresponding to the service provider keyword to be queried and the accuracy evaluation result corresponding to each pending service provider are determined, the user's query needs can be identified more accurately, and accurate query results can be obtained for the user, thereby improving the user experience.
[0084] Optional, see Figure 3 As shown, before obtaining the service provider query information, the above method also includes:
[0085] Step 201: Obtain historical service information.
[0086] Specifically, the historical service information may include historical service order information, historical service provider query information, service provider information, and historical service provider query results, etc. The historical service order information may be historical travel order information, including departure place, destination, time, etc., or historical meal order information, including restaurant address, meal delivery address, time, etc., or historical housekeeping service order information, including housekeeping company address, housekeeping service address, time, etc. The historical service provider query information includes the user identification and the user's historical query service provider keywords. For example, it can be the historical query service provider keywords such as "7 days", "Seven days", "7tian", "7D" entered by user A and the historical query service provider results are "7 Days Hotel Chain" and / or "7 Days Premium", or it can be the historical query service provider keywords such as "McDonald's", "Mc", "McDonald's", "Mcd" entered by user B and the historical query service provider result is "McDonald's"; the service provider information may include the service provider name, address, telephone number and identification information, etc. The service provider identification result may include one historical service provider query result corresponding to multiple historical query service provider keywords, and / or one historical query service provider keyword corresponding to multiple historical service provider query results. By obtaining the above-mentioned historical service information, it is mainly intended to mine the historical information of the user query service provider from the historical service information, obtain the historical query service provider keywords, character strings, historical service provider query results and service provider numbers or identification codes corresponding to the historical service provider query results, but is not limited to this.
[0087] Step 202: Train a text classification machine learning model based on historical service information.
[0088] Among them, the historical service information can select a data set for a certain period of time according to actual conditions, and input the data set into a text classification machine learning model for training to obtain a trained text classification machine learning model. For example, the text classification machine model can be a FastText model. The FastText model is used to input historical query keywords, character strings and other word segmentation results and N-gram features, where N can be an integer greater than or equal to 2, and output service provider information and service provider query results. The service provider query results include the service provider identification and the probability of the service provider corresponding to the query service provider keyword, but are not limited to FastText. Different text classification machine learning models can be selected according to actual conditions.
[0089] Further, refer to Figure 4 As shown in the figure, based on the historical service information, a text classification machine learning model is trained, including:
[0090] Step 301: Identify historical query service provider keywords and historical service provider query results in historical service provider query information.
[0091] Step 302: Obtain a historical query service provider keyword corresponding to a historical query service provider query result, wherein one historical query service provider query result corresponds to multiple historical query service provider keywords, and / or one historical query service provider keyword corresponds to multiple historical query service provider query results.
[0092] Step 303: Train a text classification machine learning model based on the historical query service provider keywords corresponding to the historical service provider query results.
[0093] Specifically, according to the historical service information obtained above, the historical query service provider keywords and historical service provider query results in the historical service information can be identified. For example, the historical query service provider keywords can be "7 days", "7 days hotel", "7 days catering", "Seven Day", "7tian", "7D", etc., and the historical query service provider results can be "7 Days Hotel Chain", "7 Days Premium", etc. According to the identified historical query service provider keywords and historical service provider query results, the historical query service provider keywords corresponding to the historical service provider query results can be obtained, that is, one historical service provider query result corresponds to multiple historical query service provider keywords, and / or, one historical query service provider keyword corresponds to multiple historical service provider query results, for example: the historical query service provider keywords corresponding to "7 Days Hotel Chain" are "7 days", "7 Days Hotel", "SevenDay", "7tian", "7D", etc., and the historical query service provider keywords corresponding to "7 Days Premium" are "7 days", "7 Days Catering", "Seven Day", "7tian", "7D", etc. In addition, according to the above correspondence, the following historical query service keywords "7 days", "Seven Days" can also be obtained. Day", "7tian", and "7D" can all correspond to historical service provider query results such as "7 Days Inn", "7 Days Premium" and other service providers. Then, based on the historical query service provider keywords corresponding to these historical service provider query results, a text classification machine learning model can be trained, and the query service provider keywords input by the user in real time are input into the text classification machine learning model to determine whether there is at least one pending service provider corresponding to the query service provider keywords.
[0094] It should be noted that the present application is not limited to training models based on historical service information, but may also be based on experience in configuring historical query service keywords corresponding to historical service query results.
[0095] An embodiment is given below, which is to train a text classification machine learning model for obtaining historical service information, where one historical service query result corresponds to multiple historical query service keywords, and the detailed description is as follows:
[0096] Table 1 shows a result table of a text classification machine learning model training provided in an embodiment of the present application. As shown in Table 1, the historical service provider query results corresponding to the user's historical query service provider keywords are given below.
[0097] At this time, when the user's historical service provider to be queried is "McDonald's fast food chain", first, the historical service provider query (query) data set obtained from the historical service information, the service provider number (code) trained by the text classification machine learning model, the service provider name (name) and the accuracy evaluation result (prob) can be used.
[0098] Table 1
[0099] query code number name prob probability value McDonald's 53115 McDonald's 0.9736367 McDonald's Sweet 53115 McDonald's 0.1111111 McDonald's 53115 McDonald's 0.9577664 Mc 53115 McDonald's 0.6232382 McDonald's 53115 McDonald's 0.704918 McDonald's 53115 McDonald's 0.9224877 McDonald's 53115 McDonald's 0.6 McDonald's 53115 McDonald's 0.9099274 mai 53115 McDonald's 0.2624348 Mai dang l 53115 McDonald's 0.9280443 Mai dang lao 53115 McDonald's 0.9089953 Mai Dang 53115 McDonald's 0.9103967 mc 53115 McDonald's 0.0974961 mai d 53115 McDonald's 0.5830904 Pawn 53115 McDonald's 0.9064748 Mcd 53115 McDonald's 0.8902439 McDonald 53115 McDonald's 0.903876 mdl 53115 McDonald's 0.5598313 maidanglao 53115 McDonald's 0.8971119 McDonald's Lao 53115 McDonald's 0.9326241 Mcdonald 53115 McDonald's 0.8927944 Mai Dang 53115 McDonald's 0.8964758 Mai Dan 53115 McDonald's 0.9094017
[0100] From the information in Table 1 above, it can be seen that this method can identify the service provider keywords to be queried in Chinese, English, Pinyin, simplified spelling, and even with typos, and can accurately give the service providers corresponding to these service provider keywords to be queried based on these keywords, and give the corresponding accuracy evaluation results, that is, the probability value. This probability value can reflect the possibility that the query service provider keyword corresponds to this query result. The larger the probability value, the higher the possibility. This probability value can be considered in the process of training the model or recommending the query results.
[0101] Further, see Figure 5 As shown, after outputting the pending service provider and the accuracy evaluation result corresponding to the pending service provider, the above method further includes:
[0102] Step 401: Compare the accuracy evaluation result corresponding to each pending service provider with a second preset threshold.
[0103] Step 402: If at least one accuracy evaluation result is not less than a second preset threshold, at least one pending service provider corresponding to a value not less than the second preset threshold is pushed to the user.
[0104] Specifically, the real-time service provider query information can be obtained and input into the trained text classification machine learning model. When it is determined that there is a corresponding pending service provider for the service provider keyword to be queried, at least one pending service provider and the accuracy assessment result corresponding to the pending service provider are returned, that is, the probability corresponding to the pending service provider, wherein the probability value is compared with the second preset threshold. For example, when the keyword of the service provider to be queried is "7 Days", multiple pending service providers such as "7 Days Hotel Chain" and "7 Days Premium" may appear, and based on the above-mentioned text classification machine learning model, the accuracy evaluation results corresponding to different pending service providers of "7 Days" can be obtained. For example, according to the output of the trained text classification machine learning model, the probability of the first pending service provider corresponding to "7 Days Hotel Chain" is 55%, and the probability of the second pending service provider corresponding to "7 Days Premium" is 45%, etc., assuming that the second preset threshold is 40%, the accuracy evaluation results corresponding to the output multiple pending service providers can be compared with the second preset threshold to obtain pending service providers greater than or equal to 40%, that is, the pending service providers of "7 Days Hotel Chain" and "7 Days Premium" are pushed to users for users to choose according to their actual needs.
[0105] Further, see Figure 6 As shown, after outputting the pending service provider and the accuracy evaluation result corresponding to the pending service provider, the above method further includes:
[0106] Step 501: Compare the accuracy evaluation result corresponding to the pending service provider with the highest accuracy evaluation result with a third preset threshold.
[0107] Step 502: If the accuracy evaluation result is not less than the third preset threshold, the unique service provider corresponding to the third preset threshold is pushed to the user.
[0108] Specifically, the real-time service provider query information is obtained and can be input into the trained text classification machine learning model. When it is determined that there is a pending service provider corresponding to the service provider keyword to be queried, at least one pending service provider and the accuracy evaluation result corresponding to the pending service provider are returned, that is, the probability corresponding to the pending service provider, wherein the highest probability value is compared with the third preset threshold value. For example, when the service provider keyword to be queried is "Wanda", multiple pending service providers such as "Wanda Shopping Mall", "Wanda Community", and "Wanda Cinema" may appear, and according to the above-mentioned text classification machine learning model, "Wanda" can be obtained. The accuracy evaluation results corresponding to different pending service providers, for example, according to the output after training of the text classification machine learning model, the probability of "Wanda Shopping Center" corresponding to the first pending service provider is 92%, the probability of "Wanda Community" corresponding to the second pending service provider is 5%, and the probability of "Wanda Cinema" corresponding to the third pending service provider is 3%, etc. Assuming that the third preset threshold is 90%, the highest probability value can be compared with the third preset threshold, and the unique service provider corresponding to a probability greater than or equal to 90% can be obtained, that is, "Wanda Shopping Center" is pushed to the user, so as to accurately identify the user's needs and obtain accurate query results.
[0109] Furthermore, after determining whether there is a service provider corresponding to the service provider keyword to be queried, the method further includes:
[0110] If it is determined that there is at least one pending service provider corresponding to the service provider keyword to be queried, and there are multiple pending service providers, the identifiers corresponding to the multiple pending service providers are sorted according to a preset sorting model to obtain sorting results corresponding to the multiple pending service providers.
[0111] Specifically, the real-time service provider query information can be input into the trained text classification machine learning model. When it is determined that there is a corresponding pending service provider for the service provider keyword to be queried, at least one pending service provider and the accuracy evaluation result corresponding to the pending service provider are returned, that is, the probability corresponding to the pending service provider. If there are multiple pending service providers, the multiple pending service providers can be sorted according to the preset sorting model, and the sorting results corresponding to the multiple pending service providers can be obtained. For example, when the service provider keyword to be queried is "Wanda", "Wanda Shopping Mall", "Wanda Community", "Wanda Cinema", etc. may appear. There are multiple pending service providers, and the multiple pending service providers are sorted according to a preset sorting model. For example, the sorting results output after the sorting model is trained are: "Wanda Cinema", "Wanda Shopping Mall", "Wanda Community", and the sorting results are pushed to the user to facilitate the user to choose according to the actual situation. The sorting model can be based on the probability value corresponding to the pending service provider, the distance of the pending service provider from the user, the frequency of user inquiries to the pending service provider and other influencing factors, as well as the historical data of these influencing factors. The specific method can be based on the actual situation and is not limited here.
[0112] Furthermore, the above method also includes:
[0113] The sorting results are updated according to the accuracy evaluation results corresponding to each pending service provider and the preset sorting model.
[0114] Specifically, after obtaining the accuracy evaluation result corresponding to each pending service provider according to the above method, this accuracy evaluation result can be used as an influencing factor of the preset sorting model to improve the sorting model, so that when multiple pending service providers are output, they can be accurately sorted according to user needs.
[0115] This embodiment obtains service provider query information, makes predictions based on the service provider query information and a text classification machine learning model, outputs the pending service provider and the accuracy assessment result corresponding to the pending service provider, and can push multiple pending service providers or a unique service provider to the user based on the accuracy assessment result. Since the text classification machine learning model is trained based on historical service information, and the text classification machine learning model is used to predict the keywords of the service provider to be queried, it is possible to more accurately identify the user's query needs, obtain accurate query results for the user, and improve the user experience.
[0116] An embodiment of the present application provides a service provider information query method, which obtains service provider query information, and first determines whether the service provider keyword to be queried meets the preset type to be checked based on the service provider query information and a text classification machine learning model. If it meets the preset type to be checked, then obtain at least one pending service provider corresponding to the service provider keyword to be queried and the accuracy evaluation result corresponding to each pending service provider. Since the text classification machine learning model is trained based on historical service information, and first determines whether the service provider keyword to be queried meets the preset type to be checked through the text classification machine learning model, and then determines at least one pending service provider corresponding to the service provider keyword to be queried and the accuracy evaluation result corresponding to each pending service provider, it is possible to more accurately identify the user's query needs, and obtain accurate query results for the user, thereby improving the user experience.
[0117] Based on the same inventive concept, a service party information query device corresponding to the service party information query method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned service party information query method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0118] Reference Figure 7 , which is a schematic diagram of a service provider information query device provided in an embodiment of the present application, the service provider information query device 600 includes: an acquisition module 601, a judgment module 602 and an output module 603;
[0119] The acquisition module 601 is used to acquire service provider query information, where the service provider query information includes: user identification and keywords of the service provider to be queried;
[0120] The judgment module 602 is used to obtain the probability that the service provider keyword to be queried meets the preset type to be checked according to the service provider query information and the text classification machine learning model, and judge whether the probability is not less than a first preset threshold;
[0121] Output module 603 is used to obtain at least one pending service party corresponding to the service party keyword to be queried and the accuracy evaluation result corresponding to each pending service party if the probability is not less than the first preset threshold, wherein the text classification machine learning model is obtained based on historical service information training.
[0122] A service provider information query device provided in this embodiment includes an acquisition module, a judgment module and an output module. The service provider query information is acquired through the acquisition module. According to the service provider query information and the text classification machine learning model, the judgment module first determines whether the service provider keyword to be queried meets the preset type to be checked. If it meets the preset type to be checked, the output module obtains at least one pending service provider corresponding to the service provider keyword to be queried and the accuracy evaluation result corresponding to each pending service provider. Since the text classification machine learning model is trained based on historical service information, and the text classification machine learning model is used to first determine whether the service provider keyword to be queried meets the preset type to be checked, and then determines at least one pending service provider corresponding to the service provider keyword to be queried and the accuracy evaluation result corresponding to each pending service provider, the user's query needs can be identified more accurately, and accurate query results can be obtained for the user, thereby improving the user experience.
[0123] In a possible implementation, referring to Figure 8 As shown, the above-mentioned device 600 further includes: a training module 604;
[0124] The acquisition module 601 is also used to acquire historical service information before acquiring the service provider query information, wherein the historical service information includes historical service order information, historical service provider query information, service provider information and historical service provider query results;
[0125] The training module 604 is used to train a text classification machine learning model based on historical service information.
[0126] In a possible implementation, the training module 604 is used to train a text classification machine learning model based on historical service information, specifically including:
[0127] Identify historical query service provider keywords and historical service provider query results in historical service provider query information;
[0128] Obtaining a historical query service provider keyword corresponding to a historical query service provider query result, wherein one historical query service provider query result corresponds to multiple historical query service provider keywords, and / or one historical query service provider keyword corresponds to multiple historical query service provider query results;
[0129] According to the historical query service keywords corresponding to the historical service query results, a text classification machine learning model is trained.
[0130] In a possible implementation, referring to Figure 7 As shown, the above device 600 also includes:
[0131] A first comparison module 605 is used to compare the accuracy evaluation results corresponding to the pending service parties with a second preset threshold value after outputting the pending service parties and the accuracy evaluation results corresponding to the pending service parties;
[0132] The first push module 606 is configured to push at least one pending service provider corresponding to a value not less than the second preset threshold to the user if at least one accuracy evaluation result is not less than the second preset threshold.
[0133] In a possible implementation, referring to Figure 8 As shown, the above device 600 also includes:
[0134] A second comparison module 607 is used to compare the accuracy evaluation result corresponding to the pending service party with the highest accuracy evaluation result with a third preset threshold value after outputting the pending service party and the accuracy evaluation results corresponding to the pending service party;
[0135] The second push module 608 is configured to push the only service provider corresponding to the third preset threshold to the user if the accuracy evaluation result is not less than the third preset threshold.
[0136] In a possible implementation, referring to Figure 8 As shown, the above device 600 also includes:
[0137] The sorting module 609 is used to, after determining whether there is a service party corresponding to the service party keyword to be queried, if it is determined that there is at least one pending service party corresponding to the service party keyword to be queried, and if there are multiple pending service parties, sort the multiple pending service parties according to a preset sorting model to obtain sorting results corresponding to the multiple pending service parties.
[0138] In a possible implementation, referring to Figure 8 As shown, the above device 600 also includes:
[0139] The updating module 610 is used to update the sorting results according to the accuracy evaluation results corresponding to each pending service provider and a preset sorting model.
[0140] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0141] The present application embodiment also provides an electronic device 700, such as Fig. 9As shown, it is a schematic diagram of the structure of the electronic device 700 provided in the embodiment of the present application, including: a processor 701, a memory 702, and a bus 703. The memory 702 stores machine-readable instructions executable by the processor 701. When the electronic device 700 is running, the processor 701 communicates with the memory 702 through the bus 703, and the machine-readable instructions are executed by the processor 701 to execute the instructions executed by each module in the service party information query device as described in the above method embodiment. The specific implementation method and technical effect are similar to the above service party information query method, which will not be repeated here.
[0142] For ease of explanation, this application describes only one processor in an electronic device. However, it should be noted that the electronic device in this application may also include multiple processors, so the steps performed by one processor described in this application may also be performed jointly or individually by multiple processors. For example, if the processor of an electronic device performs steps A and B, it should be understood that steps A and B may also be performed jointly by two different processors or individually in one processor. For example, the first processor performs step A, the second processor performs step B, or the first processor and the second processor perform steps A and B together.
[0143] In addition, in the electronic device, the memory may include: a U disk, a mobile hard disk, a ROM, a RAM, a magnetic disk or an optical disk, and other media that can store program codes.
[0144] If the functions described in the aforementioned embodiments are implemented in the form of software functional units and sold or used as independent products, they can also be stored in a processor-executable non-volatile computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application.
[0145] An embodiment of the present application further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned service provider information query method are executed.
[0146] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the above-mentioned service provider information query method, and can predict the user's service provider query results through the service provider query information and the text classification machine learning model, thereby achieving the technical effect of accurately identifying the user's query needs and obtaining accurate query results.
[0147] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the system and device described above can refer to the corresponding process in the method embodiment, and will not be repeated in this application. In the several embodiments provided in this application, it should be understood that the disclosed system, device and method can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0148] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0149] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0150] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard drives, ROM, RAM, magnetic disks, or optical disks.
[0151] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A service provider information query method, characterized in that: include: Acquire service provider query information, wherein the service provider query information includes: user identification and keywords of the service provider to be queried; According to the service provider query information and the text classification machine learning model, obtain the probability that the service provider keyword to be queried meets the preset type to be queried, and determine whether the probability is not less than a first preset threshold; If the probability is not less than a first preset threshold, outputting at least one pending service provider corresponding to the to-be-queried service provider keyword and the accuracy evaluation result corresponding to each pending service provider, wherein the text classification machine learning model is obtained by training based on historical service information; After determining whether there is a service provider corresponding to the service provider keyword to be queried, the method further includes: If it is determined that there is at least one pending service party corresponding to the keyword of the service party to be queried, and there are multiple pending service parties, the multiple pending service parties are sorted according to a preset sorting model to obtain sorting results corresponding to the multiple pending service parties; the preset sorting model is obtained by training based on influencing factors and historical data of influencing factors, and the influencing factors include the probability value corresponding to each of the pending service parties, the distance of each of the pending service parties from the user, or the frequency of the user querying each of the pending service parties; According to the accuracy evaluation results corresponding to the pending service providers and the preset sorting model, the sorting results are updated, including: The accuracy evaluation results corresponding to the pending service providers are used as influencing factors of the preset ranking model to improve the preset ranking model.
2. The method according to claim 1, characterized in that Before obtaining the service provider query information, the method further includes: Acquire the historical service information, wherein the historical service information includes historical service order information, historical service provider query information, service provider information, and historical service provider query results; The text classification machine learning model is trained based on the historical service information.
3. The method according to claim 2, characterized in that The text classification machine learning model is trained according to the historical service information, including: Identifying historical query service provider keywords and historical service provider query results in the historical service provider query information; Obtaining a historical query service provider keyword corresponding to a historical query service provider query result, wherein one historical query service provider query result corresponds to multiple historical query service provider keywords, and / or one historical query service provider keyword corresponds to multiple historical query service provider query results; The text classification machine learning model is trained according to the historical query service provider keywords corresponding to the historical service provider query results.
4. The method according to any one of claims 1 to 3, characterized in that: After outputting the pending service provider and the accuracy evaluation result corresponding to the pending service provider, the method further includes: Compare the accuracy evaluation result corresponding to each of the pending service providers with a second preset threshold; If at least one of the accuracy evaluation results is not less than a second preset threshold, at least one of the pending service providers corresponding to the accuracy evaluation result not less than the second preset threshold is pushed to the user.
5. The method according to any one of claims 1 to 3, characterized in that: After outputting the pending service provider and the accuracy evaluation result corresponding to the pending service provider, the method further includes: Compare the accuracy evaluation result corresponding to the pending service provider with the highest accuracy evaluation result with a third preset threshold; If the accuracy evaluation result is not less than a third preset threshold, the only service provider corresponding to the third preset threshold is pushed to the user.
6. A service provider information query device, characterized in that: include: Acquisition module, judgment module and output module; The acquisition module is used to acquire service provider query information, wherein the service provider query information includes: a user identifier and a keyword of the service provider to be queried; The judgment module is used to obtain the probability that the service provider keyword to be queried meets the preset type to be checked according to the service provider query information and the text classification machine learning model, and judge whether the probability is not less than a first preset threshold; The output module is used to output at least one pending service provider corresponding to the to-be-queried service provider keyword and the accuracy evaluation result corresponding to each pending service provider if the probability is not less than a first preset threshold, wherein the text classification machine learning model is obtained by training based on historical service information; The device also includes a sorting module and an updating module; The sorting module is used to sort the multiple pending service parties according to a preset sorting model to obtain sorting results corresponding to the multiple pending service parties if it is determined that there is at least one pending service party corresponding to the keyword of the pending service party to be queried, and if there are multiple pending service parties; the preset sorting model is obtained by training based on influencing factors and historical data of influencing factors, and the influencing factors include the probability value corresponding to each pending service party, the distance of each pending service party from the user, or the frequency of the user querying each pending service party; The updating module is used to update the sorting result according to the accuracy evaluation result corresponding to each of the pending service providers and the preset sorting model, including: using the accuracy evaluation result corresponding to each of the pending service providers as an influencing factor of the preset sorting model to improve the preset sorting model.
7. The device according to claim 6, characterized in that The device also includes a training module; The acquisition module is further used to acquire the historical service information, wherein the historical service information includes historical service order information, historical service provider query information, service provider information and historical service provider query results; The training module is used to train the text classification machine learning model based on the historical service information.
8. The device according to claim 6 or 7, characterized in that The device also includes: A first comparison module, used for comparing the accuracy evaluation result corresponding to each of the pending service providers with a second preset threshold; The first push module is used to push at least one of the pending service providers corresponding to the second preset threshold to the user if at least one of the accuracy evaluation results is not less than the second preset threshold.
9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the processor executes the machine-readable instructions to perform the steps of any method as claimed in claims 1 to 5.
10. A storage medium, characterized in that: The storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are executed.
