Address sequence sorting method, storage medium and computer equipment

By obtaining and utilizing the city information in the query text, and combining the coarse sorting and fine sorting models, the addresses in the freight scenario are reordered, which solves the problem of poor address sorting in the existing technology, ensures that the addresses retrieved by the user belong to the expected city, and improves improve user experience and accuracy.

CN118606571APending Publication Date: 2024-09-06SHENZHEN YISHIHUOLALA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410671526.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-28
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

The existing technology does not perform well in address sorting in freight scenarios, and cross-city address problems are prone to occur, resulting in the address retrieved by the user not belonging to the expected city.

Method used

By obtaining the city information related to the query text input by the user, and combining the rough ranking and fine ranking models, the recalled addresses are re-ranked to ensure that the addresses in the final sorting result belong to the city intended by the user and avoid the occurrence of cross-city addresses. Specific steps include: obtaining the city information in the query text, performing rough and fine ranking based on the city information, and reordering the recalled addresses to ensure the city consistency of the sorting results.

Benefits of technology

It improves the rationality and user experience of address sorting, ensures that the top-ranked address belongs to the city the user wants to search, reduces cross-city addresses, and improves the click-through rate and accuracy of address search.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118606571A
    Figure CN118606571A
Patent Text Reader

Abstract

The invention is suitable for sorting address sequences, and provides an address sequence sorting method, a computer readable storage medium and computer equipment, the method responds to an address retrieval request sent by a user terminal to recall a first number of recalled addresses; screening out a second number of recall addresses from the first number of recall addresses based on a rough arrangement model, and sorting the second number of recall addresses to obtain an initial rough arrangement sequence; reordering the initial rough arrangement sequence according to the intention city information and the rough arrangement address city information to obtain a final rough arrangement sequence; screening a third number of recall addresses from the second number of recall addresses based on a fine arrangement model and the final coarse arrangement sequence, and sorting the third number of recall addresses to obtain an initial fine arrangement sequence; reordering the initial fine arrangement sequence according to the intention city information and the fine arrangement address city information to obtain a final fine arrangement sequence; and outputting a recommended address list according to the final fine ranking sequence. The address ranking method and device can improve the address ranking effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the technical field of address sequence retrieval and sorting in freight scenarios, and in particular, relates to an address sequence sorting method, apparatus, computer-readable storage medium, and computer equipment. Background Art

[0002] In the freight scenario, when the user needs to place an order, he needs to select the loading point, unloading point and other points. When the user selects the point, he can enter the query text (i.e., query) in the point query interface. The intelligent terminal will initiate an address search request to the background server based on the query text entered by the user. The background server responds to the address search request, recalls multiple addresses based on the query text, and outputs a list of recommended addresses for the user to choose. The recommended address list contains multiple addresses. Currently, the order of the addresses in the list is usually determined based on text similarity, that is, the higher the text similarity between the address name and the query text, the higher its order in the list. When implementing the relevant scheme, the inventor found that only considering text similarity to sort the recalled addresses, the sorting effect is not good, and cross-city addresses are prone to occur, that is, the address presented to the user does not belong to the city the user wants to search. For example, the user searches for "Nanjing Road, Shanghai", but the address presented to the user is "Nanjing Road, Nanjing City". Summary of the invention

[0003] The purpose of the present application is to provide an address sequence sorting method, device, computer-readable storage medium and computer equipment, aiming to solve the problem that the prior art has poor sorting effect on addresses and is prone to cross-city addresses.

[0004] In a first aspect, the present application provides an address sequence sorting method, the method comprising: In response to receiving an address retrieval request sent by a user terminal, performing address recall processing to obtain a first number of recalled addresses; Obtain city information related to the query text carried in the address search request, recorded as intended city information; Screening out a second number of recalled addresses from the first number of recalled addresses based on the rough sorting model, and sorting the second number of recalled addresses to obtain an initial rough sorting sequence; Obtaining city information of each of the second number of recalled addresses, recording it as rough-sorted address city information, and reordering the initial rough-sorted sequence according to the intended city information and each rough-sorted address city information to obtain a final rough-sorted sequence; Based on the refined sorting model and the final rough sorting sequence, a third number of recalled addresses are selected from the second number of recalled addresses, and the third number of recalled addresses are sorted to obtain an initial refined sorting sequence; Obtaining city information of each of the third number of recalled addresses, recording it as refined address city information, and reordering the initial refined sequence according to the intended city information and each refined address city information to obtain a final refined sequence; Output the recommended address list according to the final sorted sequence.

[0005] In some embodiments, obtaining city information related to the query text carried in the address search request includes: Get the query text carried in the address search request; Extract city information from query text through component recognition; Determine city information related to the query text based on the city information.

[0006] In some embodiments, determining city information related to the query text based on the city information includes: Check whether the city information is a prefecture-level city or a county-level city; If the city information is a prefecture-level city, the city information is used as the city information related to the query text; If the city information is a county-level city, the prefecture-level city to which the county-level city belongs is obtained as the city information related to the query text.

[0007] In some embodiments, the method further comprises: When it is determined through component recognition that the query text does not contain a city component, the current location of the user in the address search request is obtained; Determine the user's current city based on the user's current location; The user's current city is used as the city information related to the query text.

[0008] In some embodiments, obtaining city information of each of the second number of recalled addresses includes: For each recall address in the second number of recall addresses, city information is extracted from the text information of the recall address through component recognition, and it is detected whether the city information is a prefecture-level city or a county-level city. If the city information is a prefecture-level city, the city information is used as the city information of the recall address. If the city information is a county-level city, the prefecture-level city corresponding to the city information is determined according to a preset county-level city to prefecture-level city mapping dictionary, and the prefecture-level city is used as the city information of the recall address.

[0009] In some embodiments, obtaining city information of each of the third number of recalled addresses includes: For each recall address in the third number of recall addresses, city information is extracted from the text information of the recall address through component recognition. If the extracted city information is a prefecture-level city, the city information is used as the city information of the recall address. If the extracted city information is a county-level city, the prefecture-level city to which the county-level city belongs is used as the city information of the recall address.

[0010] In some embodiments, the initial coarse sorting sequence is reordered according to the intended city information and the city information of each coarse sorting address to obtain a final coarse sorting sequence, including: Compare the intended city information with the rough-sorted address city information corresponding to each recalled address in the initial rough-sorted sequence; For each recalled address in the initial rough sorting sequence, detect whether the rough sorting address city information corresponding to the recalled address is the same as the intended city information; if they are the same, add a first mark to the recalled address; All the recalled addresses with the first mark added are sequentially arranged to the beginning of the initial rough sorting sequence to obtain a final rough sorting sequence.

[0011] In some embodiments, the initial refined sorting sequence is reordered according to the intended city information and the city information of each refined sorting address to obtain a final refined sorting sequence, including: Compare the intended city information with the refined address city information corresponding to each recalled address in the initial refined sequence; For each recalled address in the initial refined sorting sequence, if the refined sorting address city information corresponding to the recalled address is the same as the intended city information, a second mark is added to the recalled address; All the recalled addresses with the second mark added are sequentially arranged to the beginning of the initial refined sorting sequence to obtain the final refined sorting sequence.

[0012] In a second aspect, the present application provides an address sequence sorting device, the device comprising: A recall module, configured to perform address recall processing in response to receiving an address retrieval request sent by a user terminal, and obtain a first number of recalled addresses; An acquisition module is used to acquire city information related to the query text carried in the address search request, which is recorded as intended city information; A rough sorting module, configured to screen out a second number of recalled addresses from the first number of recalled addresses based on a rough sorting model, and sort the second number of recalled addresses to obtain an initial rough sorting sequence; A first reordering module is used to obtain city information of each of the second number of recalled addresses, record it as rough-ordered address city information, and reorder the initial rough-ordered sequence according to the intended city information and each rough-ordered address city information to obtain a final rough-ordered sequence; A fine sorting module, configured to screen out a third number of recalled addresses from the second number of recalled addresses based on the fine sorting model and the final rough sorting sequence, and sort the third number of recalled addresses to obtain an initial fine sorting sequence; a second reordering module, configured to obtain city information of each of the third number of recalled addresses, record the city information of the refined address, and reorder the initial refined sequence according to the intended city information and the city information of each refined address to obtain a final refined sequence; The address list output module is used to output the recommended address list according to the final refined sorting sequence.

[0013] In a third aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps of the address sequence sorting method provided in any of the above embodiments are implemented.

[0014] In a fourth aspect, the present application provides a computer device comprising one or more processors, a memory, and one or more computer programs, wherein the processor and the memory are connected via a bus, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, and characterized in that when the processor executes the computer program, the steps of the address sequence sorting method provided in any of the above embodiments are implemented.

[0015] In the present application, the computer device will re-sort the coarse sorting results and the fine sorting results across cities based on city identification after rough sorting and fine sorting, so as to improve the rationality of address sorting and ensure as much as possible that the top-ranked addresses finally presented to the user belong to the city that the user wants to search, avoid presenting cross-city addresses to the user, increase the click-through rate of the top-ranked addresses, and improve the user's address search experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 It is a flowchart of an address sequence sorting method provided in one embodiment of the present application.

[0017] Figure 2 It is a schematic diagram of the overall architecture of address sorting provided in one embodiment of the present application.

[0018] Figure 3-1 Schematic diagram of an initial refined sorting sequence provided in an embodiment of the present application.

[0019] Figure 3-2 It is a schematic diagram of a final refined sorting sequence provided in an embodiment of the present application.

[0020] Figure 4 It is a functional module block diagram of an address sequence sorting device provided in one embodiment of the present application.

[0021] Figure 5 It is a specific structural block diagram of a computer device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0022] In order to make the purpose, technical solution and beneficial effects of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0023] In order to illustrate the technical solution described in this application, a specific embodiment is provided below for illustration.

[0024] See also Figure 1 , is a flowchart of an address sequence sorting method provided in an embodiment of the present application, Figure 2 : is a schematic diagram of the overall architecture of address sorting in this embodiment; this embodiment mainly uses the application of the address sequence sorting method to a computer device (such as a server for providing address retrieval services at a remote end, which may be referred to as an address retrieval server) as an example for explanation, and the method includes the following steps: S101: In response to receiving an address search request sent by a user terminal, performing address recall processing to obtain a first number of recalled addresses.

[0025] The user terminal can be a mobile intelligent terminal used by the user (such as a smart phone, tablet computer, etc.).

[0026] This embodiment mainly improves the operations related to recalling address sorting, so the address recall processing implemented in this step can be implemented by using one or more existing or future possible address recall methods, which will not be described in detail in this embodiment.

[0027] S102: Obtain city information related to the query text carried in the address search request, and record it as intended city information.

[0028] In some embodiments, the operation of obtaining city information related to the query text carried by the address retrieval request may include: obtaining the query text carried by the address retrieval request; extracting the city information in the query text through component recognition; and determining the city information related to the query text based on the city information.

[0029] The query text carried in the address search request refers to the query entered by the user when searching for an address.

[0030] After obtaining the query text, the query text can be component identified to obtain the address component information contained in the query text, such as province / city / county / district / town, etc., and then the "city" related information is extracted, and the city information related to the query text is determined based on the city information.

[0031] Furthermore, the operation of determining city information related to the query text based on city information may include: detecting whether the city information is a prefecture-level city or a county-level city; if the city information is a prefecture-level city, using the city information as the city information related to the query text; if the city information is a county-level city, obtaining the prefecture-level city to which the county-level city belongs as the city information related to the query text.

