CN101639863B - Method system and equipment for loading city lexicon - Google Patents

Method system and equipment for loading city lexicon Download PDF

Info

Publication number
CN101639863B
CN101639863B CN200910170217.6A CN200910170217A CN101639863B CN 101639863 B CN101639863 B CN 101639863B CN 200910170217 A CN200910170217 A CN 200910170217A CN 101639863 B CN101639863 B CN 101639863B
Authority
CN
China
Prior art keywords
city
dictionary
address
input method
name
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.)
Active
Application number
CN200910170217.6A
Other languages
Chinese (zh)
Other versions
CN101639863A (en
Inventor
张会鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN200910170217.6A priority Critical patent/CN101639863B/en
Publication of CN101639863A publication Critical patent/CN101639863A/en
Application granted granted Critical
Publication of CN101639863B publication Critical patent/CN101639863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method, a system and equipment for loading a city lexicon, belonging to the field of communication. The method comprises the following steps: an input method client obtains city characteristic information input by a user and determines a candidate city name located by the input method client according to the city characteristic information; a corresponding city name of an IP address is searched according to the protocol IP address which is mutually connected among self networks; when the corresponding city name of the IP address is the candidate city name, a city lexicon corresponding to the corresponding city name of the IP address is obtained and stored in a preset catalogue, and information of the city lexicon is added in a classified lexicon list file; and the city lexicon is automatically loaded according to the information of the city lexicon in the classified lexicon list file. Through the scheme, the user can fast search vocabularies of the located city, improve the speed of inputting the information and obtain dialects and language habits in all parts of the country according to different city conditions. The invention enhances the use experience of the user.

Description

Method, system and the equipment of a kind of loading city dictionary
Technical field
The present invention relates to the communications field, particularly method, system and the equipment of a kind of loading city dictionary.
Background technology
Along with the development of the communication technology, user terminal is used widely in user's work, study, life, and user is input to Word message in user terminal, need to use input method software.
Input method software is the tool software operating in operating system, the media data of the coding of keyboard input or the input of other non-keyboards is converted to the software of word input.
Due to input method user distribution is different places, Regional Distribution is wider, user can often need to input some vocabulary in own city, as name of bus stop, building cell name, city famous person, sight spot name etc., current input method software needs user word for word to search the vocabulary that coupling finds the city at own place.
Inventor realize when of the present invention by analysis with research after, find that prior art at least exists following shortcoming and defect:
Current input method software cannot provide the vocabulary in the city at user place for user, need user word for word to search coupling and just can find the vocabulary in the city at own place, complicated operation and easily makeing mistakes.
Summary of the invention
In order to realize user, when using input method software, do not need complicated operation just can find the vocabulary in city, place, the embodiment of the present invention provides method, system and the equipment of a kind of loading city dictionary, and described technical scheme is as follows:
The embodiment of the present invention provides the method for a kind of loading city dictionary, and described method comprises:
Input method client is obtained the urban characteristic information of user's input, determines the candidate city name at described input method client place according to described urban characteristic information;
Described input method client, according to the protocol IP address interconnecting between the network of self, is searched city name corresponding to described IP address;
When city name corresponding to described IP address is during in described candidate city name, described input method client is obtained city dictionary corresponding to city name corresponding to described IP address, described city dictionary is saved in default catalogue, and in classified lexicon listing file, adds the information of described city dictionary;
Described input method client, according to the information of the city dictionary in described classified lexicon listing file, loads described city dictionary automatically.
Wherein, described input method client, according to the protocol IP address interconnecting between the network of self, is searched city name corresponding to described IP address, specifically comprises:
Described input method client sends city inquiry request to IP address lookup server, carries the IP address of described input method client in described request;
Described IP address lookup server, according to the IP address in the inquiry request of described city, is searched city name corresponding to described IP address, and city name corresponding to described IP address sent to described input method client;
Correspondingly, when city name corresponding to described IP address is during in described candidate city name, described input method client is obtained city dictionary corresponding to city name corresponding to described IP address, specifically comprises:
Described input method client searches whether there be city name corresponding to described IP address in described candidate city name, if, to city dictionary server, send city thesaurus-lookups request, city name corresponding to described IP address carried in the thesaurus-lookups request of described city;
Described city dictionary server, according to the city name in the thesaurus-lookups request of described city, is inquired about corresponding city dictionary, and the city dictionary finding is sent to described input method client.
Wherein, described method also comprises:
Described input method client according to predetermined time interval to described city dictionary server, send city Word library updating inquiry request, described city Word library updating inquiry request is carried described city name;
Described city dictionary server, according to the city name in the Word library updating inquiry request of described city, is inquired about corresponding city dictionary and whether is had renewal, when described city dictionary exists renewal, the city dictionary after upgrading is sent to described input method client;
Described input method client receives after the city dictionary after described renewal, city dictionary after described renewal is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that described input method client reads the information of the city dictionary after the described renewal in described classified lexicon listing file while starting, automatically load the city dictionary after described renewal.
Wherein, described method also comprises:
Described input method client detects the IP address of self automatically, and the IP address detecting is sent to city name corresponding to IP address lookup server lookup;
When the described city name inquiring is different from former city name, described input method client sends change city thesaurus-lookups request to described city dictionary server, the city name that the thesaurus-lookups request of described change city inquires described in carrying;
The city name inquiring described in the dictionary server basis of described city, inquires about corresponding change city dictionary, and the change city dictionary finding is sent to described input method client;
Described input method client receives after the dictionary of described change city, described change city dictionary is saved in default catalogue, and the information of adding described change city dictionary in classified lexicon listing file, so that described input method client reads the information of the change city dictionary in described classified lexicon listing file while starting, automatically load described change city dictionary.
The embodiment of the present invention also provides the system of a kind of loading city dictionary, and described system comprises: the protocol IP address lookup server interconnecting between input method client, network and city dictionary server, wherein,
Described input method client, for sending city inquiry request to described IP address lookup server, carries the IP address of described input method client in described request; Receive the city name finding that described IP address lookup server sends; To described city dictionary server, send city thesaurus-lookups request, described city name is carried in the thesaurus-lookups request of described city; Receive the city dictionary finding that described city dictionary server sends; Receive after the dictionary of described city, described city dictionary is saved in default catalogue, and the information of adding described city dictionary in the classified lexicon listing file of self, so that described input method client reads the information of the city dictionary in described classified lexicon listing file while starting, automatically load described city dictionary.
Described IP address lookup server, for according to the IP address of the city inquiry request of described input method client transmission, searches city name corresponding to described IP address, and described city name is sent to described input method client;
Described city dictionary server, for according to the city name of the city thesaurus-lookups request of described input method client transmission, inquires about corresponding city dictionary, and the city dictionary finding is sent to described input method client.
Wherein, described input method client, also for according to predetermined time interval to described city dictionary server, send city Word library updating inquiry request, described city Word library updating inquiry request is carried described city name; Receive after the city dictionary after described renewal, city dictionary after described renewal is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that described input method client reads the information of the city dictionary after the described renewal in described classified lexicon listing file while starting, automatically load the city dictionary after described renewal.
Correspondingly, described city dictionary server, also, for according to the city name of described city Word library updating inquiry request, inquires about corresponding city dictionary and whether has renewal, when described city dictionary exists renewal, the city dictionary after upgrading is sent to described input method client.
Wherein, described input method client, also for automatically detect self to IP address, and the IP address detecting is sent to city name corresponding to IP address lookup server lookup; When the described city name inquiring is different from former city name, to described city dictionary server, send change city thesaurus-lookups request, the city name that the thesaurus-lookups request of described change city inquires described in carrying; Receive after the change city dictionary of described city dictionary server transmission, described change city dictionary is saved in default catalogue, and the information of adding described change city dictionary in classified lexicon listing file, so that described input method client reads the information of the change city dictionary in described classified lexicon listing file while starting, automatically load described change city dictionary.
The embodiment of the present invention also provides a kind of input method client equipment, and described equipment comprises:
Determination module, for obtaining the urban characteristic information of user's input, determines the candidate city name at described input method client place according to described urban characteristic information;
Search module, for according to the protocol IP address interconnecting between the network of self, search city name corresponding to described IP address;
Obtain dictionary module, for when city name corresponding to described IP address is during in described candidate city name, obtain city dictionary corresponding to city name corresponding to described IP address, described city dictionary is saved in default catalogue, and in classified lexicon listing file, adds the information of described city dictionary;
Load-on module, for according to the information of the city dictionary of described classified lexicon listing file, loads described city dictionary automatically.
Wherein, described in search module, specifically comprise:
Transmitting element, for sending city inquiry request to IP address lookup server, carries the IP address of described input method client in described request;
Receiving element, city name corresponding to described IP address arriving according to the IP address search of described city inquiry request for receiving described IP address lookup server;
Correspondingly, described in obtain dictionary module, specifically comprise:
Judging unit, for searching whether there be city name corresponding to described IP address in described candidate city name, if so, to city dictionary server, send city thesaurus-lookups request, city name corresponding to described IP address carried in the thesaurus-lookups request of described city;
Receiving element, the city dictionary inquiring according to the city name of described city thesaurus-lookups request for receiving described city dictionary server.
Wherein, described equipment also comprises:
Update module, for according to predetermined time interval to described city dictionary server, send city Word library updating inquiry request, described city Word library updating inquiry request is carried described city name; Receive the city dictionary after the renewal that described city dictionary server inquires according to the city name in the Word library updating inquiry request of described city; City dictionary after described renewal is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that described input method client reads the information of the city dictionary after the described renewal in described classified lexicon listing file while starting, automatically load the city dictionary after described renewal.
Wherein, described equipment also comprises:
Detection module, for automatically detecting the IP address of self, and sends to city name corresponding to IP address lookup server lookup by the IP address detecting; When the described city name inquiring is different from former city name, to described city dictionary server, send change city thesaurus-lookups request, the city name that the thesaurus-lookups request of described change city inquires described in carrying; Receive described city dictionary server according to described in the change city dictionary that inquires of the city name that inquires; Described change city dictionary is saved in default catalogue, and the information of adding described change city dictionary in classified lexicon listing file, so that described input method client reads the information of the change city dictionary in described classified lexicon listing file while starting, automatically load described change city dictionary.
The beneficial effect of the technical scheme that the embodiment of the present invention provides is:
The scheme that the embodiment of the present invention provides, by input method client, obtain the urban characteristic information of user's input and determine candidate city name, and determine city name according to IP address, and according to city name, obtain corresponding city dictionary and be loaded in the catalogue of appointment, make user can fast finding to the vocabulary in city, place, accelerate the speed of input message, and can obtain dialect and the speech habits of various places according to different city situations, improved user's experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skills, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the method flow schematic diagram that the embodiment of the present invention 1 provides;
Fig. 2 is the system architecture schematic diagram that the embodiment of the present invention 2 provides;
Fig. 3 is the method flow schematic diagram that the embodiment of the present invention 2 provides;
Fig. 4 is the system architecture schematic diagram that the embodiment of the present invention 3 provides;
Fig. 5 is the device structure schematic diagram that the embodiment of the present invention 4 provides.
Embodiment
For making object, technical scheme and the advantage of the embodiment of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment 1
The embodiment of the present invention provides the method for a kind of loading city dictionary, and referring to Fig. 1, the method comprises:
101: input method client is obtained the urban characteristic information of user's input, according to urban characteristic information, determine the candidate city name at input method client place;
Wherein, input method client can be according to the urban characteristic information of user input, as urban place name, city characteristic building, an urban dialect etc. represent rough definite several candidate city names in the input message of city characteristic.
102: input method client, according to the protocol IP address interconnecting between the network of self, is searched city name corresponding to IP address;
103: when city name corresponding to IP address is during in candidate city name, input method client is obtained the city dictionary that city name corresponding to IP address is corresponding, city dictionary is saved in default catalogue, and in classified lexicon listing file, adds the information of city dictionary;
Input method client is according to the information of the city dictionary in classified lexicon listing file, automatically loading city dictionary.
Wherein, input method client, according to the protocol IP address interconnecting between the network of self, is searched city name corresponding to IP address, specifically comprises:
Input method client sends city inquiry request to IP address lookup server, carries the IP address of input method client in request;
IP address lookup server, according to the IP address in the inquiry request of city, is searched city name corresponding to IP address, and city name corresponding to IP address sent to input method client;
Correspondingly, when city name corresponding to IP address is during in candidate city name, input method client is obtained the city dictionary that city name corresponding to IP address is corresponding, specifically comprises:
Input method client is searched the city name that whether exists IP address corresponding in candidate city name, if so, to city dictionary server, sends city thesaurus-lookups request, and city name corresponding to IP address carried in city thesaurus-lookups request;
City dictionary server, according to the city name in the thesaurus-lookups request of city, is inquired about corresponding city dictionary, and the city dictionary finding is sent to input method client.
Wherein, the method also comprises:
Input method client according to predetermined time interval to city dictionary server, send city Word library updating inquiry request, city Word library updating inquiry request is carried city name;
City dictionary server, according to the city name in the Word library updating inquiry request of city, is inquired about corresponding city dictionary and whether is had renewal, when city dictionary exists renewal, the city dictionary after upgrading is sent to input method client;
Input method client receives after the city dictionary after upgrading, city dictionary after upgrading is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that input method client reads the information of the city dictionary after the renewal in classified lexicon listing file while starting, automatically load the city dictionary after upgrading.
Wherein, the method also comprises:
Input method client detects the IP address of self automatically, and the IP address detecting is sent to city name corresponding to IP address lookup server lookup;
When the city name inquiring is different from former city name, input method client sends change city thesaurus-lookups request to city dictionary server, and the city name inquiring is carried in change city thesaurus-lookups request;
City dictionary server, according to the city name inquiring, is inquired about corresponding change city dictionary, and the change city dictionary finding is sent to input method client;
Input method client receives after the dictionary of change city, change city dictionary is saved in default catalogue, and the information of adding change city dictionary in classified lexicon listing file, so that input method client reads the information of the change city dictionary in classified lexicon listing file while starting, automatically load change city dictionary.
The method that the embodiment of the present invention provides, by input method client, obtain the urban characteristic information of user's input and determine candidate city name, and determine city name according to IP address, and according to city name, obtain corresponding city dictionary and be loaded in the catalogue of appointment, make user can fast finding to the vocabulary in city, place, accelerate the speed of input message, and can obtain dialect and the speech habits of various places according to different city situations, improved user's experience.
Embodiment 2
In order to realize user, when using input method software, do not need complicated operation just can find the vocabulary in city, place, the embodiment of the present invention provides the method for a kind of loading city dictionary, can automatically the vocabulary in the city at user place be loaded to user in input method software, the speed that has improved user's inputting word information, particular content is as follows:
First, the embodiment of the present invention provides the system of a kind of loading city dictionary, referring to Fig. 2, this system comprises: input method client, IP address lookup server and city dictionary server, wherein, input method client specifically comprises input method installation module, classified lexicon down loading updating module, classified lexicon listing file three parts, below the function of various piece is described in detail:
Input method installation module: for carrying out the installation process of input method, in installation process, input method client sends inquiry request automatically to IP address lookup server, inquiry local city corresponding to current IP address; Receive after the Query Result that IP address lookup server returns, obtain the city finding in Query Result, start classified lexicon down loading updating module and send inquiry city dictionary request.
Classified lexicon down loading updating module: when starting according to input method installation module, receive after the city title that input method installation module imports into, transmission is obtained the request of city dictionary to city dictionary server, when city dictionary server returns after asked city dictionary, city dictionary is saved in to the catalogue of user's appointment, wherein the catalogue of user's appointment can be also saving contents of input method installation module acquiescence for the catalogue pre-setting before user, under this catalogue, in store all users' classified lexicon is as computer dictionary, archaic Chinese dictionary, the classified lexicon wherein preserved comprise enable with not enabled, in classified lexicon listing file, preserve the classified lexicon for enabling of dictionary information, what in classified lexicon listing file, do not add dictionary information is the classified lexicon of not enabled, and the information of this city dictionary is added in classified lexicon listing file, input method client will automatically load this city dictionary initialized time from the catalogue of user's appointment like this, and user just can input the relative words in own city easily.
Classified lexicon listing file: input method client is in order to support maintenance, management and the renewal of classified lexicon, need to there is a classified lexicon listing file, the information that has recorded all classified lexicons that user enables in this classified lexicon listing file, the classified lexicon of not enabled is not in classified lexicon listing file; Although the classified lexicon for not enabled exists in local input method client, but owing to not adding classified lexicon information in classified lexicon listing file, so first read the classified lexicon information in classified lexicon listing file when input method client initialization, and according to the classified lexicon information load classification dictionary in classified lexicon listing file, so cannot being loaded into input method client, uses the classified lexicon of not enabled.Classified lexicon down loading updating module, input method client all needs to read and write the classified lexicon that this listing file is enabled to load all users according to the information in this listing file.
Referring to table 1, classified lexicon listing file form is as follows:
Table 1
Classified lexicon ID 1 2 3 4 5 6
Dictionary title Neologisms upgrade World of Warcraft Chinese idiom common saying Poem City dictionary Neologisms upgrade
Dictionary type Language Network game Literature Literature Region Other
Wherein, in classified lexicon listing file the information of each classified lexicon comprise classified lexicon ID, dictionary title and dictionary type, as classified lexicon ID in table 1 is 1, dictionary name is called that neologisms upgrade, dictionary type is language.Classified lexicon ID identifies a classified lexicon file, in classified lexicon listing file, is unique, and as dictionary file of 3 unique identification, this dictionary file is different from other dictionary files; Classified lexicon title and dictionary type can be identical, and as in table 1, classified lexicon ID is 3 and the classified lexicon ID different classified lexicons that are 4, and dictionary type is identical, is all " literature "; For another example in table 1, classified lexicon ID is 1 and the classified lexicon ID different classified lexicons that are 6, and dictionary title is identical, is all " neologisms renewal ".
IP address lookup server: the inquiry request sending for receiving input method installation module, from inquiry request, identify the IP address of input method client, then according to this IP address, in IP address database, inquire about the city at this place, IP address, and the city inquiring is sent to input method client.This IP address database can be self the database of preserving on IP address lookup server, also can be kept at database on other servers and to other servers, inquire about when IP address lookup server need to be according to city corresponding to IP address lookup again.
City dictionary server: for depositing the dictionary in all cities, the thesaurus-lookups request sending according to classified lexicon down loading updating module, sends to classified lexicon down loading updating module by the city dictionary in request.Wherein, classified lexicon is the dictionary that input method client a kind of input method client pre-defined or configuration can load and search, and is depositing all cities dictionary information in certain territorial scope, as all cities dictionary information of China.
Below in conjunction with the system construction drawing in Fig. 2, the method that the embodiment of the present invention is provided describes, and referring to Fig. 3, detailed process is as follows:
201: input method client is obtained the urban characteristic information of user's input, according to urban characteristic information, determine the candidate city name at input method client place;
Wherein, input method client can be according to the urban characteristic information of user input, as urban place name, city characteristic building, an urban dialect etc. represent rough definite several candidate city names in the input message of city characteristic.
202: input method client sends inquiry city inquiry request to IP address lookup server, in this inquiry request, carry the IP address of input method client;
Wherein, when the input method installation module of input method client is installed input method procedure, from trend IP address lookup server, send city inquiry request, in this inquiry request, carry the IP address of input method client.
When user need to install the city dictionary in city corresponding to certain IP address, also can to IP address lookup server, send inquiry request by input method client, inquire about city corresponding to this IP address, the IP address of the input method client that not necessarily user uses of IP address now can be that any one user wants city dictionary corresponding to IP address of installing.
When user need to install the city dictionary in a plurality of cities, can send city inquiry request to IP address lookup server, in this inquiry request, can carry a plurality of IP address, inquire about city corresponding to each IP address.While input method procedure being installed with input method installation module in the embodiment of the present invention, the IP address of Auto-mounting input method client is that the city that local ip address is corresponding is example, for city corresponding to other IP addresses of inquiry or the situation embodiment of the present invention of inquiring about city corresponding to a plurality of IP address, is not restricted.
IP address in the city inquiry request that 203:IP address lookup server sends according to input method client is inquired about city corresponding to input method client, and the city name finding is sent to input method client in IP address database;
Wherein, IP address lookup server is received after the city inquiry request of input method client transmission, obtain the IP address in the inquiry request of city, and in IP address database, inquire about city corresponding to input method client, wherein the IP address database here can be the special IP address database of setting up on IP address lookup server, also the IP address database that can preserve on other servers, when IP address lookup server need to be inquired about city corresponding to IP address, then to inquiry in this IP address database.
IP address is unique, IP address database can be IP address database in certain territorial scope as just comprised the IP address database in Chinese all cities, can be also to comprise the IP address database in all cities in the world; If the IP address database in certain territorial scope, as the IP address database in all cities of China, when the city of input method client beyond China, cannot find the corresponding city, IP address of input method client.
204: input method client receives after the city name that IP address lookup server sends, judge that this city name is whether in the candidate city name at input method client place, if so, using this city name and start classified lexicon down loading updating module as parameter;
Wherein, input method client receives after the city name that IP address lookup server sends, and judges that this city name is whether in the candidate city name at input method client place, if so, usings this city name and starts classified lexicon down loading updating module as parameter; Otherwise, return to step 201 and carry out.
When user needs directly to download the city dictionary in certain city as Shanghai, the direct startup classified lexicon down loading updating module using this city name as parameter.
205: the classified lexicon down loading updating module of input method client sends dictionary request to city dictionary server, obtains the city dictionary that city name is corresponding;
Wherein, the classified lexicon down loading updating module of input method client sends dictionary request to city dictionary server, carries city name, to obtain the city dictionary information that this city name is corresponding in this dictionary request;
206: city dictionary server, according to the city name in thesaurus-lookups request, is searched the city dictionary that this city name is corresponding, and the city dictionary finding is sent to the classified lexicon down loading updating module of input method client;
Wherein, city dictionary server receives after thesaurus-lookups request, obtain the city name in thesaurus-lookups request, according to this city name, inquire about corresponding city dictionary, this city dictionary comprises name of bus stop, building cell name, city famous person, showplace, sight spot, characteristic snack and the dialect etc. in this city, wherein city dictionary can modify according to actual conditions, delete, the perfect renewal operation such as increase.
207: the classified lexicon down loading updating module of input method client receives after the city dictionary of city dictionary server transmission, city dictionary is saved in the catalogue of user's appointment, and city dictionary information is added in classified lexicon list.
Wherein, when city dictionary server returns after asked city dictionary, classified lexicon down loading updating module is saved in city dictionary the catalogue of user's appointment, wherein the catalogue of user's appointment can be also saving contents of input method installation module acquiescence for the catalogue that pre-set before user, and under this catalogue, in store all users' classified lexicon comprises the classified lexicon enabled and the classified lexicon of not enabled; And the information of this city dictionary is added in classified lexicon listing file, input method client reads classified lexicon listing file in initialization like this, know that this city dictionary enables, in the catalogue of user's appointment, automatically load this city dictionary, user just can input the relative words in own city easily.
Wherein, input method client is in order to support maintenance, management and the renewal of classified lexicon, configure a classified lexicon listing file, recorded the information of all classified lexicons that user enables in this classified lexicon listing file, the classified lexicon of not enabled is not in classified lexicon listing file; Although the classified lexicon for not enabled exists in local input method client, but owing to not adding classified lexicon information in classified lexicon listing file, so first read the classified lexicon information in classified lexicon listing file when input method client initialization, and according to the classified lexicon information load classification dictionary in classified lexicon listing file, so cannot being loaded into input method client, uses the classified lexicon of not enabled.Classified lexicon down loading updating module, input method client all needs to read and write the classified lexicon that this listing file is enabled to load all users according to the information in this listing file.
208: when input method client starts, automatically load local city dictionary, user can fast finding to the vocabulary that needs the city, place of input.
Wherein, when input method client starts, automatically read the classified lexicon information in classified lexicon listing file, and according to dictionary information loading city, the city dictionary in classified lexicon listing file, user can fast finding to the vocabulary that needs the city, place of input.
The process that above-mentioned steps 201-207 loads local city dictionary automatically to input method client in the embodiment of the present invention is described in detail, input method client can detect local IP address automatically, when the IP address of input method client changes, input method client is from city name corresponding to trend IP address lookup server lookup, if the city name inquiring is identical with local city name, process ends; Otherwise, the city of judging input method client changes, input method client is to city dictionary after changing corresponding to city dictionary server lookup, and the city dictionary after changing finding is saved in the catalogue of appointment, and in classified lexicon listing file, add city dictionary information after changing, so that input method client can read the city dictionary information after changing in classified lexicon listing file while starting, automatically load city dictionary after changing, specific implementation process is referring to above-mentioned steps 201-207, processing procedure is identical, repeats no more.
While occurring to upgrade for the city dictionary in the city at input method client place, the classified lexicon down loading updating module of input method client can send to city dictionary server the inquiry city dictionary request of upgrading according to predetermined time interval, when obtaining the city dictionary of renewal, the city dictionary that city dictionary automatic replacement after the renewal getting is preserved in user's assigned catalogue, and upgrade the city dictionary information in classified lexicon listing file, so that input method client can automatically be added the city dictionary after renewal after startup.
The method that the embodiment of the present invention provides, by input method client, obtain the urban characteristic information of user's input and determine candidate city name, and determine city name according to IP address, and according to city name, obtain corresponding city dictionary and be loaded in the catalogue of appointment, make user can fast finding to the vocabulary in city, place, accelerate the speed of input message, and can obtain dialect and the speech habits of various places according to different city situations, improved user's experience.
Embodiment 3
The embodiment of the present invention also provides the system of a kind of loading city dictionary, and referring to Fig. 4, this system comprises: the protocol IP address lookup server 302 interconnecting between input method client 301, network and city dictionary server 303, wherein,
Input method client 301, for sending city inquiry request to IP address lookup server 302, carries the IP address of input method client 301 in request; Receive the city name finding that IP address lookup server 302 sends; To city dictionary server 303, send city thesaurus-lookups request, city name is carried in city thesaurus-lookups request; Receive the city dictionary finding that city dictionary server 303 sends; Receive after the dictionary of city, city dictionary is saved in default catalogue, and the information of adding city dictionary in the classified lexicon listing file of self, so that input method client 301 reads the information of the city dictionary in classified lexicon listing file, automatically loading city dictionary while starting.
IP address lookup server 302, for according to the IP address of the city inquiry request of input method client 301 transmissions, searches city name corresponding to IP address, and city name is sent to input method client 301;
City dictionary server 303, for according to the city name of the city thesaurus-lookups request of input method client 301 transmissions, inquires about corresponding city dictionary, and the city dictionary finding is sent to input method client 301.
Wherein, input method client 301, also for according to predetermined time interval to city dictionary server 303, send city Word library updating inquiry request, city Word library updating inquiry request is carried city name; Receive after the city dictionary after upgrading, city dictionary after upgrading is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that input method client 301 reads the information of the city dictionary after the renewal in classified lexicon listing file while starting, automatically load the city dictionary after upgrading.
Correspondingly, city dictionary server 303, also, for according to the city name of city Word library updating inquiry request, inquires about corresponding city dictionary and whether has renewal, when city dictionary exists renewal, the city dictionary after upgrading is sent to input method client 301.
Wherein, input method client 301, also for automatically detect self to IP address, and the IP address detecting is sent to city name corresponding to IP address lookup server 302 inquiry; When the city name inquiring is different from former city name, to city dictionary server 303, send change city thesaurus-lookups request, the city name inquiring is carried in change city thesaurus-lookups request; Receive after the change city dictionary of city dictionary server 303 transmissions, change city dictionary is saved in default catalogue, and the information of adding change city dictionary in classified lexicon listing file, so that input method client 301 reads the information of the change city dictionary in classified lexicon listing file while starting, automatically load change city dictionary.
The system that the embodiment of the present invention provides, by input method client, obtain the urban characteristic information of user's input and determine candidate city name, and determine city name according to IP address, and according to city name, obtain corresponding city dictionary and be loaded in the catalogue of appointment, make user can fast finding to the vocabulary in city, place, accelerate the speed of input message, and can obtain dialect and the speech habits of various places according to different city situations, improved user's experience.
Embodiment 4
The embodiment of the present invention also provides a kind of input method client equipment, and referring to Fig. 5, this equipment comprises:
Determination module 401, for obtaining the urban characteristic information of user's input, determines the candidate city name at input method client place according to urban characteristic information;
Search module 402, for according to the protocol IP address interconnecting between the network of self, search city name corresponding to IP address;
Obtain dictionary module 403, for when city name corresponding to IP address is during in candidate city name, obtain the city dictionary that city name corresponding to IP address is corresponding, city dictionary is saved in default catalogue, and in classified lexicon listing file, add the information of city dictionary;
Load-on module 404, for according to the information of the city dictionary of classified lexicon listing file, loading city dictionary automatically.
Wherein, search module 402, specifically comprise:
Transmitting element, for sending city inquiry request to IP address lookup server, carries the IP address of input method client in request;
Receiving element, city name corresponding to IP address arriving according to the IP address search of city inquiry request for receiving IP address lookup server;
Correspondingly, obtain dictionary module 403, specifically comprise:
Judging unit, for search the city name that whether exists IP address corresponding in candidate city name, if so, sends city thesaurus-lookups request to city dictionary server, and city name corresponding to IP address carried in city thesaurus-lookups request;
Receiving element, the city dictionary inquiring according to the city name of city thesaurus-lookups request for receiving city dictionary server.
Wherein, this equipment also comprises:
Update module, for according to predetermined time interval to city dictionary server, send city Word library updating inquiry request, city Word library updating inquiry request is carried city name; City dictionary after the renewal that reception city dictionary server inquires according to the city name in the Word library updating inquiry request of city; City dictionary after upgrading is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that input method client reads the information of the city dictionary after the renewal in classified lexicon listing file while starting, automatically load the city dictionary after upgrading.
Wherein, this equipment also comprises:
Detection module, for automatically detecting the IP address of self, and sends to city name corresponding to IP address lookup server lookup by the IP address detecting; When the city name inquiring is different from former city name, to city dictionary server, send change city thesaurus-lookups request, the city name inquiring is carried in change city thesaurus-lookups request; Receive the change city dictionary that city dictionary server inquires according to the city name inquiring; Change city dictionary is saved in default catalogue, and the information of adding change city dictionary in classified lexicon listing file, so that input method client reads the information of the change city dictionary in classified lexicon listing file while starting, automatically load change city dictionary.
The equipment that the embodiment of the present invention provides, by input method client, obtain the urban characteristic information of user's input and determine candidate city name, and determine city name according to IP address, and according to city name, obtain corresponding city dictionary and be loaded in the catalogue of appointment, make user can fast finding to the vocabulary in city, place, accelerate the speed of input message, and can obtain dialect and the speech habits of various places according to different city situations, improved user's experience.
" reception " word in the embodiment of the present invention can be understood as and initiatively from other modules, obtains can be also to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can be distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from the present embodiment.The module of above-described embodiment can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
Part steps in the embodiment of the present invention, can utilize software to realize, and corresponding software program can be stored in the storage medium can read, as CD or hard disk etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.

Claims (11)

1. a method for loading city dictionary, is characterized in that, described method comprises:
Input method client is obtained the urban characteristic information of user's input, determines the candidate city name at described input method client place according to described urban characteristic information;
Described input method client, according to the protocol IP address interconnecting between the network of self, is searched city name corresponding to described IP address;
When city name corresponding to described IP address is during in described candidate city name, described input method client is obtained city dictionary corresponding to city name corresponding to described IP address, described city dictionary is saved in default catalogue, and in classified lexicon listing file, adds the information of described city dictionary;
Described input method client, according to the information of the city dictionary in described classified lexicon listing file, loads described city dictionary automatically.
2. the method for claim 1, is characterized in that, input method client, according to the protocol IP address interconnecting between the network of self, is searched city name corresponding to described IP address, specifically comprises:
Described input method client sends city inquiry request to IP address lookup server, carries the IP address of described input method client in described request;
Described IP address lookup server, according to the IP address in the inquiry request of described city, is searched city name corresponding to described IP address, and city name corresponding to described IP address sent to described input method client;
Correspondingly, when city name corresponding to described IP address is during in described candidate city name, described input method client is obtained city dictionary corresponding to city name corresponding to described IP address, specifically comprises:
Described input method client searches whether there be city name corresponding to described IP address in described candidate city name, if, to city dictionary server, send city thesaurus-lookups request, city name corresponding to described IP address carried in the thesaurus-lookups request of described city;
Described city dictionary server, according to the city name of described city thesaurus-lookups request, is inquired about corresponding city dictionary, and the city dictionary finding is sent to described input method client.
3. method as claimed in claim 1 or 2, is characterized in that, described method also comprises:
Described input method client according to predetermined time interval to described city dictionary server, send city Word library updating inquiry request, described city Word library updating inquiry request is carried described city name;
Described city dictionary server, according to the city name in the Word library updating inquiry request of described city, is inquired about corresponding city dictionary and whether is had renewal, when described city dictionary exists renewal, the city dictionary after upgrading is sent to described input method client;
Described input method client receives after the city dictionary after described renewal, city dictionary after described renewal is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that described input method client reads the information of the city dictionary after the described renewal in described classified lexicon listing file while starting, automatically load the city dictionary after described renewal.
4. method as claimed in claim 1 or 2, is characterized in that, described method also comprises:
Described input method client detects the IP address of self automatically, and the IP address detecting is sent to city name corresponding to IP address lookup server lookup;
When the described city name inquiring is different from former city name, described input method client sends change city thesaurus-lookups request to described city dictionary server, the city name that the thesaurus-lookups request of described change city inquires described in carrying;
The city name inquiring described in the dictionary server basis of described city, inquires about corresponding change city dictionary, and the change city dictionary finding is sent to described input method client;
Described input method client receives after the dictionary of described change city, described change city dictionary is saved in default catalogue, and the information of adding described change city dictionary in classified lexicon listing file, so that described input method client reads the information of the change city dictionary in described classified lexicon listing file while starting, automatically load described change city dictionary.
5. a system for loading city dictionary, is characterized in that, described system comprises: the protocol IP address lookup server interconnecting between input method client, network and city dictionary server, wherein,
Described input method client, for sending city inquiry request to described IP address lookup server, carries the IP address of described input method client in described request; Receive the city name finding that described IP address lookup server sends; To described city dictionary server, send city thesaurus-lookups request, described city name is carried in the thesaurus-lookups request of described city; Receive the city dictionary finding that described city dictionary server sends; Receive after the dictionary of described city; described city dictionary is saved in default catalogue; and the information of adding described city dictionary in the classified lexicon listing file of self; so that described input method client reads the information of the city dictionary in described classified lexicon listing file while starting, automatically load described city dictionary;
Described IP address lookup server, for according to the IP address of the city inquiry request of described input method client transmission, searches city name corresponding to described IP address, and described city name is sent to described input method client;
Described city dictionary server, for according to the city name of the city thesaurus-lookups request of described input method client transmission, inquires about corresponding city dictionary, and the city dictionary finding is sent to described input method client.
6. system as claimed in claim 5, it is characterized in that, described input method client, also for according to predetermined time interval to described city dictionary server, send city Word library updating inquiry request, described city Word library updating inquiry request is carried described city name; Receive after the city dictionary after upgrading; city dictionary after described renewal is replaced to former city dictionary to be saved in default catalogue; and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information; so that described input method client reads the information of the city dictionary after the described renewal in described classified lexicon listing file while starting, automatically load the city dictionary after described renewal;
Correspondingly, described city dictionary server, also, for according to the city name of described city Word library updating inquiry request, inquires about corresponding city dictionary and whether has renewal, when described city dictionary exists renewal, the city dictionary after upgrading is sent to described input method client.
7. system as claimed in claim 6, is characterized in that, described input method client also for automatically detecting the IP address of self, and sends to city name corresponding to IP address lookup server lookup by the IP address detecting; When the described city name inquiring is different from former city name, to described city dictionary server, send change city thesaurus-lookups request, the city name that the thesaurus-lookups request of described change city inquires described in carrying; Receive after the change city dictionary of described city dictionary server transmission, described change city dictionary is saved in default catalogue, and the information of adding described change city dictionary in classified lexicon listing file, so that described input method client reads the information of the change city dictionary in described classified lexicon listing file while starting, automatically load described change city dictionary.
8. an input method client equipment, is characterized in that, described equipment comprises:
Determination module, for obtaining the urban characteristic information of user's input, determines the candidate city name at described input method client place according to described urban characteristic information;
Search module, for according to the protocol IP address interconnecting between the network of self, search city name corresponding to described IP address;
Obtain dictionary module, for when city name corresponding to described IP address is during in described candidate city name, obtain city dictionary corresponding to city name corresponding to described IP address, described city dictionary is saved in default catalogue, and in classified lexicon listing file, adds the information of described city dictionary;
Load-on module, for according to the information of the city dictionary of described classified lexicon listing file, loads described city dictionary automatically.
9. equipment as claimed in claim 8, is characterized in that, described in search module, specifically comprise:
Transmitting element, for sending city inquiry request to IP address lookup server, carries the IP address of described input method client in described request;
Receiving element, city name corresponding to described IP address arriving according to the IP address search of described city inquiry request for receiving described IP address lookup server;
Correspondingly, described in obtain dictionary module, specifically comprise:
Judging unit, for searching whether there be city name corresponding to described IP address in described candidate city name, if so, to city dictionary server, send city thesaurus-lookups request, city name corresponding to described IP address carried in the thesaurus-lookups request of described city;
Receiving element, the city dictionary inquiring according to the city name of described city thesaurus-lookups request for receiving described city dictionary server.
10. equipment as claimed in claim 8 or 9, is characterized in that, described equipment also comprises:
Update module, for according to predetermined time interval to described city dictionary server, send city Word library updating inquiry request, described city Word library updating inquiry request is carried described city name; Receive the city dictionary after the renewal that described city dictionary server inquires according to the city name in the Word library updating inquiry request of described city; City dictionary after described renewal is replaced to former city dictionary to be saved in default catalogue, and in classified lexicon listing file, the information of the city dictionary after upgrading is replaced to former city directory information, so that described input method client reads the information of the city dictionary after the described renewal in described classified lexicon listing file while starting, automatically load the city dictionary after described renewal.
11. equipment as claimed in claim 8 or 9, is characterized in that, described equipment also comprises:
Detection module, for automatically detecting the IP address of self, and sends to city name corresponding to IP address lookup server lookup by the IP address detecting; When the described city name inquiring is different from former city name, to described city dictionary server, send change city thesaurus-lookups request, the city name that the thesaurus-lookups request of described change city inquires described in carrying; Receive described city dictionary server according to described in the change city dictionary that inquires of the city name that inquires; Described change city dictionary is saved in default catalogue, and the information of adding described change city dictionary in classified lexicon listing file, so that described input method client reads the information of the change city dictionary in described classified lexicon listing file while starting, automatically load described change city dictionary.
CN200910170217.6A 2009-09-04 2009-09-04 Method system and equipment for loading city lexicon Active CN101639863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910170217.6A CN101639863B (en) 2009-09-04 2009-09-04 Method system and equipment for loading city lexicon

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910170217.6A CN101639863B (en) 2009-09-04 2009-09-04 Method system and equipment for loading city lexicon

Publications (2)

Publication Number Publication Date
CN101639863A CN101639863A (en) 2010-02-03
CN101639863B true CN101639863B (en) 2014-07-16

Family

ID=41614845

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910170217.6A Active CN101639863B (en) 2009-09-04 2009-09-04 Method system and equipment for loading city lexicon

Country Status (1)

Country Link
CN (1) CN101639863B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455167A (en) * 2013-08-18 2013-12-18 苏州量跃信息科技有限公司 Method, client and system for adjusting input method editor (IME) corpus based on geographical region information
CN105022759B (en) * 2014-04-30 2021-04-09 腾讯科技(深圳)有限公司 Method and device for fast input in organization
US10386935B2 (en) 2014-06-17 2019-08-20 Google Llc Input method editor for inputting names of geographic locations
CN106528748B (en) * 2016-10-27 2019-09-20 百度在线网络技术(北京)有限公司 It is a kind of for determining the method and apparatus of region dictionary
CN108427508B (en) * 2017-02-15 2024-01-19 北京搜狗科技发展有限公司 Input method and device, and method and device for establishing local area network word stock
CN107798094A (en) * 2017-10-26 2018-03-13 北京百度网讯科技有限公司 Method and apparatus for inputting words
CN112417068B (en) * 2020-10-28 2022-12-13 天津五八到家货运服务有限公司 Ordering address recommendation method and system and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN101334774A (en) * 2007-06-29 2008-12-31 北京搜狗科技发展有限公司 Character input method and input method system
CN101373468A (en) * 2007-08-20 2009-02-25 北京搜狗科技发展有限公司 Method for loading word stock, method for inputting character and input method system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101030157A (en) * 2007-04-20 2007-09-05 北京搜狗科技发展有限公司 Method and system for updating user vocabulary synchronouslly
CN101334774A (en) * 2007-06-29 2008-12-31 北京搜狗科技发展有限公司 Character input method and input method system
CN101373468A (en) * 2007-08-20 2009-02-25 北京搜狗科技发展有限公司 Method for loading word stock, method for inputting character and input method system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
中国青年网.QQ拼音2.2正式版 六大新功能 新突破.《中国青年网》.2009, *

Also Published As

Publication number Publication date
CN101639863A (en) 2010-02-03

Similar Documents

Publication Publication Date Title
CN101639863B (en) Method system and equipment for loading city lexicon
CN108632374B (en) Software gray level release method and device
KR100869246B1 (en) Method for providing mobile device profile management in mobile communication network
CN101179472B (en) Network resource searching method and searching system
EP2347561B1 (en) Determining a network interface to access a network
CN101390080B (en) Serving cached query results based on a query portion
US10341273B2 (en) Coordination of data received from one or more sources over one or more channels into a single context
CN102833817B (en) Network access method and system based on home gateway and home gateway
CN103915095A (en) Method, interaction device, server and system for voice recognition
CN101944124A (en) Distributed file system management method, device and corresponding file system
CN105791344A (en) Grayscale release service processing method, system, load balancer and service bus device
CN110445886B (en) Method and system for realizing domain name access acceleration
CN103888358A (en) Routing method, device, system and gateway equipment
US7752282B2 (en) Address information managing system, management apparatus, processing apparatus and address book updating method
CN101136025A (en) Method for downloading network resource, system and equipment thereof
CN103249027B (en) The method and apparatus that a kind of terminal traffic processes
CN112615758B (en) Application identification method, device, equipment and storage medium
CN1917510B (en) Method for accessing address list, and system of address list
EP4095768A1 (en) Application recognition model updating method and apparatus, and storage medium
CN105453126A (en) Application sharing service method and apparatus applied thereto
CN103312489A (en) Method and device for synchronizing terminal and server
CN101998227A (en) Service routing method, device and system
CN103593233A (en) Method and system for pushing software information
CN110233904B (en) Equipment updating method, device, system, storage medium and computer equipment
CN107451252A (en) Method for quickly querying and its system based on API

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant