CN110134745A - A kind of method, apparatus and equipment of enquiring route information - Google Patents
A kind of method, apparatus and equipment of enquiring route information Download PDFInfo
- Publication number
- CN110134745A CN110134745A CN201810134648.6A CN201810134648A CN110134745A CN 110134745 A CN110134745 A CN 110134745A CN 201810134648 A CN201810134648 A CN 201810134648A CN 110134745 A CN110134745 A CN 110134745A
- Authority
- CN
- China
- Prior art keywords
- content
- noun
- user
- route information
- sentence pattern
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000004891 communication Methods 0.000 claims abstract description 44
- 230000006399 behavior Effects 0.000 claims description 32
- 230000006870 function Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 claims description 15
- 230000004044 response Effects 0.000 claims description 15
- 238000012790 confirmation Methods 0.000 claims description 9
- 230000009191 jumping Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 10
- 238000005516 engineering process Methods 0.000 description 6
- 239000000284 extract Substances 0.000 description 6
- 230000008859 change Effects 0.000 description 4
- 230000008878 coupling Effects 0.000 description 4
- 238000010168 coupling process Methods 0.000 description 4
- 238000005859 coupling reaction Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 230000005236 sound signal Effects 0.000 description 4
- 230000003993 interaction Effects 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000001133 acceleration Effects 0.000 description 2
- 230000000712 assembly Effects 0.000 description 2
- 238000000429 assembly Methods 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 238000000605 extraction Methods 0.000 description 2
- 238000009472 formulation Methods 0.000 description 2
- 238000007726 management method Methods 0.000 description 2
- 239000000203 mixture Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 241000209140 Triticum Species 0.000 description 1
- 235000021307 Triticum Nutrition 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 238000013500 data storage Methods 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005194 fractionation Methods 0.000 description 1
- 238000003384 imaging method Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 239000012092 media component Substances 0.000 description 1
- 230000002085 persistent effect Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/953—Querying, e.g. by the use of web search engines
- G06F16/9537—Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Remote Sensing (AREA)
- Navigation (AREA)
Abstract
The invention discloses a kind of methods of enquiring route information.This method comprises: the Content of Communication for obtaining user's input content and/or receiving, as Current Content;If finding current position noun in the Current Content, the current position noun is deleted from Current Content, obtains content to be matched;The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template has the meaning of one's words of inquiry route;If the content to be matched matches with the sentence pattern template, route information inquiry is carried out based on the current position noun, obtains target route information.The method provided through the embodiment of the present invention, user can not need to exit current application program, the application with route inquiry function is switched to by sequence of operations enquiring route information, so that it may directly obtain the route information that user wants inquiry, reduce some unnecessary user's operations.In addition, the invention also discloses a kind of devices of enquiring route information.
Description
Technical field
The present invention relates to technical field of information processing, a kind of method, apparatus more particularly to enquiring route information and set
It is standby.
Background technique
Currently, many network applications can provide a user the query service of route information.When user needs enquiring route
When information, user usually requires to complete following operate on intelligent devices: first exiting currently used application, finds with road
The application of line query function simultaneously clicks opening, inputs departure place and destination on specified position respectively, then click inquiry.?
After user completes the above operation, the application with route inquiry function can be searched according to the departure place and destination that user inputs
Route information is simultaneously presented to the user by route information between two places.As it can be seen that the behaviour that user executes for enquiring route information
Work is excessively cumbersome, this just causes inconvenience to user.
Summary of the invention
The technical problem to be solved by the invention is to provide the method, apparatus and equipment of a kind of enquiring route information, with letter
Change the operation that user executes for enquiring route information, so that user quickly and conveniently views route information, improves
The operating efficiency of user.
In a first aspect, in order to solve the above technical problems, the embodiment of the invention provides a kind of method of enquiring route information,
Include:
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, is obtained
To content to be matched;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template, which has, askes
It asks the way the meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information is carried out based on the current position noun and is looked into
It askes, obtains target route information.
Optionally, including the first, noun and the second ground noun, the target route information are used for the current position noun
Indicate the route between position represented by position represented by first ground noun and second ground noun.
Optionally, the current position noun only include third noun, the target route information be used to indicate described
Route between position represented by three ground nouns and the current position location of terminal.
It is optionally, described to match the content to be matched with pre-recorded sentence pattern template, comprising:
Judge whether contain the sentence pattern template in the content to be matched;
If containing the sentence pattern template in the content to be matched, the content to be matched and the sentence pattern template are determined
Match.
Optionally, if the content to be matched matches with the sentence pattern template, road is carried out based on described ground noun
The inquiry of line information, obtains target route information, comprising:
If the content to be matched matches with the sentence pattern template, it is based on the sentence pattern template and the current place name
Word determines set out position and destination locations;
It calculates from described position to the route of the destination locations;
Generate the target route information for being used to indicate the route.
Optionally, the method also includes:
In response to being directed to user's edit operation of sentence pattern template, the content conduct inputted under user's edit operation is recorded
The sentence pattern template.
Optionally, the method also includes:
For the historical user's behavior for jumping to the application execution route inquiry with route inquiry function, obtain described
User's input content before historical user's behavior and/or the Content of Communication received, as the first historical content;
If include in first historical content the first history noun and first history represented by noun
Position is consistent with the designated position of enquiring route is used in historical user's behavior, rejects institute from first historical content
The sentence pattern template is extracted in the part of noun with stating the first history and is recorded.
Optionally, the method also includes:
Obtain the second historical content of user's input;
If in second historical content including the second history ground noun, described the is rejected from second historical content
Two history original template is extracted in the part of noun;
In response to being directed to the confirmation operation of the original template, remember the original template as the sentence pattern template
Record.
Second aspect, in order to solve the above technical problems, the embodiment of the invention provides a kind of device of enquiring route information,
Include:
First acquisition unit, the Content of Communication for obtaining user's input content and/or receiving, as Current Content;
Unit is deleted, if for finding current position noun in the Current Content, from Current Content described in deletion
Current position noun obtains content to be matched;
Matching unit, for matching the content to be matched with pre-recorded sentence pattern template, wherein the sentence
Formula template has the meaning of one's words of inquiry route;
Query unit is based on the current position noun if matching for the content to be matched with the sentence pattern template
Route information inquiry is carried out, target route information is obtained.
Optionally, the matching unit includes: judgment sub-unit and coupling subelement.
The judgment sub-unit: for judging whether contain the sentence pattern template in the content to be matched.
The coupling subelement: if for containing the sentence pattern template in the content to be matched, determine it is described to
Match with content and the sentence pattern template.
Optionally, the query unit comprises determining that subelement, computation subunit and generates subelement.
The determining subelement: if matching for the content to be matched with the sentence pattern template, it is based on the clause
Template and the current position noun determine set out position and destination locations.
The computation subunit: for calculating the route from described position to the destination locations.
The generation subelement: for generating the target route information for being used to indicate the route.
Optionally, described device further includes the first recording unit.
First recording unit: it for user's edit operation in response to being directed to sentence pattern template, records the user and compiles
The lower content inputted of operation is collected as the sentence pattern template.
Optionally, described device further include: the second recording unit.
Second recording unit: going through for the application execution route inquiry with route inquiry function is jumped to for being directed to
History user behavior obtains the first historical content that user inputs before historical user's behavior;
If include in first historical content the first history noun and first history represented by noun
Position is consistent with the designated position of enquiring route is used in historical user's behavior, rejects institute from first historical content
The sentence pattern template is extracted in the part of noun with stating the first history and is recorded.
Optionally, described device further include: third recording unit.
The third recording unit: for obtaining the second historical content of user's input;
If in second historical content including the second history ground noun, described the is rejected from second historical content
Two history original template is extracted in the part of noun;
In response to being directed to the confirmation operation of the original template, remember the original template as the sentence pattern template
Record.
Optionally, second recording unit includes: the first acquisition subelement and the first record subelement.
The first acquisition subelement: the application execution route inquiry with route inquiry function is jumped to for being directed to
Historical user's behavior, the Content of Communication for obtaining user's input content before historical user's behavior and/or receiving are made
For the first historical content.
The first record subelement: if for including the first history ground noun and described in first historical content
First history position represented by noun it is consistent with the designated position of enquiring route is used in historical user's behavior, from
First historical content is extracted the sentence pattern template in the part of noun with rejecting first history and is recorded.
Optionally, the third recording unit includes: the second acquisition subelement, extracts subelement and the second record list
Member.
The second acquisition subelement: for obtaining the second historical content of user's input.
The extraction subelement: if for including the second history ground noun in second historical content, from described
Two historical contents extract original template in the part of noun with rejecting second history.
The second record subelement: for the confirmation operation in response to being directed to the original template, by the introductory die
Plate is recorded as the sentence pattern template.
Optionally, including the first, noun and the second ground noun, the target route information are used for the current position noun
Indicate the route between position represented by position represented by first ground noun and second ground noun.
Optionally, the current position noun only include third noun, the target route information be used to indicate described
Route between position represented by three ground nouns and the current position location of terminal.
The third aspect, in order to solve the above technical problems, the embodiment of the invention provides a kind of equipment, comprising:
Perhaps more than one program one of them or more than one program is stored in storage by memory and one
In device, and be configured to be executed by one or more than one processor the one or more programs include for into
The following instruction operated of row:
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, is obtained
To content to be matched;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template, which has, askes
It asks the way the meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information is carried out based on the current position noun and is looked into
It askes, obtains target route information.
Fourth aspect, in order to solve the above technical problems, the embodiment of the invention provides a kind of non-transitory is computer-readable
Storage medium, when the instruction in the storage medium is executed by the processor of electronic equipment, so that electronic equipment is able to carry out
A kind of method of enquiring route information, which comprises
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, is obtained
To content to be matched;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template, which has, askes
It asks the way the meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information is carried out based on the current position noun and is looked into
It askes, obtains target route information.
Compared with prior art, the embodiment of the present invention has the advantage that
In embodiments of the present invention, the Content of Communication that the content and/or terminal inputted at the terminal with user receives is made
For Current Content, judge whether Current Content includes current position noun, if comprising if from Current Content delete current position noun
Obtain content to be matched;Content to be matched is matched with the pre-recorded sentence pattern template with the inquiry route meaning of one's words;If
Content to be matched matches with the sentence pattern template, then carries out route information inquiry based on current position noun, and be at the terminal
The route information now inquired.It can be seen that user can not need to exit current application program, be switched to route
Application of query function etc. is by the case where sequence of operations enquiring route information, so that it may directly obtain user and want inquiry
Route information, therefore, some unnecessary user's operations are reduced, and user experience is promoted.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
The some embodiments recorded in invention, for those of ordinary skill in the art, without creative efforts,
It is also possible to obtain other drawings based on these drawings.
Fig. 1 is the block schematic illustration of an exemplary application scene in the embodiment of the present invention;
Fig. 2 is a kind of flow diagram of the method for enquiring route information in the embodiment of the present invention;
Fig. 3 is a kind of flow diagram of the method for enquiring route information in the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of the device of enquiring route information in the embodiment of the present invention;
Fig. 5 is a kind of structural schematic diagram of the prompt equipment of the communication information in the embodiment of the present invention;
Fig. 6 is the structural schematic diagram of server in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention
Attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is only this
Invention a part of the embodiment, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art exist
Every other embodiment obtained under the premise of creative work is not made, shall fall within the protection scope of the present invention.
Inventor has found that in the prior art, user when using smart machine, if desired believe by enquiring route
Breath, it is necessary first to exit currently used application program, then find the icon of the application program with route inquiry function, point
The icon is hit into the application program, inputs departure place and destination on specified position respectively, then clicks inquiry can just obtain
Obtain the route information that user wants inquiry.
This series of operating process is relatively complicated for a user, to cause the inconvenience of user's operation.
To solve the above-mentioned problems, in embodiments of the present invention, it is contemplated that user needs enquiring route in practical applications
Input content before information and the Content of Communication received may all give expression to the route information that user wants inquiry
It is intended to, can use current user's input content and/or the Content of Communication being currently received to identify that user wants inquiry
Route information intention, thus user's input content or the Content of Communication received show want enquiring route intention
In the case where inquire the route information that user wants inquiry automatically, and the obtained route information of inquiry is presented at the terminal.
For example, user has input during chat in instant communication software with good friend, " I will go to hope from five road junctions
Capital ", input content " I will go to Wangjing from five road junctions " can give expression to user and want inquiry from " five road junctions " to the road of " Wangjing "
The intention of line.In embodiments of the present invention, use can be identified according to the input content " I will from five road junctions to Wangjing " of user
The intention of route of the inquiry from " five road junctions " to " Wangjing " is wanted at family, and is inquired automatically from " five road junctions " to the route of " Wangjing "
Information, the route information that inquiry is obtained are presented at the terminal.User is not necessarily to exit the operation interface of instant communication software in this way
It is inquired into the application program with route inquiry function, so that it may the route information that user wants inquiry is obtained, thus
User's operation is simplified, the user experience is improved.
For another example, the Content of Communication of good friend's transmission is received during user chats in instant communication software with good friend
" you will go to Wangjing from five road junctions ", input content " you will go to Wangjing from five road junctions " can give expression to user want inquiry from
" five road junctions " arrives the intention of the route of " Wangjing ".It in embodiments of the present invention, can " you will be from according to the Content of Communication received
Five road junctions to Wangjing " identify that user wants the intention of route of the inquiry from " five road junctions " to " Wangjing ", and inquire automatically
From " five road junctions " to the route information of " Wangjing ", the route information that inquiry is obtained is presented at the terminal.User is without moving back in this way
The operation interface of instant communication software enters the application program with route inquiry function and is inquired out, so that it may obtain user
Want the route information of inquiry, to simplify user's operation, the user experience is improved.
For example, the embodiment of the present invention can be applied to scene as shown in Figure 1.In this scenario, terminal 101 and clothes
The interaction of network 102 can be passed through between business device 103.
As an example, in above-mentioned scene, firstly, the available user of terminal 101 is currently entered at the terminal
Content and/or the Content of Communication being currently received, as Current Content.Then, terminal 101 can be will acquire by network 102
To Current Content be uploaded to server 103.Whether server 103 can first judge in the Current Content comprising current place name
Word, if comprising deleting current position noun from Current Content to obtain content to be matched, then by content to be matched and in advance
The sentence pattern template with the inquiry route meaning of one's words of record is matched, if the content to be matched and the sentence pattern template phase
Match, is then inquired based on current position noun into route information.After again, the route information that inquiry obtains is passed through network by server 103
102 are sent to terminal 101, and the route information is presented in instruction terminal 101.
As another example, in above-mentioned scene, firstly, the available user of terminal 101 currently inputs at the terminal
Content and/or, as Current Content.Then, whether terminal 101 first judges in the Current Content to include current position noun,
If comprising the Current Content is sent to server 103 by network 102 by terminal 101.Wherein, the current position noun
Dictionary information can be pre-stored in terminal 101.Server 103 current position noun is deleted from Current Content with obtain to
Then matching content matches content to be matched with the pre-recorded sentence pattern template with the inquiry route meaning of one's words, if institute
It states content to be matched to match with the sentence pattern template, is then inquired based on current position noun into route information.After again, server
The route information that inquiry obtains is sent to terminal 101 by network 102 by 103, and the route letter is presented in instruction terminal 101
Breath.
As another embodiment, in above-mentioned scene, firstly, the available user of terminal 101 is current defeated at the terminal
The content entered and/or the Content of Communication being currently received, as Current Content.Then, terminal 101 first judges the Current Content
In whether include current position noun, if it is to be matched interior to obtain to delete current position noun from Current Content comprising, terminal 101
Hold, then by content to be matched with it is pre-recorded have inquire that the sentence pattern template of the route meaning of one's words matches, if it is described to
Match with content and the sentence pattern template, then terminal 101 can be sent to server 103 by network 102 and be worked as described
The route inquiry of preceding ground noun is requested.Server 103 can be requested according to the route inquiry, be based on current position noun route line
Information inquiry, and the route information inquired is sent by network 102 to terminal 101, so that the route is presented in terminal 101
Information.Wherein, the dictionary information of the current position noun can be pre-stored in terminal 101;Described pre-recorded has
The sentence pattern template of the inquiry route meaning of one's words, which can be server 103 and first pass through network 102 in advance, is sent to terminal 101.
It is understood that in above-mentioned application scenarios, although being a part by the action description of embodiment of the present invention
It is executed by terminal 101, a part is executed by server.But these movements can also all be executed by terminal 101 or all by
Server 103 executes or respectively executes a part by terminal 101 and server 103 with other combinations.The present invention is being held
Row principal is unrestricted, as long as performing movement disclosed in embodiment of the present invention.
It should be noted that above-mentioned application scenarios are merely for convenience of understanding the present invention and showing, embodiment party of the invention
Formula is unrestricted in this regard.On the contrary, embodiments of the present invention can be applied to applicable any scene.
With reference to the accompanying drawing, the various non-limiting embodiments that the present invention will be described in detail.
Illustrative methods
Referring to fig. 2, a kind of flow diagram of the method for enquiring route information in the embodiment of the present invention is shown.In this reality
It applies in example, the method for example may include steps of:
S201: the Content of Communication for obtaining user's input content and/or receiving, as Current Content.
In order to determine that user wants the route information of inquiry by user's input content or the Content of Communication received
Be intended to, terminal can be obtained by input method system user in currently used application program content currently entered and/
Or the Content of Communication that currently used application program is currently received, as the Current Content.For example, being inputted for user
For content, when user triggers input operation in currently used application program, terminal can call input method system, with
Just input method system input content in currently used application program can be used in user, so that input method system can obtain
Get the Current Content that user inputs in currently used application program.
As an example, if terminal obtains the Current Content by input method system, the Current Content be can be
What the good hair perhaps received in user's input during user is chatted using a certain chat application was sent
Content of Communication, the chat application can be any one instant communication software such as wechat, credulity, QQ.
As another example, if terminal obtains the Current Content that user inputs at the terminal by input method system, use
The Current Content that family inputs at the terminal is also possible to user and is scanned for using a certain application program with function of search
When the content that inputs.For example, the Current Content of user's input can be input content when user is scanned for using browser.
In addition, the Current Content that user inputs at the terminal can also be and input in the scene at other using input method
Content.
S202: if finding current position noun in the Current Content, the current place name is deleted from Current Content
Word obtains content to be matched.
S203: the content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template tool
There is the meaning of one's words of inquiry route.
When specific implementation, current position noun can be to be found out in existing ground noun list, i.e. current position noun
Belong to the ground noun for including in ground noun list.It is understood that the ground noun in ground noun list may include place name and building
The title of object.Therefore, current position noun can be a specific place name, for example, current position noun can be " five road junctions ",
" Wangjing ", etc..Alternatively, current position noun is also possible to the title of landmark building, for example, current position noun can be " east
Fang Mingzhu television tower ", " Nanjing Black Warrior door ", etc..
When searching current position noun in the Current Content, first the Current Content of user's input can be split,
By user input complete words split into multiple words, to each word splitted out and ground noun list in ground noun into
Row compares, and determines the current position noun in current input content.For example, the Current Content of user's input is that " I will be from five road junctions
To Wangjing ", when searching the ground noun in the content, " I will from five road junctions to Wangjing " are split first, split result is
" my # wants # from the road junction Wangjing # to # # five ", by each word " I " after fractionation, " wanting ", " from ", " five road junctions ", " to " and " prestige
Capital " is compared with the ground noun in ground noun list respectively, if finding has ground noun " five road junctions " in ground noun list and " hope
Capital ", it is determined that the current position noun in current input content is " five road junctions " and " Wangjing ".
It is understood that user has and thinks sometimes in the case where including ground noun in the Current Content of user's input
The intention of enquiring route is wanted, but user may also and not have the intention for wanting enquiring route sometimes.For example, user's input is worked as
Preceding content is " five road junctions are very joyful ", is just likely to not want the intention of enquiring route information when user inputs the content.
Therefore, in the case where in the Current Content for judging user's input comprising current position noun, it is also necessary to further judge user
Whether the meaning of one's words represented by the Current Content of input is to want enquiring route.When specific implementation, it can delete and work as from Current Content
Preceding ground noun will delete the Current Content of user's input of current position noun as content to be matched, by the content to be matched
It is matched with pre-recorded sentence pattern template, judges whether user has the meaning of one's words of enquiring route information with this, wherein in advance
The sentence pattern template of record has the meaning of one's words of inquiry route.Specifically, if containing the sentence pattern template in the content to be matched,
Then think that content to be matched is matched with the sentence pattern template, that is to say, that the corresponding user's input of the content to be matched it is current in
Have the meaning of one's words of inquiry route information.For example, pre-recorded sentence pattern template is " from * * to * * ", the Current Content of user's input
How from five road junctions to Wangjing for " ", the corresponding content to be matched of the Current Content is " how from * * to * * ", content to be matched
" how from * * to * * " contains sentence pattern template " from * * to * * ", then it is assumed that content to be matched " how from * * to * * " and clause mould
Plate " from * * to * * " matches, that is to say, that how from five road junctions to Wangjing the Current Content " " of user's input has inquiry road
The meaning of one's words of line information.
In the present embodiment, the sentence pattern template with the meaning of one's words of inquiry route is in the template for judging content to be matched
Whether the meaning of one's words of enquiring route information before record is had.Wherein, the recording mode of the sentence pattern template can there are many realize
Mode.
It as an example, can also include: in response to needle before S203 in order to realize the record of the sentence pattern template
User's edit operation to sentence pattern template records the content inputted under user's edit operation as the sentence pattern template.
It is understood that some users known to developer is possible want the content that may be inputted when enquiring route,
In this case, developer directly can input the sentence pattern template by executing user's edit operation.For example, if
Developer is known to be inputted when user wants enquiring route " from * * to * * ", then developer can directly be compiled by user
It collects operation input " from * * to * * ", with trigger recording " from * * to * * " for sentence pattern template.For another example, if developer is known in user
Want enquiring route when " how arrive * * " can be inputted, then developer can directly by user's edit operation input " how
To * * ", with trigger recording " how arriving * * " for sentence pattern template.
It can also include: for jump before S203 to realize the record of the sentence pattern template as another example
Go to historical user's behavior of the application execution route inquiry with route inquiry function, obtain historical user's behavior it
Preceding user's input content and/or the Content of Communication received, as the first historical content;If being wrapped in first historical content
Containing the first history noun and first history position represented by noun in historical user's behavior for looking into
The designated position for asking route is consistent, extracts institute from first historical content with rejecting first history part of noun
It states sentence pattern template and records.
For convenience of description, be described below in " historical user's behavior " indicate that " user, which jumps to, has the function of route inquiry
Application execution route inquiry behavior ".
It is understood that have can for user's input content before historical user's behavior and the Content of Communication received
The intention that user wants enquiring route information can be given expression to, in other words, user jumps to the application with route inquiry function and holds
Input content before row route inquiry or the Content of Communication received are likely to the meaning of one's words with inquiry route.For example, with
Family, which jumps to " Baidu map ", queried a certain route information, before user jumps to " Baidu map " enquiring route information,
The historical content of user's input is " how from five road junctions to Wangjing I do not know ", and user is jumping to " Baidu map " inquiry road
Input content " how from five road junctions to Wangjing I do not know " before line information is possible to give expression to the desired enquiring route of user
The intention of information.Therefore, in available user's input content before historical user's behavior and/or the communication received
Hold, as the first historical content, the sentence pattern template is recorded according to first historical content.
It is understood that first historical content may have the language of inquiry route for first historical content
Meaning, it is also possible to not inquire the meaning of one's words of route.For example, user, which jumps to " Baidu map ", queried a certain route information, with
Family jumps to before " Baidu map " enquiring route information, and the first historical content of user's input is " not chat, I will go to hurry
", but there is no the meaning of one's words of enquiring route information for first historical content " not chatting, I will go busy ".In response to this,
After obtaining first historical content, can first judge first historical content whether include enquiring route the meaning of one's words,
Then sentence pattern template is recorded merely with the first historical content comprising the enquiring route meaning of one's words, without using not comprising enquiring route
First historical content of the meaning of one's words records sentence pattern template.
And in order to judge first historical content whether include enquiring route the meaning of one's words, can first judge described first
Whether comprising the first history noun in historical content, if comprising the first history noun and described first in the first historical content
History position represented by noun it is consistent with the designated position of enquiring route is used in historical user's behavior, it is determined that
First historical content has the meaning of one's words of inquiry route.
It should be noted that first history noun may include two place names, also may include a place name.With
Under to the first history comprising two place names and the first history comprising one noun is introduced noun noun respectively.
When the first history noun comprising two noun when, for example, user input the first historical content be " I
How from five road junctions to Wangjing, do not know ", the first history for including in first historical content noun be " five road junctions " and
" Wangjing ", user input after the content route that has jumped to " Baidu map " and queried from " five road junctions " to " Wangjing " and believe
Breath, that is to say, that the first history ground location information represented by noun and the formulation position consistency for being used for enquiring route are all
" five road junctions " and " Wangjing ".It can then determine that the first historical content " how from five road junctions to Wangjing I do not know " has inquiry road
The meaning of one's words of line.
It, can will be from first historical content after determining the meaning of one's words that first historical content has inquiry route
The part of noun as the sentence pattern template and records with rejecting first history.For example, the first historical content is that " I does not know
How from five road junctions to Wangjing road ", from rejecting the first history in " how from five road junctions to Wangjing I do not know " noun " five
Mouthful " and the part of " Wangjing " be " I how do not know from * * to * * ", " I how do not know from * * to * * " can be used as sentence
Formula template simultaneously records.
Furthermore, it is contemplated that identical language may be expressed using not exactly the same content when user's input content
Meaning, in order to enable the sentence pattern template of record to be more widely applicable in the changeable input content of user, the present embodiment can also be from
First history is rejected in first historical content the portion for influencing the enquiring route meaning of one's words is rejected not again on the basis of noun
Point, to obtain sentence pattern template and record.For example, the first historical content is " how from five road junctions to Wangjing I do not know ", from
The first history is rejected in " how from five road junctions to Wangjing I do not know " part of noun " five road junctions " and " Wangjing " for " I not
How know from * * to * * ", can therefrom reject again " I how do not know ", to extract the meaning of one's words with inquiry route
" from * * to * * " is as sentence pattern template and records.
When the first history noun comprising one noun when, for example, user input the first historical content be " I
Do not know how to go to Wangjing ", the first history for including in first historical content noun be " Wangjing ", it is interior that user inputs this
" Baidu map " has been jumped to after holding queried route information from current position location to " Wangjing ", that is to say, that first
History ground location information represented by noun and the formulation position consistency that is used for enquiring route are all " prelocalization positions " when with
" Wangjing ".It can then determine that the first historical content " I does not know how to go to Wangjing " has the meaning of one's words of inquiry route.
It, can will be from first historical content after determining the meaning of one's words that first historical content has inquiry route
The part of noun as the sentence pattern template and records with rejecting first history.For example, the first historical content is that " I does not know
How road goes to Wangjing ", the part from rejecting the first history in " I does not know how to go to Wangjing " noun " Wangjing " is that " I does not know
How road removes * * ", " I does not know how to remove * * " as sentence pattern template and can be recorded.
Furthermore, it is contemplated that identical language may be expressed using not exactly the same content when user's input content
Meaning, in order to enable the sentence pattern template of record to be more widely applicable in the changeable input content of user, the present embodiment can also be from
First history is rejected in first historical content the portion for influencing the enquiring route meaning of one's words is rejected not again on the basis of noun
Point, to obtain sentence pattern template and record.For example, the first historical content is " I does not know how to go to Wangjing ", from " I does not know
How to go to Wangjing " in reject the first history noun " Wangjing " part be " I does not know how to remove * * ", can therefrom pick again
Except " I does not know ", to extract " how the removing * * " of the meaning of one's words with inquiry route as sentence pattern template and record.
It can also include: to obtain to use before S203 to realize the record of the sentence pattern template as another example
Second historical content of family input;If including the second history ground noun in second historical content, from second history
Content extracts original template in the part of noun with rejecting second history;It is grasped in response to the confirmation for the original template
Make, is recorded the original template as the sentence pattern template.
It should be noted that can also directly acquire user's input second is gone through for the record for realizing the sentence pattern template
History content will be from described in second historical content rejecting when comprising the second history noun in second historical content
Second history noun part as original template, judge whether the original template has inquiry route by developer
The meaning of one's words.If the original template has the meaning of route inquiry, carried out the original template as the sentence pattern template
Record, if the meaning that the original template does not have route to inquire, gives up the original template.For example, for original template " how
* * " and " * * is very joyful " are removed, thinks that " how removing * * " has the language of inquiry route when developer confirms original template
How meaning then " will remove * * " and record as sentence pattern template;" * * is very joyful " is thought when developer confirms original template
The meaning of one's words without inquiry route, then give up the original template.
S204: if the content to be matched matches with the sentence pattern template, route is carried out based on the current position noun
Information inquiry, obtains target route information.
It is understood that the number for the ground noun for including in the Current Content of user's input may be there are many situation.
As an example, the current position noun comprising the first noun and the second ground noun.For example, user's input
Current Content is " I will from five road junctions to Wangjing ", the Current Content noun " five road junctions " and second ground noun including the first
" Wangjing ".When in the Current Content of user's input comprising the first noun and when the second ground noun, the target route information use
Route between the position that instruction first ground noun list position shown and second ground noun list show.For example, user
The Current Content of input is " I will from five road junctions to Wangjing ", and the target route information, which is possibly used for instruction " five road junctions ", to be indicated
Position and " Wangjing " indicate position between route information.
As another example, the current position noun only includes third ground noun.For example, the Current Content of user's input
For " how going to Wangjing? ", which only includes third ground noun " Wangjing ".When user input Current Content in only include
Third noun when, prelocalization is worked as in position and terminal represented by noun to the target route information with being used to indicate the third
Route between position.For example, the Current Content of user's input is " how going to Wangjing? ", the target route information may use
Route information between the position and the current position location of user that instruction " Wangjing " indicates.
It should be noted that the inquiry mode of target route information can be with specifically: based on the sentence pattern template and described
Current position noun determines set out position and destination locations;It calculates from described position to the destination locations
Route;Generate the target route information for being used to indicate the route.
It should be noted that the number of the current position noun is different, corresponding sentence pattern template is possible to also different.Accordingly
, determine that the specific method of set out position and destination locations is also different.It is for one and current below for current position noun
Ground noun is two and introduces the specific method for determining set out position and destination locations respectively.
When the number of the current position noun be one when, the sentence pattern template be " how removing * * ", then homeposition and
Destination locations correspond to current position location and current position noun.For example, the Current Content of user's input is " how to go five
Mouthful ", then current position noun is " five road junctions ", then homeposition is current position location, destination locations are " five road junctions " institute
The position of expression.
When the number of the current position noun is two, respectively the first ground noun and the second ground noun, the clause
Template is " from " the first ground noun " to " the second ground noun " ", then, the homeposition position that noun list shows for the first, destination
The position position that noun list shows for the second.For example, how from Wangjing to five road junctions the Current Content of user's input is " ", then institute
Stating the first ground noun is " Wangjing ", and second ground noun is " five road junctions ", then homeposition is position represented by " Wangjing ",
Destination locations are position represented by " five road junctions ".
It is understood that after generation is used to indicate the target route information of the route, it can also be at the terminal
The target route information is presented, enables a user to view the target line information for meeting its query intention.
In the present embodiment, the content inputted at the terminal according to user, judges whether the Current Content of user's input wraps
Noun containing current position, if comprising deleting current position noun from Current Content and obtaining content to be matched;By content to be matched with
The pre-recorded sentence pattern template with the inquiry route meaning of one's words is matched;If content to be matched and the sentence pattern template phase
Match, then route information inquiry is carried out based on current position noun, and the route information that inquiry obtains is presented at the terminal.Thus may be used
See, user can not need to exit current application program, be switched to the application with route inquiry function by a series of behaviour
Make asking under money for enquiring route information, so that it may the route information that user wants inquiry is directly obtained, it is therefore, some unnecessary
User's operation is reduced, and user experience is promoted.
Below by taking a concrete scene as an example, a kind of introduce enquiring route information method.In the concrete scene, Yong Huzheng
Chat using wechat and good friend, in chat process user have input content " how from five road junctions to Wangjing? ".Wherein, " five
Road junction " and " Wangjing " are the ground noun for including in existing ground noun list;Pre-recorded sentence pattern template is " from * * to * * ".
Referring to Fig. 3, a kind of flow diagram of the method for enquiring route information in the embodiment of the present invention is shown.The side
Method may comprise steps of:
S301: user's input content " how from five road junctions to Wangjing ".
S302: how from five road junctions to Wangjing terminal obtains the Current Content " " of user's input.
S303: how from five road junctions to Wangjing the Current Content " " is sent to server by terminal.
S304: how from five road junctions to Wangjing server finds current position noun " five from the Current Content " "
Mouthful " and " Wangjing ".
S305: how from five road junctions to Wangjing server deletes " five road junctions " and " Wangjing " from " ", obtains in be matched
Hold " how from * * to * * ".
S306: server carries out content to be matched " how from * * to * * " and the sentence pattern template " from * * to * * "
Match, confirmation " how from * * to * * " matches with " from * * to * * ".
S307: server is searched and obtains the route of position represented by the position to " Wangjing " represented by " five road junctions "
Information.
S308: the route information is sent to terminal by server.
S309: the route information is presented in terminal.
In the present embodiment, the content inputted at the terminal according to user, judges whether the Current Content of user's input wraps
Noun containing current position, if comprising deleting current position noun from Current Content and obtaining content to be matched;By content to be matched with
The pre-recorded sentence pattern template with the inquiry route meaning of one's words is matched;If content to be matched and the sentence pattern template phase
Match, then route information inquiry is carried out based on current position noun, and the route information that inquiry obtains is presented at the terminal.Thus may be used
See, user can not need to exit current application program, be switched to the application with route inquiry function by a series of behaviour
In the case where making enquiring route information, so that it may the route information that user wants inquiry is directly obtained, it is therefore, some unnecessary
User's operation is reduced, and user experience is promoted.
Example devices
Referring to fig. 4, a kind of structural schematic diagram of the device of enquiring route information in the embodiment of the present invention is shown.The dress
Setting can for example specifically include: first acquisition unit 401 deletes unit 402, matching unit 403, query unit 404 and is in
Existing unit 405.
The first acquisition unit 401, the Content of Communication for obtaining user's input content and/or receiving, as working as
Preceding content.
The deletion unit 402, if being deleted from Current Content for finding current position noun in the Current Content
Except the current position noun, content to be matched is obtained.
The matching unit 403, for the content to be matched to be matched with pre-recorded sentence pattern template,
In, the sentence pattern template has the meaning of one's words of inquiry route.
The query unit 404, if matching for the content to be matched with the sentence pattern template, based on described current
Ground noun carries out route information inquiry, obtains target route information.
Optionally, including the first, noun and the second ground noun, the target route information are used for the current position noun
Indicate the route between position represented by position represented by first ground noun and second ground noun.
Optionally, the current position noun only include third noun, the target route information be used to indicate described
Route between position represented by three ground nouns and the current position location of terminal.
Optionally, the matching unit 403 includes: judgment sub-unit and coupling subelement.
The judgment sub-unit: for judging whether contain the sentence pattern template in the content to be matched.
The coupling subelement: if for containing the sentence pattern template in the content to be matched, determine it is described to
Match with content and the sentence pattern template.
Optionally, the query unit 404 comprises determining that subelement, computation subunit and generates subelement.
The determining subelement: if matching for the content to be matched with the sentence pattern template, it is based on the clause
Template and the current position noun determine set out position and destination locations.
The computation subunit: for calculating the route from described position to the destination locations.
The generation subelement: for generating the target route information for being used to indicate the route.
Optionally, described device further includes the first recording unit.
First recording unit: it for user's edit operation in response to being directed to sentence pattern template, records the user and compiles
The lower content inputted of operation is collected as the sentence pattern template.
Optionally, described device further include: the second recording unit.
Second recording unit: going through for the application execution route inquiry with route inquiry function is jumped to for being directed to
History user behavior, the Content of Communication for obtaining user's input content before historical user's behavior and/or receiving, as
First historical content;
If include in first historical content the first history noun and first history represented by noun
Position is consistent with the designated position of enquiring route is used in historical user's behavior, rejects institute from first historical content
The sentence pattern template is extracted in the part of noun with stating the first history and is recorded.
Optionally, described device further include: third recording unit.
The third recording unit: for obtaining the second historical content of user's input;
If in second historical content including the second history ground noun, described the is rejected from second historical content
Two history original template is extracted in the part of noun;
In response to being directed to the confirmation operation of the original template, remember the original template as the sentence pattern template
Record.
Optionally, second recording unit includes: the first acquisition subelement and the first record subelement.
The first acquisition subelement: the application execution route inquiry with route inquiry function is jumped to for being directed to
Historical user's behavior obtains the first historical content that user inputs before historical user's behavior.
The first record subelement: if for including the first history ground noun and described in first historical content
First history position represented by noun it is consistent with the designated position of enquiring route is used in historical user's behavior, from
First historical content is extracted the sentence pattern template in the part of noun with rejecting first history and is recorded.
Optionally, the third recording unit includes: the second acquisition subelement, extracts subelement and the second record list
Member.
The second acquisition subelement: for obtaining the second historical content of user's input.
The extraction subelement: if for including the second history ground noun in second historical content, from described
Two historical contents extract original template in the part of noun with rejecting second history.
The second record subelement: for the confirmation operation in response to being directed to the original template, by the introductory die
Plate is recorded as the sentence pattern template.
Optionally, including the first, noun and the second ground noun, the target route information are used for the current position noun
Indicate the route between position represented by position represented by first ground noun and second ground noun.
Optionally, the current position noun only include third noun, the target route information be used to indicate described
Route between position represented by three ground nouns and the current position location of terminal.
In the present embodiment, the content inputted at the terminal according to user, judges whether the Current Content of user's input wraps
Noun containing current position, if comprising deleting current position noun from Current Content and obtaining content to be matched;By content to be matched with
The pre-recorded sentence pattern template with the inquiry route meaning of one's words is matched;If content to be matched and the sentence pattern template phase
Match, then route information inquiry is carried out based on current position noun, and the route information that inquiry obtains is presented at the terminal.Thus may be used
See, user can not need to exit current application program, be switched to the application with route inquiry function by sequence of operations
Enquiring route information, so that it may the route information that user wants inquiry is directly obtained, some unnecessary user's operations are reduced,
The user experience is improved.
Referring to Fig. 5, device 1800 may include following one or more components: processing component 1802, memory 1804, electricity
Source component 1806, multimedia component 1806, audio component 1810, the interface 1812 of input/output (I/O), sensor module
1814 and communication component 1816.
The integrated operation of the usual control device 1800 of processing component 1802, such as with display, telephone call, data communication,
Camera operation and record operate associated operation.Processing component 1802 may include one or more processors 1820 to execute
Instruction, to perform all or part of the steps of the methods described above.In addition, processing component 1802 may include one or more moulds
Block, convenient for the interaction between processing component 1802 and other assemblies.For example, processing component 1802 may include multi-media module,
To facilitate the interaction between multimedia component 1806 and processing component 1802.
Memory 1804 is configured as storing various types of data to support the operation in equipment 1800.These data
Example includes the instruction of any application or method for operating on device 1800, contact data, telephone book data,
Message, picture, video etc..Memory 1804 can by any kind of volatibility or non-volatile memory device or they
Combination is realized, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), it is erasable can
Program read-only memory (EPROM), programmable read only memory (PROM), read-only memory (ROM), magnetic memory, flash memory
Reservoir, disk or CD.
Power supply module 1806 provides electric power for the various assemblies of device 1800.Power supply module 1806 may include power management
System, one or more power supplys and other with for device 1800 generate, manage, and distribute the associated component of electric power.
Multimedia component 1806 includes the screen of one output interface of offer between described device 1800 and user.?
In some embodiments, screen may include liquid crystal display (LCD) and touch panel (TP).If screen includes touch panel,
Screen may be implemented as touch screen, to receive input signal from the user.Touch panel includes that one or more touch passes
Sensor is to sense the gesture on touch, slide, and touch panel.The touch sensor can not only sense touch or sliding is dynamic
The boundary of work, but also detect duration and pressure associated with the touch or slide operation.In some embodiments, more
Media component 1806 includes a front camera and/or rear camera.When equipment 1800 is in operation mode, as shot mould
When formula or video mode, front camera and/or rear camera can receive external multi-medium data.Each preposition camera shooting
Head and rear camera can be a fixed optical lens system or have focusing and optical zoom capabilities.
Audio component 1810 is configured as output and/or input audio signal.For example, audio component 1810 includes a wheat
Gram wind (MIC), when device 1800 is in operation mode, when such as call mode, recording mode, and voice recognition mode, microphone quilt
It is configured to receive external audio signal.The received audio signal can be further stored in memory 1804 or via communication
Component 1816 is sent.In some embodiments, audio component 1810 further includes a loudspeaker, is used for output audio signal.
I/O interface 1812 provides interface, above-mentioned peripheral interface module between processing component 1802 and peripheral interface module
It can be keyboard, click wheel, button etc..These buttons may include, but are not limited to: home button, volume button, start button and
Locking press button.
Sensor module 1814 includes one or more sensors, and the state for providing various aspects for device 1800 is commented
Estimate.Such as sensor module 1814 can detecte the state that opens/closes of equipment 1800, the relative positioning of component, such as institute
The display and keypad that component is device 1800 are stated, sensor module 1814 can be with detection device 1800 or device 1,800 1
The position change of a component, the existence or non-existence that user contacts with device 1800,1800 orientation of device or acceleration/deceleration and dress
Set 1800 temperature change.Sensor module 1814 may include proximity sensor, be configured in not any physics
It is detected the presence of nearby objects when contact.Sensor module 1814 can also include optical sensor, as CMOS or ccd image are sensed
Device, for being used in imaging applications.In some embodiments, which can also include acceleration sensing
Device, gyro sensor, Magnetic Sensor, pressure sensor or temperature sensor.
Communication component 1816 is configured to facilitate the communication of wired or wireless way between device 1800 and other equipment.Dress
The wireless network based on communication standard, such as WiFi can be accessed by setting 1800,2G or 3G or their combination.It is exemplary at one
In embodiment, communication component 1816 receives broadcast singal or broadcast correlation from external broadcasting management system via broadcast channel
Information.In one exemplary embodiment, the communication component 1816 further includes near-field communication (NFC) module, to promote short distance
Communication.For example, radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra wide band can be based in NFC module
(UWB) technology, bluetooth (BT) technology and other technologies are realized.
In the exemplary embodiment, device 1800 can be by one or more application specific integrated circuit (ASIC), number
Signal processor (DSP), digital signal processing appts (DSPD), programmable logic device (PLD), field programmable gate array
(FPGA), controller, microcontroller, microprocessor or other electronic components are realized, for executing the above method.
Specifically, the embodiment of the invention provides a kind of equipment of enquiring route information, which includes memory, with
And one perhaps more than one program one of them or more than one program be stored in memory, and be configured to by
It includes the instruction for performing the following operation that one or more than one processor, which execute the one or more programs:
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, is obtained
To content to be matched;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template, which has, askes
It asks the way the meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information is carried out based on the current position noun and is looked into
It askes, obtains target route information.
Optionally, including the first, noun and the second ground noun, the target route information are used for the current position noun
Indicate the route between position represented by position represented by first ground noun and second ground noun.
Optionally, the current position noun only include third noun, the target route information be used to indicate described
Route between position represented by three ground nouns and the current position location of terminal.
Optionally, it includes for carrying out following grasp that the processor, which is also used to execute the one or more programs,
The instruction of work:
Judge whether contain the sentence pattern template in the content to be matched;
If containing the sentence pattern template in the content to be matched, the content to be matched and the sentence pattern template are determined
Match.
Optionally, it includes for carrying out following grasp that the processor, which is also used to execute the one or more programs,
The instruction of work:
If the content to be matched matches with the sentence pattern template, it is based on the sentence pattern template and the current place name
Word determines set out position and destination locations;
It calculates from described position to the route of the destination locations;
Generate the target route information for being used to indicate the route.
Optionally, it includes for carrying out following grasp that the processor, which is also used to execute the one or more programs,
The instruction of work:
In response to being directed to user's edit operation of sentence pattern template, the content conduct inputted under user's edit operation is recorded
The sentence pattern template.
Optionally, it includes for carrying out following grasp that the processor, which is also used to execute the one or more programs,
The instruction of work:
For the historical user's behavior for jumping to the application execution route inquiry with route inquiry function, obtain described
User's input content before historical user's behavior and/or the Content of Communication received, as the first historical content;
If include in first historical content the first history noun and first history represented by noun
Position is consistent with the designated position of enquiring route is used in historical user's behavior, rejects institute from first historical content
The sentence pattern template is extracted in the part of noun with stating the first history and is recorded.
Optionally, it includes for carrying out following grasp that the processor, which is also used to execute the one or more programs,
The instruction of work:
Obtain the second historical content of user's input;
If in second historical content including the second history ground noun, described the is rejected from second historical content
Two history original template is extracted in the part of noun;
In response to being directed to the confirmation operation of the original template, remember the original template as the sentence pattern template
Record.
Optionally, including the first, noun and the second ground noun, the target route information are used for the current position noun
Indicate the route between position represented by position represented by first ground noun and second ground noun.
Optionally, the current position noun only include third noun, the target route information be used to indicate described
Route between position represented by three ground nouns and the current position location of terminal.
The embodiment of the invention also provides a kind of non-transitorycomputer readable storage medium including instruction, for example including
The memory 1804 of instruction, above-metioned instruction can be executed by the processor 1820 of device 1800 to complete the above method, for another example include
The storage medium 1930 of instruction, above-metioned instruction can be executed by the central processing unit 1922 of server 1900 to complete the above method.
For example, the non-transitorycomputer readable storage medium can be ROM, random access memory (RAM), CD-ROM, tape,
Floppy disk and optical data storage devices etc..
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of electronic equipment
When device executes, so that a kind of method that electronic equipment is able to carry out enquiring route information, which comprises
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, is obtained
To content to be matched;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template, which has, askes
It asks the way the meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information is carried out based on the current position noun and is looked into
It askes, obtains target route information.
Fig. 6 is the structural schematic diagram of server in the embodiment of the present invention.The server 1900 can be different because of configuration or performance
And generate bigger difference, may include one or more central processing units (central processing units,
CPU) 1922 (for example, one or more processors) and memory 1932, one or more storage application programs
1942 or data 1944 storage medium 1930 (such as one or more mass memory units).Wherein, memory 1932
It can be of short duration storage or persistent storage with storage medium 1930.Be stored in storage medium 1930 program may include one or
More than one module (diagram does not mark), each module may include to the series of instructions operation in server.Further
Ground, central processing unit 1922 can be set to communicate with storage medium 1930, and storage medium 1930 is executed on server 1900
In series of instructions operation.
Server 1900 can also include one or more power supplys 1926, one or more wired or wireless nets
Network interface 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or, one or
More than one operating system 1941, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM
Etc..
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to of the invention its
Its embodiment.The present invention is directed to cover any variations, uses, or adaptations of the invention, these modifications, purposes or
Person's adaptive change follows general principle of the invention and including the undocumented common knowledge in the art of the disclosure
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by following
Claim is pointed out.
It should be understood that the present invention is not limited to the precise structure already described above and shown in the accompanying drawings, and
And various modifications and changes may be made without departing from the scope thereof.The scope of the present invention is limited only by the attached claims
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and
Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of method of enquiring route information characterized by comprising
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, obtain to
Matching content;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template has inquiry road
The meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information inquiry is carried out based on the current position noun,
Obtain target route information.
2. if the method according to claim 1, wherein the content to be matched and the sentence pattern template phase
Matching carries out route information inquiry based on described ground noun, obtains target route information, comprising:
If the content to be matched matches with the sentence pattern template, it is based on the sentence pattern template and the current position noun, really
Make hair position and destination locations;
It calculates from described position to the route of the destination locations;
Generate the target route information for being used to indicate the route.
3. the method according to claim 1, wherein further include:
In response to being directed to user's edit operation of sentence pattern template, record described in the content conduct inputted under user's edit operation
Sentence pattern template.
4. the method according to claim 1, wherein further include:
For the historical user's behavior for jumping to the application execution route inquiry with route inquiry function, obtain in the history
User's input content before user behavior and/or the Content of Communication received, as the first historical content;
If in first historical content including the first history ground noun and first history ground position represented by noun
It is consistent with the designated position of enquiring route is used in historical user's behavior, described the is rejected from first historical content
One history the sentence pattern template is extracted in the part of noun and is recorded.
5. the method according to claim 1, wherein further include:
Obtain the second historical content of user's input;
If in second historical content including the second history ground noun, described second is rejected from second historical content and is gone through
History original template is extracted in the part of noun;
In response to being directed to the confirmation operation of the original template, recorded the original template as the sentence pattern template.
6. the method according to claim 1, wherein the current position noun including the first noun and the second ground
Noun, the target route information are used to indicate represented by position represented by first ground noun and second ground noun
Position between route.
7. described the method according to claim 1, wherein the current position noun only includes third ground noun
Target route information with being used to indicate the third route represented by noun between position and the current position location of terminal.
8. a kind of device of enquiring route information characterized by comprising
First acquisition unit, the Content of Communication for obtaining user's input content and/or receiving, as Current Content;
Unit is deleted, if deleting from Current Content described current for finding current position noun in the Current Content
Ground noun obtains content to be matched;
Matching unit, for matching the content to be matched with pre-recorded sentence pattern template, wherein the clause mould
Plate has the meaning of one's words of inquiry route;
Query unit is carried out if matching for the content to be matched with the sentence pattern template based on the current position noun
Route information inquiry, obtains target route information.
9. a kind of equipment of enquiring route information, which is characterized in that include memory and one or more than one journey
Sequence, perhaps more than one program is stored in memory and is configured to by one or more than one processor for one of them
Executing the one or more programs includes the instruction for performing the following operation:
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, obtain to
Matching content;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template has inquiry road
The meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information inquiry is carried out based on the current position noun,
Obtain target route information.
10. a kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of electronic equipment
When device executes, so that a kind of method that electronic equipment is able to carry out enquiring route information, which comprises
The Content of Communication for obtaining user's input content and/or receiving, as Current Content;
If finding current position noun in the Current Content, the current position noun is deleted from Current Content, obtain to
Matching content;
The content to be matched is matched with pre-recorded sentence pattern template, wherein the sentence pattern template has inquiry road
The meaning of one's words of line;
If the content to be matched matches with the sentence pattern template, route information inquiry is carried out based on the current position noun,
Obtain target route information.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810134648.6A CN110134745B (en) | 2018-02-09 | 2018-02-09 | Method, device and equipment for inquiring route information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810134648.6A CN110134745B (en) | 2018-02-09 | 2018-02-09 | Method, device and equipment for inquiring route information |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110134745A true CN110134745A (en) | 2019-08-16 |
CN110134745B CN110134745B (en) | 2024-05-07 |
Family
ID=67568025
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810134648.6A Active CN110134745B (en) | 2018-02-09 | 2018-02-09 | Method, device and equipment for inquiring route information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110134745B (en) |
Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011003024A (en) * | 2009-06-18 | 2011-01-06 | Denso Corp | Facility retrieval display device |
CN102939515A (en) * | 2010-01-06 | 2013-02-20 | 苹果公司 | Device, method, and graphical user interface for mapping directions between search results |
US8527488B1 (en) * | 2010-07-08 | 2013-09-03 | Netlogic Microsystems, Inc. | Negative regular expression search operations |
US20140141810A1 (en) * | 2012-11-19 | 2014-05-22 | Lg Electronics Inc. | Mobile terminal and controlling method thereof |
CN103955534A (en) * | 2014-05-13 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Map query method and device thereof |
CN104504078A (en) * | 2014-12-23 | 2015-04-08 | 北京奇虎科技有限公司 | Method and system for determining invoking or not of map interface for inquiry key words |
CN104794181A (en) * | 2015-04-09 | 2015-07-22 | 北京搜狗科技发展有限公司 | Method and device for processing services based on electronic map |
CN105872213A (en) * | 2016-03-28 | 2016-08-17 | 维沃移动通信有限公司 | Information displaying method and electronic device |
CN106254557A (en) * | 2016-10-09 | 2016-12-21 | 努比亚技术有限公司 | Individual's stroke intelligently pushing method and device |
CN106289291A (en) * | 2016-07-26 | 2017-01-04 | 北京奇虎科技有限公司 | The recommendation method and apparatus of navigation way |
CN106406806A (en) * | 2016-09-19 | 2017-02-15 | 北京智能管家科技有限公司 | A control method and device for intelligent apparatuses |
CN106774969A (en) * | 2015-11-20 | 2017-05-31 | 北京搜狗科技发展有限公司 | A kind of input method and device |
CN107084736A (en) * | 2017-04-27 | 2017-08-22 | 维沃移动通信有限公司 | A kind of air navigation aid and mobile terminal |
-
2018
- 2018-02-09 CN CN201810134648.6A patent/CN110134745B/en active Active
Patent Citations (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2011003024A (en) * | 2009-06-18 | 2011-01-06 | Denso Corp | Facility retrieval display device |
CN102939515A (en) * | 2010-01-06 | 2013-02-20 | 苹果公司 | Device, method, and graphical user interface for mapping directions between search results |
US8527488B1 (en) * | 2010-07-08 | 2013-09-03 | Netlogic Microsystems, Inc. | Negative regular expression search operations |
US20140141810A1 (en) * | 2012-11-19 | 2014-05-22 | Lg Electronics Inc. | Mobile terminal and controlling method thereof |
CN103955534A (en) * | 2014-05-13 | 2014-07-30 | 百度在线网络技术(北京)有限公司 | Map query method and device thereof |
CN104504078A (en) * | 2014-12-23 | 2015-04-08 | 北京奇虎科技有限公司 | Method and system for determining invoking or not of map interface for inquiry key words |
CN104794181A (en) * | 2015-04-09 | 2015-07-22 | 北京搜狗科技发展有限公司 | Method and device for processing services based on electronic map |
CN106774969A (en) * | 2015-11-20 | 2017-05-31 | 北京搜狗科技发展有限公司 | A kind of input method and device |
CN105872213A (en) * | 2016-03-28 | 2016-08-17 | 维沃移动通信有限公司 | Information displaying method and electronic device |
CN106289291A (en) * | 2016-07-26 | 2017-01-04 | 北京奇虎科技有限公司 | The recommendation method and apparatus of navigation way |
CN106406806A (en) * | 2016-09-19 | 2017-02-15 | 北京智能管家科技有限公司 | A control method and device for intelligent apparatuses |
CN106254557A (en) * | 2016-10-09 | 2016-12-21 | 努比亚技术有限公司 | Individual's stroke intelligently pushing method and device |
CN107084736A (en) * | 2017-04-27 | 2017-08-22 | 维沃移动通信有限公司 | A kind of air navigation aid and mobile terminal |
Non-Patent Citations (2)
Title |
---|
王娜;施瑞娜;周策;: "基于Android的路线查询规划系统分析", 无线互联科技, no. 05, 10 March 2016 (2016-03-10) * |
袁红;陆成成;: "网络用户导航类查询意图识别研究", 情报资料工作, no. 03, 25 May 2017 (2017-05-25) * |
Also Published As
Publication number | Publication date |
---|---|
CN110134745B (en) | 2024-05-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105222773B (en) | Air navigation aid and device | |
WO2018000585A1 (en) | Interface theme recommendation method, apparatus, terminal and server | |
CN108279828A (en) | A kind of method, apparatus and terminal starting application program | |
CN104112129A (en) | Image identification method and apparatus | |
CN106202194A (en) | The storage method and device of screenshot picture | |
CN104794382A (en) | Application starting method and device | |
CN105120084A (en) | Image-based communication method and apparatus | |
CN105094760A (en) | Picture marking method and device | |
CN105488111A (en) | Image search method and device | |
CN105389113B (en) | Application control method, apparatus based on gesture and terminal | |
CN106356060A (en) | Voice communication method and device | |
CN104636453A (en) | Illegal user data identification method and device | |
CN105808667A (en) | Image acquisition method, apparatus and system | |
CN105302335B (en) | Vocabulary recommends method and apparatus and computer readable storage medium | |
CN105335714A (en) | Photograph processing method, device and apparatus | |
CN106547850A (en) | Expression annotation method and device | |
CN113190307A (en) | Control adding method, device, equipment and storage medium | |
CN105094364A (en) | Method and apparatus for displaying vocabulary | |
CN104182473A (en) | Setting option display method and device | |
CN105224950A (en) | The recognition methods of filter classification and device | |
CN105843894A (en) | Information recommending method and device | |
CN105681455A (en) | Method, device and system for acquiring images | |
CN105827834A (en) | Mobile device application method and device | |
CN104836880A (en) | Method and device for processing contact person head portrait | |
KR101895701B1 (en) | Method and device for pushing user information |
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 | ||
TG01 | Patent term adjustment |