[0032] Usually, prefecture-level cities are used as city information. However, the city information in the query text input by the user may be a county-level city. In this case, it is necessary to pre-establish a county-level city-prefecture-level city mapping dictionary, so that when the city information extracted from the query text is a county-level city, the county-level city-prefecture-level city mapping dictionary can be queried to determine the prefecture-level city corresponding to the county-level city, and then the prefecture-level city can be determined as the city information related to the query text.

[0033] For example, suppose the user enters query = "Kunshan City Youyi North Road" when searching. At this time, since only Kunshan City appears, component recognition may only be able to extract "Kunshan City". Then it is necessary to further use the (county-level city-prefecture-level city) mapping dictionary to find out that the prefecture-level city corresponding to Kunshan City is "Suzhou City". At this time, the city (indicating city information) corresponding to the query is determined to be "Suzhou City".

[0034] Furthermore, in actual situations, there may be a situation where both prefecture-level cities and county-level cities exist. For example, when a user inputs query="Shanghai Nanjing Drum Tower" during search, city can be left blank.

[0035] Furthermore, it is possible that the user did not enter the city information when searching for an address. Therefore, when it is determined through component recognition that the query text does not contain a city component, the user's current location in the address search request is obtained; the user's current city is determined based on the user's current location; and the user's current city is used as the city information related to the query text.

[0036] For example, assuming that the query input by the user does not contain a city component, the user's city userCity is obtained from the address retrieval request, and the user's current city is used as the city information related to the query text, that is, city=userCity.

[0037] S103: Screening out a second number of recalled addresses from the first number of recalled addresses based on a rough sorting model, and sorting the second number of recalled addresses to obtain an initial rough sorting sequence.

[0038] This embodiment will re-sort the rough sorting results after the rough sorting, and re-sort the fine sorting results after the fine sorting, so as to improve the final sorting results. The relevant implementation operations of the rough sorting step and the fine sorting step have not been improved, so the rough sorting step and the fine sorting step in this embodiment can be implemented by using mature and reliable rough sorting schemes and fine sorting schemes that may be used currently or in the future.

[0039] S104: Obtain city information of each of the second number of recalled addresses, record it as rough-sorted address city information, and reorder the initial rough-sorted sequence according to the intended city information and each rough-sorted address city information to obtain a final rough-sorted sequence.

[0040] It is understandable that the second number is smaller than the first number. For the convenience of distinction, in this embodiment, the city information corresponding to each of the second number of recalled addresses is referred to as rough address city information.

[0041] After executing the rough sorting step, this embodiment obtains the city information of each of the second number of recalled addresses, records it as the rough sorting address city information, and reorders the initial rough sorting sequence according to the intended city information. In some embodiments, the operation of obtaining the city information of each of the second number of recalled addresses includes: for each of the second number of recalled addresses, extracting the city information from the text information of the recalled address through component recognition, detecting whether the city information is a prefecture-level city or a county-level city, if the city information is a prefecture-level city, using the city information as the city information of the recalled address, if the city information is a county-level city, determining the prefecture-level city corresponding to the city information according to the preset county-level city-prefecture-level city mapping dictionary, and using the prefecture-level city as the city information of the recalled address.

[0042] This embodiment mainly uses component identification and (county-level city-prefecture-level city) mapping dictionary to determine the city information corresponding to each recalled address. The specific implementation details can be found in the above introduction on determining the city information corresponding to the query text, which will not be repeated here.

[0043] Furthermore, the initial coarse-sorted sequence is reordered according to the intended city information and the city information of each coarse-sorted address to obtain an operation of a final coarse-sorted sequence, including: comparing the intended city information with the coarse-sorted address city information corresponding to each recalled address in the initial coarse-sorted sequence; for each recalled address in the initial coarse-sorted sequence, detecting whether the coarse-sorted address city information corresponding to the recalled address is the same as the intended city information; if they are the same, adding a first mark to the recalled address; and, arranging all recalled addresses with the first mark added to the beginning of the initial coarse-sorted sequence in sequence to obtain a final coarse-sorted sequence.

