CN111651535A - Information query processing method and device, electronic equipment and readable storage medium - Google Patents

Information query processing method and device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111651535A
CN111651535A CN201910906490.4A CN201910906490A CN111651535A CN 111651535 A CN111651535 A CN 111651535A CN 201910906490 A CN201910906490 A CN 201910906490A CN 111651535 A CN111651535 A CN 111651535A
Authority
CN
China
Prior art keywords
query
area
keywords
information
geographic area
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910906490.4A
Other languages
Chinese (zh)
Other versions
CN111651535B (en
Inventor
廖世昌
陈欢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Didi Infinity Technology and Development Co Ltd
Original Assignee
Beijing Didi Infinity Technology and Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Didi Infinity Technology and Development Co Ltd filed Critical Beijing Didi Infinity Technology and Development Co Ltd
Priority to CN201910906490.4A priority Critical patent/CN111651535B/en
Publication of CN111651535A publication Critical patent/CN111651535A/en
Application granted granted Critical
Publication of CN111651535B publication Critical patent/CN111651535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Landscapes

  • Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Remote Sensing (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides an information query processing method and device, electronic equipment and a readable storage medium, and relates to the technical field of information query. The information query processing method comprises the following steps: receiving query information input by a user, wherein the query information comprises: target location keywords, geographic area keywords. And determining an actual query area matched with the keywords in the geographic area according to the query information and preset rules, wherein the preset rules are used for indicating matching rules of the keywords in the geographic area corresponding to different contexts. And inquiring the recall result corresponding to the target position keyword in the actual inquiry area. The problem that the accuracy of the recommendation result obtained by the existing query method is low is solved, and the effect of obtaining the accurate recommendation result is achieved.

Description

Information query processing method and device, electronic equipment and readable storage medium
Technical Field
The present application relates to the field of information query technologies, and in particular, to an information query processing method and apparatus, an electronic device, and a readable storage medium.
Background
With the continuous development of intelligent devices and internet services, most of the people's eating and wearing can be completed by means of application programs. In common map applications, network appointment applications, travel applications and the like, a user often needs to input keywords of address information for query.
In the query process of the user, keywords of the target address are generally input, and the keywords may include administrative area information (city name, area name, road name, and the like).
However, with the prior art, it is possible that the administrative area information in the keyword may express other name information rather than the corresponding real administrative area, so that the accuracy of the recommendation result obtained by the conventional query method is not high.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide an information query processing method, an information query processing apparatus, an electronic device, and a readable storage medium, so as to solve the problem that the accuracy of a recommendation result obtained by an existing query method is not high.
In a first aspect, the present application provides an information query processing method, including: receiving query information input by a user, wherein the query information comprises: target location keywords, geographic area keywords. And determining an actual query area matched with the keywords in the geographic area according to the query information and preset rules, wherein the preset rules are used for indicating matching rules of the keywords in the geographic area corresponding to different contexts. And inquiring the recall result corresponding to the target position keyword in the actual inquiry area.
Optionally, before determining an actual query region matched with the geographic region keyword according to the query information and the preset rule, the method further includes: and sequentially identifying characters in the query information by adopting a preset algorithm to obtain the target position keywords and the geographic area keywords.
Optionally, determining an actual query region matched with the geographic region keyword according to the query information and a preset rule, including: determining a context of the geographic region keywords in the query information, the context including any of: the position relation of the geographic area keywords in the query information, a character string formed by the geographic area keywords and adjacent keywords, the fixed collocation of the geographic area keywords and the integrity of the geographic area keywords. And determining an actual query area matched with the geographic area keywords according to the context of the geographic area keywords in the query information and a preset rule.
Optionally, the preset algorithm includes a string multi-pattern matching algorithm.
Optionally, before querying the recall result corresponding to the target location keyword in the actual query region, the method further includes: and acquiring the current position information of the user. Correspondingly, the actual query area matched with the geographic area keywords is determined according to the context of the geographic area keywords in the query information and preset rules, and the method comprises the following steps: determining an actual query area matched with the geographic area keywords according to the current position information of the user, the context of the geographic area keywords in the query information and a preset rule, wherein the actual query area comprises: the current position information of the user is located in the area and/or the area indicated by the geographic area key words.
Optionally, the actual query area matched with the geographic area keyword is determined according to the current location information of the user, the context of the geographic area keyword in the query information, and a preset rule, and the actual query area comprises any one of the following items: and determining the corresponding relation between the position relation and the actual query area according to the position relation of the geographic area key words in the query information, and determining the actual query area. Or, inquiring whether a character string formed by the geographic area key words and the adjacent key words exists in the preset rule, and if so, determining the actual inquiry area according to the corresponding relation between the character string and the actual inquiry area. Or, determining whether a fixed match in a preset rule exists in the query information, and if so, determining the actual query area according to the corresponding relation between the fixed match and the actual query area. Or obtaining the confidence of the region indicated by the geographic region key words according to the integrality of the geographic region key words, and determining the actual query region according to the confidence.
Optionally, determining an actual query region matched with the geographic region keyword according to the current location information of the user, the context of the geographic region keyword in the query information, and a preset rule, includes: and determining actual query areas matched with the geographic area keywords and corresponding recall proportions of the actual query areas according to the current position information of the user, the contexts of the geographic area keywords in the query information and preset rules.
In a second aspect, the present application provides an information query processing apparatus, including: the receiving module is used for receiving query information input by a user, and the query information comprises: target location keywords, geographic area keywords. And the determining module is used for determining an actual query area matched with the geographic area keywords according to the query information and preset rules, and the preset rules are used for indicating the matching rules of the geographic area keywords corresponding to different contexts. And the first acquisition module is used for inquiring and acquiring the recall result corresponding to the target position keyword in the actual inquiry area.
Optionally, the apparatus further comprises: and the identification module is used for sequentially identifying the characters in the query information by adopting a preset algorithm and acquiring the target position keywords and the geographic area keywords.
Optionally, the determining module is specifically configured to determine a context of the geographic area keyword in the query information, where the context includes any one of: the position relation of the geographic area keywords in the query information, a character string formed by the geographic area keywords and adjacent keywords, the fixed collocation of the geographic area keywords and the integrity of the geographic area keywords. And determining an actual query area matched with the geographic area keywords according to the context of the geographic area keywords in the query information and a preset rule.
Optionally, the preset algorithm comprises a string multi-pattern matching algorithm.
Optionally, the apparatus further comprises: and the second acquisition module is used for acquiring the current position information of the user. Correspondingly, the determining module is specifically configured to determine an actual query area matched with the geographic area keywords according to the current location information of the user, the context of the geographic area keywords in the query information, and a preset rule, where the actual query area includes: the current position information of the user is located in the area and/or the area indicated by the geographic area key words.
Optionally, the determining module is specifically configured to determine, according to a location relationship of the geographic area keyword in the query information, a corresponding relationship between the location relationship and the actual query area, and determine the actual query area. Or, inquiring whether a character string formed by the geographic area key words and the adjacent key words exists in the preset rule, and if so, determining the actual inquiry area according to the corresponding relation between the character string and the actual inquiry area. Or, determining whether a fixed match in a preset rule exists in the query information, and if so, determining the actual query area according to the corresponding relation between the fixed match and the actual query area. Or obtaining the confidence of the region indicated by the geographic region key words according to the integrality of the geographic region key words, and determining the actual query region according to the confidence.
Optionally, the determining module is specifically configured to determine, according to the current location information of the user, the context of the geographic area keyword in the query information, and a preset rule, an actual query area matched with the geographic area keyword and a recall proportion corresponding to each actual query area.
In a third aspect, the present application further provides an electronic device, including: the information query processing method comprises a processor, a storage medium and a bus, wherein the storage medium stores machine-readable instructions executable by the processor, when the electronic device runs, the processor and the storage medium communicate through the bus, and the processor executes the machine-readable instructions to execute the steps of the information query processing method.
In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of the information query processing method.
Based on any one of the above aspects, in the embodiment of the application, by first receiving query information input by a user, then determining an actual query region matched with the keywords of the geographic region according to the query information and the preset rule, and finally querying and acquiring a recall result corresponding to the keywords of the target position in the actual query region, the actual query region is determined first, and then the recall result is acquired in the actual query region, so that the accuracy of the recommended result is improved, and the user experience is further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic view illustrating an application scenario of an information query processing method according to some embodiments of the present application;
FIG. 2 illustrates a flow diagram of an information query processing method provided by some embodiments of the present application;
FIG. 3 is a flow chart illustrating a method for query processing according to further embodiments of the present application;
FIG. 4 is a schematic structural diagram of an information query processing apparatus according to some embodiments of the present application;
FIG. 5 is a schematic diagram illustrating an information query processing apparatus according to another embodiment of the present application;
FIG. 6 is a schematic structural diagram of an information query processing apparatus according to another embodiment of the present application;
fig. 7 shows a schematic structural diagram of an electronic device provided in some embodiments of the present application.
Detailed Description
In order to make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it should be understood that the drawings in the present application are for illustrative and descriptive purposes only and are not used to limit the scope of protection of the present application. Additionally, it should be understood that the schematic drawings are not necessarily drawn to scale. The flowcharts used in this application illustrate operations implemented according to some embodiments of the present application. It should be understood that the operations of the flow diagrams may be performed out of order, and steps without logical context may be performed in reverse order or simultaneously. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart.
In addition, the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
In order to enable a person skilled in the art to use the present disclosure, the following embodiments are given in conjunction with a specific application scenario "administrative area information identification". It will be apparent to those skilled in the art that the general principles defined herein may be applied to other embodiments and applications without departing from the spirit and scope of the application. Although the present application is described primarily in the context of administrative area information identification, it should be understood that this is merely one exemplary embodiment. The application can be applied to any other traffic type. For example, the present application may be applied to different transportation system environments, including terrestrial, marine, or airborne, among others, or any combination thereof. The present application may also include any system for including the need for information query processing. The system or method of the present application may be applied to a vehicle-mounted terminal, an intelligent terminal, intelligent hardware, a client terminal, a customization system, an artificial intelligence robot, or any combination thereof, for example, but not limited to, a vehicle machine, a web page, a smart phone, or the like applied to an automobile.
It should be noted that in the embodiments of the present application, the term "comprising" is used to indicate the presence of the features stated hereinafter, but does not exclude the addition of further features.
In order to solve the above technical problem, an embodiment of the present invention provides an information query processing method. The technical solution of the present invention is explained below by means of possible implementations.
Fig. 1 is a schematic view illustrating an application scenario of an information query processing method according to some embodiments of the present application.
As shown in fig. 1, the execution subject of the method may be a background server 101 of a client (application), and the server 101 may be connected with a database 105. The client may be integrated in a terminal device, such as a smart phone 104, a tablet computer 102, a notebook computer 103, a vehicle-mounted computer, and the like.
The information query processing method provided by the application can be particularly applied to transportation services such as windward driving, designated driving service, express bus, car sharing, bus service, driver leasing or regular bus service, take-away food delivery, video monitoring, intelligent voice recognition hardware and the like, or any combination thereof.
In some embodiments, the network may be any type of wired or wireless network, or combination thereof. By way of example only, a wired Network, a Wireless Network, a fiber optic Network, a telecommunications Network, an intranet, the internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a bluetooth Network, a ZigBee Network, a Near Field Communication (NFC) Network, or the like, or any combination thereof may be included. In some embodiments, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more components of the above application scenarios may connect to the network to exchange data and/or information.
In some embodiments, the server 101 may be a single server or a group of servers. The set of servers can be centralized or distributed (e.g., the servers can be a distributed system). In some embodiments, the server may be local or remote to the terminal. Alternatively, the server may also be implemented on a cloud platform; by way of example only, the cloud platform may include a private cloud, a public cloud, a hybrid cloud, a community cloud (community cloud), a distributed cloud, an inter-cloud, a multi-cloud, and the like, or any combination thereof.
In some embodiments, the terminal device may include a processor. The processor may process information and/or data related to the service request to perform one or more of the functions described herein. For example, the processor may receive and process query information entered by a user. In some embodiments, a processor may include one or more processing cores (e.g., a single-core processor (S) or a multi-core processor (S)). Merely by way of example, a 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 (Reduced Instruction Set computer), a microprocessor, or the like, or any combination thereof.
The connection between the server 101 and the database 105 may be a wired connection or a wireless connection, and in some embodiments, the server 101 may be connected to a network to communicate with the database 105. For example, the connection communication may be performed through a wired cable connection or through a wireless network such as bluetooth, a wireless local area network, a mobile cellular network, a near field communication network, a Zigbee network, an NB-IoT network, and the like, which is not limited herein.
In some embodiments, the terminal device may further include a smart home device, a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the smart home devices may include smart lighting devices, control devices for smart electrical devices, smart monitoring devices, smart televisions, smart cameras, or walkie-talkies, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart bracelet, a smart helmet, a smart watch, a smart garment, a smart backpack, a smart accessory, or the like, or any combination thereof. In some embodiments, the smart mobile device may include a smartphone, a Personal Digital Assistant (PDA), a gaming device, a navigation device, a smart rearview mirror, or a point of sale (POS) device, among others, or any combination thereof. In some embodiments, the virtual reality device and/or the augmented reality device may include a virtual reality helmet, virtual reality glass, a virtual reality patch, an augmented reality helmet, augmented reality glass, an augmented reality patch, or the like, or any combination thereof. For example, the virtual reality device and/or augmented reality device may include various virtual reality products and the like.
In some embodiments, the server 101 may also include mass storage, removable storage, volatile Read-and-write Memory, or Read-Only Memory (ROM), among others, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, and the like; removable memory may include flash drives, floppy disks, optical disks, memory cards, zip disks, tapes, and the like; volatile read-write memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (DRAM), Double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (SRAM), Thyristor-Based Random Access Memory (T-RAM), Zero-capacitor RAM (Zero-RAM), and the like. By way of example, the ROM may include Mask Read-Only Memory (MROM), Programmable ROM (PROM), Erasable Programmable ROM (PEROM), Electrically Erasable Programmable ROM (EEPROM), compact disk ROM (CD-ROM), and digital versatile disk ROM (DVD-ROM), and the like, without limitation.
Fig. 2 is a flowchart illustrating an information query processing method according to some embodiments of the present application.
As shown in fig. 2, an information query processing method provided in some embodiments of the present application includes:
s201, receiving query information input by a user.
Wherein, inquiring information includes: target location keywords, geographic area keywords.
In some embodiments, the target location keyword may specifically indicate a location, and the geographic area keyword is possible administrative area information. For example, if the query information includes "first-capital museum" in beijing city, the target keyword is "first-capital museum" and the geographic area key is "beijing city"; if the query information is Beijing university, the target keyword is Beijing university and the geographic region key is Beijing.
A query window is provided on the client of the terminal device so that the user can input query information, and the terminal can transmit the query information to the server. Of course, the method may also be performed on the terminal side, and the application is not limited.
S202, determining an actual query area matched with the geographic area keywords according to the query information and preset rules, wherein the preset rules are used for indicating matching rules of the geographic area keywords corresponding to different contexts.
In some implementations, the geographic region keywords do not represent the actual query region due to the different expressions of the terms in the context, e.g., "Beijing Bank," although there is the geographic region keyword "Beijing," it may represent a Beijing bank within other administrative districts rather than indicating the Beijing area. In this embodiment, the actual query region matched with the geographic region keyword is further determined by a preset rule, so that a wrong region is prevented from being matched, and the region actually desired to be searched by the user cannot be fed back.
S203, inquiring and acquiring the recall result corresponding to the target position keyword in the actual inquiry area.
For example, if the query information is "capital museum in beijing city", and it is determined that the actual query area is beijing city, the recall result corresponding to the capital museum is queried and obtained within the scope of beijing city, where the number of recall results may be multiple, and is not limited herein.
In the embodiment of the application, the query information input by the user is received firstly, then the actual query area matched with the keywords of the geographic area is determined according to the query information and the preset rule, and finally the recall result corresponding to the keywords of the target position is queried and obtained in the actual query area, so that the actual query area is determined firstly, then the recall result is obtained in the actual query area, the accuracy of the recommended result is improved, and the user experience is further improved.
Optionally, before determining an actual query region matched with the geographic region keyword according to the query information and the preset rule, the method further includes: and sequentially identifying characters in the query information by adopting a preset algorithm to obtain the target position keywords and the geographic area keywords.
In some embodiments, when the query information input by the user is received, the characters in the query information are sequentially identified through a preset algorithm. For example, if the query information input by the user is "Beijing city capital museum", the "north" may be identified by a preset algorithm, and if the target position keyword and the geographic area keyword do not exist in the identification result, then the "Beijing" character is identified in the identification result, and so on; or, the "north" may be first identified by a preset algorithm, and if the target location keyword and the geographic area keyword do not exist in the identification result, the "beijing" may be identified by the preset algorithm until the target location keyword and the geographic area keyword are obtained, but not limited thereto.
Optionally, the preset algorithm comprises a string multi-pattern matching algorithm.
In one embodiment provided in the present application, the preset algorithm may be implemented by an AC automaton (Aho-corosickautomation, AC automaton), but is not limited thereto.
Fig. 3 is a flowchart illustrating an information query processing method according to another embodiment of the present application.
Optionally, as shown in fig. 3, the determining an actual query region matched with the geographic region keyword according to the query information and the preset rule includes:
s2021, determining the context of the key words of the geographic area in the query information.
The context includes any of the following: the position relation of the geographic area keywords in the query information, a character string formed by the geographic area keywords and adjacent keywords, the fixed collocation of the geographic area keywords and the integrity of the geographic area keywords.
The position relationship of the geographic area keyword in the query information may include that the geographic area keyword is at the front end of the query information, such as "museum of capital of beijing city", and the geographic area keyword is at other positions of the query information, such as "museum of capital of beijing city", but is not limited thereto.
In the character string formed by the geographic area keyword and the adjacent keyword, the adjacent keyword may include resident, classified, for example, in "an kang resident western office" or "shanxi branch of chinese construction bank," there are character strings "resident western ampere", "shanxi branch", etc., but not limited thereto.
The fixed collocation of the geographic region keywords may include some specific combinations, but does not necessarily indicate the actual geographic location, such as "beijing bank, beijing university, sha county snack, sichuan hot pot", and the like, but is not limited thereto.
The completeness of the geographic area keyword may indicate an abbreviation, an area code, etc. of the geographic area, for example, but not limited to, call hawy city, wu luqiqi city, an area code 010 of beijing, etc.
S2022, determining an actual query area matched with the geographic area keywords according to the context of the geographic area keywords in the query information and a preset rule.
The server may pre-configure a database in which various contexts and corresponding matching rules are recorded.
Optionally, before querying the recall result corresponding to the target location keyword in the actual query region, the method further includes: and acquiring the current position information of the user.
The client can acquire the current position information of the user by using the installed terminal and report the current position information to the server. For example, if the terminal device is a mobile device such as a smart phone or a tablet computer, the current location of the user may be determined according to an Internet Protocol Address (IP Address) accessed to a current device network, without limitation.
Correspondingly, the actual query area matched with the geographic area keywords is determined according to the context of the geographic area keywords in the query information and preset rules, and the method comprises the following steps: determining an actual query area matched with the geographic area keywords according to the current position information of the user, the context of the geographic area keywords in the query information and a preset rule, wherein the actual query area comprises: the current position information of the user is located in the area and/or the area indicated by the geographic area key words.
In the prior art, generally, a recall result is preferentially obtained at a current position of a user, and in the embodiment of the application, a preset rule is constructed by analyzing according to actual conditions and historical data, so that an area which the user actually wants to query can be more accurately matched. The actual query area may be the area where the user's current location information is located or may be the area indicated by the geographic area keywords.
In some embodiments, the actual query region may be first matched by the geographic region keyword, and if the actual query region is not matched, the actual query region may be determined by the region where the current location information of the user is located. Or after the actual query area is matched through the geographic area keywords, the area where the current position information of the user is located may be confirmed again, which is not limited herein.
Optionally, the actual query area matched with the geographic area keyword is determined according to the current location information of the user, the context of the geographic area keyword in the query information, and a preset rule, and the actual query area comprises any one of the following items:
and determining the corresponding relation between the position relation and the actual query area according to the position relation of the geographic area key words in the query information, and determining the actual query area. For example, preset rules may include: and when the geographic area key words are at the top or the bottom of the query information, taking the area indicated by the geographic area key words as an actual query area, otherwise, taking the area where the current position information of the user is located as the actual query area.
Or, inquiring whether a character string formed by the geographic area key words and the adjacent key words exists in the preset rule, and if so, determining the actual inquiry area according to the corresponding relation between the character string and the actual inquiry area. The character strings formed by the geographic area keywords and the adjacent keywords may be configured in the preset rule in advance, for example, the actual query area corresponding to "beijing marks" is beijing, and the actual query area corresponding to "resident xi 'an" is xi' an, which is not limited to this.
Or, determining whether a fixed match in a preset rule exists in the query information, and if so, determining the actual query area according to the corresponding relation between the fixed match and the actual query area. For example, "Beijing Bank" and "Sha county snack" are fixed and collocated in blacklist, then the area where the current position information of the user is located is used as the actual query area; or the white lists of "beijing old palace" and "beijing university" are fixedly collocated, and the area indicated by the geographic area keyword is taken as the actual query area, which is not limited to this certainly.
Or obtaining the confidence of the region indicated by the geographic region key words according to the integrality of the geographic region key words, and determining the actual query region according to the confidence. For example, if the integrity of "west ampere city" is higher than "west ampere", the confidence of the geographic area keyword "west ampere" in "west ampere XX hotel" is lower than the confidence of the geographic area keyword "west ampere city" in "west ampere city XX hotel", and if the user is not currently in west ampere, the probability of recommending a west ampere local hotel at search for "west ampere city XX hotel" is less than the probability of recommending a west ampere local hotel at search for "west ampere city XX hotel".
Optionally, determining an actual query region matched with the geographic region keyword according to the current location information of the user, the context of the geographic region keyword in the query information, and a preset rule, includes: and determining actual query areas matched with the geographic area keywords and corresponding recall proportions of the actual query areas according to the current position information of the user, the contexts of the geographic area keywords in the query information and preset rules.
For example, assuming that the user is currently in the Beijing search for "Xian XX Hotel," the recall results may include the XX Hotel of Xian, and may also include the XX Hotel local to Beijing, with a lower recall ratio for the XX Hotel of Xian. However, when the user is currently in "XX hotel in west ampere city" in beijing, the recall ratio of XX hotel containing west ampere in the recall result is very high.
Fig. 4 shows a schematic structural diagram of an information query processing apparatus according to some embodiments of the present application.
The functions realized by the information inquiry processing device correspond to the steps executed by the method. The device can be understood as the server or the processor of the server, and can also be understood as a component which is independent of the server or the processor and realizes the functions of the application under the control of the server.
As shown in fig. 4, the information query processing apparatus provided by the present application includes:
a receiving module 301, configured to receive query information input by a user, where the query information includes: target location keywords, geographic area keywords.
The determining module 302 is configured to determine an actual query region matched with the geographic region keywords according to the query information and a preset rule, where the preset rule is used to indicate a matching rule corresponding to each geographic region keyword in different contexts.
The first obtaining module 303 is configured to query and obtain a recall result corresponding to the target location keyword in the actual query region.
Fig. 5 is a schematic structural diagram illustrating an information query processing apparatus according to another embodiment of the present application.
Optionally, as shown in fig. 5, the apparatus further includes: the identification module 304 is configured to sequentially identify characters in the query information by using a preset algorithm, and obtain a target location keyword and a geographic area keyword.
Optionally, the determining module 302 is specifically configured to determine a context of the geographic area keyword in the query information, where the context includes any one of the following: the position relation of the geographic area keywords in the query information, a character string formed by the geographic area keywords and adjacent keywords, the fixed collocation of the geographic area keywords and the integrity of the geographic area keywords. And determining an actual query area matched with the geographic area keywords according to the context of the geographic area keywords in the query information and a preset rule.
Optionally, the preset algorithm comprises a string multi-pattern matching algorithm.
Fig. 6 is a schematic structural diagram illustrating an information query processing apparatus according to another embodiment of the present application.
Optionally, as shown in fig. 6, the apparatus further includes: a second obtaining module 305, configured to obtain current location information of the user. Correspondingly, the determining module 302 is specifically configured to determine an actual query area matched with the geographic area keyword according to the current location information of the user, the context of the geographic area keyword in the query information, and a preset rule, where the actual query area includes: the current position information of the user is located in the area and/or the area indicated by the geographic area key words.
Optionally, the determining module 302 is specifically configured to determine, according to a location relationship of the geographic area keyword in the query information, a corresponding relationship between the location relationship and the actual query area, and determine the actual query area. Or, inquiring whether a character string formed by the geographic area key words and the adjacent key words exists in the preset rule, and if so, determining the actual inquiry area according to the corresponding relation between the character string and the actual inquiry area. Or, determining whether a fixed match in a preset rule exists in the query information, and if so, determining the actual query area according to the corresponding relation between the fixed match and the actual query area. Or obtaining the confidence of the region indicated by the geographic region key words according to the integrality of the geographic region key words, and determining the actual query region according to the confidence.
Optionally, the determining module 302 is specifically configured to determine, according to the current location information of the user, the context of the geographic area keyword in the query information, and a preset rule, an actual query area matched with the geographic area keyword and a recall ratio corresponding to each actual query area.
The modules may be connected or in communication with each other via a wired or wireless connection. The wired connection may include a metal cable, an optical cable, a hybrid cable, etc., or any combination thereof. The wireless connection may include a connection via a Wireless Local Area Network (WLAN), bluetooth, ZigBee, NFC, or the like, or any combination thereof. Two or more modules may be combined into a single module, and any one module may be divided into two or more units. It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to corresponding processes in the method embodiments, and are not described in detail in this application. In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. The above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is merely a logical division, and there may be other divisions in actual implementation, and for example, a plurality of modules or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or modules through some communication interfaces, and may be in an electrical, mechanical or other form.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
It should be noted that the above modules may be one or more integrated circuits configured to implement the above methods, for example: one or more Application Specific Integrated Circuits (ASICs), or one or more microprocessors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs), among others. For another example, when one of the above modules is implemented in the form of a Processing element scheduler code, the Processing element may be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. For another example, the modules may be integrated together and implemented in the form of a System-on-a-chip (SOC).
Fig. 7 shows a schematic structural diagram of an electronic device provided in some embodiments of the present application.
As shown in fig. 7, the electronic apparatus includes: a processor 401, a computer-readable storage medium 402, and a bus 403, wherein:
the electronic device may include one or more processors 401, a bus 403, and a computer-readable storage medium 402, wherein the computer-readable storage medium 402 is used for storing programs, the processors 401 are communicatively connected with the computer-readable storage medium 402 through the bus 403, and the processors 401 call the programs stored in the computer-readable storage medium 402 to execute the above-mentioned method embodiments.
The electronic device may be a general-purpose computer, a server, a mobile terminal, or the like, and is not limited herein. The electronic equipment is used for realizing the face recognition method.
It is noted that processor 401 may include one or more processing cores (e.g., a single-core processor or a multi-core processor). Merely by way of example, a 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 (Reduced Instruction Set computer), a microprocessor, or the like, or any combination thereof.
The computer-readable storage medium 402 may include: including mass storage, removable storage, volatile Read-and-write Memory, or Read-Only Memory (ROM), among others, or any combination thereof. By way of example, mass storage may include magnetic disks, optical disks, solid state drives, and the like; removable memory may include flash drives, floppy disks, optical disks, memory cards, zip disks, tapes, and the like; volatile read-write memory may include Random Access Memory (RAM); the RAM may include Dynamic RAM (DRAM), Double data Rate Synchronous Dynamic RAM (DDR SDRAM); static RAM (SRAM), Thyristor-Based Random Access Memory (T-RAM), Zero-capacitor RAM (Zero-RAM), and the like. By way of example, ROMs may include Mask Read-Only memories (MROMs), Programmable ROMs (PROMs), Erasable Programmable ROMs (PERROMs), Electrically Erasable Programmable ROMs (EEPROMs), compact disk ROMs (CD-ROMs), digital versatile disks (ROMs), and the like.
For ease of illustration, only one processor 401 is depicted in the electronic device. It should be noted, however, that the electronic device in the present application may also comprise a plurality of processors 401, and thus the steps performed by one processor described in the present application may also be performed by a plurality of processors in combination or individually. For example, if the processor 401 of the electronic device executes step a and step B, it should be understood that step a and step B may also be executed by two different processors together or executed in one processor separately. For example, a first processor performs step a and a second processor performs step B, or the first processor and the second processor perform steps a and B together.
Optionally, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the above-mentioned method embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (16)

1. An information query processing method, comprising:
receiving query information input by a user, wherein the query information comprises: target location keywords, geographic area keywords;
determining an actual query region matched with the geographic region keywords according to the query information and preset rules, wherein the preset rules are used for indicating matching rules of the geographic region keywords corresponding to different contexts;
and inquiring and acquiring a recall result corresponding to the target position keyword in the actual inquiry area.
2. The method of claim 1, wherein before determining the actual query region matching the geographic region keyword according to the query information and a preset rule, the method further comprises:
and sequentially identifying characters in the query information by adopting a preset algorithm, and acquiring the target position keywords and the geographic area keywords.
3. The method according to claim 1 or 2, wherein the determining an actual query region matching the geographic region keyword according to the query information and a preset rule comprises:
determining a context of the geographic region keyword in the query information, the context including any of: the position relation of the geographic area keywords in the query information, a character string formed by the geographic area keywords and adjacent keywords, fixed collocation of the geographic area keywords and the integrity of the geographic area keywords;
and determining an actual query area matched with the geographic area keywords according to the context of the geographic area keywords in the query information and the preset rule.
4. The method of claim 2, wherein the predetermined algorithm comprises a string multi-pattern matching algorithm.
5. The method of claim 3, wherein before the querying in the actual query region for the recall result corresponding to the target location keyword, further comprising:
acquiring current position information of a user;
correspondingly, the determining an actual query area matched with the geographic area keyword according to the context of the geographic area keyword in the query information and the preset rule comprises:
determining an actual query area matched with the geographic area keywords according to the current position information of the user, the context of the geographic area keywords in the query information and the preset rule, wherein the actual query area comprises: the current position information of the user is located in the area, and/or the area indicated by the geographic area key words.
6. The method according to claim 5, wherein the determining the actual query region matched with the geographic region keyword according to the current location information of the user, the context of the geographic region keyword in the query information, and the preset rule comprises any one of the following:
determining the corresponding relation between the position relation and an actual query area according to the position relation of the geographic area key words in the query information, and determining the actual query area; or,
inquiring whether a character string formed by the geographic area key words and adjacent key words exists in the preset rule, and if so, determining the actual inquiry area according to the corresponding relation between the character string and the actual inquiry area; or,
determining whether the query information has a fixed match in the preset rule, and if so, determining the actual query area according to the corresponding relation between the fixed match and the actual query area; or,
and obtaining the confidence of the area indicated by the geographic area key words according to the integrality of the geographic area key words, and determining the actual query area according to the confidence.
7. The method according to claim 5 or 6, wherein the determining the actual query region matched with the geographic region keyword according to the current position information of the user, the context of the geographic region keyword in the query information and the preset rule comprises:
and determining actual query areas matched with the geographic area keywords and corresponding recall proportions of the actual query areas according to the current position information of the user, the contexts of the geographic area keywords in the query information and the preset rules.
8. An information query processing apparatus, comprising:
a receiving module, configured to receive query information input by a user, where the query information includes: target location keywords, geographic area keywords;
the determining module is used for determining an actual query area matched with the geographic area keywords according to the query information and preset rules, and the preset rules are used for indicating matching rules of the geographic area keywords corresponding to different contexts;
and the first acquisition module is used for inquiring and acquiring the recall result corresponding to the target position keyword in the actual inquiry area.
9. The apparatus of claim 8, further comprising:
and the identification module is used for sequentially identifying the characters in the query information by adopting a preset algorithm and acquiring the target position keywords and the geographic area keywords.
10. The apparatus according to claim 8 or 9, wherein the determining module is specifically configured to determine a context of the geographic area keyword in the query information, the context including any one of: the position relation of the geographic area keywords in the query information, a character string formed by the geographic area keywords and adjacent keywords, fixed collocation of the geographic area keywords and the integrity of the geographic area keywords;
and determining an actual query area matched with the geographic area keywords according to the context of the geographic area keywords in the query information and the preset rule.
11. The apparatus of claim 9, wherein the predetermined algorithm comprises a string multi-pattern matching algorithm.
12. The apparatus of claim 10, further comprising:
the second acquisition module is used for acquiring the current position information of the user;
correspondingly, the determining module is specifically configured to determine an actual query area matched with the geographic area keyword according to the current location information of the user, the context of the geographic area keyword in the query information, and the preset rule, where the actual query area includes: the current position information of the user is located in the area, and/or the area indicated by the geographic area key words.
13. The apparatus according to claim 12, wherein the determining module is specifically configured to determine, according to a location relationship of the geographic area keyword in the query information, a correspondence between the location relationship and an actual query area, and determine the actual query area; or,
inquiring whether a character string formed by the geographic area key words and adjacent key words exists in the preset rule, and if so, determining the actual inquiry area according to the corresponding relation between the character string and the actual inquiry area; or,
determining whether the query information has a fixed match in the preset rule, and if so, determining the actual query area according to the corresponding relation between the fixed match and the actual query area; or,
and obtaining the confidence of the area indicated by the geographic area key words according to the integrality of the geographic area key words, and determining the actual query area according to the confidence.
14. The apparatus according to claim 12 or 13, wherein the determining module is specifically configured to determine, according to the current location information of the user, the context of the geographic area keyword in the query information, and the preset rule, an actual query area matched with the geographic area keyword and a recall ratio corresponding to each actual query area.
15. An electronic device, comprising: a processor, a storage medium and a bus, the storage medium storing machine-readable instructions executable by the processor, the processor and the storage medium communicating via the bus when the electronic device is running, the processor executing the machine-readable instructions to perform the steps of the information query processing method according to any one of claims 1 to 7.
16. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the information query processing method according to any one of claims 1 to 7.
CN201910906490.4A 2019-09-24 2019-09-24 Information query processing method and device, electronic equipment and readable storage medium Active CN111651535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910906490.4A CN111651535B (en) 2019-09-24 2019-09-24 Information query processing method and device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910906490.4A CN111651535B (en) 2019-09-24 2019-09-24 Information query processing method and device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111651535A true CN111651535A (en) 2020-09-11
CN111651535B CN111651535B (en) 2021-08-17

Family

ID=72349195

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910906490.4A Active CN111651535B (en) 2019-09-24 2019-09-24 Information query processing method and device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111651535B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699195A (en) * 2020-12-29 2021-04-23 广州城市信息研究所有限公司 Geospatial data processing method, geospatial data processing device, computer equipment and storage medium
CN114301840A (en) * 2021-12-16 2022-04-08 山石网科通信技术股份有限公司 Geographic information base loading method and device and electronic equipment
CN115037792A (en) * 2022-05-25 2022-09-09 绿盟科技集团股份有限公司 Information acquisition method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350013A (en) * 2007-07-18 2009-01-21 北京灵图软件技术有限公司 Method and system for searching geographical information
US20100185612A1 (en) * 2009-01-13 2010-07-22 Hotchalk Inc. Method for Producing an Ordered Search List
CN102291435A (en) * 2011-07-15 2011-12-21 武汉大学 Mobile information searching and knowledge discovery system based on geographic spatiotemporal data
CN103942221A (en) * 2013-01-23 2014-07-23 百度在线网络技术(北京)有限公司 Retrieval method and equipment
US20150120751A1 (en) * 2013-10-29 2015-04-30 Thinkware Systems Corporation Apparatus and method for processing map data by real-time index creation and system thereof
CN105117494A (en) * 2015-09-23 2015-12-02 中国搜索信息科技股份有限公司 Spatial entity mapping method in fuzzy linguistic environment
CN105574019A (en) * 2014-10-14 2016-05-11 高德软件有限公司 Query parameter processing method and device
US9886462B1 (en) * 2012-12-31 2018-02-06 Google Inc. Selecting content using a location feature index

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101350013A (en) * 2007-07-18 2009-01-21 北京灵图软件技术有限公司 Method and system for searching geographical information
US20100185612A1 (en) * 2009-01-13 2010-07-22 Hotchalk Inc. Method for Producing an Ordered Search List
CN102291435A (en) * 2011-07-15 2011-12-21 武汉大学 Mobile information searching and knowledge discovery system based on geographic spatiotemporal data
US9886462B1 (en) * 2012-12-31 2018-02-06 Google Inc. Selecting content using a location feature index
CN103942221A (en) * 2013-01-23 2014-07-23 百度在线网络技术(北京)有限公司 Retrieval method and equipment
US20150120751A1 (en) * 2013-10-29 2015-04-30 Thinkware Systems Corporation Apparatus and method for processing map data by real-time index creation and system thereof
CN105574019A (en) * 2014-10-14 2016-05-11 高德软件有限公司 Query parameter processing method and device
CN105117494A (en) * 2015-09-23 2015-12-02 中国搜索信息科技股份有限公司 Spatial entity mapping method in fuzzy linguistic environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
盖森 等: ""一种结合LDA主题分析的地理信息检索方法"", 《测绘科学技术学报》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112699195A (en) * 2020-12-29 2021-04-23 广州城市信息研究所有限公司 Geospatial data processing method, geospatial data processing device, computer equipment and storage medium
CN112699195B (en) * 2020-12-29 2023-12-19 广州城市信息研究所有限公司 Geospatial data processing method, device, computer equipment and storage medium
CN114301840A (en) * 2021-12-16 2022-04-08 山石网科通信技术股份有限公司 Geographic information base loading method and device and electronic equipment
CN114301840B (en) * 2021-12-16 2024-02-13 山石网科通信技术股份有限公司 Method and device for loading geographic information base and electronic equipment
CN115037792A (en) * 2022-05-25 2022-09-09 绿盟科技集团股份有限公司 Information acquisition method and device, electronic equipment and storage medium
CN115037792B (en) * 2022-05-25 2023-05-12 绿盟科技集团股份有限公司 Information acquisition method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111651535B (en) 2021-08-17

Similar Documents

Publication Publication Date Title
CN111651685A (en) Interest point obtaining method and device, electronic equipment and storage medium
US10979863B2 (en) Systems and methods for recommending a destination
CN111651535B (en) Information query processing method and device, electronic equipment and readable storage medium
US10356554B2 (en) Information processing method, terminal, server, and computer storage medium
US20090100037A1 (en) Suggestive meeting points based on location of multiple users
US8775420B2 (en) Text display of geo-referenced information based on relative distance to a user location
AU2016397278B2 (en) System and method for determining location
US20120203457A1 (en) Systems and methods for visualizing events together with points of interest on a map and routes there between
US10715953B2 (en) Location search using dynamic regions generated based on service data
JP2019505867A (en) System and method for distributing service requests for on-demand services
TW201818342A (en) Systems and methods for determining a reference direction related to a vehicle
US20070233658A1 (en) Identifying a result responsive to location data for multiple users
CN109164923B (en) Method and device for recommending candidate words by input method, computer equipment and storage medium
CN112037775B (en) Voice recognition method, device, equipment and storage medium
KR101934420B1 (en) Method and apparatus for obtaining candidate address information in map
CN111866073A (en) Service site push analysis method and device, electronic equipment and storage medium
CN109068374B (en) Resident POI (Point of interest) determining method, resident POI determining device, terminal and storage medium
US9361633B1 (en) Determining present venue for a user device
CN110160535B (en) Road matching method and device
US7561871B2 (en) Methods, systems and computer program products for directing a user to a wireless network access point
CN112035548A (en) Identification model acquisition method, identification method, device, equipment and medium
CN110704745A (en) Information searching method and device of vehicle-mounted terminal
JP6796190B2 (en) Data sharing judgment device
JP2021077296A (en) Information providing apparatus
JP2019046347A (en) Information processing apparatus, information processing system, information processing method, and program

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant