The disclosure of Japanese Patent Application No. 2010-262098 filed on Nov. 25, 2010 including the specification, drawings and abstract is incorporated herein by reference in its entirety.
1. Field of the Invention
The present invention relates to a searching device, a searching method and a computer-readable storage medium.
2. Description of the Related Art
In a related art, there is known a searching device that, on the basis of a string input through user's operation, searches for a word, or the like, that includes the input string. Incidentally, a character that is not intended by a user may be input through user's erroneous operation. The technique described in Japanese Patent Application Publication No. 2007-140900 (JP-A-2007-140900) does not accept an input operation of a character on which correction instructions have been issued so as not to input a wrong character again.
However, the technique described in JP-A-2007-140900 does not consider anything about the point that a character on which correction instructions have been issued is used in searching for a word, or the like. The present invention provides a searching device, searching method and computer-readable storage medium that enhance the prediction accuracy of a predicted candidate string that is predicted on the basis of a string input by a user.
A first aspect of the present invention provides a searching device. The searching device includes: an input string acquisition unit that acquires an input string input by a user; a predicted candidate string extracting unit that extracts a predicted candidate string that begins with the input string; a deleted character determining unit that acquires a deleted character deleted from the input string, and that determines a deleted character position that is a character position of the deleted character in the input string; and a changing unit that changes a priority of the predicted candidate string that begins with the input string from which the deleted character has been deleted on the basis of the deleted character and the deleted character position.
According to the above first aspect, it is possible to increase the prediction accuracy of a predicted candidate string on the basis of a deleted character and a deleted character position.
A second aspect of the present invention provides a searching method. The searching method includes: acquiring an input string input by a user; extracting a predicted candidate string that begins with the input string; acquiring a deleted character deleted from the input string, and determining a deleted character position that is a character position of the deleted character in the input string; and changing a priority of the predicted candidate string that begins with the input string from which the deleted character has been deleted on the basis of the deleted character and the deleted character position.
According to the above second aspect, a similar advantageous effect to that of the searching device according to the first aspect is obtained.
A third aspect of the present invention provides a computer-readable storage medium that stores computer-executable instructions for performing a searching function. The searching function includes: acquiring an input string input by a user; extracting a predicted candidate string that begins with the input string; acquiring a deleted character deleted from the input string, and determining a deleted character position that is a character position of the deleted character in the input string; and changing a priority of the predicted candidate string that begins with the input string from which the deleted character has been deleted on the basis of the deleted character and the deleted character position.
According to the above third aspect, a similar advantageous effect to that of the searching device according to the first aspect is obtained.
The features, advantages, and technical and industrial significance of this invention will be described below with reference to the accompanying drawings, in which like numerals denote like elements, and wherein:
Hereinafter, searching devices according to embodiments of the present invention will be described with reference to the accompanying drawings.
A searching device according to the first embodiment of the present invention is applied to a navigation system equipped for a vehicle.
The navigation system 1 is configured mainly by a control unit 10. Operation switches 20, a map data storage unit 30, a predicted keyword storage unit 35, a current position calculation unit 40, a speaker 50, a display 60, and the like, are connected to the control unit 10. The control unit 10 is formed as a computer that includes a CPU, a ROM, a RAM, an input/output port and a bus line that connects them. The control unit 10 governs control over the entire system. The operation switches 20 are formed of touch switches integrated with the display 60, mechanical switches, a remote control unit, or the like, and are used in various input operations. In the present embodiment, the operation switches 20 include touch switches integrated with the display 60.
The map data storage unit 30 is, for example, a storage device that is implemented as a hard disk drive (HDD). Although the HDD is used here, another medium, such as a DVD-ROM and a memory card, may be used instead. The map data storage unit 30 stores so-called map matching data for improving the accuracy of position detection and map data for searching for a route. The map data include various pieces of data, and include facility information associated with a facility as one of the various pieces of data. The facility information is specifically point of interest (POI) information stored in association with an ID that determines a facility. The POI information includes information that indicates a facility name, a facility ID, coordinates of position, a type (genre), an address, and the like.
The predicted keyword storage unit 35 stores keywords from which one or more predicted candidate strings (one or more predicted candidate keywords) that begin with an input string input by a user are extracted. In the present embodiment, as shown in
Referring back to
Here, the character input screen displayed on the display 60 will be described with reference to
The input character table 71 is formed of a plurality of character buttons 711. The character buttons 711 respectively correspond to alphabets, symbols, and the like. When one of the character buttons 711 is selected by a user, a character corresponding to the selected character button 711 is displayed on the input string display field 72, and is stored in an input string management table 80 shown in
The delete button 73 is a button used to delete an input character. When the delete button 73 is selected, the last character of the characters displayed on the input string display field 72 is deleted, and the last input character is deleted from the input string management table 80. In addition, the deleted character and the character position of the deleted character deleted from the input string are stored in a deleted character management table 81 shown in
The return button 74 is a button used to return to a screen that had been displayed before the character input screen 70 is displayed. The predicted candidate string display field 75 is formed of a plurality of predicted candidate string buttons 751. A predicted candidate string that begins with an input string is displayed on the predicted candidate string button 751 on the basis of priority. In the present embodiment, there are three predicted candidate string buttons 751, so three of the extracted predicted candidate strings, having higher priorities, are displayed from the left. Note that, in the present embodiment, the number of the predicted candidate string buttons 751 is three; instead, the number of buttons may be any number. The next word button 76 is a button used to display the next predicted candidate strings on the predicted candidate string buttons 751. The complete button 77 is a button used to fix an input string displayed on the input string display field 72. The number of predicted candidate strings that begin with an input string is displayed on the count display field 78. Note that the destination setting button 61, the map button 62, the character buttons 711, the delete button 73, the return button 74, the next word button 76 and the complete button 77 constitute the operation switches 20.
Next, a predicted candidate string extracting process executed at the time when the input string management table 80 is changed will be described with reference to the flowchart shown in
In the first step S101 (hereinafter, “step” is abbreviated as “S”), an input string input by a user is acquired from the input string management table 80. In S102, one or more predicted candidate strings that begin with the input string are extracted on the basis of the input string acquired in S101. In S103, the number of the predicted candidate strings extracted in S102 is calculated. The calculated number of the predicted candidate strings is displayed on the count display field 78. In S104, it is determined whether the input string is changed by selecting the delete button 73. When it is determined that the input string is not changed by selecting the delete button 73 (NO in S104), that is, when the delete flag is not set and the character button 711 is selected to add a new character to the input string, the process proceeds to S108. When it is determined that the input string is changed by selecting the delete button 73 (YES in S104), that is, when the delete flag is set, the process proceeds to S105.
In S105, a deleted character deleted by selecting the delete button 73 is acquired, and a deleted character position that is the character position of the deleted character in the input string is determined. In S106, the deleted character management table 81 is set on the basis of the deleted character and deleted character position that are determined in S105. In the present embodiment, the one or more priorities of the predicted candidate strings, in each of which the character located at the deleted character position is the deleted character, are decreased. Accordingly, in the deleted character management table 81, a predetermined numeric value for reducing the score is set in the field corresponding to the deleted character at the deleted character position. In S107, in the deleted character management table 81, a numeric value for changing the score at the character position subsequent to the deleted character position is cleared. In S108, the display subject selecting process of selecting a display subject to be displayed on the predicted candidate string display field 75 is executed. Note that, when the delete flag is set, the delete flag is reset after the process ends.
The display subject selecting process executed in S108 will be described with reference to the flowchart shown in
In S203, the predicted keyword table is consulted, and the score of any one of the predicted candidate strings is acquired. In S204, the deleted character management table 81 is consulted, and the score acquired in S203 is changed. Note that, when no numeric value for changing the score of the corresponding predicted candidate string is stored in the deleted character management table 81, the score of the predicted candidate string is not changed. In the present embodiment, the process in which the deleted character management table 81 is consulted and the score of the predicted candidate string is changed is regarded as the process of “changing the priority of a predicted candidate string”. Note that the process in which a negative numeric value for changing the score is set in S106, and then the score is changed in S204 is regarded as the process of “decreasing the priority of a predicted candidate string”. In addition, the process in which a positive numeric value for changing the score is set in S106, and then the score is changed in S204 is regarded as the process of “increasing the priority of a predicted candidate string”.
In S205, it is determined whether the predicted candidate string is included in top-ranked candidates to be displayed. Determination as to whether the predicted candidate string is included in the top-ranked candidates to be displayed is made on the basis of the score of the predicted candidate string and the scores of the other predicted candidate strings stored in the predicted candidate string working area. When it is determined that the predicted candidate string is not included in the top-ranked candidates to be displayed (NO in S205), that is, when the score of the predicted candidate string is lower than the scores of the other predicted candidate strings stored in the predicted candidate string working area, the process returns to S202. When it is determined that the predicted candidate string is included in the top-ranked candidates to be displayed (YES in S205), that is, when the score of the predicted candidate string is higher than the score of any one of the other predicted candidate strings stored in the predicted candidate string working area, the process proceeds to S206.
In S206, the predicted candidate string is stored in the predicted candidate string working area in decreasing order of score, and the predicted candidate string having the lowest score among the predicted candidate strings stored in the predicted candidate string working area is deleted from the predicted candidate string working area. Then, the predicted candidate strings stored in the predicted candidate string working area at the time when all the predicted candidate strings have been checked are set as display subjects, and are displayed on the predicted candidate string display field 75.
Here, a specific example of a character deleting process and a specific example of the predicted candidate string extracting process will be described with reference to
As shown in
As shown in
That is, when
As described in detail above, in the control unit 10 of the navigation system 1, an input string input by the user is acquired (S101 in
In the present embodiment, the one or more priorities of the predicted candidate strings, in each of which the character located at the deleted character position is the deleted character, and that begin with the input string from which the deleted character has been deleted are decreased (S204). By so doing, the priority of a predicted candidate string may be appropriately changed on the basis of the deleted character to make it possible to increase the prediction accuracy of the predicted candidate string.
A searching device according to a second embodiment of the present invention will be described with reference to
For example, when the second character “B” is deleted, the surrounding characters arranged at the input positions around the character “B” in the input character table 71 are the characters “F”, “G”, “H”, “N” and “V” (see
Note that, for example, when the second character “B” is deleted and then the character “T” is input at the second character position and is deleted, similarly, a predetermined numeric value for reducing the score may be set in the field corresponding to the character “T” at the second character position in the deleted character management table 81, and predetermined numeric values for increasing the score may be set in the fields in the deleted character management table 81, corresponding to the surrounding characters arranged at the input positions around the character “T” in the input character table 71. At this time, a numeric value set in the field in the deleted character management table 81, corresponding to the character “G” arranged between the deleted characters “B” and “T” in the input character table 71 is the largest. Thus, the one or more priorities of the predicted candidate strings, in each of which the second character is “G”, increase.
In the present embodiment, an input string is acquired on the basis of an input character input by the user from among the plurality of characters arranged in the input character table 71 (S101). In addition, the one or more priorities of the predicted candidate strings that begin with the input string from which the deleted character has been deleted, in each of which the character located at the deleted character position is any one of surrounding characters arranged at input positions around the deleted character in the input character table 71, are increased (S204). By so doing, the priority of a predicted candidate string may be appropriately changed on the basis of the deleted character to thereby make it possible to increase the prediction accuracy of the predicted candidate string.
A searching device according to a third embodiment of the present invention will be described with reference to
In S107 in
A specific example of the predicted candidate string extracting process according to the present embodiment will be described with reference to
When the string “AGC” is input and then the character “C” and, subsequently, the character “G” are deleted, as shown in
When the score is thus changed, as shown in
In the present embodiment, when it is determined that a plurality of acquired deleted characters are located at different deleted character positions, one or more priorities of predicted candidate strings that begin with an input string from which the plurality of deleted characters have been deleted, in each of which the character located at a character position behind the deleted character position of the latest deleted character is the deleted character of which the character position is determined to be the deleted character position, are increased (S204). By so doing, a priority of a predicted candidate string may be appropriately changed on the basis of the deleted character located behind the deleted character position of the latest deleted character to thereby make it possible to increase the prediction accuracy of the predicted candidate string.
A searching device according to a fourth embodiment of the present invention will be described with reference to
That is, in the present embodiment, when it is determined that the input string is not changed by selecting the delete button 73 (NO in S104), that is, when the delete flag is not set and any one of the character buttons 711 is selected to add a new character to the input string, the process proceeds to S109. In S109, information about changing the priority set at the character position at which a new input character is input is cleared from the deleted character management table 81, and then the process proceeds to S108. By so doing, one or more priorities of the predicted candidate strings, each of which has been given the priority that is changed on the basis of the deleted character of which the deleted character position is an input character position at which a new input character is input, return to original priorities. Note that, instead of the process of S107, the process of S107 according to the third embodiment shown in
For example, description will be made using the example described in the third embodiment. When the string “AGC” is input and then the characters “C” and “G” are successively deleted and, after that, the character “B” is newly input at the second character position, as shown in
In the present embodiment, when a newly input character is input at a deleted character position, one or more priorities of the predicted candidate strings, each of which has been given the priority that is changed on the basis of the deleted character of which the deleted character position is a character position at which a new input character is input, return to original priorities (priorities before having been changed on the basis of the deleted character of which the deleted character position is the character position at which the new input character is input). By so doing, it is possible to increase the prediction accuracy of a predicted candidate string.
In the above embodiments, the control unit 10 serves as an “input string acquisition unit”, a “predicted candidate string extracting unit”, a “deleted character determining unit” and a “changing unit”. In addition, the process of S101 corresponds to the process that implements the function of the “input string acquisition unit”, the process of S102 corresponds to the process that implements the function of the “predicted candidate string extracting unit”, the process of S105 corresponds to the process that implements the function of the “deleted character determining unit”, and the process of S204 corresponds to the process that implements the function of the “changing unit”.
As described above, the aspect of the present invention is not limited to the above embodiments; it may be implemented in various forms without departing from the scope of the invention. In the above embodiments, one or more priorities of predicted candidate strings, in each of which the character located at a deleted character position is a deleted character, are decreased; instead, in an alternative embodiment, instead of decreasing the priorities, one or more applicable keywords may be excluded from predicted candidate strings. In the above embodiments, an input string is acquired and subsequently one or more predicted candidate strings that begin with the input string are extracted; instead, in an alternative embodiment, the process shown in
In the above embodiments, the searching device is embodied as the navigation system; instead, in an alternative embodiment, the searching device may be an information terminal, such as a cellular phone and a personal computer. In addition, in the above embodiments, the control unit 10 serves as an “input string acquisition unit”, a “predicted candidate string extracting unit”, a “deleted character determining unit” and a “changing unit”. In an alternative embodiment, programs for causing a computer and a storage medium for storing the programs may be employed to function as these units. In addition, a searching method that executes processes corresponding to these units may be employed.
Number | Date | Country | Kind |
---|---|---|---|
2010-262098 | Nov 2010 | JP | national |