[0044] The initial rough sorting sequence is a plurality of sorted recall addresses, for example, 50. At this time, this embodiment extracts all the recall addresses whose corresponding city information is the same as the intended city information from the initial rough sorting sequence, adds a first mark to them, and reorders the recall addresses with the first mark to the front position.

[0045] For example, suppose that after the rough sorting step, the recalled address sequence is: L1, L2, L3, L4, L5. Compare the city information of these addresses with the city information corresponding to the query text to see if they are the same. Suppose that L1 and L3 are the same, then sort L1 and L3 to the front position in sequence, and thus obtain the rearranged recalled address sequence (i.e., the final rough sorting sequence). The rearranged address sequence is: L1, L3, L2, L4, L5.

[0046] S105: Screening out a third number of recalled addresses from the second number of recalled addresses based on the refined sorting model and the final coarse sorting sequence, and sorting the third number of recalled addresses to obtain an initial refined sorting sequence.

[0047] As described above, this embodiment will re-sort the refined sorting results after refined sorting to improve the final sorting results. The relevant implementation operations of the refined sorting step can be implemented by using mature and reliable refined sorting solutions that may be used currently or in the future, so they will not be described in detail here.

[0048] S106: Obtain city information of each of the third number of recalled addresses, record it as refined address city information, and reorder the initial refined sequence according to the intended city information and each refined address city information to obtain a final refined sequence.

[0049] It is understandable that the third number is smaller than the second number. For the convenience of distinction, in this embodiment, the city information corresponding to each of the third number of recalled addresses is referred to as refined address city information.

[0050] After executing the refined sorting step, this embodiment obtains the city information of each of the third number of recalled addresses, records it as the refined sorting address city information, and reorders the initial refined sorting sequence according to the intended city information. In some embodiments, the operation of obtaining the city information of each of the third number of recalled addresses includes: for each of the third number of recalled addresses, extracting the city information from the text information of the recalled address through component recognition, if the extracted city information is a prefecture-level city, then using the city information as the city information of the recalled address, if the extracted city information is a county-level city, then using the prefecture-level city to which the county-level city belongs as the city information of the recalled address.

[0051] This embodiment mainly utilizes component recognition and (county-level city-prefecture-level city) mapping dictionary to determine the city information corresponding to each recalled address in the third number of recalled addresses. The specific implementation details can be found in the above introduction on determining the city information corresponding to the query text, which will not be elaborated here.

[0052] Furthermore, the initial refined sorting sequence is reordered according to the intended city information and the city information of each refined sorting address to obtain the operation of the final refined sorting sequence, including: comparing the intended city information with the refined sorting address city information corresponding to each recalled address in the initial refined sorting sequence; for each recalled address in the initial refined sorting sequence, if the refined sorting address city information corresponding to the recalled address is the same as the intended city information, adding a second mark to the recalled address; and arranging all recalled addresses with the second mark added to the beginning of the initial refined sorting sequence in sequence to obtain the final refined sorting sequence.

[0053] The initial fine sorting sequence is a plurality of sorted recall addresses, for example, 10. At this time, this embodiment extracts all the recall addresses whose corresponding city information is the same as the intended city information from the initial fine sorting sequence, adds a second mark to them, and reorders the recall addresses with the second mark to the front position. For example, suppose that after the rough sorting step, the recall address sequence obtained is as follows Figure 3-1 As shown, the city information of these addresses is subsequently compared with the city information corresponding to the query text to see if they are the same, and the recalled addresses with the same city information as the query text are sorted to the front in sequence, thus obtaining a rearranged recalled address sequence (i.e., the final refined sequence). The rearranged address sequence is, for example, Figure 3-2 shown.

[0054] S107: Outputting a recommended address list according to the final refined sorting sequence.

[0055] After the final refined sequence is obtained, each address in the final refined sequence is converted into a recommended address list and sent to the user terminal for display.

[0056] At present, many address retrieval systems often need to go through the steps of recall -> rough sorting -> fine sorting in sequence when performing address retrieval. Specifically, after receiving an address retrieval request, the system first applies the recall method to the address library, recalls a portion of addresses (such as 200) according to the query, and then scores and sorts them through the rough sorting model, cuts off the first portion of addresses (such as 50), and enters the fine sorting step. In the fine sorting step, the addresses output from the rough sorting step are scored and sorted through the fine sorting model, and then the first portion of addresses (such as 10) are cut off and exposed (presented) to the user, so that the user can select the target address from the 10 addresses displayed by the freight app on the user terminal.

[0057] From the perspective of the address list displayed to the user by the app: in the freight scenario, the order of the address sequence will obviously affect the user experience. Once the user makes an error or fails in selecting an address, it will affect the freight business. In the freight scenario, users tend to choose the top three addresses, so the ranking position of the top three is very important. If the destination city appears in the query text entered by the user during the search, and the first three addresses in the address list fed back by the address retrieval system do not belong to the city, the user is likely to choose the wrong address, and the address search experience is very bad for the user. This embodiment, by re-sorting the sequence obtained by the fine sorting after the fine sorting step, can sort more reasonable addresses upwards and display them to users first, which can make up for the shortcomings of the current sorting model to a certain extent.

[0058] From the perspective of rough sorting, the sorting effect of rough sorting will affect the sorting of fine sorting. Because rough sorting needs to truncate the sequence, 200 addresses enter the rough sorting, and only 50 of them are given to the fine sorting. If the target address is not in the first 50, no matter how good the sorting effect of fine sorting is, the target address cannot be revealed. Therefore, after the rough sorting step, this embodiment re-sorts the sequence obtained by the rough sorting, which can improve the rationality of the rough sorting and optimize the fine sorting effect to a certain extent.

[0059] The address sequence sorting device provided in one embodiment of the present application may be a computer program or a program code running in a computer device, for example, the address sequence sorting device is an application software; the address sequence sorting device may be used to execute the corresponding steps in the address sequence sorting method provided in the embodiment of the present application. Figure 4 , an address sequence sorting device provided in an embodiment of the present application includes: A recall module 11, configured to perform address recall processing in response to receiving an address search request sent by a user terminal, and obtain a first number of recalled addresses; An acquisition module 12 is used to acquire city information related to the query text carried in the address search request, which is recorded as intended city information; A rough sorting module 13 is used to select a second number of recalled addresses from the first number of recalled addresses based on a rough sorting model, and sort the second number of recalled addresses to obtain an initial rough sorting sequence; The first reordering module 14 is used to obtain the city information of each of the second number of recalled addresses, record it as the rough-ordered address city information, and reorder the initial rough-ordered sequence according to the intended city information and the city information of each rough-ordered address to obtain a final rough-ordered sequence; A fine sorting module 15, configured to screen out a third number of recalled addresses from the second number of recalled addresses based on the fine sorting model and the final rough sorting sequence, and sort the third number of recalled addresses to obtain an initial fine sorting sequence; The second reordering module 16 is used to obtain the city information of each of the third number of recalled addresses, record it as refined address city information, and reorder the initial refined sequence according to the intended city information and each refined address city information to obtain a final refined sequence; The address list output module 17 is used to output a recommended address list according to the final refined sorting sequence.

[0060] In some embodiments, the acquisition module 12 is specifically used to: acquire the query text carried in the address search request; extract the city information in the query text by component recognition; and determine the city information related to the query text based on the city information.

[0061] In some embodiments, when the acquisition module 12 determines the city information related to the query text based on the city information, it is used to: detect whether the city information is a prefecture-level city or a county-level city; if the city information is a prefecture-level city, then use the city information as the city information related to the query text; if the city information is a county-level city, then obtain the prefecture-level city to which the county-level city belongs as the city information related to the query text.

[0062] In some embodiments, the acquisition module 12 is also used for: when it is determined through component recognition that the query text does not contain a city component, obtaining the user's current location in the address retrieval request; determining the user's current city based on the user's current location; and using the user's current city as city information related to the query text.

