Method, device and equipment for inquiring route information

A route and target route technology, applied in the field of information processing, can solve problems such as cumbersome operations and user inconvenience, and achieve the effect of reducing user operations and improving user experience

Pending Publication Date: 2019-08-16
BEIJING SOGOU TECHNOLOGY DEVELOPMENT CO LTD
0 Cites 0 Cited by

AI-Extracted Technical Summary

Problems solved by technology

It can be seen that the operations performed by the user in order to query th...
View more

Method used

As another example, the user receives the communication content "you want to go to Wangjing from Wudaokou" sent by the friend in the process of chatting with the friend in the instant messaging software, and the input content "you want to go to Wangjing from Wudaokou" can express the user The intent to query the route from "Wudaokou" to "Wangjing". In the embodiment of the present invention, it is possible to identify the user's intention to query the route from "Wudaokou" to "Wangjing" according to the received communication content "You want to go from Wudaokou to Wangjing", and automatically query the route from "Wudaokou" to "Wangjing" The route information of "Wangjing" presents the obtained route information on the terminal. In this way, the user can obtain the route information that the user wants to query without exiting the operation interface of...
View more

Abstract

The invention discloses a method for inquiring route information. The method comprises the following steps: acquiring user input content and/or received communication content as current content; if the current place name word is found in the current content, deleting the current place name word from the current content to obtain a to-be-matched content; matching the to-be-matched content with a pre-recorded sentence pattern template, wherein the sentence pattern template has a semantic meaning of inquiring a route; and if the to-be-matched content matches the sentence pattern template, performing route information query based on the current place name word to obtain target route information. Through the method for inquiring route information, the user can directly obtain the route information which the user wants to inquire without exiting from the current application program and switching to the application with the route inquiry function to inquire the route information through a series of operations, so that unnecessary user operations are reduced. In addition, the invention also discloses a device for inquiring route information.

Application Domain

Geographical information databasesSpecial data processing applications

Technology Topic

Information retrievalApplication software +3

Image

  • Method, device and equipment for inquiring route information
  • Method, device and equipment for inquiring route information
  • Method, device and equipment for inquiring route information

Examples

  • Experimental program(1)

Example Embodiment

[0077] In order to make those skilled in the art better understand the solutions of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only These are some embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
[0078] The inventor found through research that in the prior art, if a user needs to query route information when using a smart device, he first needs to exit the currently used application, then find the icon of the application with the route query function, and click the icon to enter the application. Application, enter the departure and destination at the specified location respectively, and then click query to obtain the route information that the user wants to query.
[0079] This series of operation processes is cumbersome for the user, thereby causing inconvenience for the user to operate.
[0080] In order to solve the above problem, in the embodiment of the present invention, considering that in practical applications, the input content before the user needs to query the route information and the received communication content may express the user's intention to query the route information, it is possible to use The current user input and/or the currently received communication to identify the user's intent to query the route information, thereby automatically in the event that the user input or received communication shows the intent to query the route Query the route information that the user wants to query, and present the route information obtained by the query on the terminal.
[0081] For example, a user enters "I want to go to Wangjing from Wudaokou" in the process of chatting with friends in the instant messaging software, and the input content "I want to go to Wangjing from Wudaokou" can express that the user wants to query from "Wudaokou" to "Wandaokou" to "Wangjing" the intent of the route. In the embodiment of the present invention, the user's intention to inquire about the route from "Wudaokou" to "Wangjing" can be identified according to the user's input content "I want to go from Wudaokou to Wangjing", and the user can automatically inquire about the route from "Wudaokou" to "Wangjing" ”, and present the route information obtained by the query on the terminal. In this way, the user does not need to exit the operation interface of the instant messaging software and enter an application program with a route query function for query, and can obtain the route information that the user wants to query, thereby simplifying the user operation and improving the user experience.
[0082] For another example, the user receives the communication content "You want to go to Wangjing from Wudaokou" in the process of chatting with friends in the instant messaging software, and the input content "You want to go to Wangjing from Wudaokou" can express that the user wants to query. The intention of the route from "Wudaokou" to "Wangjing". In the embodiment of the present invention, the user's intention to inquire about the route from "Wudaokou" to "Wangjing" can be identified according to the received communication content "You want to go from Wudaokou to Wangjing", and the user can automatically inquire about the route from "Wudaokou" to "Wandaokou" to The route information of "Wangjing", the route information obtained by the query is presented on the terminal. In this way, the user does not need to exit the operation interface of the instant messaging software and enter an application program with a route query function for query, and can obtain the route information that the user wants to query, thereby simplifying the user operation and improving the user experience.
[0083] By way of example, the embodiments of the present invention may be applied to figure 1 the scene shown. In this scenario, the terminal 101 and the server 103 can interact through the network 102 .
[0084] As an example, in the above scenario, first, the terminal 101 may acquire the content currently input by the user and/or the communication content currently received on the terminal as the current content. Then, the terminal 101 can upload the acquired current content to the server 103 through the network 102 . The server 103 may first determine whether the current content contains the current place noun, and if so, delete the current place noun from the current content to obtain the content to be matched, and then compare the content to be matched with the pre-recorded sentence pattern with the query route semantics The template is matched, and if the to-be-matched content matches the sentence pattern template, the route information query is performed based on the current gazetteer. Then, the server 103 sends the route information obtained by the query to the terminal 101 through the network 102, and instructs the terminal 101 to present the route information.
[0085] As another example, in the above scenario, firstly, the terminal 101 may acquire the content currently input by the user on the terminal and/or as the current content. Then, the terminal 101 first determines whether the current content contains the current place noun, and if so, the terminal 101 sends the current content to the server 103 through the network 102 . Wherein, the thesaurus information of the current place noun may be stored on the terminal 101 in advance. The server 103 deletes the current place noun from the current content to obtain the to-be-matched content, and then matches the to-be-matched content with a pre-recorded sentence pattern template with query route semantics, if the to-be-matched content matches the sentence pattern template , the route information query is based on the current gazetteer. Then, the server 103 sends the route information obtained by the query to the terminal 101 through the network 102, and instructs the terminal 101 to present the route information.
[0086] As yet another embodiment, in the above scenario, first, the terminal 101 may acquire the content currently input by the user and/or the communication content currently received on the terminal as the current content. Then, the terminal 101 first determines whether the current content contains the current place noun, and if so, the terminal 101 deletes the current place noun from the current content to obtain the content to be matched, and then compares the content to be matched with the pre-recorded semantics of the query route If the content to be matched matches the sentence template, the terminal 101 can send a route query request for the current place noun to the server 103 through the network 102 . The server 103 may query the route information based on the current gazetteer according to the route query request, and send the queried route information to the terminal 101 through the network 102, so that the terminal 101 presents the route information. Wherein, the thesaurus information of the current place noun may be pre-stored on the terminal 101; the pre-recorded sentence template with the query route semantics may be sent by the server 103 to the terminal 101 through the network 102 in advance.
[0087] It can be understood that, in the above application scenarios, although the actions of the embodiments of the present invention are described as being partially performed by the terminal 101 and partially performed by the server. However, these actions may also be all performed by the terminal 101 or all performed by the server 103 or partially performed by the terminal 101 and the server 103 in other combined manners. The present invention is not limited in terms of the execution subject, as long as the actions disclosed in the embodiments of the present invention are executed.
[0088] It should be noted that the above application scenarios are only shown for the convenience of understanding the present invention, and the embodiments of the present invention are not limited in this respect. Rather, embodiments of the present invention can be applied to any scenario where applicable.
[0089] Various non-limiting embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0090] Exemplary method
[0091] see figure 2 , showing a schematic flowchart of a method for querying route information in an embodiment of the present invention. In this embodiment, the method may include the following steps, for example:
[0092] S201: Acquire user input content and/or received communication content as current content.
[0093] In order to determine the intent of the route information that the user wants to inquire about through the user's input content or received communication content, the terminal can obtain the user's current input content and/or the currently used application program through the input method system The communication content currently received by the program is taken as the current content. For example, for user input content, when the user triggers an input operation in the currently used application, the terminal can call the input method system, so that the user can use the input method system to input content in the currently used application, so that the input method The system can obtain the current content entered by the user in the currently used application.
[0094]As an example, if the terminal obtains the current content through an input method system, the current content may be content input by the user or communication content received by Haofa when the user uses a chat application to chat , the chat application can be any instant messaging software such as WeChat, Yixin, QQ, etc.
[0095] As another example, if the terminal obtains the current content input by the user on the terminal through the input method system, the current content input by the user on the terminal may also be the content input by the user when using an application with a search function to search . For example, the current content input by the user may be the content input by the user when searching using a browser.
[0096] In addition, the current content input by the user on the terminal may also be content input in other scenarios using the input method.
[0097] S202: If the current place noun is found in the current content, delete the current place noun from the current content to obtain the content to be matched.
[0098] S203: Match the to-be-matched content with a pre-recorded sentence pattern template, wherein the sentence pattern template has the semantics of asking for a route.
[0099] During specific implementation, the current gazetteer may be found in an existing gazetteer, that is, the current gazetteer belongs to the gazetteer included in the gazetteer. It is understood that the place names in the gazetteer may include place names and building names. Therefore, the current place noun may be a specific place name, for example, the current place noun may be "Wudaokou", "Wangjing", and so on. Alternatively, the current place noun may also be the name of a landmark building, for example, the current place noun may be "Oriental Pearl TV Tower", "Nanjing Xuanwu Gate", and so on.
[0100] When searching for the current gazetteer in the current content, the current content input by the user may be split first, the complete sentence input by the user may be split into multiple words, and each split word may be compared with the words in the gazetteer table. The gazetteer is compared to determine the current gazetteer in the current input content. For example, the current content entered by the user is "I want to go from Wudaokou to Wangjing", when looking for the place nouns in the content, firstly split "I want to go from Wudaokou to Wangjing", and the split result is "I #有#from #wudaokou#到#wangjing", compare the split words "I", "yao", "cong", "wudaokou", "to" and "wangjing" with the place nouns in the list of place nouns, If it is found that the place nouns have place nouns "Wudaokou" and "Wandaokou", it is determined that the current place nouns in the current input content are "Wudaokou" and "Wandaokou" and "Wandaokou".
[0101] It can be understood that, when the current content input by the user includes place nouns, sometimes the user has the intention to inquire about the route, but sometimes the user may not have the intention to inquire about the route. For example, if the current content input by the user is "Wudaokou is really fun", the user probably does not have the intention to inquire about route information when inputting the content. Therefore, when it is determined that the current content input by the user contains the current place noun, it is also necessary to further determine whether the semantics expressed by the current content input by the user is to inquire about the route. In specific implementation, the current place noun can be deleted from the current content, the current content input by the user who deletes the current place name can be used as the content to be matched, and the content to be matched is matched with a pre-recorded sentence pattern template to determine Whether the user has the semantics of querying route information, wherein the pre-recorded sentence template has the semantics of querying the route. Specifically, if the content to be matched contains the sentence pattern template, it is considered that the content to be matched matches the sentence pattern template, that is to say, the current content input by the user corresponding to the content to be matched has a query route information. semantics. For example, the pre-recorded sentence template is "from ** to **", the current content input by the user is "how to get from Wudaokou to Wangjing", and the content to be matched corresponding to the current content is "how to get from ** to **" , the content to be matched "how from ** to **" contains the sentence template "from ** to **", then it is considered that the content to be matched "how from ** to **" and the sentence template "from ** to **" **", that is to say, the current content "how to get from Wudaokou to Wangjing" entered by the user has the semantics of asking for route information.
[0102] In this embodiment, the sentence pattern template with the semantics of querying the route is recorded before the template is used to judge whether the content to be matched has the semantics of querying the route information. Wherein, the recording manner of the sentence pattern template may have various implementation manners.
[0103] As an example, in order to realize the recording of the sentence pattern template, before S203, it may further include: in response to a user editing operation on the sentence pattern template, recording the content input under the user editing operation as the sentence pattern template.
[0104] It can be understood that the developer may know some content that the user may input when he wants to query the route. In this case, the developer may directly input the sentence template by performing the user editing operation. For example, if the developer knows that "from ** to **" will be entered when the user wants to query the route, the developer can directly enter "from ** to **" through the user's edit operation to trigger the record "From * *to**" is a sentence template. For another example, if the developer knows that "how to get to **" will be entered when the user wants to query the route, the developer can directly input "how to get to **" through the user's editing operation to trigger the recording of "how to get to **" Sentence template.
[0105] As another example, in order to realize the recording of the sentence template, before S203, the method may further include: for jumping to the historical user behavior of performing route query on an application with a route query function, obtaining the historical user behavior before the historical user behavior. User input content and/or received communication content, as the first historical content; if the first historical content contains a first historical place noun and the location represented by the first historical place noun is related to the historical user In the behavior, the designated position used for querying the route is consistent, and the sentence pattern template is extracted and recorded from the part of the first historical content excluding the part of the first historical place noun.
[0106] For the convenience of description, in the following description, "historical user behavior" means "the behavior of the user jumping to an application with a route query function to perform a route query".
[0107] It can be understood that the user input content and the received communication content before the historical user behavior may express the user's intention to query the route information. In other words, the user jumps to the application with the route query function to execute the route query. Either the input or the communication received may have the semantics of asking for directions. For example, the user jumps to "Baidu Map" to query a certain route information. Before the user jumps to "Baidu Map" to query the route information, the historical content entered by the user is "I don't know how to get from Wudaokou to Wangjing". The input content "I don't know how to get from Wudaokou to Wangjing" before jumping to "Baidu Map" to query the route information may express the user's intention to query the route information. Therefore, the user input content and/or the received communication content before the historical user behavior can be acquired as the first historical content, and the sentence pattern template is recorded according to the first historical content.
[0108] It can be understood that, for the first historical content, the first historical content may or may not have the semantics of querying the route. For example, the user jumps to "Baidu Map" to query a certain route information. Before the user jumps to "Baidu Map" to query the route information, the first historical content entered by the user is "Stop talking, I'm going to be busy" , but the first historical content "I'm not talking, I'm going to be busy" does not have the semantics of querying route information. In view of this situation, after acquiring the first historical content, it can be judged whether the first historical content contains the semantics of the query route, and then only the first historical content containing the semantics of the query route is used to record the sentence template, and Sentence templates are not recorded with first historical content that does not contain query route semantics.
[0109] In order to determine whether the first historical content contains the semantics of the query route, it is possible to first determine whether the first historical content contains the first historical place noun. If the first historical content contains the first historical place noun and the If the position represented by the first historical place noun is consistent with the designated position used for querying the route in the historical user behavior, it is determined that the first historical content has the semantics of querying the route.
[0110] It should be noted that the first historical place noun may include two place names or one place name. The following is an introduction to the first historical place noun containing two place names and the first historical place noun containing one place name.
[0111] When the first historical place noun includes two place nouns, for example, the first historical content input by the user is "I don't know how to get from Wudaokou to Wangjing", and the first historical place noun contained in the first historical content is "Wudaokou" and "Wandaokou", after the user enters the content, they jump to "Baidu Map" to query the route information from "Wudaokou" to "Wangjing", that is to say, the location information and usage of the first historical place nouns The location of the query route is the same, both are "Wudaokou" and "Wangjing". Then it can be determined that the first historical content "I don't know how to get from Wudaokou to Wangjing" has the semantics of asking for a route.
[0112] After it is determined that the first historical content has the semantics of asking for a route, the part of the first historical place noun from the first historical content may be excluded as the sentence pattern template and recorded. For example, the first historical content is "I don't know how to get from Wudaokou to Wangjing", and the part of the first historical place nouns "Wudaokou" and "Wandaokou" from "I don't know how to get from Wudaokou to Wangjing" is "I don't know" How to get from ** to **", you can use "I don't know how to get from ** to **" as a sentence template and record it.
[0113] Further, considering that different content may be used to express the same semantics when the user inputs content, in order to make the recorded sentence template more widely applicable to the user's variable input content, this embodiment can also be based on the above description. On the basis of excluding the first historical place nouns in the first historical content, parts that do not affect the semantics of the query route are removed, so as to obtain a sentence pattern template and record it. For example, the first historical content is "I don't know how to get from Wudaokou to Wangjing", and the part of the first historical place nouns "Wudaokou" and "Wandaokou" from "I don't know how to get from Wudaokou to Wangjing" is "I don't know" How to get from ** to **", "I don't know how" can be removed from it, so as to extract "from ** to **" with the semantics of asking the route as a sentence template and record it.
[0114] When the first historical place noun includes a place noun, for example, the first historical content input by the user is "I don't know how to go to Wangjing", and the first historical place noun contained in the first historical content is "Wangjing" , the user jumps to "Baidu Map" after entering the content to query the route information from the current location to "Wangjing", that is to say, the location information represented by the first historical place noun is consistent with the formulation location used for querying the route , are "front positioning position" and "Wangjing". Then it can be determined that the first historical content "I don't know how to get to Wangjing" has the semantics of asking for directions.
[0115] After it is determined that the first historical content has the semantics of asking for a route, the part of the first historical place noun from the first historical content may be excluded as the sentence pattern template and recorded. For example, the first historical content is "I don't know how to go to Wangjing", and the part of the first historical place noun "Wangjing" is removed from "I don't know how to go to Wangjing" as "I don't know how to go to **", you can use "I don't know how to **" is used as a sentence template and recorded.
[0116]Further, considering that different content may be used to express the same semantics when the user inputs content, in order to make the recorded sentence template more widely applicable to the user's variable input content, this embodiment can also be based on the above description. On the basis of excluding the first historical place nouns in the first historical content, parts that do not affect the semantics of the query route are removed, so as to obtain a sentence pattern template and record it. For example, the first historical content is "I don't know how to go to Wangjing", and the part that removes the first historical place noun "Wangjing" from "I don't know how to go to Wangjing" is "I don't know how to get there". Then remove "I don't know", so as to extract "how to get to **" with the semantics of asking the route as a sentence template and record it.
[0117] As another example, in order to realize the recording of the sentence template, before S203, it may further include: obtaining the second historical content input by the user; if the second historical content contains a second historical place noun, obtain the second historical content extracting an initial template from the second historical content excluding the part of the second historical place noun; in response to a confirmation operation for the initial template, recording the initial template as the sentence template.
[0118] It should be noted that, in order to realize the record of the sentence template, the second historical content input by the user can also be directly obtained. When the second historical content contains a second historical place noun, the second historical The content excluding the part of the second historical place noun is used as an initial template, and it is up to the developer to judge whether the initial template has the semantics of asking for a route. If the initial template has the meaning of the route query, the initial template is recorded as the sentence template, and if the initial template does not have the meaning of the route query, the initial template is discarded. For example, for the initial templates "how to get to **" and "** is really fun", when the developer confirms the initial template and thinks that "how to get to **" has the semantics of asking for directions, then "how to get to **" is used as a sentence When the developer confirms the initial template and thinks that "** is fun" does not have the semantics of asking for a route, the initial template is discarded.
[0119] S204: If the to-be-matched content matches the sentence pattern template, query route information based on the current place noun to obtain target route information.
[0120] It can be understood that, the number of place nouns contained in the current content input by the user may have various situations.
[0121] As an example, the current gazetteer includes a first gazetteer and a second gazetteer. For example, the current content input by the user is "I want to go from Wudaokou to Wangjing", and the current content includes the first place noun "Wudaokou" and the second place noun "Wandaokou". When the current content input by the user includes a first gazetteer and a second gazetteer, the target route information is used to indicate a route between the location represented by the first gazetteer and the location represented by the second gazetteer . For example, if the current content input by the user is "I want to go from Wudaokou to Wangjing", the target route information may be used to indicate the route information between the position indicated by "Wudaokou" and the position indicated by "Wandaokou".
[0122] As another example, the current gazetteer contains only the third gazetteer. For example, the current content input by the user is "How to go to Wangjing?", and the current content only includes the third place noun "Wangjing". When the current content input by the user only includes a third place noun, the target route information is used to indicate a route between the position represented by the third place noun and the current location of the terminal. For example, if the current content input by the user is "How to get to Wangjing?", the target route information may be used to indicate the route information between the position indicated by "Wangjing" and the user's current positioning position.
[0123] It should be noted that the query method of the target route information may be specifically: based on the sentence template and the current place noun, determine the departure location and the destination location; calculate the distance from the departure location to the destination location route; generate target route information indicating the route.
[0124] It should be noted that, if the number of the current place nouns is different, the corresponding sentence pattern templates may also be different. Correspondingly, the specific methods for determining the departure location and the destination location are also different. The following describes specific methods for determining the location of the departure place and the location of the destination for the current place noun as one and the current place noun as two.
[0125] When the number of the current place noun is one, and the sentence pattern template is "how to go**", the departure position and the destination position correspond to the current positioning position and the current place noun. For example, if the current content input by the user is "How to get to Wudaokou", the current place noun is "Wudaokou", then the departure position is the current positioning position, and the destination position is the position indicated by "Wudaokou".
[0126] When the number of the current place nouns is two, they are the first place noun and the second place noun respectively, and the sentence pattern template is "from "the first place noun" to "the second place noun"", then , the departure location is the location indicated by the first place noun, and the destination location is the location indicated by the second place noun. For example, if the current content input by the user is "How to get from Wangjing to Wudaokou", then the first place noun is "Wandaokou", the second place noun is "Wudaokou", then the departure location is the position indicated by "Wandaokou" , the destination location is the location indicated by "Wudaokou".
[0127] It can be understood that, after the target route information for indicating the route is generated, the target route information can also be presented on the terminal, so that the user can view the target route information that conforms to his query intention.
[0128] In this embodiment, according to the content input by the user on the terminal, it is judged whether the current content input by the user contains the current place noun, and if so, delete the current place name from the current content to obtain the content to be matched; The recorded sentence pattern template with the query route semantics is matched; if the content to be matched matches the sentence pattern template, the route information query is performed based on the current place noun, and the route information obtained by the query is displayed on the terminal. It can be seen that the user can directly obtain the route information that the user wants to query without having to exit the current application, switch to the application with the route query function, and query the route information through a series of operations. Necessary user actions are reduced and the user experience is improved.
[0129] The following takes a specific scenario as an example to introduce a method for querying route information. In this specific scenario, the user is using WeChat to chat with a friend, and during the chat, the user enters the content "How do I get from Wudaokou to Wangjing?". Among them, "Wudaokou" and "Wangjing" are geographical nouns contained in the existing geographical noun table; the pre-recorded sentence template is "from ** to **".
[0130] see image 3 , showing a schematic flowchart of a method for querying route information in an embodiment of the present invention. The method may include the following steps:
[0131] S301: The user inputs the content "how to get from Wudaokou to Wangjing".
[0132] S302: The terminal obtains the current content "how to get from Wudaokou to Wangjing" input by the user.
[0133] S303: The terminal sends the current content "How to get from Wudaokou to Wangjing" to the server.
[0134] S304: The server finds the current place nouns "Wudaokou" and "Wandaokou" from the current content "How to get from Wudaokou to Wangjing".
[0135] S305: The server deletes "Wudaokou" and "Wangjing" from "How to get from Wudaokou to Wangjing", and obtains the content to be matched "How to get from ** to **".
[0136] S306: The server matches the to-be-matched content "how to go from ** to **" with the sentence template "from ** to **", and confirms "how to go from ** to **" and "from ** to *" *" to match.
[0137] S307: The server searches and obtains route information from the position indicated by "Wudaokou" to the position indicated by "Wandaokou".
[0138] S308: The server sends the route information to the terminal.
[0139] S309: The terminal presents the route information.
[0140] In this embodiment, according to the content input by the user on the terminal, it is judged whether the current content input by the user contains the current place noun, and if so, delete the current place name from the current content to obtain the content to be matched; The recorded sentence pattern template with the query route semantics is matched; if the content to be matched matches the sentence pattern template, the route information query is performed based on the current place noun, and the route information obtained by the query is displayed on the terminal. It can be seen that the user can directly obtain the route information the user wants to query without exiting the current application, switching to the application with the route query function, and querying the route information through a series of operations. The number of user actions is reduced and the user experience is improved.
[0141] Exemplary Equipment
[0142] see Figure 4 , showing a schematic structural diagram of an apparatus for querying route information in an embodiment of the present invention. For example, the apparatus may specifically include: a first acquiring unit 401 , a deleting unit 402 , a matching unit 403 , a querying unit 404 and a presenting unit 405 .
[0143] The first obtaining unit 401 is configured to obtain user input content and/or received communication content as current content.
[0144] The deletion unit 402 is configured to delete the current place noun from the current content if the current place noun is found in the current content to obtain the content to be matched.
[0145] The matching unit 403 is configured to match the to-be-matched content with a pre-recorded sentence pattern template, wherein the sentence pattern template has the semantics of asking for a route.
[0146] The query unit 404 is configured to perform route information query based on the current place noun to obtain target route information if the to-be-matched content matches the sentence pattern template.
[0147] Optionally, the current geographical noun includes a first geographical noun and a second geographical noun, and the target route information is used to indicate the difference between the position represented by the first geographical noun and the position represented by the second geographical noun. route between.
[0148] Optionally, the current gazetteer includes only a third gazetteer, and the target route information is used to indicate a route between the position represented by the third gazetteer and the current location of the terminal.
[0149] Optionally, the matching unit 403 includes: a judging subunit and a matching subunit.
[0150] The judging subunit is used for judging whether the content to be matched contains the sentence pattern template.
[0151] The matching subunit: configured to determine that the content to be matched matches the sentence template if the content to be matched contains the sentence template.
[0152] Optionally, the query unit 404 includes: a determination subunit, a calculation subunit, and a generation subunit.
[0153] The determining subunit is configured to determine the departure location and the destination location based on the sentence template and the current place noun if the to-be-matched content matches the sentence template.
[0154] The calculation subunit: used to calculate the route from the departure location to the destination location.
[0155] The generating subunit: used to generate target route information for indicating the route.
[0156]Optionally, the apparatus further includes a first recording unit.
[0157] The first recording unit is configured to, in response to a user editing operation on a sentence pattern template, record the content input under the user editing operation as the sentence pattern template.
[0158] Optionally, the apparatus further includes: a second recording unit.
[0159] The second recording unit: used for jumping to the historical user behavior of the application with the route query function to perform the route query, and acquiring the user input content and/or the received communication content before the historical user behavior, as the first user behavior. a historical content;
[0160] If the first historical content contains a first historical place noun and the position represented by the first historical place noun is consistent with the designated position used for querying the route in the historical user behavior, the first history The sentence pattern template is extracted and recorded from the part of the content excluding the first historical place noun.
[0161] Optionally, the apparatus further includes: a third recording unit.
[0162] The third recording unit: used to obtain the second historical content input by the user;
[0163] If the second historical content contains a second historical place noun, extracting an initial template from the part of the second historical content excluding the second historical place noun;
[0164] In response to the confirmation operation for the initial template, the initial template is recorded as the sentence template.
[0165] Optionally, the second recording unit includes: a first acquiring subunit and a first recording subunit.
[0166] The first obtaining subunit is used to obtain the first historical content input by the user before the historical user behavior for the historical user behavior of jumping to an application with a route query function to perform route query.
[0167] The first record subunit: used for specifying a route for querying in the historical user behavior if the first historical place term contains a first historical place noun and the location represented by the first historic place noun and the historical user behavior If the positions are consistent, the sentence pattern template is extracted and recorded from the part of the first historical content excluding the first historical place noun.
[0168] Optionally, the third recording unit includes: a second acquiring subunit, an extracting subunit, and a second recording subunit.
[0169] The second obtaining subunit: used to obtain the second historical content input by the user.
[0170] The extraction subunit is used for extracting an initial template from the part of the second historical content excluding the second historical place noun if the second historical content contains a second historical place noun.
[0171] The second recording subunit: used to record the initial template as the sentence template in response to the confirmation operation for the initial template.
[0172] Optionally, the current geographical noun includes a first geographical noun and a second geographical noun, and the target route information is used to indicate the difference between the position represented by the first geographical noun and the position represented by the second geographical noun. route between.
[0173] Optionally, the current gazetteer includes only a third gazetteer, and the target route information is used to indicate a route between the position represented by the third gazetteer and the current location of the terminal.
[0174] In this embodiment, according to the content input by the user on the terminal, it is judged whether the current content input by the user contains the current place noun, and if so, delete the current place name from the current content to obtain the content to be matched; The recorded sentence pattern template with the query route semantics is matched; if the content to be matched matches the sentence pattern template, the route information query is performed based on the current place noun, and the route information obtained by the query is displayed on the terminal. It can be seen that the user does not need to exit the current application, switch to the application with the route query function and query the route information through a series of operations, and can directly obtain the route information the user wants to query, reducing some unnecessary user operations. Improved user experience.
[0175] refer to Figure 5 , the apparatus 1800 may include one or more of the following components: a processing component 1802, a memory 1804, a power supply component 1806, a multimedia component 1806, an audio component 1810, an input/output (I/O) interface 1812, a sensor component 1814, and a communication component 1816.
[0176] The processing component 1802 generally controls the overall operation of the device 1800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 1802 can include one or more processors 1820 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 1802 may include one or more modules that facilitate interaction between processing component 1802 and other components. For example, processing component 1802 may include a multimedia module to facilitate interaction between multimedia component 1806 and processing component 1802.
[0177] Memory 1804 is configured to store various types of data to support operation at device 1800 . Examples of such data include instructions for any application or method operating on the device 1800, contact data, phonebook data, messages, pictures, videos, and the like. Memory 1804 may be implemented by any type of volatile or non-volatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
[0178] Power supply assembly 1806 provides power to various components of device 1800. Power supply components 1806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 1800 .
[0179] Multimedia component 1806 includes a screen that provides an output interface between the device 1800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 1806 includes a front-facing camera and/or a rear-facing camera. When the device 1800 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
[0180] Audio component 1810 is configured to output and/or input audio signals. For example, audio component 1810 includes a microphone (MIC) that is configured to receive external audio signals when device 1800 is in operating modes, such as call mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 1804 or transmitted via communication component 1816 . In some embodiments, audio component 1810 also includes a speaker for outputting audio signals.
[0181] The I/O interface 1812 provides an interface between the processing component 1802 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
[0182] Sensor assembly 1814 includes one or more sensors for providing status assessment of various aspects of device 1800 . For example, the sensor component 1814 can detect the open/closed state of the device 1800, the relative positioning of components, such as the display and keypad of the device 1800, the sensor component 1814 can also detect the position change of the device 1800 or a component of the device 1800, Presence or absence of user contact with device 1800, device 1800 orientation or acceleration/deceleration and temperature changes of device 1800. Sensor assembly 1814 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 1814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 1814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
[0183] Communication component 1816 is configured to facilitate wired or wireless communication between apparatus 1800 and other devices. Device 1800 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 1816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 1816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
[0184] In an exemplary embodiment, apparatus 1800 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
[0185] Specifically, an embodiment of the present invention provides a device for querying route information, the device includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more programs Execution of the one or more programs by the above processor includes instructions for:
[0186] Obtain user input content and/or received communication content as current content;
[0187] If the current place noun is found in the current content, delete the current place noun from the current content to obtain the content to be matched;
[0188] matching the to-be-matched content with a pre-recorded sentence pattern template, wherein the sentence pattern template has the semantics of asking for a route;
[0189] If the to-be-matched content matches the sentence pattern template, route information query is performed based on the current place noun to obtain target route information.
[0190] Optionally, the current geographical noun includes a first geographical noun and a second geographical noun, and the target route information is used to indicate the difference between the position represented by the first geographical noun and the position represented by the second geographical noun. route between.
[0191] Optionally, the current gazetteer includes only a third gazetteer, and the target route information is used to indicate a route between the position represented by the third gazetteer and the current location of the terminal.
[0192] Optionally, the processor is further configured to execute the one or more programs including instructions for performing the following operations:
[0193] Determine whether the sentence pattern template is included in the content to be matched;
[0194]If the to-be-matched content includes the sentence pattern template, it is determined that the to-be-matched content matches the sentence pattern template.
[0195] Optionally, the processor is further configured to execute the one or more programs including instructions for performing the following operations:
[0196] If the to-be-matched content matches the sentence pattern template, determine the departure location and the destination location based on the sentence pattern template and the current place noun;
[0197] calculating a route from said origin location to said destination location;
[0198] Target route information indicating the route is generated.
[0199] Optionally, the processor is further configured to execute the one or more programs including instructions for performing the following operations:
[0200] In response to a user editing operation for a sentence pattern template, the content input under the user editing operation is recorded as the sentence pattern template.
[0201] Optionally, the processor is further configured to execute the one or more programs including instructions for performing the following operations:
[0202] For the historical user behavior of jumping to an application with a route query function to perform route query, obtain the user input content and/or the received communication content before the historical user behavior, as the first historical content;
[0203] If the first historical content contains a first historical place noun and the position represented by the first historical place noun is consistent with the designated position used for querying the route in the historical user behavior, the first history The sentence pattern template is extracted and recorded from the part of the content excluding the first historical place noun.
[0204] Optionally, the processor is further configured to execute the one or more programs including instructions for performing the following operations:
[0205] Obtain the second historical content input by the user;
[0206] If the second historical content contains a second historical place noun, extracting an initial template from the part of the second historical content excluding the second historical place noun;
[0207] In response to the confirmation operation for the initial template, the initial template is recorded as the sentence template.
[0208] Optionally, the current geographical noun includes a first geographical noun and a second geographical noun, and the target route information is used to indicate the difference between the position represented by the first geographical noun and the position represented by the second geographical noun. route between.
[0209] Optionally, the current gazetteer includes only a third gazetteer, and the target route information is used to indicate a route between the position represented by the third gazetteer and the current location of the terminal.
[0210] Embodiments of the present invention further provide a non-transitory computer-readable storage medium including instructions, such as a memory 1804 including instructions, and the above instructions can be executed by the processor 1820 of the apparatus 1800 to complete the above method, and also include a storage medium including instructions 1930, the above-mentioned instructions can be executed by the central processing unit 1922 of the server 1900 to complete the above-mentioned method. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
[0211] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, the electronic device can execute a method for querying route information, the method comprising:
[0212] Obtain user input content and/or received communication content as current content;
[0213] If the current place noun is found in the current content, delete the current place noun from the current content to obtain the content to be matched;
[0214] matching the to-be-matched content with a pre-recorded sentence pattern template, wherein the sentence pattern template has the semantics of asking for a route;
[0215] If the to-be-matched content matches the sentence pattern template, route information query is performed based on the current place noun to obtain target route information.
[0216] Image 6 It is a schematic structural diagram of a server in an embodiment of the present invention. The server 1900 may vary greatly depending on configuration or performance, and may include one or more central processing units (CPU) 1922 (eg, one or more processors) and memory 1932, one or more A storage medium 1930 (eg, one or more mass storage devices) that stores applications 1942 or data 1944 above. Among them, the memory 1932 and the storage medium 1930 may be short-term storage or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1922 may be configured to communicate with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900 .
[0217] Server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or more operating systems 1941 , such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM and so on.
[0218] Other embodiments of the invention will readily suggest themselves to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. The present invention is intended to cover any modifications, uses or adaptations of the present invention that follow the general principles of the invention and include common knowledge or common technical means in the art not disclosed by this disclosure . The specification and examples are to be regarded as exemplary only, with the true scope and spirit of the invention being indicated by the following claims.
[0219] It should be understood that the present invention is not limited to the precise structures described above and illustrated in the accompanying drawings, and that various modifications and changes may be made without departing from its scope. The scope of the present invention is limited only by the appended claims
[0220] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection of the present invention. within the range.

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.

Similar technology patents

Set top box pop-up box interception method and device and storage medium

PendingCN114071213AReduce the impactReduce user operations
Owner:深圳小湃科技有限公司

User registration method, device and equipment for multi-digital asset exchange platform

PendingCN113554427AReduce user operations
Owner:河北雄安链点科技有限公司

Video playing method, television and computer readable storage medium

InactiveCN108063967AReduce user operationsImprove video playback efficiency
Owner:SHENZHEN TCL NEW-TECH CO LTD

Board card information synchronization method, visual operation interface and power supply simulation system

PendingCN110399702AReduce user operationsEasy to control
Owner:武汉精能电子技术有限公司

A near-field communication payment method and terminal

ActiveCN107251069BReduce user operationsImprove user experience
Owner:HUAWEI TECH CO LTD

Classification and recommendation of technical efficacy words

  • Reduce user operations
  • Improve user experience

Vehicle sharing method based on block chain, server and readable storage medium

ActiveCN108183959AReduce user operationsImprove user experience
Owner:GOLO IOV DATA TECH CO LTD

Split-screen display device and method of mobile terminal

ActiveCN105242898AImprove efficiencyReduce user operations
Owner:NUBIA TECHNOLOGY CO LTD

Display method and device, electronic device, smart tablet computer and storage medium

InactiveCN109032485AReduce user operationsReduce operational complexity
Owner:GUANGZHOU SHIYUAN ELECTRONICS CO LTD +1

Method for implementing automatic refreshing of digital television electronic program guidebooks under multi tuner

InactiveCN101207753AComplete and Live UpdatesReduce user operations
Owner:LG ELECTRONICS (CHINA) R&D CENT CO LTD

Method, device and equipment for displaying multiple application windows on mobile terminal

InactiveCN102968243AImprove information acquisition efficiency and ease of operationImprove user experience
Owner:SHENZHEN YUNYINGGU TECH CO LTD

Content recommending method and device based on user characteristics

ActiveCN101957834AFacilitate the dissemination of informationImprove user experience
Owner:BAIDU ONLINE NETWORK TECH (BEIJIBG) CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products