[0063] In some embodiments, when the first reordering module 14 obtains the city information of each of the second number of recall addresses, it is used to: for each of the second number of recall addresses, extract the city information from the text information of the recall address through component recognition, detect whether the city information is a prefecture-level city or a county-level city, if the city information is a prefecture-level city, use the city information as the city information of the recall address; if the city information is a county-level city, determine the prefecture-level city corresponding to the city information according to a preset county-level city to prefecture-level city mapping dictionary, and use the prefecture-level city as the city information of the recall address.

[0064] In some embodiments, when the second reordering module 16 obtains the city information of each of the third number of recall addresses, it is used to: for each of the third number of recall addresses, extract the city information from the text information of the recall address through component recognition; if the extracted city information is a prefecture-level city, use the city information as the city information of the recall address; if the extracted city information is a county-level city, use the prefecture-level city to which the county-level city belongs as the city information of the recall address.

[0065] In some embodiments, the first reordering module 14 reorders the initial rough sorting sequence according to the intended city information and the city information of each rough sorting address, and when the final rough sorting sequence is obtained, it is used to: compare the intended city information with the rough sorting address city information corresponding to each recalled address in the initial rough sorting sequence; for each recalled address in the initial rough sorting sequence, detect whether the rough sorting address city information corresponding to the recalled address is the same as the intended city information, and if they are the same, add a first mark to the recalled address; and arrange all recalled addresses with the first mark added to the beginning of the initial rough sorting sequence in sequence to obtain a final rough sorting sequence.

[0066] In some embodiments, the second reordering module 16 reorders the initial refined sorting sequence according to the intended city information and the city information of each refined sorting address to obtain the final refined sorting sequence, which is used to: compare the intended city information with the refined sorting address city information corresponding to each recalled address in the initial refined sorting sequence; for each recalled address in the initial refined sorting sequence, if the refined sorting address city information corresponding to the recalled address is the same as the intended city information, add a second mark to the recalled address; and arrange all recalled addresses with the second mark added to the beginning of the initial refined sorting sequence in sequence to obtain the final refined sorting sequence.

[0067] The address sequence sorting device provided in one embodiment of the present application and the address sequence sorting method provided in one embodiment of the present application belong to the same concept, and the specific implementation process is detailed in the full text of the specification and will not be repeated here.

[0068] An embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the address sequence sorting method provided in any embodiment of the present application are implemented.

[0069] Figure 5 A specific structural block diagram of a computer device provided in one embodiment of the present application is shown, and the computer device 100 includes: one or more processors 101, a memory 102, and one or more computer programs, wherein the processor 101 and the memory 102 are connected via a bus, and the one or more computer programs are stored in the memory 102 and are configured to be executed by the one or more processors 101, and the processor 101 implements the steps of the address sequence sorting method provided in any embodiment of the present application when executing the computer program. The above-mentioned computer device may include but is not limited to servers, terminals and other devices. The computer device may be a desktop computer, a mobile terminal or a vehicle-mounted device, and the mobile terminal includes at least one of a mobile phone, a tablet computer, a personal digital assistant or a wearable device.

[0070] It should be understood that each step in each embodiment of the present application is not necessarily performed in sequence according to the order indicated by the step number. Unless there is clear explanation in this article, the execution of these steps does not have strict order restriction, and these steps can be performed in other orders. Moreover, at least a part of the steps in each embodiment can include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a part of other steps or sub-steps or stages of other steps.

[0071] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink), DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0072] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0073] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for those of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. A method for sorting an address sequence, characterized in that: The method comprises: In response to receiving an address retrieval request sent by a user terminal, performing address recall processing to obtain a first number of recalled addresses; Obtaining city information related to the query text carried in the address search request, recorded as intended city information; Screening out a second number of recalled addresses from the first number of recalled addresses based on the rough sorting model, and sorting the second number of recalled addresses to obtain an initial rough sorting sequence; Obtaining city information of each of the second number of recalled addresses, recording it as rough-sorted address city information, and reordering the initial rough-sorted sequence according to the intended city information and each rough-sorted address city information to obtain a final rough-sorted sequence; Screening out a third number of recalled addresses from the second number of recalled addresses based on the refined sorting model and the final rough sorting sequence, and sorting the third number of recalled addresses to obtain an initial refined sorting sequence; Obtaining city information of each of the third number of recalled addresses, recording it as refined address city information, and reordering the initial refined sequence according to the intended city information and each refined address city information to obtain a final refined sequence; Output a recommended address list according to the final refined sorting sequence.

2. The method according to claim 1, characterized in that Obtaining city information related to the query text carried in the address search request, including: Obtaining the query text carried in the address search request; Extracting city information from the query text by component recognition; City information related to the query text is determined based on the city information.

3. The method according to claim 2, characterized in that Determining city information related to the query text based on the city information includes: Detecting whether the city information is a prefecture-level city or a county-level city; If the city information is a prefecture-level city, the city information is used as the city information related to the query text; If the city information is a county-level city, the prefecture-level city to which the county-level city belongs is obtained as the city information related to the query text.

4. The method according to claim 2, characterized in that The method further comprises: When it is determined through component identification that the query text does not contain a city component, obtaining the user's current location in the address search request; Determine the city where the user is currently located according to the user's current location; The city where the user is currently located is used as the city information related to the query text.

5. The method according to claim 1, characterized in that Obtaining city information of each of the second number of recalled addresses includes: For each recall address in the second number of recall addresses, city information is extracted from the text information of the recall address through component recognition, and it is detected whether the city information is a prefecture-level city or a county-level city. If the city information is a prefecture-level city, the city information is used as the city information of the recall address. If the city information is a county-level city, the prefecture-level city corresponding to the city information is determined according to a preset county-level city to prefecture-level city mapping dictionary, and the prefecture-level city is used as the city information of the recall address.

6. The method according to claim 1, characterized in that Obtaining city information of each of the third number of recalled addresses includes: For each recall address among the third number of recall addresses, city information is extracted from the text information of the recall address through component recognition. If the extracted city information is a prefecture-level city, the city information is used as the city information of the recall address. If the extracted city information is a county-level city, the prefecture-level city to which the county-level city belongs is used as the city information of the recall address.

7. The method according to claim 1, characterized in that The initial rough sorting sequence is reordered according to the intended city information and each rough sorting address city information to obtain a final rough sorting sequence, including: Comparing the intended city information with the rough sorted address city information corresponding to each recalled address in the initial rough sorted sequence; For each recalled address in the initial rough sorting sequence, detecting whether the rough sorting address city information corresponding to the recalled address is the same as the intended city information, and if they are the same, adding a first mark to the recalled address; All the recalled addresses with the first mark added are sequentially arranged to the beginning of the initial coarse-sorted sequence to obtain a final coarse-sorted sequence.

8. The method according to claim 1, characterized in that The initial refined sorting sequence is reordered according to the intended city information and the city information of each refined sorting address to obtain a final refined sorting sequence, including: Comparing the intended city information with the refined address city information corresponding to each recalled address in the initial refined sequence; For each recalled address in the initial refined sorting sequence, if the refined sorting address city information corresponding to the recalled address is the same as the intended city information, adding a second mark to the recalled address; All the recalled addresses with the second mark added are sequentially arranged to the beginning of the initial refined sorting sequence to obtain a final refined sorting sequence.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program, when executed by a processor, implements the steps of the address sequence sorting method according to any one of claims 1 to 8.

10. A computer device, characterized in that: include: one or more processors; Memory; as well as One or more computer programs, the processor and the memory are connected via a bus, wherein the one or more computer programs are stored in the memory and are configured to be executed by the one or more processors, wherein the processor implements the steps of the address sequence sorting method as described in any one of claims 1 to 8 when executing the computer program.