WO2013163804A1 - Method and device for adjusting word bank - Google Patents

Method and device for adjusting word bank Download PDF

Info

Publication number
WO2013163804A1
WO2013163804A1 PCT/CN2012/075021 CN2012075021W WO2013163804A1 WO 2013163804 A1 WO2013163804 A1 WO 2013163804A1 CN 2012075021 W CN2012075021 W CN 2012075021W WO 2013163804 A1 WO2013163804 A1 WO 2013163804A1
Authority
WO
WIPO (PCT)
Prior art keywords
application
word library
word
identification information
library
Prior art date
Application number
PCT/CN2012/075021
Other languages
French (fr)
Chinese (zh)
Inventor
任努努
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Priority to CN2012800007870A priority Critical patent/CN102959547A/en
Priority to PCT/CN2012/075021 priority patent/WO2013163804A1/en
Publication of WO2013163804A1 publication Critical patent/WO2013163804A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • G06F16/3337Translation of the query language, e.g. Chinese to English
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/31Indexing; Data structures therefor; Storage structures
    • G06F16/313Selection or weighting of terms for indexing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/274Converting codes to words; Guess-ahead of partial word inputs

Definitions

  • the present invention relates to a word input method, and in particular, to a word bank adjustment method and device. Background technique
  • the input method refers to an encoding method used to input various symbols into a computer or other device, such as a pinyin input method, a five-stroke input method, a voice input method, and the like.
  • Input devices refer to various hardware devices such as keyboards, monitors, etc. that input text information into a computer. Since user input codes (such as letters, roots) may correspond to multiple words, the current input method is mainly to improve the speed and accuracy of word input in various terminals, such as computers, mobile phones, tablets, and the like.
  • the types of words are classified into different word banks, and then the probabilistic analysis is performed on the user input codes in combination with the word library, and the words most likely to be input by the user are arranged according to the probability size, thereby reducing the number of re-codes caused by the input codes. This helps improve the accuracy and speed with which users enter words.
  • the current input method has done a lot of processing in terms of word library classification and probability analysis, for example, according to the application field of words, such as name class, computer class, place name class, sports class, music class, Cars, clothing, etc.
  • word library classification and probability analysis for example, according to the application field of words, such as name class, computer class, place name class, sports class, music class, Cars, clothing, etc.
  • the user can select a certain number of different types of word banks to be added to the input method word library according to the current application scenario, so that the number of duplicate codes can be reduced after inputting the code. And optimize the sorting effect, which is conducive to the increase of input speed.
  • the specified word library is a name class
  • the specified word library is a computer class
  • the specified word library is the place name class
  • the word library used by the input method needs to be manually specified by the user in advance, and when input operations are performed in a plurality of different types of application scenarios, the user is required to manually and manually specify the word library used by the input method, that is, manual adjustment is required repeatedly.
  • the input method word library, the input method word library is less efficient. Summary of the invention
  • Embodiments of the present invention provide a method and a device for adjusting a word library, which are used to improve the adjustment efficiency of an input method word library.
  • An embodiment of the present invention provides a method for adjusting a term library, including:
  • the first application is an application for performing a character input operation by the user as an application scenario
  • Performing a search in a preset association table according to the identifier information of the first application acquiring identifier information of a first application-related word library, where the first application-related word library is included in the first a word using a frequency higher than a preset frequency threshold, the association table setting a priority of the first application-related word library according to the identification information of the first application-related word library The level is higher than the priority of other word banks in the input method word library.
  • An embodiment of the present invention provides a word library adjustment apparatus, including:
  • a first acquiring module configured to acquire identifier information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario;
  • a second obtaining module configured to perform, in the preset association table, the identifier information of the first application to obtain the identifier information of the first application related word library, and the first application related word
  • the thesaurus includes a relationship in which the frequency of use is higher than a preset frequency threshold under the first application;
  • an adjustment module configured to set, according to the identifier information of the first application-related word library, a priority of the first application-related word library is higher than a priority of other word banks in the input method word library level.
  • the method and device for adjusting a word library obtains identification information of an application that is currently used as a character input operation by an application scenario, and searches and obtains in a preset association table according to the acquired identification information of the application program.
  • the identification information of the word library associated with the application and then according to the identification information of the obtained word library, setting the word library identified by the identification information of the word library has higher priority than other words in the input method word library
  • the priority of the thesaurus realizes the application that automatically recognizes the user's current character input operation as an application scenario and automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, especially in the Different should
  • the word library adjustment device improves the adjustment efficiency of the input method word library by automatically adjusting the input method word library.
  • FIG. 1 is a flowchart of a method for adjusting a word bank according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for adjusting a term library according to another embodiment of the present invention.
  • FIG. 3 is a schematic structural diagram of a word bank adjustment apparatus according to an embodiment of the present invention.
  • FIG. 4 is a schematic structural diagram of a word library adjustment apparatus according to another embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a flowchart of a method for adjusting a word dictionary according to an embodiment of the present invention. As shown in FIG. 1, the method in this embodiment includes:
  • Step 101 Obtain identification information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario.
  • the execution entity of this embodiment may be a word library adjustment device, and the device may be a part of an Internet communication device, such as a central processing unit (CPU), or may be a general computer, a mobile phone, a tablet computer, or the like. Interoperable electronic devices. This embodiment does not limit the specific implementation of the execution subject.
  • the application program of this embodiment may be various application software programs that need to input words, and may be, for example, a software program that can accept word input, such as phone book management software, map search service software, and product information search service software.
  • the scenario corresponding to the application in this embodiment is a user input word.
  • the application scenario of the time Different applications correspond to different application scenarios, and switching between applications means switching of application scenarios.
  • the application that the user currently performs as a character input operation as an application scenario refers to an application that is currently in an active state. If a user launches multiple applications at the same time, but the user can only operate on one application at a time, the application is the active application.
  • the embodiments of the present invention refer to an application that the user currently performs a character input operation as an application scenario as a first application.
  • Each application has some information about its name, version number, developer, etc. One or more of these information can uniquely identify an application.
  • the identification information of the application is used to uniquely identify an application.
  • any information or a combination thereof that can uniquely identify the application can be used as the identification information of the application.
  • the first application is uniquely identified by the identification information of the first application, so that the word library adjustment device can identify the current character input by the user as the application scenario by using the acquired identification information of the first application. Which application is being operated.
  • Step 102 Perform a search in the preset association table according to the obtained identification information of the first application, and obtain identification information of the word library related to the first application.
  • the first application-related word library includes words that are used at a frequency higher than a preset frequency threshold under the first application.
  • the so-called "first application-related word library” may be designed by the first application developer or a third party according to the frequency used by the user to perform the character input process in the first application as the application scenario.
  • Word library the higher frequency of use of a word means that the frequency of use of the word is higher than the preset frequency threshold.
  • the frequency threshold is preset and the frequency thresholds corresponding to different applications may be different.
  • the first application-related term library is the easiest to use when the user enters a word for the application in the first application. For example, when using Taobao search business, the combination of optional words that pop up in the search bar is usually a frequently used word or combination (for example, it may be the word that most users will use).
  • the association table is preset.
  • the correspondence between the application and the application-related word library is stored.
  • the "application-related word library” is similar to the "first application-related word library", and refers to a word including a word whose frequency is higher than a preset frequency threshold under the application.
  • Thesaurus can be the developer of the application or a third party based on the user's application field for the application. Scene, a character library designed for character input using words with higher frequency.
  • the associated table stores a correspondence between a large number of applications and their associated word banks.
  • the implementation manner may be: the association table corresponds to the identification information of each application and the identification information of the word library associated with each application.
  • the identification information of each application stored in the association table is a combination of various information (such as the name of the application) or information (such as the name of the application, the combination of the developer and the version number, etc.) that can uniquely identify the application. .
  • the identification information of the word library stored in the association table is also a variety of information (such as the name of the word library) or a combination of information that can uniquely identify the word library (for example, the name of the word library, the combination of the developer and the version number, etc.) ).
  • the word library adjustment device compares the identifier information of the first application with the identifier information of each application in the association table, and determines whether the identifier information of the first application is Existing in the association table; when the identification information of the first application exists in the association table, the word library adjustment device may acquire the identification information of the word library corresponding to the identification information of the first application, and the acquired information
  • the identification information of the word library is the identification information of the word library related to the first application.
  • the word library adjustment device may split the identification information of the first application to obtain the sub-identification information that can uniquely identify the feature of the first application. And comparing the above-mentioned sub-identification information with the identification information of each word vocabulary in the association table, and obtaining identification information of the vocabulary that has a corresponding relationship with the sub-identification information, and the acquired identification information of the vocabulary is the first Identification information for an application-related word library.
  • the above-mentioned sub-identification information for identifying the feature of the first application mainly refers to information capable of representing a word whose frequency is frequently used when the user inputs the character for the application scenario by the first application. For example, for the same word, the frequency of use of different application areas is different. Based on this, the above-mentioned sub-identification information may be separated from the identification information of the first application, and can represent the corresponding corresponding to the first application. Words in the field of application.
  • the identification information of each word dictionary in the association table may include: keywords corresponding to each word dictionary, in addition to the name, version number, and/or developer of each word dictionary.
  • the identification information of the first application includes at least one of the following: a name of the first application, a name of the first application, and a developer, a name of the first application, and The version number, the name of the first application, the developer, and the version number.
  • the identification information of each application in the association table includes at least one of the following information: a name of each application, a name of each application, a developer, a name and a version of each application. No., name of each application, developer, and version number.
  • Step 103 Set, according to the identifier information of the word library related to the first application, that the priority of the first application related word library is higher than the priority of other word banks in the input method word library.
  • the input method word library refers to a collection of various word banks that can be directly used by the input method on the device.
  • the input method is a software program, and the character input operation requires the input method and the input device to cooperate.
  • the input device refers to various hardware devices such as a keyboard, a display, and the like that input characters into a computer.
  • the word library adjusting device may adjust the word library included in the input method word library according to the identifier information of the word library related to the first application, so that The adjusted input method word library includes a first application-related word library, and the first application-related word library is set to have a higher priority than the other word banks in the input method word library.
  • the word library adjustment device acquires the identification information of the application that the user currently performs the character input operation as the application scenario, and searches for the identifier in the preset association table based on the acquired identification information of the application, and obtains the The identification information of the application-related word library, and then according to the identification information of the word library, setting the word library identified by the identification information of the word library to have higher priority than other words in the input method word library.
  • the priority of the library realizes the application that automatically recognizes the user's current character input operation as an application scenario and automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, thereby improving the output method.
  • the efficiency of the word library adjustment is the efficiency of the word library adjustment.
  • the word library adjustment device can automatically adjust the input method word library, improve the efficiency of the thesaurus adjustment, reduce the influence of the thesaurus adjustment on the input efficiency, and further improve the input. effectiveness.
  • the advantageous effects of the present embodiment for improving the input efficiency will be explained below.
  • the embodiment obtains the word library related to the application according to the application that performs the character input operation by the user as the application scenario, that is, according to the application scenario of the user, and Setting the word library associated with the app takes precedence over the other word banks in the input method, and the words in the display page are prioritized from the higher priority word library, which is equivalent
  • the input efficiency is improved to some extent.
  • the prior art practice is that the user manually re-selects the word library associated with the application for the switched application, and in this embodiment, the word library adjustment device automatically recognizes the switch.
  • the application to the application that is, the application that the user currently performs as a character input operation for the application scenario
  • the efficiency is significantly higher than the efficiency of the user manual adjustment, reducing the user's adjustment Entering the vocabulary and waiting for time increases the user's input efficiency from the user's entire input process.
  • the operating system of the application is assigned a unique identifier in the operating system to identify the application, and the operating system is also the application.
  • the program provides an Application Program Interface (API).
  • API Application Program Interface
  • the word library adjustment device may first obtain the identifier of the first application, and then use the identifier as an entry parameter of an API provided by the operating system, and invoke the API to enable the operating system to execute the API and return to the first application. Identification information.
  • the word library adjustment device can make the operating system execute the API and return the execution result by calling the API provided by the operating system, and the word library adjustment device obtains the identification information of the first application from the returned result of the operating system.
  • the input method on the word library adjustment device can receive characters input by the user under the first application.
  • a user can input characters through an input device such as a keyboard, a display, or the like.
  • the input characters will vary depending on the input method used.
  • the input method used by the user is a pinyin type input method, such as Sogou Pinyin input method
  • the input characters mainly refer to pinyin letters.
  • the input method used by the user is five strokes, the input character mainly refers to the five-stroke root.
  • the input method on the word library adjustment device receives the characters entered by the user.
  • the input method of the word library adjustment device acquires the character corresponding to the input character according to the adjusted input method word library. Words and display.
  • the input method can search for the words corresponding to the characters input by the user in the adjusted input method word library as in the prior art, and then arrange the plurality of words corresponding to the characters input by the user according to the probability size, and then According to the sorting result, a plurality of words corresponding to characters input by the user are displayed to the user for selection by the user.
  • the word library adjustment device may perform a search in the preset association table according to the identification information of the first application, and obtain the identifier of the word library related to the first application, triggered by the input character of the user.
  • the operation of the information the word library adjusting device can recognize the operation of the input method to receive the character input by the user, and after the operation of the recognized user input character, according to the acquired identification information of the first application in the preset association. Look up in the table to get the identification information of the first application related word library.
  • the input method on the word library adjustment device sets the priority of the first application related word library higher than the input method word library according to the identification information of the word library related to the first application. After the priority of the word library, according to the adjusted input method word library, the words corresponding to the characters input by the user are obtained and displayed. This method is suitable for the case where the user performs character input for the first time under the first application.
  • the vocabulary adjustment device may directly perform the searching according to the acquired identification information of the first application in the preset association table to obtain the first application.
  • the operation of the identification information of the associated word library is performed without triggering the user to perform character input.
  • An embodiment of the present invention provides an implementation manner in which a plurality of word library adjustment devices perform a search in a preset association table according to the identification information of the first application program, and obtain identification information of the word library related to the first application program, as follows:
  • the identification information of the first application may be a name of the first application.
  • the identification information of each application stored in the associated table may be the name of each application.
  • the identification information of each of the word banks stored in the associated table mainly includes the name of the word library, and may also include the developer, the version number, and the like. Based on this, an implementation manner of step 102 is specifically:
  • the word library adjustment device compares the name of the first application with the name of each application in the associated table, and determines whether the name of the first application exists in the associated table. When the judgment result is that the name of the first application exists in the association table, the word library adjustment device acquires the identification information of the word library corresponding to the first application from the association table, and the acquired word library
  • the identification information is the identification information of the word library related to the first application.
  • the identification information of the first application includes a developer and/or a version number of the first application in addition to the name of the first application.
  • the identification information of each application stored in the association table may include the developer and/or version number of each application in addition to the name of each application.
  • the identification information of the first application includes a developer in addition to the name of the first application
  • the identification information of each application stored in the association table includes each application in addition to the name of each application.
  • the developer of the program, the word library adjustment device needs to simultaneously search according to the name of the first application and the developer in the associated table, and determine whether the name of the first application and the identifier of the same application exist simultaneously.
  • the association table when the determination result is present, the name of the first application and the identification information of the word library corresponding to the developer information are obtained from the association table.
  • the identification information of the first application includes a version number in addition to the name of the first application
  • the identification information of each application stored in the association table includes the version number of each application in addition to the name of each application.
  • the word library adjustment device needs to search in the association table according to the name and version number of the first application at the same time, and determine whether the name and version number of the first application are present in the association table as the identification information of the same application.
  • the judgment result is the existence, the name and the version number of the first application are obtained from the association table as the identification information of the word library corresponding to the identification information.
  • the identification information of the first application includes the version number and the developer in addition to the name of the first application
  • the identification information of each application stored in the association table includes each application in addition to the name of each application.
  • the version number and the developer, the word library adjustment device needs to find the name, version number and developer of the first application according to the name, version number of the first application and the developer in the associated table.
  • the identification information of the same application exists in the association table at the same time.
  • the name, the version number of the first application, and the identification information of the word library corresponding to the developer as the identification information are obtained from the association table. .
  • the word library adjustment device may split the identification information of the first application from the first application. Obtaining the sub-identification information capable of characterizing the feature of the first application, and then comparing the sub-identification information with the identification information of each word dictionary in the association table to obtain a word having a correspondence relationship with the sub-identification information. Library identification information, the obtained word library The identification information is the identification information related to the first application.
  • the word library adjustment device in addition to using the name of the first application, the word library adjustment device also utilizes information such as the developer and/or version number of the first application, which is advantageous for improving the accuracy of identifying each application. It is beneficial to improve the accuracy of the acquired word library, and thus is beneficial to improve the efficiency of word input based on the acquired word library.
  • the identification information of each word dictionary may include information such as the developer and/or version number of each word dictionary in addition to the name of each word dictionary.
  • the identifier information of the word library may further include keywords corresponding to the word library.
  • the key words are words that simply express the domain of the words in the word library, usually between 2 and 5 phrases.
  • the identification information of the first application is split to obtain the sub-identification information, and then the sub-identification information and the association table are
  • An implementation manner of comparing the identification information of each of the word vocabularies to obtain the identification information of the vocabulary corresponding to the sub-identification information may include: a name in the identification information of the first application by the vocabulary adjustment device Performing a splitting, obtaining a name phrase that can identify a feature of the first application, comparing the obtained name phrase with a keyword corresponding to each of the word banks in the associated table, and determining whether there is a keyword having the same keyword as the name phrase
  • the identification information of the thesaurus if the judgment result is the presence, the identification information of the word library having the
  • the identifier information of the first application may be a name of the first application, a combination of a name and a version number, a combination of a name and a developer, or a name, a developer, and a A combination of the three versions.
  • the word library adjustment device may perform a semantic analysis on the name of the first application, thereby splitting one or more name phrases from the name of the first application.
  • An example of splitting the name phrase by the name of the first application is as follows: Assuming the name of the first application is "mobilePhoneBook", the word meaning analysis can extract the name phrases “mobilePhone” and "PhoneBook”.
  • the identification information of the word library with the same keyword and the name phrase is used as the identification information of the word library related to the first application, and the word library with the same keyword and the name phrase is related to the first application.
  • Word library is used as the identification information of the word library related to the first application.
  • the keywords of the words are compared, if the above several name phrases appear in the keywords of a certain word library at the same time, Then, the identification information of the word library is obtained as the identification information of the word library related to the first application, and the word library is the word library related to the first application.
  • the word library adjustment device may obtain identification information of multiple word banks, the keywords of the word library are the same as a certain name phrase, or the keywords of the word library are simultaneously Including the name phrases used in the above-mentioned joint use, the identification information of the obtained plurality of word banks will be used as the identification information of the word library related to the first application.
  • This method of splitting the name of the first application into a name phrase, and then comparing the name phrase with the keywords of each word library to obtain the identification information of the word library related to the first application is called a semantic analysis method. . This method can be used to obtain more word banks, which is beneficial to improve the probability of users successfully acquiring the corresponding words.
  • the word library adjustment device may obtain the identification information of the plurality of first application-related word banks, and then The identification information of the plurality of first application-related word banks is stored, so as to adjust the input method word library according to the identification information of the word library related to the plurality of first applications, which is beneficial to improve The probability that the user successfully obtained the corresponding word.
  • the word library adjusting device can sequentially record the identification information of the word library related to each first application program in the order in which the identification information of the word library associated with each first application is acquired.
  • the word library developer usually develops the word library in combination with the actual application scenario (ie, the corresponding application). Therefore, the word library developer can match the word library with the application after developing the word library.
  • the relationship is stored as part of the information in the word library.
  • the correspondence between the word library and the application program may be represented by the identification information of the application corresponding to the word library, that is, the information of the word library includes the identification information of the application corresponding to the word library.
  • the application corresponding to the name-based word library may be a phone book software, and the information of the name-type word includes the identification information of the phone book software, such as the name, developer, version number, etc.
  • the application corresponding to the class vocabulary may be computer commodity information software, and the information of the computer type vocabulary is
  • the application corresponding to the place name type word library may be a map type software, and the information of the place name type word library is included in the information Includes information about the map software, such as the name of the map software, developer, version number, and so on.
  • the information of the word library also includes the identification information of the word library, such as the name of the word library, the version number, the developer, and the like.
  • the word library adjustment device can generate an association table in advance based on the information of each word dictionary. Specifically, the word library adjustment device acquires information of each word dictionary, and then generates an association table according to the identification information of each word dictionary in the information of the respective thesaurus and the identification information of the application corresponding to each word library. More specifically, the word library adjustment device can directly map the identification information of each word dictionary and the identification information of each word library corresponding application to a certain manner, and then store it in the association table.
  • the word library adjusting device sets, according to the identifier information of the word library related to the first application, that the priority of the first application-related word library is higher than the priority of other word banks in the input method word library.
  • the process can be:
  • the word library adjustment device determines whether the word library associated with the first application exists in the input method word library; if the judgment result is that the word inventory related to the first application is in the input method word library, the word The lexicon adjustment device directly sets the priority of the first application-related word library to be higher than the priority of other word banks in the input method word bank; if the judgment result is that the first application-related word library does not exist in In the input method word library, the word library adjustment device adds the first application-related word library to the input method word library, and sets the first application-related word library to have higher priority than the input method word. The priority of other termbases in the thesaurus.
  • an implementation manner of setting a first application-related word library with a higher priority than other word banks in the input method word library includes: performing characters in the first application by the user as the current application scenario During the input operation, the first application-related word library is set to have a higher priority than the other word banks in the input method word bank. This ensures that the highest-priority word library in the input method word bank is replaced with the replacement of the application scenario, which is beneficial to improve the input efficiency of the user when performing character input operations with any application as the current application scenario.
  • the preset word information database may be obtained according to the identifier information of the first application-related word library. Get the first application related word library.
  • the word library adjustment device is mainly based on the Information such as the name, developer, version number, etc. of an application-related word library obtains the first application-related word library from the word information library.
  • the word information database is preset, and may include, for example, various word banks stored locally and/or various word banks on the network.
  • the various word banks stored locally or the various word banks on the network may be various word banks formed by the input method designer to classify the words according to various definitions in advance, such as a name class, a computer. Class, place name class, sports class, music class, etc.
  • the various word banks stored locally or the various word banks on the network may also be provided by a software designer who needs to input words in various application scenarios to respectively provide a word dictionary related to the application software. .
  • the input method cannot directly use the word library stored in the word information database. If the input method requires a word library in the word library, you need to add the word library to the input method word library before using it.
  • the identification information of each of the word banks stored in the association table may include an identification code of each word library in addition to the name, developer, version number, and the like of each word library.
  • the identifier of each word database is assigned to each word list when the identification information of each word library is added to the association table, and the word library can be uniquely identified as each word. Part of the library's identification information.
  • the identifier information of the first application-related word library acquired by the word library adjustment device may further include an identifier of the first application-related word library. Based on this, the word library adjustment device can determine, according to the identifier of the word library associated with the first application, whether the word library associated with the first application already exists in the input method word library.
  • the word library adjustment device can determine whether the identifier of the first application related word library already exists in the identification code list corresponding to the input method word library. If the result of the determination is that the identifier of the first application-related word library does not exist in the identifier list, the word library adjustment device determines that the first application-related word library does not exist in the input method word library; The result of the judgment is that the identifier of the first application-related word library exists in the identifier list, and the word library adjustment device determines that the word inventory related to the first application is in the input method word library.
  • the identifier of the word dictionary in the input method word bank is stored in the identifier list corresponding to the input method word bank.
  • the word library adjustment device adds the word library associated with the first application to the input method word library. It is also necessary to add the identifier of the first application related word library to the identification code list. The word library associated with identifying the first application has been added to the input method word library.
  • the word library adjusting device determines, by using the identification code and the identification code list, whether the word library related to the first application program already exists in the input method word library, and is in the first If the application-related word library already exists in the input method word library, directly adjust the priority of each word library in the input method word library, instead of executing the word library related to the first application.
  • the operation of adding the input method word library has the advantages of high adjustment efficiency and resource saving.
  • FIG. 2 is a flowchart of a method for adjusting a word dictionary according to another embodiment of the present invention. As shown in FIG. 2, the method in this embodiment includes:
  • Step 201 Obtain identification information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario.
  • the user launches a new application to enter a new application scenario.
  • the operating system on which the first application is located assigns the first application a unique identifier within the operating system.
  • the word library adjusting device of the embodiment may use the identifier as an entry parameter of an API provided by the operating system, and invoke the API to cause the operating system to execute the API and return the identification information of the first application.
  • the word library adjustment device can record information such as the identification code of the first application and the identification information of the first application; wherein the information can be recorded in a linked list.
  • the above operating system records information about the currently running application (such as identification information and identification code, etc.), and each time a new application is run, a new information (ie, new) is added to the linked list. Information about the application), each time an application is finished, the corresponding information is deleted from the linked list. Because the currently running application (only one) is the first application, the newly added information refers to the information about the first application.
  • Step 202 The input method of the word library adjustment device receives the character input by the user, and the word library adjustment device recognizes the operation of inputting the character by the user.
  • the word input is made by calling the input method.
  • the user can input words through a keyboard, a display, etc., and correspondingly, an operation such as tapping a keyboard or touching a display is equivalent to issuing an instruction to invoke an input method.
  • Step 203 Perform a search in a preset association table according to the identification information of the first application, Get identification information of the first application-related word library.
  • the word library adjustment device obtains the latest information, that is, the identification information of the first application, from the information linked list under the trigger of the user input word, and then searches and obtains in the locally stored association table. Identification information of the first application-related word library.
  • the first application related word library may be a name class word library
  • the name class word library identification information may include, for example, a name class word library.
  • the name may also include the developer of the name-type word library, the version number and/or the identification code, etc.
  • the first application is a computer product information type software
  • the first application-related word library is a computer word
  • the identification information of the vocabulary may include the name of the computer type vocabulary, and may also include the developer, version number, and/or identification code of the computer vocabulary
  • the first application is The map type software, wherein the first application related word library is a place name type word library, the identification information of the place name type word library may include the name of the place name type word library, and may also include the place name type word The developer, version number, and/or identifier of the library.
  • Step 204 Set, according to the identifier information of the word library related to the first application, that the priority of the first application-related word library is higher than the priority of other word banks in the input method word library.
  • the word library adjusting device can determine whether the word library related to the first application exists in the input method word library; if the judgment result is non-existent, the identification information of the word library according to the first application program Obtaining the first application-related word library from the word information library, and then adding the first application-related word library to the input method word library, and setting the first application-related word library priority The level is higher than the priority of other words in the input method word bank; if the judgment result is existed, the priority of the first application-related word library is set higher than other words in the input method word library. Priority.
  • the priority of each first application-related word vocabulary may be set according to the order of acquiring the first application-related word vocabulary, but not To be limited to this, it is only necessary to ensure that the priority of the word library associated with each first application is higher than the priority of other word banks in the input method word bank.
  • the word library adjusting device may first determine the first application-related word library. Whether the identification code exists in the identification code list; if the judgment result is present, it is directly set The first application-related word library has a higher priority than the other word banks; if the judgment result is non-existent, the identification information of the word library related to the first application is from the word information database.
  • the word library adjustment device may set the priority of the first application-related word library to be higher than the priority of other word banks during the character input operation by the user as the current application scene.
  • the word library adjustment device sets the priority of the first application-related word library to be higher than the priority of other word banks, and when the user inputs characters, the input method of the word library adjustment device takes precedence in the first Searching in the application-related word library, the probability that the user's desired words appear on the first display page will be high, which can greatly improve the efficiency of the user's access to the words corresponding to the input characters.
  • Step 205 The input method of the word library adjustment device acquires and displays the word corresponding to the character input by the user according to the adjusted input method word library.
  • the input method of the word library adjustment device can search for the word corresponding to the character input by the user in the adjusted input method word library as in the prior art, and then follow the multiple words corresponding to the character input by the user.
  • the probability sizes are arranged, and then a plurality of words corresponding to the characters input by the user are displayed to the user according to the sorting result for the user to select.
  • the word library adjustment device may identify the current application or the current application scenario by acquiring the identification information of the application, and then obtain the identification information of the word library related to the current application, and obtain the identification information according to the current application.
  • the identification information of the related word library automatically adjusts the input method word library, which improves the efficiency of the thesaurus adjustment.
  • the user does not need to manually adjust the input method word library. It reduces the influence of the adjustment of the input method word bank on the input efficiency, and further improves the input efficiency.
  • the word library adjustment device in each of the above embodiments allows an update operation to be performed on the associated table.
  • the content of the associated forms in various embodiments of the present invention can be continuously enriched.
  • the associated forms of embodiments of the present invention allow for information with the exiting application or word library. Delete, in order to improve the utilization of storage space.
  • the word library adjusting device of the embodiment may send, by using the sender, information about obtaining the version number of the associated table to the network server, and the word library adjusting device receives the latest associated table version number returned by the network server through the receiver;
  • the associated table update module of the word library adjustment device compares the latest association table version number with the version number of the local association table, determines whether it is necessary to update the local association table; if not, ends the operation; otherwise, the word library adjustment device passes the
  • the sender sends a request for obtaining the association table to the web server; the word library adjustment device receives the latest version of the association table returned by the web server through its receiver, and then the associated table update module of the word library adjustment device updates the local association table.
  • the word library adjustment device performs a search in a preset association table according to the identification information of the first application, and acquires the words related to the first application.
  • the local associated table may be updated through the update process of the associated table, and then the subsequent operation is performed according to the updated associated table, so as to ensure the acquired first application-related word library. Identify the accuracy of the information, and thus ensure that the user can successfully obtain the corresponding words. For example, it is assumed that the version of the first application has changed, but since the associated table is not updated, it is possible to obtain the identification information of the related word library for the updated first application by the word meaning analysis method.
  • the identification information of the word library is not optimal; and the update of the associated table can obtain the identification information of the best word library for the updated first application.
  • the operation flow of a preferred embodiment of the present invention will be described below by taking an operation procedure of receiving characters input by a user in a phone book application of a mobile phone as an example.
  • the vocabulary adjustment module in the mobile phone is described as an execution subject.
  • the lexicon adjustment module of the embodiment has the function of acquiring the name of the application, obtaining the name of the word library related to the application according to the name, and adjusting the input word dictionary.
  • the specific operation process is as follows:
  • the thesaurus adjustment module uses the identifier 123456 as an entry parameter of the API provided by the operating system, and invokes the API to cause the operating system to execute the API and return the name of the phonebook application, ie mobilePhoneBook.
  • the thesaurus adjustment module records the two information, the name mobilePhoneBook and the identification code 123456, into the information linked list for use in obtaining the identification information of the related word library.
  • the thesaurus adjustment module When receiving the pinyin that the user has enabled the Pinyin input method to enter the new user name in the "Add New User" function item of the phonebook, for example, "W", the thesaurus adjustment module will be activated to start the corresponding operation. First, the thesaurus adjustment module obtains the scene information that the user is currently located from the information linked list, that is, the newly added application name mobilePhoneBook in the information linked list; and then searches for the name of the local stored association table in the pinyin input method according to the name. mobilePhoneBook app. If present, the thesaurus adjustment module adjusts the input method wordbase based on the identified identification information of the application-related word library for the mobilePhoneBook.
  • the thesaurus adjustment module performs a semantic analysis on the mobilePhoneBook. For example, the mobile phone can extract the "phone book” phrase from the mobilePhneBook, and then find the identifier of the word library with the keyword phone book in the associated table according to the "phone book". Information, if found, adjust the input method word library according to the keyword information of the word book of the phone book, otherwise the terminology adjustment process is ended, and the original input method lexicon is kept unchanged.
  • the thesaurus adjustment module can name the application related to mobilePhoneBook The library or the word library with the keyword phone book is added to the input method word library, and the word library with the name of mobilePhoneBook or the word library with the keyword phone book has higher priority than other words. The priority of the thesaurus. If the application-related word library whose name is mobilePhoneBook or the word library whose keyword is phone book already exists in the input method word library, the thesaurus adjustment module can reset the word dictionary in the input method word library.
  • the thesaurus adjustment module will first look in the word library related to the application named mobilePhoneBook or the word library whose keyword is phone book.
  • the pinyin input method finds the words corresponding to the user input pinyin code "w" in the new thesaurus, such as "Wang, Wu, Wei, Wei, Yi, etc.”, because the new thesaurus is mainly named. It can quickly display the name words more relevant to the pinyin "w", removing irrelevant words such as "I, for, ask, not, play, etc.” After the user selects the corresponding word, the input is completed. When the user continues to input, since the input method word library has been replaced, the above-mentioned word library adjustment process is not repeated.
  • the above is a word input in the phone book application in the mobile phone, and the name of the phone book application is described by taking the identification information of the phone book application as an example, but is not limited thereto.
  • the technical solutions of the embodiments of the present invention can be applied to various scenarios in which a mobile phone performs word input, such as an application scenario in which a short message is edited in a mobile phone.
  • the technical solutions of the embodiments of the present invention are not limited to the application to the mobile phone, and can also be applied to various application scenarios such as ipads and computers that can perform word input. In different application scenarios, the difference is only that the word library used is different, and the process of adjusting the word library is the same. See the description of the above embodiment.
  • FIG. 3 is a schematic structural diagram of a word bank adjustment apparatus according to an embodiment of the present invention. As shown in FIG. 3, the device in this embodiment includes: a first obtaining module 31, a second obtaining module 32, and an adjusting module 33.
  • the first obtaining module 31 is configured to obtain identifier information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario.
  • the second obtaining module 32 is connected to the first acquiring module 31, and configured to perform searching according to the identifier information of the first application acquired by the first acquiring module 31 in a preset association table, and acquire the words related to the first application.
  • the identifier information of the library, the word library related to the first application includes a word whose frequency is higher than a preset frequency threshold under the first application, where the application file is associated with the application The correspondence of the word library.
  • the adjustment module 33 is connected to the second acquisition module 32, and is configured to set the priority of the first application-related word library to be higher than the identifier information of the first application-related word library acquired by the second acquisition module 32. Enter the priority of other word banks in the French word library.
  • the function modules of the word library adjustment device of the present embodiment can be used to execute the flow of the word library adjustment method shown in FIG. 1.
  • the specific implementation manner is not described here. For details, refer to the description of the method embodiment.
  • the word library adjusting device of the embodiment includes a processor, a storage medium, various expansion cards, a connecting line, a power source, and an input device (such as a keyboard, a mouse, etc.) in addition to the above functional modules. .
  • an input device such as a keyboard, a mouse, etc.
  • the above components are not shown in the drawings.
  • the word library adjustment device of the embodiment obtains the identification information of the application program that the user currently performs the character input operation as the application scenario, and searches for the application in the preset association table based on the acquired identification information of the application program, and acquires the application. Identification information of the program-related word library, and then The identification information of the word library, the priority of the word library identified by the identifier information of the word dictionary is higher than the priority of other word banks in the input method word bank, and the automatic identification of the current user as the application scenario is realized.
  • the application for character input operation automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, thereby improving the adjustment efficiency of the output method word library.
  • the word library adjustment device can automatically adjust the input method word library, improve the efficiency of the thesaurus adjustment, reduce the influence of the thesaurus adjustment on the input efficiency, and further improve the input. effectiveness.
  • FIG. 4 is a schematic structural diagram of a word library adjustment apparatus according to another embodiment of the present invention. This embodiment can be implemented based on the embodiment shown in FIG. 3. As shown in FIG. 4, the second obtaining module 32 of this embodiment includes: a first determining unit 321 and a first obtaining unit 322.
  • the first determining unit 321 is connected to the first obtaining module 31, and is configured to compare the identifier information of the first application acquired by the first acquiring module 31 with the identifier information of each application in the associated table, and determine the first application. Whether the identification information of the program exists in the associated table.
  • the first obtaining unit 322 is connected to the first determining unit 321 for obtaining the identification information of the word library having the corresponding relationship with the first application when the determination result of the first determining unit 321 is YES.
  • the second obtaining module 32 further includes: a second obtaining unit 323 and a third acquiring unit
  • the second obtaining unit 323 is connected to the first determining unit 321 and configured to split the identification information of the first application when the determining result of the first determining unit 321 is negative, to obtain the first application that can identify the first application.
  • the sub-identification information of the feature is connected to the first determining unit 321 and configured to split the identification information of the first application when the determining result of the first determining unit 321 is negative, to obtain the first application that can identify the first application.
  • the sub-identification information of the feature is connected to the first determining unit 321 and configured to split the identification information of the first application when the determining result of the first determining unit 321 is negative, to obtain the first application that can identify the first application.
  • the third obtaining unit 324 is connected to the second obtaining unit 323, and is configured to compare the sub-identification information acquired by the second obtaining unit 323 with the identification information of each word dictionary in the association table, and obtain a correspondence relationship with the sub-identification information. Identification information for the word library.
  • the identification information of each word dictionary in the association table further includes: keywords corresponding to each word dictionary.
  • the identification information of the first application includes at least one of the following information: a name of the first application, a name of the first application, a developer, a name and a version number of the first application, and a first application. The name, developer, and version number of the program.
  • the identification information of each application in the associated table includes at least one of the following information: a name of each application, a name of each application and a developer, a name and a version number of each application, and an application Name, developer, and version number.
  • the adjustment module 33 of this embodiment includes: a second determining unit 331 and an adjusting unit
  • the second determining unit 331 and the first obtaining unit 322 and the third obtaining unit 324 are configured to use, according to the identifier information of the first application related to the first application acquired by the first obtaining unit 322 or the third obtaining unit 324, Determine whether the first application-related word library exists in the input method word library.
  • the adjusting unit 332 is connected to the second determining unit 331, and is configured to directly set the priority of the first application related word library to be higher than the input method word bank when the second determining unit 331 determines that the result is yes. Priority of the word library; when the judgment result of the second determining unit 331 is negative, adding the word library related to the first application to the input method word library, and setting the word library of the first application related The priority is higher than the priority of other word banks in the input method word library.
  • the identification information of the first application-related word library further includes: an identifier of the first application-related word library.
  • the second determining unit 331 is specifically configured to determine whether the identifier of the word store associated with the first application exists in the identifier list corresponding to the input method word bank, and when the determination result is no, determine the first application.
  • the program-related word library does not exist in the input method word library. When the judgment result is yes, it is determined that the word inventory related to the first application is in the input method word library.
  • the identification code list stores an identification code of each word dictionary in the input method word library.
  • the adjustment module 33 of the embodiment is specifically an adjustment unit 332, which is specifically configured to set a first application-related word library during a character input operation by the user as a current application scenario.
  • the priority is higher than the priority of other word banks in the input method word library.
  • the first obtaining module 31 of the embodiment includes: a fourth obtaining unit 311 and a fifth obtaining unit 312.
  • the fourth obtaining unit 311 is configured to obtain an identifier of the first application.
  • the fifth obtaining unit 312 is connected to the fourth obtaining unit 311, and is configured to use an identifier obtained by the fourth obtaining unit 311 as an entry parameter of an API provided by the operating system, to invoke an API, so that the operating system executes the API, and returns Identification information of the first application.
  • the first determining unit 321 is connected to the fifth obtaining unit 312, and is configured to compare the identifier information of the first application acquired by the fifth acquiring unit 312 with the identifier information of each application in the association table, and determine the first application. Whether the identification information of the program exists in the associated table. For details, refer to the description of the method embodiments.
  • the word library adjustment device of the embodiment obtains the identification information of the application program that the user currently performs the character input operation as the application scenario, and searches for the application in the preset association table based on the acquired identification information of the application program, and acquires the application.
  • the identification information of the program-related word library, and then according to the identification information of the word library, setting the word library identified by the identifier information of the word library has higher priority than other word banks in the input method word library Priority, which realizes the application that automatically recognizes the user's current character input operation as an application scenario and automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, thereby improving the output method word.
  • the efficiency of the library adjustment Especially when switching between different applications, the word library adjustment device can automatically adjust the input method word library, improve the efficiency of the thesaurus adjustment, reduce the influence of the thesaurus adjustment on the input efficiency, and further improve the input. effectiveness.

Abstract

Provided are a method and device for adjusting a word bank. The method includes: acquiring identification information about an application program which a user starts and uses currently; looking up a preset association table according to the acquired identification information about the application program, and acquiring identification information about a word bank relevant to the first application program; and adjusting an input-method word bank according to the identification information about the word bank relevant to the first application program. The technical solution provided in the present invention, according to the identification information about an application program which a user starts and uses currently, can automatically acquire a relevant word bank, and automatically complete the adjustment of an input-method word bank according to the acquired relevant word bank, which improves the efficiency for adjusting a word bank and further improves the word input efficiency.

Description

字词库调整方法及设备 技术领域 本发明涉及字词输入法技术, 尤其涉及一种字词库调整方法及设备。 背景技术  TECHNICAL FIELD The present invention relates to a word input method, and in particular, to a word bank adjustment method and device. Background technique
输入法是指为了将各种符号输入计算机或其他设备而采用的编码方法, 例如拼音输入法、 五笔输入法、 语音输入法等。 输入装置则是指将文字信息 输入计算机的各种硬件设备, 如键盘、 显示器等。 由于用户输入编码(例如 字母、 词根)可能对应多个字词, 目前的输入法为了提高在各种终端, 例如 电脑、 手机、 平板电脑等下的字词输入速度及准确度, 主要是对不同类型的 字词进行分类构成不同的字词库, 然后结合字词库对用户输入编码进行概率 分析, 将用户最可能输入的字词按照概率大小进行排列, 降低输入编码所引 起的重码个数, 这有助于提高用户输入字词的准确度及速度。  The input method refers to an encoding method used to input various symbols into a computer or other device, such as a pinyin input method, a five-stroke input method, a voice input method, and the like. Input devices refer to various hardware devices such as keyboards, monitors, etc. that input text information into a computer. Since user input codes (such as letters, roots) may correspond to multiple words, the current input method is mainly to improve the speed and accuracy of word input in various terminals, such as computers, mobile phones, tablets, and the like. The types of words are classified into different word banks, and then the probabilistic analysis is performed on the user input codes in combination with the word library, and the words most likely to be input by the user are arranged according to the probability size, thereby reducing the number of re-codes caused by the input codes. This helps improve the accuracy and speed with which users enter words.
但是由于字词的组合数量相当庞大, 用户在使用时, 经常会出现与个人 意愿相差较大距离的字词, 这就降低了输入效率。 针对该问题, 目前的输入 法在字词库分类及概率分析方面做了很多的处理, 例如, 根据字词的应用领 域进行分类, 例如姓名类、 计算机类、 地名类、 体育类、 音乐类、 汽车类、 衣物类等等。 用户在使用输入法时, 可根据当前的应用场景选择一定数量的、 不同类别的字词库作为输入法使用的字词库加入输入法字词库中, 这样在输 入编码后可以减少重码个数及优化排序效果, 有利于输入速度的提升。 例如, 当用户在使用电话簿类软件建立新用户时, 需要指定的字词库就是姓名类; 当用户在计算机商品信息类软件上进行商品搜索时, 需要指定的字词库就是 计算机类; 当用户在地图类软件进行操作时, 需要指定的字词库就是地名类。  However, because the number of combinations of words is quite large, users often use words that are far from the individual's will when they are used, which reduces the input efficiency. In response to this problem, the current input method has done a lot of processing in terms of word library classification and probability analysis, for example, according to the application field of words, such as name class, computer class, place name class, sports class, music class, Cars, clothing, etc. When using the input method, the user can select a certain number of different types of word banks to be added to the input method word library according to the current application scenario, so that the number of duplicate codes can be reduced after inputting the code. And optimize the sorting effect, which is conducive to the increase of input speed. For example, when a user creates a new user by using a phone book type software, the specified word library is a name class; when the user searches for goods on the computer product information type software, the specified word library is a computer class; When the user operates in the map software, the specified word library is the place name class.
但是, 输入法使用的字词库需要用户预先手动指定, 并且当在多种不同 类型的应用场景下进行输入操作时, 需要用户反复手动指定输入法使用的字 词库, 也就是需要反复手动调整输入法字词库, 输入法字词库的调整效率较 低。 发明内容 However, the word library used by the input method needs to be manually specified by the user in advance, and when input operations are performed in a plurality of different types of application scenarios, the user is required to manually and manually specify the word library used by the input method, that is, manual adjustment is required repeatedly. The input method word library, the input method word library is less efficient. Summary of the invention
本发明实施例提供一种字词库调整方法及设备, 用以提高输入法字词库 的调整效率。  Embodiments of the present invention provide a method and a device for adjusting a word library, which are used to improve the adjustment efficiency of an input method word library.
本发明实施例提供一种字词库调整方法, 包括:  An embodiment of the present invention provides a method for adjusting a term library, including:
获取第一应用程序的标识信息, 所述第一应用程序为用户当前作为应用 场景进行字符输入操作的应用程序;  Obtaining identification information of the first application, where the first application is an application for performing a character input operation by the user as an application scenario;
根据所述第一应用程序的标识信息在预设的关联表格中进行查找, 获取 第一应用程序相关的字词库的标识信息, 所述第一应用程序相关的字词库包 括在所述第一应用程序下使用频率高于预设频率门限的字词, 所述关联表格 根据所述第一应用程序相关的字词库的标识信息, 设置所述第一应用程 序相关的字词库的优先级高于输入法字词库中其他字词库的优先级。  Performing a search in a preset association table according to the identifier information of the first application, acquiring identifier information of a first application-related word library, where the first application-related word library is included in the first a word using a frequency higher than a preset frequency threshold, the association table setting a priority of the first application-related word library according to the identification information of the first application-related word library The level is higher than the priority of other word banks in the input method word library.
本发明实施例提供一种字词库调整设备, 包括:  An embodiment of the present invention provides a word library adjustment apparatus, including:
第一获取模块, 用于获取第一应用程序的标识信息, 所述第一应用程序 为用户当前作为应用场景进行字符输入操作的应用程序;  a first acquiring module, configured to acquire identifier information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario;
第二获取模块, 用于根据所述第一应用程序的标识信息在预设的关联表 格中进行查找, 获取第一应用程序相关的字词库的标识信息, 所述第一应用 程序相关的字词库包括在所述第一应用程序下使用频率高于预设频率门限的 关系;  a second obtaining module, configured to perform, in the preset association table, the identifier information of the first application to obtain the identifier information of the first application related word library, and the first application related word The thesaurus includes a relationship in which the frequency of use is higher than a preset frequency threshold under the first application;
调整模块, 用于根据所述第一应用程序相关的字词库的标识信息, 设置 所述第一应用程序相关的字词库的优先级高于输入法字词库中其他字词库的 优先级。  And an adjustment module, configured to set, according to the identifier information of the first application-related word library, a priority of the first application-related word library is higher than a priority of other word banks in the input method word library level.
本发明实施例提供的字词库调整方法及设备, 获取用户当前作为应用场 景进行字符输入操作的应用程序的标识信息, 根据获取的应用程序的标识信 息在预设的关联表格中进行查找,获取该应用程序相关的字词库的标识信息, 然后根据获取的字词库的标识信息, 设置该字词库的标识信息所标识的字词 库的优先级高于输入法字词库中其他字词库的优先级, 实现了自动识别用户 当前作为应用场景进行字符输入操作的应用程序并根据当前应用场景自动调 整输入法字词库, 使得用户不用再手动调整输入法字词库, 尤其是在不同应 用程序下进行输入时, 字词库调整设备通过自动进行输入法字词库的调整, 提高了输入法字词库的调整效率。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。 The method and device for adjusting a word library according to an embodiment of the present invention obtains identification information of an application that is currently used as a character input operation by an application scenario, and searches and obtains in a preset association table according to the acquired identification information of the application program. The identification information of the word library associated with the application, and then according to the identification information of the obtained word library, setting the word library identified by the identification information of the word library has higher priority than other words in the input method word library The priority of the thesaurus realizes the application that automatically recognizes the user's current character input operation as an application scenario and automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, especially in the Different should When inputting with the program, the word library adjustment device improves the adjustment efficiency of the input method word library by automatically adjusting the input method word library. BRIEF DESCRIPTION OF THE DRAWINGS In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief description of the drawings used in the embodiments or the prior art description will be briefly described below. The drawings are some embodiments of the present invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive labor.
图 1为本发明一实施例提供的字词库调整方法的流程图;  FIG. 1 is a flowchart of a method for adjusting a word bank according to an embodiment of the present invention;
图 2为本发明另一实施例提供的字词库调整方法的流程图;  2 is a flowchart of a method for adjusting a term library according to another embodiment of the present invention;
图 3为本发明一实施例提供的字词库调整设备的结构示意图;  FIG. 3 is a schematic structural diagram of a word bank adjustment apparatus according to an embodiment of the present invention;
图 4为本发明另一实施例提供的字词库调整设备的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。  FIG. 4 is a schematic structural diagram of a word library adjustment apparatus according to another embodiment of the present invention. The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. The embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
图 1为本发明一实施例提供的字词库调整方法的流程图。 如图 1所示, 本实施例的方法包括:  FIG. 1 is a flowchart of a method for adjusting a word dictionary according to an embodiment of the present invention. As shown in FIG. 1, the method in this embodiment includes:
步骤 101、 获取第一应用程序的标识信息, 第一应用程序为用户当前作 为应用场景进行字符输入操作的应用程序。  Step 101: Obtain identification information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario.
本实施例的执行主体可以为字词库调整设备, 该设备可以是互联网通信 设备的一个部分, 例如中央处理单元(Central Processing Unit, CPU ) , 也可 以是普通电脑, 手机, 平板电脑等可以进行交互操作的电子设备。 本实施例 对执行主体的具体实现不做限定。  The execution entity of this embodiment may be a word library adjustment device, and the device may be a part of an Internet communication device, such as a central processing unit (CPU), or may be a general computer, a mobile phone, a tablet computer, or the like. Interoperable electronic devices. This embodiment does not limit the specific implementation of the execution subject.
本实施例的应用程序可以是各种需要输入字词的应用软件程序, 例如可 以是电话簿管理软件, 地图搜索服务软件, 商品信息搜索服务软件等可以接 受字词输入的软件程序。 本实施例的应用程序所对应的场景即为用户输入字 符时的应用场景。 其中, 不同的应用程序对应于不同的应用场景, 且应用程 序之间的切换也就意味着应用场景的切换。 The application program of this embodiment may be various application software programs that need to input words, and may be, for example, a software program that can accept word input, such as phone book management software, map search service software, and product information search service software. The scenario corresponding to the application in this embodiment is a user input word. The application scenario of the time. Different applications correspond to different application scenarios, and switching between applications means switching of application scenarios.
其中, 用户当前作为应用场景进行字符输入操作的应用程序是指当前处 于活动状态的应用程序。 如果用户同时启动了多个应用程序, 但同一时间用 户只能对一个应用程序进行操作,该应用程序即为处于活动状态的应用程序。 为了描述上的便利, 本发明各实施例将用户当前作为应用场景进行字符输入 操作的应用程序称为第一应用程序。  The application that the user currently performs as a character input operation as an application scenario refers to an application that is currently in an active state. If a user launches multiple applications at the same time, but the user can only operate on one application at a time, the application is the active application. For convenience in description, the embodiments of the present invention refer to an application that the user currently performs a character input operation as an application scenario as a first application.
其中, 每个应用程序都有名称、 版本号、 开发者等一些相关信息, 这些 信息中的一个或多个可以唯一标识一个应用程序。 在本实施例中使用应用程 序的标识信息来唯一标识一个应用程序。 其中, 在应用程序的相关信息中, 凡是可唯一标识应用程序的各种信息或其组合均可以作为应用程序的标识信 息。 具体的, 本实施例通过第一应用程序的标识信息来唯一标识第一应用程 序, 这样字词库调整设备通过获取的第一应用程序的标识信息就可以识别出 用户当前作为应用场景进行字符输入操作的是哪个应用程序。  Each application has some information about its name, version number, developer, etc. One or more of these information can uniquely identify an application. In the present embodiment, the identification information of the application is used to uniquely identify an application. Among them, in the related information of the application, any information or a combination thereof that can uniquely identify the application can be used as the identification information of the application. Specifically, in this embodiment, the first application is uniquely identified by the identification information of the first application, so that the word library adjustment device can identify the current character input by the user as the application scenario by using the acquired identification information of the first application. Which application is being operated.
步骤 102、 根据获取的第一应用程序的标识信息在预设的关联表格中进 行查找, 获取第一应用程序相关的字词库的标识信息。  Step 102: Perform a search in the preset association table according to the obtained identification information of the first application, and obtain identification information of the word library related to the first application.
其中, 第一应用程序相关的字词库包括在第一应用程序下使用频率高于 预设频率门限的字词。 所谓 "第一应用程序相关的字词库" 可以是第一应用 程序开发方或者第三方根据用户以第一应用程序为应用场景, 进行字符输入 过程中使用的频率较高的字词设计出的字词库。 其中, 某个字词的使用频率 较高是指该字词的使用频率高于预设频率门限。 所述频率门限是预先设定, 并且不同应用程序对应的频率门限可能不同。 通常情况下, 第一应用程序相 关的字词库是用户在以第一应用程序为应用场景进行字词输入时最方便使用 的。 例如, 在使用淘宝搜索业务时, 其在搜索栏弹出的可选字词组合通常是 使用频率较高的字词或组合(例如, 可能是绝大部分用户都会使用的字词)。  The first application-related word library includes words that are used at a frequency higher than a preset frequency threshold under the first application. The so-called "first application-related word library" may be designed by the first application developer or a third party according to the frequency used by the user to perform the character input process in the first application as the application scenario. Word library. Among them, the higher frequency of use of a word means that the frequency of use of the word is higher than the preset frequency threshold. The frequency threshold is preset and the frequency thresholds corresponding to different applications may be different. Typically, the first application-related term library is the easiest to use when the user enters a word for the application in the first application. For example, when using Taobao search business, the combination of optional words that pop up in the search bar is usually a frequently used word or combination (for example, it may be the word that most users will use).
在本实施例中, 关联表格是预先设定的。 在关联表格中, 存储有应用程 序与应用程序相关的字词库的对应关系。 其中, 所述 "与应用程序相关的字 词库" , 与 "第一应用程序相关的字词库" 类似, 是指包括在该应用程序下 使用频率高于预设频率门限的字词的字词库。 例如, 应用程序相关的字词库 也可以是该应用程序的开发方或者第三方根据用户在以该应用程序为应用场 景, 进行字符输入过程使用频率较高的字词设计出的字词库。 In this embodiment, the association table is preset. In the associated table, the correspondence between the application and the application-related word library is stored. Wherein, the "application-related word library" is similar to the "first application-related word library", and refers to a word including a word whose frequency is higher than a preset frequency threshold under the application. Thesaurus. For example, the application-related word library can also be the developer of the application or a third party based on the user's application field for the application. Scene, a character library designed for character input using words with higher frequency.
可选的, 关联表格存储有大量应用程序与其相关的字词库的对应关系。 实施方式可以为: 关联表格对应存储各应用程序的标识信息和各应用程序相 关的字词库的标识信息。 其中, 关联表格中存储的各应用程序的标识信息是 可以唯一标识应用程序的各种信息(例如应用程序的名称)或信息的组合(例 如应用程序的名称、 开发者和版本号的组合等) 。 关联表格中存储的字词库 的标识信息也是可以唯一标识字词库的各种信息 (例如字词库的名称)或信 息的组合(例如字词库的名称、 开发者和版本号的组合等) 。  Optionally, the associated table stores a correspondence between a large number of applications and their associated word banks. The implementation manner may be: the association table corresponds to the identification information of each application and the identification information of the word library associated with each application. The identification information of each application stored in the association table is a combination of various information (such as the name of the application) or information (such as the name of the application, the combination of the developer and the version number, etc.) that can uniquely identify the application. . The identification information of the word library stored in the association table is also a variety of information (such as the name of the word library) or a combination of information that can uniquely identify the word library (for example, the name of the word library, the combination of the developer and the version number, etc.) ).
可选的, 字词库调整设备获取到第一应用程序的标识信息后, 将第一应 用程序的标识信息与关联表格中各应用程序的标识信息进行比较, 判断第一 应用程序的标识信息是否存在于关联表格中; 当第一应用程序的标识信息存 在于关联表格中时, 字词库调整设备可以获取与第一应用程序的标识信息有 对应关系的字词库的标识信息, 所获取的字词库的标识信息即为第一应用程 序相关的字词库的标识信息。  Optionally, after obtaining the identifier information of the first application, the word library adjustment device compares the identifier information of the first application with the identifier information of each application in the association table, and determines whether the identifier information of the first application is Existing in the association table; when the identification information of the first application exists in the association table, the word library adjustment device may acquire the identification information of the word library corresponding to the identification information of the first application, and the acquired information The identification information of the word library is the identification information of the word library related to the first application.
进一步可选的, 当第一应用程序不存在于关联表格中时, 字词库调整设 备可以将第一应用程序的标识信息进行拆分, 获取能够唯一标识第一应用程 序的特征的分标识信息, 然后将上述分标识信息与关联表格中各字词库的标 识信息进行比较,获取与上述分标识信息具有对应关系的字词库的标识信息, 所获取的字词库的标识信息即为第一应用程序相关的字词库的标识信息。  Further, when the first application does not exist in the association table, the word library adjustment device may split the identification information of the first application to obtain the sub-identification information that can uniquely identify the feature of the first application. And comparing the above-mentioned sub-identification information with the identification information of each word vocabulary in the association table, and obtaining identification information of the vocabulary that has a corresponding relationship with the sub-identification information, and the acquired identification information of the vocabulary is the first Identification information for an application-related word library.
上述用于标识第一应用程序的特征的分标识信息主要是指能够代表用户 以第一应用程序为应用场景进行字符输入时使用频率较高的字词的信息。 例 如, 对同一字词来说, 不同应用领域的使用频率是不同的, 基于此, 上述分 标识信息可以是从第一应用程序的标识信息中拆分出的、 能够表征第一应用 程序对应的应用领域的字词。  The above-mentioned sub-identification information for identifying the feature of the first application mainly refers to information capable of representing a word whose frequency is frequently used when the user inputs the character for the application scenario by the first application. For example, for the same word, the frequency of use of different application areas is different. Based on this, the above-mentioned sub-identification information may be separated from the identification information of the first application, and can represent the corresponding corresponding to the first application. Words in the field of application.
在本发明各实施例中, 关联表格中各字词库的标识信息除了包括各字词 库的名称、 版本号和 /或开发者之外, 还可以包括: 各字词库对应的关键词。  In the embodiments of the present invention, the identification information of each word dictionary in the association table may include: keywords corresponding to each word dictionary, in addition to the name, version number, and/or developer of each word dictionary.
在本发明各实施例中, 第一应用程序的标识信息包括下述信息中的至少 其中之一: 第一应用程序的名称、 第一应用程序的名称和开发者、 第一应用 程序的名称和版本号、 第一应用程序的名称、 开发者和版本号。 在本发明各实施例中, 关联表格中各应用程序的标识信息包括下述信息 中的至少其中之一: 各应用程序的名称、 各应用程序的名称和开发者、 各应 用程序的名称和版本号、 各应用程序的名称、 开发者和版本号。 In various embodiments of the present invention, the identification information of the first application includes at least one of the following: a name of the first application, a name of the first application, and a developer, a name of the first application, and The version number, the name of the first application, the developer, and the version number. In various embodiments of the present invention, the identification information of each application in the association table includes at least one of the following information: a name of each application, a name of each application, a developer, a name and a version of each application. No., name of each application, developer, and version number.
步骤 103、 根据第一应用程序相关的字词库的标识信息, 设置第一应用 程序相关的字词库的优先级高于输入法字词库中其他字词库的优先级。  Step 103: Set, according to the identifier information of the word library related to the first application, that the priority of the first application related word library is higher than the priority of other word banks in the input method word library.
其中, 输入法字词库是指设备上的输入法可以直接使用的各种字词库的 集合。 其中, 输入法是一个软件程序, 字符输入操作需要输入法与输入装置 相配合共同完成。 输入装置是指将字符输入计算机的各种硬件设备, 如键盘、 显示器等。  Among them, the input method word library refers to a collection of various word banks that can be directly used by the input method on the device. Among them, the input method is a software program, and the character input operation requires the input method and the input device to cooperate. The input device refers to various hardware devices such as a keyboard, a display, and the like that input characters into a computer.
当获取到第一应用程序相关的字词库的标识信息后, 字词库调整设备可 以根据第一应用程序相关的字词库的标识信息调整输入法字词库所包含的字 词库, 使得调整后的输入法字词库中包括第一应用程序相关的字词库, 并且 设置第一应用程序相关的字词库的优先级高于输入法字词库中其他字词库的 优先级。  After obtaining the identification information of the word library related to the first application, the word library adjusting device may adjust the word library included in the input method word library according to the identifier information of the word library related to the first application, so that The adjusted input method word library includes a first application-related word library, and the first application-related word library is set to have a higher priority than the other word banks in the input method word library.
在本实施例中, 字词库调整设备获取用户当前作为应用场景进行字符输 入操作的应用程序的标识信息, 并基于获取的应用程序的标识信息在预设的 关联表格中进行查找, 获取与该应用程序相关的字词库的标识信息, 然后根 据该字词库的标识信息, 设置该字词库的标识信息所标识的字词库在的优先 级高于输入法字词库中其他字词库的优先级, 实现了自动识别用户当前作为 应用场景进行字符输入操作的应用程序并自动根据当前应用场景调整输入法 字词库, 使得用户不用在手动调整输入法字词库, 提高了输出法字词库的调 整效率。 尤其是在不同应用程序之间切换时, 字词库调整设备能通过自动进 行输入法字词库的调整, 提高了词库调整效率, 降低了词库调整对输入效率 的影响, 进一步提高了输入效率。 下面对本实施例具有提高输入效率的有益 效果进行解释说明。  In this embodiment, the word library adjustment device acquires the identification information of the application that the user currently performs the character input operation as the application scenario, and searches for the identifier in the preset association table based on the acquired identification information of the application, and obtains the The identification information of the application-related word library, and then according to the identification information of the word library, setting the word library identified by the identification information of the word library to have higher priority than other words in the input method word library The priority of the library realizes the application that automatically recognizes the user's current character input operation as an application scenario and automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, thereby improving the output method. The efficiency of the word library adjustment. Especially when switching between different applications, the word library adjustment device can automatically adjust the input method word library, improve the efficiency of the thesaurus adjustment, reduce the influence of the thesaurus adjustment on the input efficiency, and further improve the input. effectiveness. The advantageous effects of the present embodiment for improving the input efficiency will be explained below.
首先, 对于在同一应用程序下进行字词输入的场景。 在目前的输入法中 进行字词输入时, 当输入一个字符(例如拼音或者五笔编码) 时, 会有较多 的字词与之对应, 这些字词不会全部显示给用户进行选择, 而是根据概率排 序, 每个显示页面显示 5至 10个左右, 如果第一个显示页面中无用户需要输 入的字词, 则用户需要通过翻页或者继续输入编码, 才能精确定位到某个字 词。 出现上述情况的原因就是字词重码较多, 而本实施例通过根据用户当前 作为应用场景进行字符输入操作的应用程序 (即根据用户的应用场景)获取 与该应用程序相关的字词库, 并设置与该应用程序相关的字词库在输入法字 词库的优先级高于其他字词库, 在显示页面中显示字词时会优先从优先级较 高的字词库中获取, 这相当于提高了用户期望的字词在第一个显示页面中出 现的概率, 从而去除了用户翻页或者继续输入编码的操作, 在一定程度上提 高了输入效率。 First, for scenes where words are entered under the same application. When inputting a word in the current input method, when a character (such as pinyin or five-stroke code) is input, there will be more words corresponding to it, and these words will not all be displayed to the user for selection, but According to the probability order, each display page displays 5 to 10 or so. If there is no word to be input by the user in the first display page, the user needs to turn the page or continue to input the code to accurately locate a certain word. Word. The reason for the above situation is that the word re-code is more, and the embodiment obtains the word library related to the application according to the application that performs the character input operation by the user as the application scenario, that is, according to the application scenario of the user, and Setting the word library associated with the app takes precedence over the other word banks in the input method, and the words in the display page are prioritized from the higher priority word library, which is equivalent In order to improve the probability that the user's desired words appear in the first display page, thereby removing the user's operation of turning pages or continuing to input the code, the input efficiency is improved to some extent.
其次, 对于在不同应用程序之间进行切换的场景。 当应用程序发生切换 时, 现有技术的做法是由用户手动为切换到的应用程序重新选定与该应用程 序相关的字词库, 而本实施例是由字词库调整设备自动识别出切换到的应用 程序 (即用户当前作为应用场景进行字符输入操作的应用程序) 并基于此自 动完成输入法字词库的调整的, 其效率要明显高于用户手动调整的效率, 减 少了用户因调整输入法字词库而等待时间, 从用户的整个输入过程来看也提 高了用户的输入效率。  Second, for scenarios that switch between different applications. When the application switchover, the prior art practice is that the user manually re-selects the word library associated with the application for the switched application, and in this embodiment, the word library adjustment device automatically recognizes the switch. The application to the application (that is, the application that the user currently performs as a character input operation for the application scenario) and based on this automatic adjustment of the input method word library, the efficiency is significantly higher than the efficiency of the user manual adjustment, reducing the user's adjustment Entering the vocabulary and waiting for time increases the user's input efficiency from the user's entire input process.
进一步, 当用户启动应用程序时, 在启动过程中, 应用程序所在的操作 系统会为该应用程序分配一个在该操作系统内唯一的识别码来标识该应用程 序, 并且操作系统还会为该应用程序提供一个应用程序接口 ( Application Program Interface, API ) 。 基于此, 字词库调整设备可以先获取第一应用程 序的识别码, 然后将该识别码作为操作系统提供的 API的入口参数, 调用该 API以使操作系统执行该 API并返回第一应用程序的标识信息。 简单来说, 字词库调整设备可以通过调用操作系统提供的 API, 使操作系统执行该 API 并返回执行结果, 字词库调整设备从操作系统的返回结果中获取第一应用程 序的标识信息。  Further, when the user launches the application, during the startup process, the operating system of the application is assigned a unique identifier in the operating system to identify the application, and the operating system is also the application. The program provides an Application Program Interface (API). Based on this, the word library adjustment device may first obtain the identifier of the first application, and then use the identifier as an entry parameter of an API provided by the operating system, and invoke the API to enable the operating system to execute the API and return to the first application. Identification information. In a nutshell, the word library adjustment device can make the operating system execute the API and return the execution result by calling the API provided by the operating system, and the word library adjustment device obtains the identification information of the first application from the returned result of the operating system.
进一步, 字词库调整设备上的输入法可以接收用户在第一应用程序下输 入的字符。 例如, 用户可以通过输入装置, 例如键盘、 显示器等输入字符。 其中, 输入字符会因使用的输入法的不同而不同。 例如, 如果用户使用的输 入法为拼音类输入法, 例如搜狗拼音输入法, 输入字符主要是指拼音字母。 又例如, 如果用户使用的输入法为五笔, 则输入字符主要是指五笔字根。 此 时, 字词库调整设备上的输入法会接收用户的输入的字符。 相应的, 字词库 调整设备的输入法会根据调整后的输入法字词库, 获取与输入的字符对应的 字词并显示。 例如, 输入法可以像现有技术那样在调整后的输入法字词库中 查找与用户输入的字符对应的字词, 然后对用户输入的字符对应的多个字词 按照概率大小进行排列, 之后按照排序结果将用户输入的字符对应的多个字 词显示给用户, 以供用户进行选择。 Further, the input method on the word library adjustment device can receive characters input by the user under the first application. For example, a user can input characters through an input device such as a keyboard, a display, or the like. Among them, the input characters will vary depending on the input method used. For example, if the input method used by the user is a pinyin type input method, such as Sogou Pinyin input method, the input characters mainly refer to pinyin letters. For another example, if the input method used by the user is five strokes, the input character mainly refers to the five-stroke root. At this point, the input method on the word library adjustment device receives the characters entered by the user. Correspondingly, the input method of the word library adjustment device acquires the character corresponding to the input character according to the adjusted input method word library. Words and display. For example, the input method can search for the words corresponding to the characters input by the user in the adjusted input method word library as in the prior art, and then arrange the plurality of words corresponding to the characters input by the user according to the probability size, and then According to the sorting result, a plurality of words corresponding to characters input by the user are displayed to the user for selection by the user.
可选的, 字词库调整设备可以在用户输入字符的触发下, 去执行根据第 一应用程序的标识信息在预设的关联表格中进行查找, 获取第一应用程序相 关的字词库的标识信息的操作。 换句话说, 字词库调整设备可以识别出输入 法接收用户输入的字符的操作, 并会在识别到的用户输入字符的操作之后, 根据获取的第一应用程序的标识信息在预设的关联表格中进行查找, 获取第 一应用程序相关的字词库的标识信息。 相应的, 字词库调整设备上的输入法 会在根据第一应用程序相关的字词库的标识信息, 设置第一应用程序相关的 字词库的优先级高于输入法字词库中其他字词库的优先级之后, 根据调整后 的输入法字词库, 获取与用户输入的字符对应的字词并显示。 该方法适用于 用户在第一应用程序下第一次进行字符输入的情况。  Optionally, the word library adjustment device may perform a search in the preset association table according to the identification information of the first application, and obtain the identifier of the word library related to the first application, triggered by the input character of the user. The operation of the information. In other words, the word library adjusting device can recognize the operation of the input method to receive the character input by the user, and after the operation of the recognized user input character, according to the acquired identification information of the first application in the preset association. Look up in the table to get the identification information of the first application related word library. Correspondingly, the input method on the word library adjustment device sets the priority of the first application related word library higher than the input method word library according to the identification information of the word library related to the first application. After the priority of the word library, according to the adjusted input method word library, the words corresponding to the characters input by the user are obtained and displayed. This method is suitable for the case where the user performs character input for the first time under the first application.
可选的,字词库调整设备也可以在获取到第一应用程序的标识信息之后, 直接执行根据获取的第一应用程序的标识信息在预设的关联表格中进行查 找, 获取第一应用程序相关的字词库的标识信息的操作, 而不用在用户进行 字符输入的触发下执行。  Optionally, after the identifier information of the first application is obtained, the vocabulary adjustment device may directly perform the searching according to the acquired identification information of the first application in the preset association table to obtain the first application. The operation of the identification information of the associated word library is performed without triggering the user to perform character input.
本发明实施例提供几种字词库调整设备根据第一应用程序的标识信息在 预设的关联表格中进行查找, 获取第一应用程序相关的字词库的标识信息的 实施方式, 具体如下:  An embodiment of the present invention provides an implementation manner in which a plurality of word library adjustment devices perform a search in a preset association table according to the identification information of the first application program, and obtain identification information of the word library related to the first application program, as follows:
可选的, 第一应用程序的标识信息可以是第一应用程序的名称。 关联表 格中存储的各应用程序的标识信息可以是各应用程序的名称。 关联表格中存 储的各字词库的标识信息主要包括字词库的名称, 还可以包括开发者、 版本 号等。 基于此, 步骤 102的一种实施方式具体为:  Optionally, the identification information of the first application may be a name of the first application. The identification information of each application stored in the associated table may be the name of each application. The identification information of each of the word banks stored in the associated table mainly includes the name of the word library, and may also include the developer, the version number, and the like. Based on this, an implementation manner of step 102 is specifically:
字词库调整设备将第一应用程序的名称与关联表格中各应用程序的名称 进行比较, 判断第一应用程序的名称是否存在关联表格中。 当判断结果为第 一应用程序的名称存在于关联表格中时, 字词库调整设备从关联表格中获取 与第一应用程序具有对应关系的字词库的标识信息, 所获取的字词库的标识 信息即为第一应用程序相关的字词库的标识信息。 进一步, 第一应用程序的标识信息除了包括第一应用程序的名称之外, 还包括第一应用程序的开发者和 /或版本号。 相应的, 关联表格中存储的各应 用程序的标识信息除了包括各应用程序的名称之外, 还可以包括各应用程序 的开发者和 /或版本号。 The word library adjustment device compares the name of the first application with the name of each application in the associated table, and determines whether the name of the first application exists in the associated table. When the judgment result is that the name of the first application exists in the association table, the word library adjustment device acquires the identification information of the word library corresponding to the first application from the association table, and the acquired word library The identification information is the identification information of the word library related to the first application. Further, the identification information of the first application includes a developer and/or a version number of the first application in addition to the name of the first application. Correspondingly, the identification information of each application stored in the association table may include the developer and/or version number of each application in addition to the name of each application.
也就是说, 如果第一应用程序的标识信息除了第一应用程序的名称之外 还包括开发者, 则关联表格中存储的各应用程序的标识信息除了各应用程序 的名称之外也包括各应用程序的开发者, 则字词库调整设备需要同时根据第 一应用程序的名称和开发者在关联表格中进行查找, 判断第一应用程序的名 称和开发者是否作为同一应用程序的标识信息同时存在于关联表格中, 当判 断结果为存在时, 从关联表格中获取第一应用程序的名称和开发者同时作为 标识信息所对应的字词库的标识信息。  That is, if the identification information of the first application includes a developer in addition to the name of the first application, the identification information of each application stored in the association table includes each application in addition to the name of each application. The developer of the program, the word library adjustment device needs to simultaneously search according to the name of the first application and the developer in the associated table, and determine whether the name of the first application and the identifier of the same application exist simultaneously. In the association table, when the determination result is present, the name of the first application and the identification information of the word library corresponding to the developer information are obtained from the association table.
如果第一应用程序的标识信息除了第一应用程序的名称之外还包括版本 号, 则关联表格中存储的各应用程序的标识信息除了各应用程序的名称之外 也包括各应用程序的版本号, 则字词库调整设备需要同时根据第一应用程序 的名称和版本号在关联表格中进行查找, 判断第一应用程序的名称和版本号 是否作为同一应用程序的标识信息存在于关联表格中, 当判断结果为存在时, 从关联表格中获取第一应用程序的名称和版本号同时作为标识信息所对应的 字词库的标识信息。  If the identification information of the first application includes a version number in addition to the name of the first application, the identification information of each application stored in the association table includes the version number of each application in addition to the name of each application. The word library adjustment device needs to search in the association table according to the name and version number of the first application at the same time, and determine whether the name and version number of the first application are present in the association table as the identification information of the same application. When the judgment result is the existence, the name and the version number of the first application are obtained from the association table as the identification information of the word library corresponding to the identification information.
如果第一应用程序的标识信息除了第一应用程序的名称之外还包括版本 号和开发者, 则关联表格中存储的各应用程序的标识信息除了各应用程序的 名称之外也包括各应用程序的版本号和开发者, 则字词库调整设备需要同时 根据第一应用程序的名称、 版本号和开发者在关联表格中进行查找, 判断第 一应用程序的名称、 版本号和开发者是否作为同一应用程序的标识信息同时 存在于关联表格中, 当判断结果为存在时, 从关联表格中获取第一应用程序 的名称、 版本号和开发者同时作为标识信息所对应的字词库的标识信息。  If the identification information of the first application includes the version number and the developer in addition to the name of the first application, the identification information of each application stored in the association table includes each application in addition to the name of each application. The version number and the developer, the word library adjustment device needs to find the name, version number and developer of the first application according to the name, version number of the first application and the developer in the associated table. The identification information of the same application exists in the association table at the same time. When the judgment result is present, the name, the version number of the first application, and the identification information of the word library corresponding to the developer as the identification information are obtained from the association table. .
进一步, 在上述各情况下, 当判断结果为第一应用程序的标识信息不存 在于关联表格中时, 字词库调整设备可以将第一应用程序的标识信息进行拆 分, 从第一应用程序的标识信息中获取能够表征第一应用程序的特征的分标 识信息,然后将上述分标识信息与关联表格中各字词库的标识信息进行比较, 获取与上述分标识信息具有对应关系的字词库的标识信息, 所获取的字词库 的标识信息即为第一应用程序相关的标识信息。 Further, in each of the above cases, when the determination result is that the identification information of the first application does not exist in the association table, the word library adjustment device may split the identification information of the first application from the first application. Obtaining the sub-identification information capable of characterizing the feature of the first application, and then comparing the sub-identification information with the identification information of each word dictionary in the association table to obtain a word having a correspondence relationship with the sub-identification information. Library identification information, the obtained word library The identification information is the identification information related to the first application.
在上述实施方式中,字词库调整设备除了利用第一应用程序的名称之外, 还同时利用第一应用程序的开发者和 /或版本号等信息, 有利于提高标识各应 用程序的准确性, 有利于提高获取的字词库的精度, 进而有利于提高基于获 取的字词库进行字词输入时的效率。  In the above embodiment, in addition to using the name of the first application, the word library adjustment device also utilizes information such as the developer and/or version number of the first application, which is advantageous for improving the accuracy of identifying each application. It is beneficial to improve the accuracy of the acquired word library, and thus is beneficial to improve the efficiency of word input based on the acquired word library.
在此说明, 本发明各实施例中, 各字词库的标识信息除了可以包括各字 词库的名称, 还可以包括各字词库的开发者和 /或版本号等信息。  It is to be noted that, in various embodiments of the present invention, the identification information of each word dictionary may include information such as the developer and/or version number of each word dictionary in addition to the name of each word dictionary.
进一步, 字词库的标识信息还可以包括字词库对应的关键词。 其中, 关 键词是指对字词库中的字词所属领域进行简单表达的字词, 通常在 2到 5个 词组之间。 基于此, 字词库调整设备在判断出第一应用程序的标识信息不存 在于关联表格中时, 将第一应用程序的标识信息进行拆分获取分标识信息, 然后将分标识信息与关联表格中各字词库的标识信息进行比较, 获取与分标 识信息具有对应关系的字词库的标识信息的一种实施方式可以包括: 字词库 调整设备对第一应用程序的标识信息中的名称进行拆分, 获取可以标识第一 应用程序的特征的名称词组, 将获取的名称词组与关联表格中各字词库对应 的关键词进行比较, 判断是否存在关键字与所述名称词组相同的字词库的标 识信息; 如果判断结果为存在, 则获取关键词与所述名称词组相同的字词库 的标识信息作为第一应用程序相关的字词库的标识信息。 其中, 拆分出的名 称字词即为分标识信息, 拆分出的名称字词能够代表用户以第一应用程序为 应用场景进行字符输入过程中使用频率较高的字词。  Further, the identifier information of the word library may further include keywords corresponding to the word library. Among them, the key words are words that simply express the domain of the words in the word library, usually between 2 and 5 phrases. Based on this, when the word library adjustment device determines that the identification information of the first application does not exist in the association table, the identification information of the first application is split to obtain the sub-identification information, and then the sub-identification information and the association table are An implementation manner of comparing the identification information of each of the word vocabularies to obtain the identification information of the vocabulary corresponding to the sub-identification information may include: a name in the identification information of the first application by the vocabulary adjustment device Performing a splitting, obtaining a name phrase that can identify a feature of the first application, comparing the obtained name phrase with a keyword corresponding to each of the word banks in the associated table, and determining whether there is a keyword having the same keyword as the name phrase The identification information of the thesaurus; if the judgment result is the presence, the identification information of the word library having the same keyword as the name phrase is obtained as the identification information of the word library related to the first application. The split name word is the sub-identification information, and the split name word can represent the user frequently using the first application as the application scene for character input.
在上述实施方式中, 第一应用程序的标识信息可以是第一应用程序的名 称, 也可以是名称与版本号的组合, 也可以是名称与开发者的组合, 还可以 是名称、 开发者与版本号三者的组合。  In the above embodiment, the identifier information of the first application may be a name of the first application, a combination of a name and a version number, a combination of a name and a developer, or a name, a developer, and a A combination of the three versions.
具体的, 字词库调整设备可以对第一应用程序的名称进行词义分析, 从 而从第一应用程序的名称中拆分出一个或多个名称词组。 对由第一应用程序 的名称拆分出名称词组进行举例说明: 假设第一应用程序的名称为 "mobilePhoneBook" , 则经过词义分析可以从中提取出 "mobilePhone" 和 "PhoneBook" 等名称词组。  Specifically, the word library adjustment device may perform a semantic analysis on the name of the first application, thereby splitting one or more name phrases from the name of the first application. An example of splitting the name phrase by the name of the first application is as follows: Assuming the name of the first application is "mobilePhoneBook", the word meaning analysis can extract the name phrases "mobilePhone" and "PhoneBook".
可选的, 在将第一应用程序的名称拆分为一个或多个名称词组后, 字词 行比较, 将关键词与名称词组相同的字词库的标识信息作为第一应用程序相 关的字词库的标识信息, 则该关键词与名称词组相同的字词库即为第一应用 程序相关的字词库。 Optionally, after splitting the name of the first application into one or more name phrases, the words In the row comparison, the identification information of the word library with the same keyword and the name phrase is used as the identification information of the word library related to the first application, and the word library with the same keyword and the name phrase is related to the first application. Word library.
可选的, 在将第一应用程序的名称拆分为一个或多个名称词组后, 字词 的关键词进行比较, 如果上述几个名称词组同时出现在某个字词库的关键词 中,则获取该字词库的标识信息作为第一应用程序相关的字词库的标识信息, 则该字词库即为第一应用程序相关的字词库。  Optionally, after the name of the first application is split into one or more name phrases, the keywords of the words are compared, if the above several name phrases appear in the keywords of a certain word library at the same time, Then, the identification information of the word library is obtained as the identification information of the word library related to the first application, and the word library is the word library related to the first application.
在上述实施方式中, 字词库调整设备有可能会获取到多个字词库的标识 信息, 这些字词库的关键词分别与某个名称词组相同, 或者这些字词库的关 键词中同时包括上述几个联合使用的名称词组, 则获取的多个字词库的标识 信息都将作为第一应用程序相关的字词库的标识信息。 这种将第一应用程序 的名称拆分为名称词组, 然后将名称词组与各字词库的关键词进行比较以获 取第一应用程序相关的字词库的标识信息的方法称为词义分析方法。 使用该 方法可以获取较多的字词库, 有利于提高用户成功获取到相应字词的概率。  In the above embodiment, the word library adjustment device may obtain identification information of multiple word banks, the keywords of the word library are the same as a certain name phrase, or the keywords of the word library are simultaneously Including the name phrases used in the above-mentioned joint use, the identification information of the obtained plurality of word banks will be used as the identification information of the word library related to the first application. This method of splitting the name of the first application into a name phrase, and then comparing the name phrase with the keywords of each word library to obtain the identification information of the word library related to the first application is called a semantic analysis method. . This method can be used to obtain more word banks, which is beneficial to improve the probability of users successfully acquiring the corresponding words.
进一步说明, 在上述各种获取第一应用程序相关的字词库的标识信息过 程中, 字词库调整设备可能会获取到多个第一应用程序相关的字词库的标识 信息, 则可以将多个第一应用程序相关的字词库的标识信息都存储下来, 以 便于在后续根据多个第一应用程序相关的字词库的标识信息对输入法字词库 进行调整, 这样有利于提高用户成功获取到相应字词的概率。 较为优选的, 字词库调整设备可以按照各第一应用程序相关的字词库的标识信息被获取的 先后顺序依次记录各第一应用程序相关的字词库的标识信息。  Further, in the process of acquiring the identification information of the word library related to the first application, the word library adjustment device may obtain the identification information of the plurality of first application-related word banks, and then The identification information of the plurality of first application-related word banks is stored, so as to adjust the input method word library according to the identification information of the word library related to the plurality of first applications, which is beneficial to improve The probability that the user successfully obtained the corresponding word. Preferably, the word library adjusting device can sequentially record the identification information of the word library related to each first application program in the order in which the identification information of the word library associated with each first application is acquired.
进一步, 字词库开发者通常会结合实际应用场景 (即对应的应用程序) 开发字词库, 因此, 字词库开发者可以在开发出字词库后, 将字词库与应用 程序的对应关系作为字词库的信息的一部分存储起来。 其中, 字词库与应用 程序的对应关系可以用字词库对应的应用程序的标识信息来表示, 即字词库 的信息中包括字词库对应的应用程序的标识信息。 例如, 姓名类字词库对应 的应用程序可以为电话簿软件, 则该姓名类字词的信息中包括该电话簿软件 的标识信息, 例如电话簿软件的名称、 开发者、 版本号等; 计算机类字词库 对应的应用程序可以是计算机商品信息软件, 则该计算机类字词库的信息中 包括该计算机商品信息软件的标识信息, 例如计算机商品信息软件的名称、 开发者、 版本号等; 地名类字词库对应的应用程序可以是地图类软件, 则该 地名类字词库的信息中包括该地图类软件的信息, 例如地图类软件的名称、 开发者、 版本号等。 字词库的信息中除了包括字词库所对应的应用程序的标 识信息之外, 还会包括字词库的标识信息, 例如字词库的名称、 版本号、 开 发者等。 Further, the word library developer usually develops the word library in combination with the actual application scenario (ie, the corresponding application). Therefore, the word library developer can match the word library with the application after developing the word library. The relationship is stored as part of the information in the word library. The correspondence between the word library and the application program may be represented by the identification information of the application corresponding to the word library, that is, the information of the word library includes the identification information of the application corresponding to the word library. For example, the application corresponding to the name-based word library may be a phone book software, and the information of the name-type word includes the identification information of the phone book software, such as the name, developer, version number, etc. of the phone book software; The application corresponding to the class vocabulary may be computer commodity information software, and the information of the computer type vocabulary is The identification information including the computer product information software, such as the name, developer, version number, etc. of the computer product information software; the application corresponding to the place name type word library may be a map type software, and the information of the place name type word library is included in the information Includes information about the map software, such as the name of the map software, developer, version number, and so on. In addition to the identification information of the application corresponding to the word library, the information of the word library also includes the identification information of the word library, such as the name of the word library, the version number, the developer, and the like.
基于此, 字词库调整设备可以根据各字词库的信息, 预先生成关联表格。 具体的, 字词库调整设备获取各字词库的信息, 然后根据各自词库的信息中 各字词库的标识信息和各字词库对应的应用程序的标识信息,生成关联表格。 更为具体的, 字词库调整设备可以直接将各字词库的标识信息和各字词库对 应应用程序的标识信息以一定方式进行映射, 然后存储到关联表格中。  Based on this, the word library adjustment device can generate an association table in advance based on the information of each word dictionary. Specifically, the word library adjustment device acquires information of each word dictionary, and then generates an association table according to the identification information of each word dictionary in the information of the respective thesaurus and the identification information of the application corresponding to each word library. More specifically, the word library adjustment device can directly map the identification information of each word dictionary and the identification information of each word library corresponding application to a certain manner, and then store it in the association table.
进一步, 字词库调整设备根据第一应用程序相关的字词库的标识信息, 设置第一应用程序相关的字词库的优先级高于输入法字词库中其他字词库的 优先级的过程可以为:  Further, the word library adjusting device sets, according to the identifier information of the word library related to the first application, that the priority of the first application-related word library is higher than the priority of other word banks in the input method word library. The process can be:
字词库调整设备判断第一应用程序相关的字词库是否存在于输入法字词 库中; 如果判断结果为第一应用程序相关的字词库存在于所述输入法字词库 中, 则字词库调整设备直接设置第一应用程序相关的字词库的优先级高于输 入法字词库中其他字词库的优先级; 如果判断结果为第一应用程序相关的字 词库不存在于输入法字词库中, 则字词库调整设备将第一应用程序相关的字 词库加入输入法字词库中, 并设置第一应用程序相关的字词库的优先级高于 输入法字词库中其他字词库的优先级。  The word library adjustment device determines whether the word library associated with the first application exists in the input method word library; if the judgment result is that the word inventory related to the first application is in the input method word library, the word The lexicon adjustment device directly sets the priority of the first application-related word library to be higher than the priority of other word banks in the input method word bank; if the judgment result is that the first application-related word library does not exist in In the input method word library, the word library adjustment device adds the first application-related word library to the input method word library, and sets the first application-related word library to have higher priority than the input method word. The priority of other termbases in the thesaurus.
进一步, 设置第一应用程序相关的字词库的优先级高于输入法字词库中 其他字词库的优先级的一种实施方式包括: 在第一应用程序被用户作为当前 应用场景进行字符输入操作期间, 设置第一应用程序相关的字词库的优先级 高于输入法字词库中其他字词库的优先级。 这样可以保证输入法字词库中优 先级最高的字词库随着应用场景的更换而更换, 有利于提高用户在以任何应 用程序作为当前应用场景进行字符输入操作时的输入效率。  Further, an implementation manner of setting a first application-related word library with a higher priority than other word banks in the input method word library includes: performing characters in the first application by the user as the current application scenario During the input operation, the first application-related word library is set to have a higher priority than the other word banks in the input method word bank. This ensures that the highest-priority word library in the input method word bank is replaced with the replacement of the application scenario, which is beneficial to improve the input efficiency of the user when performing character input operations with any application as the current application scenario.
可选的, 字词库调整设备将第一应用程序相关的字词库加入输入法字词 库中之前, 可以根据第一应用程序相关的字词库的标识信息, 从预设字词信 息库中获取第一应用程序相关的字词库。 其中, 字词库调整设备主要根据第 一应用程序相关的字词库的名称、 开发者、 版本号等信息从字词信息库中获 取第一应用程序相关的字词库。 Optionally, before the word library adjustment device adds the first application-related word library to the input method word library, the preset word information database may be obtained according to the identifier information of the first application-related word library. Get the first application related word library. Among them, the word library adjustment device is mainly based on the Information such as the name, developer, version number, etc. of an application-related word library obtains the first application-related word library from the word information library.
其中, 字词信息库是预先设定的, 例如可以包括本地存储的各种字词库 和 /或网络上的各种字词库。 其中, 本地存储的各种字词库或网络上的各种字 词库可以是由输入法设计方预先根据各种定义将字词进行分类而形成的各种 字词库, 例如姓名类、 计算机类、 地名类、 体育类、 音乐类等。 在本实施例 中, 本地存储的各种字词库或网络上的各种字词库还可以是由各种应用场景 下需要输入字词的软件设计方分别提供与其应用软件相关的字词库。  The word information database is preset, and may include, for example, various word banks stored locally and/or various word banks on the network. The various word banks stored locally or the various word banks on the network may be various word banks formed by the input method designer to classify the words according to various definitions in advance, such as a name class, a computer. Class, place name class, sports class, music class, etc. In this embodiment, the various word banks stored locally or the various word banks on the network may also be provided by a software designer who needs to input words in various application scenarios to respectively provide a word dictionary related to the application software. .
在此说明, 输入法不能直接使用字词信息库中存储的字词库。 如果输入 法需要使用字词信息库中的某个字词库, 需要先将该字词库加入到输入法字 词库中然后再使用。  Here, the input method cannot directly use the word library stored in the word information database. If the input method requires a word library in the word library, you need to add the word library to the input method word library before using it.
进一步, 在关联表格中存储的各字词库的标识信息除了包括各字词库的 名称、 开发者、 版本号等之外, 还可以包括各字词库的识别码。 各字词库的 识别码是在各字词库的标识信息被加入到关联表格中时, 字词库调整设备为 各字词库分配的, 也可以唯一标识各字词库, 作为各字词库的标识信息中的 一部分。 这样, 字词库调整设备获取的第一应用程序相关的字词库的标识信 息中还可以包括第一应用程序相关的字词库的识别码。 基于此, 字词库调整 设备可以根据第一应用程序相关的字词库的识别码判断第一应用程序相关的 字词库是否已经存在于输入法字词库中。 具体的, 字词库调整设备可以判断 第一应用程序相关的字词库的识别码是否已经存在于输入法字词库对应的识 别码列表中。 如果判断结果为第一应用程序相关的字词库的识别码不存在于 识别码列表中, 字词库调整设备判定第一应用程序相关的字词库不存在于输 入法字词库中; 如果判断结果为第一应用程序相关的字词库的识别码存在于 识别码列表中, 则字词库调整设备判定第一应用程序相关的字词库存在于输 入法字词库中。  Further, the identification information of each of the word banks stored in the association table may include an identification code of each word library in addition to the name, developer, version number, and the like of each word library. The identifier of each word database is assigned to each word list when the identification information of each word library is added to the association table, and the word library can be uniquely identified as each word. Part of the library's identification information. In this way, the identifier information of the first application-related word library acquired by the word library adjustment device may further include an identifier of the first application-related word library. Based on this, the word library adjustment device can determine, according to the identifier of the word library associated with the first application, whether the word library associated with the first application already exists in the input method word library. Specifically, the word library adjustment device can determine whether the identifier of the first application related word library already exists in the identification code list corresponding to the input method word library. If the result of the determination is that the identifier of the first application-related word library does not exist in the identifier list, the word library adjustment device determines that the first application-related word library does not exist in the input method word library; The result of the judgment is that the identifier of the first application-related word library exists in the identifier list, and the word library adjustment device determines that the word inventory related to the first application is in the input method word library.
其中, 输入法字词库对应的识别码列表中存储有输入法字词库中的各字 词库的识别码。  The identifier of the word dictionary in the input method word bank is stored in the identifier list corresponding to the input method word bank.
进一步, 如果第一应用程序相关的字词库的识别码不存在于识别码列表 中, 则字词库调整设备除了将第一应用程序相关的字词库加入输入法字词库 中之外,还需要将第一应用程序相关的字词库的识别码加入到识别码列表中, 用以标识第一应用程序相关的字词库已经被加入到输入法字词库中。 Further, if the identifier of the first application-related word library does not exist in the identifier list, the word library adjustment device adds the word library associated with the first application to the input method word library. It is also necessary to add the identifier of the first application related word library to the identification code list. The word library associated with identifying the first application has been added to the input method word library.
在上述调整输入法字词库的实施方式中, 字词库调整设备通过识别码和 识别码列表判断第一应用程序相关的字词库是否已经存在于输入法字词库 中, 并在第一应用程序相关的字词库已经存在于输入法字词库中的情况下, 直接调整输入法字词库中各字词库的优先级, 而不去执行将第一应用程序相 关的字词库加入输入法字词库中的操作, 具有调整效率高, 节约资源的优势。  In the above implementation manner of adjusting the input method word library, the word library adjusting device determines, by using the identification code and the identification code list, whether the word library related to the first application program already exists in the input method word library, and is in the first If the application-related word library already exists in the input method word library, directly adjust the priority of each word library in the input method word library, instead of executing the word library related to the first application. The operation of adding the input method word library has the advantages of high adjustment efficiency and resource saving.
图 2为本发明另一实施例提供的字词库调整方法的流程图。如图 2所示, 本实施例的方法包括:  FIG. 2 is a flowchart of a method for adjusting a word dictionary according to another embodiment of the present invention. As shown in FIG. 2, the method in this embodiment includes:
步骤 201、 获取第一应用程序的标识信息, 第一应用程序为用户当前作 为应用场景进行字符输入操作的应用程序。  Step 201: Obtain identification information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario.
其中, 关于执行主体以及用户当前作为应用场景进行字符输入操作的应 用程序的描述可参见步骤 101的描述, 在此不再赘述。  For a description of the execution of the application and the application of the character input operation by the user as the application scenario, refer to the description of step 101, and details are not described herein.
用户启动一个新的应用程序表示进入了一个新的应用场景。 在第一应用 程序的启动过程中, 第一应用程序所在的操作系统会为第一应用程序分配一 个在该操作系统内唯一的识别码。 基于此, 本实施例的字词库调整设备可以 将该识别码作为操作系统提供的 API的入口参数, 通过调用该 API使操作系 统执行该 API并返回第一应用程序的标识信息。 字词库调整设备可以记录第 一应用程序的识别码和第一应用程序的标识信息等信息; 其中, 这些信息可 以以链表的方式进行记录。 具体的, 上述操作系统会记录当前正在运行的应 用程序的相关信息(例如标识信息和识别码等), 每运行一个新的应用程序, 就会在链表中添加一项新的信息 (即新的应用程序的相关信息) , 每结束一 个应用程序, 则会从链表中删除与之对应的信息。 因为, 当前正在运行的应 用程序 (只会有一个) 即为第一应用程序, 所以最新加入的信息指的是第一 应用程序的相关信息。  The user launches a new application to enter a new application scenario. During the startup of the first application, the operating system on which the first application is located assigns the first application a unique identifier within the operating system. Based on this, the word library adjusting device of the embodiment may use the identifier as an entry parameter of an API provided by the operating system, and invoke the API to cause the operating system to execute the API and return the identification information of the first application. The word library adjustment device can record information such as the identification code of the first application and the identification information of the first application; wherein the information can be recorded in a linked list. Specifically, the above operating system records information about the currently running application (such as identification information and identification code, etc.), and each time a new application is run, a new information (ie, new) is added to the linked list. Information about the application), each time an application is finished, the corresponding information is deleted from the linked list. Because the currently running application (only one) is the first application, the newly added information refers to the information about the first application.
步骤 202、 字词库调整设备的输入法接收用户输入的字符, 字词库调整 设备识别出用户输入字符的操作。  Step 202: The input method of the word library adjustment device receives the character input by the user, and the word library adjustment device recognizes the operation of inputting the character by the user.
用户进入一个新的应用场景后, 通过调用输入法进行字词输入。 例如, 用户可以通过键盘、 显示器等方式进行字词输入, 相应的, 敲击键盘或触摸 显示器等操作相当于发出了调用输入法的指令。  After the user enters a new application scenario, the word input is made by calling the input method. For example, the user can input words through a keyboard, a display, etc., and correspondingly, an operation such as tapping a keyboard or touching a display is equivalent to issuing an instruction to invoke an input method.
步骤 203、 根据第一应用程序的标识信息在预设的关联表格中进行查找, 获取第一应用程序相关的字词库的标识信息。 Step 203: Perform a search in a preset association table according to the identification information of the first application, Get identification information of the first application-related word library.
其中, 关于第一应用程序相关的字词库、 第一应用程序相关的字词库的 标识信息以及预设的关联表格, 可参见前述实施例的描述, 在此不再赘述。  For the description of the foregoing embodiment, reference may be made to the description of the foregoing embodiment, and the description of the foregoing embodiment is omitted.
在本实施例中, 字词库调整设备在用户输入字词的触发下, 从信息链表 中获取最新的信息, 即第一应用程序的标识信息, 然后在本地存储的关联表 格中进行查找, 获取第一应用程序相关的字词库的标识信息。  In this embodiment, the word library adjustment device obtains the latest information, that is, the identification information of the first application, from the information linked list under the trigger of the user input word, and then searches and obtains in the locally stored association table. Identification information of the first application-related word library.
举例说明, 如果第一应用程序为电话簿类软件时, 则第一应用程序相关 的字词库可以为姓名类字词库, 该姓名类字词库的标识信息例如可以包括姓 名类字词库的名称, 还可以包括姓名类字词库的开发者、 版本号和 /或识别码 等; 如果第一应用程序为计算机商品信息类软件, 则第一应用程序相关的字 词库为计算机类字词库, 则该字词库的标识信息可以包括该计算机类字词库 的名称, 还可以包括该计算机类字词库的开发者、 版本号和 /或识别码等; 如 果第一应用程序为地图类软件, 则第一应用程序相关的字词库为地名类字词 库, 则该地名类字词库的标识信息可以包括该地名类字词库的名称, 还可以 包括该地名类字词库的开发者、 版本号和 /或识别码等。  For example, if the first application is a phone book type software, the first application related word library may be a name class word library, and the name class word library identification information may include, for example, a name class word library. The name, may also include the developer of the name-type word library, the version number and/or the identification code, etc.; if the first application is a computer product information type software, the first application-related word library is a computer word The lexicon, the identification information of the vocabulary may include the name of the computer type vocabulary, and may also include the developer, version number, and/or identification code of the computer vocabulary; if the first application is The map type software, wherein the first application related word library is a place name type word library, the identification information of the place name type word library may include the name of the place name type word library, and may also include the place name type word The developer, version number, and/or identifier of the library.
步骤 204、 根据第一应用程序相关的字词库的标识信息, 设置第一应用 程序相关的字词库的优先级高于输入法字词库中其他字词库的优先级。  Step 204: Set, according to the identifier information of the word library related to the first application, that the priority of the first application-related word library is higher than the priority of other word banks in the input method word library.
具体的, 字词库调整设备可以判断第一应用程序相关的字词库是否存在 于输入法字词库中; 如果判断结果为不存在, 则根据第一应用程序相关的字 词库的标识信息从字词信息库中获取第一应用程序相关的字词库, 然后将第 一应用程序相关的字词库加入到输入法字词库中, 并设置第一应用程序相关 的字词库的优先级高于输入法字词库中其他字词库的优先级; 如果判断结果 为存在, 则直接设置第一应用程序相关的字词库的优先级高于输入法字词库 中其他字词库的优先级。 其中, 对于存在多个第一应用程序相关的字词库的 情况, 可以按照获取第一应用程序相关的字词库的先后顺序为各个第一应用 程序相关的字词库设置优先级, 但不限于此, 只要保证各第一应用程序相关 的字词库的优先级均高于输入法字词库中其他字词库的优先级即可。  Specifically, the word library adjusting device can determine whether the word library related to the first application exists in the input method word library; if the judgment result is non-existent, the identification information of the word library according to the first application program Obtaining the first application-related word library from the word information library, and then adding the first application-related word library to the input method word library, and setting the first application-related word library priority The level is higher than the priority of other words in the input method word bank; if the judgment result is existed, the priority of the first application-related word library is set higher than other words in the input method word library. Priority. Wherein, in the case that there are multiple first application-related word vocabularies, the priority of each first application-related word vocabulary may be set according to the order of acquiring the first application-related word vocabulary, but not To be limited to this, it is only necessary to ensure that the priority of the word library associated with each first application is higher than the priority of other word banks in the input method word bank.
可选的, 如果第一应用程序相关的字词库的标识信息包括第一应用程序 相关的字词库的识别码, 则字词库调整设备可以先判断第一应用程序相关的 字词库的识别码是否存在于识别码列表中; 如果判断结果为存在, 则直接设 置第一应用程序相关的字词库的优先级高于其他字词库的优先级; 如果判断 结果为不存在, 则根据第一应用程序相关的字词库的标识信息从字词信息库 中获取第一应用程序相关的字词库, 然后将第一应用程序相关的字词库加入 输入法字词库中, 并设置第一应用程序相关的字词库的优先级高于输入法字 词库中其他字词库的优先级, 并将第一应用程序相关的字词库的识别码加入 到识别码列表中。 Optionally, if the identifier information of the first application-related word library includes the identifier of the first application-related word library, the word library adjusting device may first determine the first application-related word library. Whether the identification code exists in the identification code list; if the judgment result is present, it is directly set The first application-related word library has a higher priority than the other word banks; if the judgment result is non-existent, the identification information of the word library related to the first application is from the word information database. Obtaining the first application-related word library, and then adding the first application-related word library to the input method word library, and setting the first application-related word library to have higher priority than the input method word The priority of other word banks in the library, and the identifier of the first application-related word library is added to the list of identification codes.
优选的, 字词库调整设备可以在第一应用程序被用户作为当前应用场景 进行字符输入操作期间, 设置第一应用程序相关的字词库的优先级高于其他 字词库的优先级。  Preferably, the word library adjustment device may set the priority of the first application-related word library to be higher than the priority of other word banks during the character input operation by the user as the current application scene.
其中, 字词库调整设备通过设置第一应用程序相关的字词库的优先级高 于其他字词库的优先级, 在用户输入字符时, 字词库调整设备的输入法会优 先在第一应用程序相关的字词库中进行查找, 用户期望的字词在第一个显示 页面上出现的概率会艮高, 进而可以极大的提高用户获取输入的字符对应的 字词的效率。  Wherein, the word library adjustment device sets the priority of the first application-related word library to be higher than the priority of other word banks, and when the user inputs characters, the input method of the word library adjustment device takes precedence in the first Searching in the application-related word library, the probability that the user's desired words appear on the first display page will be high, which can greatly improve the efficiency of the user's access to the words corresponding to the input characters.
步骤 205、 字词库调整设备的输入法根据调整后的输入法字词库, 获取 与用户输入的字符对应的字词并显示。  Step 205: The input method of the word library adjustment device acquires and displays the word corresponding to the character input by the user according to the adjusted input method word library.
例如, 字词库调整设备的输入法可以像现有技术那样在调整后的输入法 字词库中查找与用户输入的字符对应的字词, 然后对用户输入的字符对应的 多个字词按照概率大小进行排列, 之后按照排序结果将用户输入的字符对应 的多个字词显示给用户, 以供用户进行选择。  For example, the input method of the word library adjustment device can search for the word corresponding to the character input by the user in the adjusted input method word library as in the prior art, and then follow the multiple words corresponding to the character input by the user. The probability sizes are arranged, and then a plurality of words corresponding to the characters input by the user are displayed to the user according to the sorting result for the user to select.
在本实施例中, 字词库调整设备可以通过获取应用程序的标识信息, 识 别出当前的应用程序或当前的应用场景, 然后获取与当前应用程序相关的字 词库的标识信息, 并根据获取的相关字词库的标识信息自动进行输入法字词 库的调整, 提高了词库调整效率, 当用户在多种应用场景下进行字词输入时, 不需要用户手动调整输入法字词库, 降低了输入法字词库的调整对输入效率 的影响, 进一步提高了输入效率。  In this embodiment, the word library adjustment device may identify the current application or the current application scenario by acquiring the identification information of the application, and then obtain the identification information of the word library related to the current application, and obtain the identification information according to the current application. The identification information of the related word library automatically adjusts the input method word library, which improves the efficiency of the thesaurus adjustment. When the user inputs words in various application scenarios, the user does not need to manually adjust the input method word library. It reduces the influence of the adjustment of the input method word bank on the input efficiency, and further improves the input efficiency.
进一步, 在上述各实施例的字词库调整设备允许对关联表格进行更新操 作。 例如, 随着新的应用程序或新的字词库的出现, 本发明各实施例中的关 联表格的内容可以不断的丰富。 又例如, 随着一些应用程序或字词库的退出 使用, 本发明各实施例的关联表格允许将与退出的应用程序或字词库的信息 删除, 以便于提高存储空间的利用率。 具体来说, 本实施例的字词库调整设 备可以通过其发送器向网络服务器发送获取关联表格版本号的信息, 字词库 调整设备通过其接收器接收网络服务器返回的最新关联表格版本号; 字词库 调整设备的关联表格更新模块对比最新关联表格版本号与本地关联表格的版 本号, 确定是否需要更新本地的关联表格; 如果否, 则结束操作; 反之, 则 字词库调整设备通过其发送器向网络服务器发送获取关联表格的请求; 字词 库调整设备通过其接收器接收网络服务器返回的最新版本的关联表格, 然后 字词库调整设备的关联表格更新模块更新本地的关联表格。 Further, the word library adjustment device in each of the above embodiments allows an update operation to be performed on the associated table. For example, with the advent of new applications or new word libraries, the content of the associated forms in various embodiments of the present invention can be continuously enriched. As another example, as some applications or word libraries are withdrawn from use, the associated forms of embodiments of the present invention allow for information with the exiting application or word library. Delete, in order to improve the utilization of storage space. Specifically, the word library adjusting device of the embodiment may send, by using the sender, information about obtaining the version number of the associated table to the network server, and the word library adjusting device receives the latest associated table version number returned by the network server through the receiver; The associated table update module of the word library adjustment device compares the latest association table version number with the version number of the local association table, determines whether it is necessary to update the local association table; if not, ends the operation; otherwise, the word library adjustment device passes the The sender sends a request for obtaining the association table to the web server; the word library adjustment device receives the latest version of the association table returned by the web server through its receiver, and then the associated table update module of the word library adjustment device updates the local association table.
在此说明, 在上述各字词库调整方法实施例中, 字词库调整设备在根据 第一应用程序的标识信息, 在预设的关联表格中进行查找, 获取第一应用程 序相关的字词库的标识信息之前, 均可以通过上述关联表格的更新流程对本 地的关联表格进行更新, 然后再根据更新后的关联表格进行后续操作, 这样 可以保证获取的第一应用程序相关的字词库的标识信息的准确性, 进而保证 用户能够成功获取到相应的字词。 举例说明, 假设第一应用程序的版本进行 发生了变化, 但是由于关联表格未进行更新, 这样有可能通过词义分析方法 为更新后的第一应用程序获取到更新前相关的字词库的标识信息, 而该字词 库的标识信息并不是最佳的; 而通过对关联表格进行更新可以为更新后的第 一应用程序获取到最佳的字词库的标识信息。  In the embodiment of the foregoing word bank adjustment method, the word library adjustment device performs a search in a preset association table according to the identification information of the first application, and acquires the words related to the first application. Before the identification information of the library, the local associated table may be updated through the update process of the associated table, and then the subsequent operation is performed according to the updated associated table, so as to ensure the acquired first application-related word library. Identify the accuracy of the information, and thus ensure that the user can successfully obtain the corresponding words. For example, it is assumed that the version of the first application has changed, but since the associated table is not updated, it is possible to obtain the identification information of the related word library for the updated first application by the word meaning analysis method. The identification information of the word library is not optimal; and the update of the associated table can obtain the identification information of the best word library for the updated first application.
下面以接收用户在手机的电话簿应用程序中输入的字符的操作过程为例 说明本发明一种优选实施方式的操作流程。 在本实施例中, 以手机中的词库 调整模块为执行主体进行说明。 其中, 本实施例的词库调整模块具有获取应 用程序的名称、 根据名称获取与该应用程序相关的字词库的名称及调整输入 法字词库的功能。 具体操作流程如下:  The operation flow of a preferred embodiment of the present invention will be described below by taking an operation procedure of receiving characters input by a user in a phone book application of a mobile phone as an example. In this embodiment, the vocabulary adjustment module in the mobile phone is described as an execution subject. The lexicon adjustment module of the embodiment has the function of acquiring the name of the application, obtaining the name of the word library related to the application according to the name, and adjusting the input word dictionary. The specific operation process is as follows:
当用户进入电话薄应用程序(名称为 mobilePhoneBook )中时, 操作系统 中将会出现一个名称为 mobilePhoneBook、 识别码为 123456的进程对象。 词 库调整模块将识别码 123456作为操作系统提供的 API的入口参数, 调用该 API 使得操作系统执行该 API 并返回电话薄应用程序的名称, 即 mobilePhoneBook。 词库调整模块将名称 mobilePhoneBook和识别码 123456 这两个信息记录到信息链表中, 以备在获取相关字词库的标识信息时使用。 当接收到用户在电话薄的 "添加新用户" 功能项中启用拼音输入法输入 新用户姓名的拼音时, 例如 "W" , 将激活词库调整模块开始执行相应操作。 首先词库调整模块从信息链表中获取用户当前所处的场景信息, 即信息链表 中最新加入的应用程序名称 mobilePhoneBook;然后根据该名称在拼音输入法 的本地存储的关联表格中查找是否存在名称为 mobilePhoneBook的应用程序。 如果存在, 词库调整模块根据查找到的名称为 mobilePhoneBook的应用程序 相关的字词库的标识信息调整输入法字词库。 如果不存在, 词库调整模块对 mobilePhoneBook进行词义分析, 例如从 mobilePhneBook可以提取出 "phone book" 词组, 然后根据 "phone book" 在关联表格中查找是否存在关键词为 phone book的字词库的标识信息, 如找到则根据关键词为 phone book的字词 库的标识信息调整输入法字词库, 否则结束词库调整过程, 保持原输入法词 库不变。 When the user enters the phonebook application (named mobilePhoneBook), a process object named mobilePhoneBook with ID code 123456 will appear in the operating system. The thesaurus adjustment module uses the identifier 123456 as an entry parameter of the API provided by the operating system, and invokes the API to cause the operating system to execute the API and return the name of the phonebook application, ie mobilePhoneBook. The thesaurus adjustment module records the two information, the name mobilePhoneBook and the identification code 123456, into the information linked list for use in obtaining the identification information of the related word library. When receiving the pinyin that the user has enabled the Pinyin input method to enter the new user name in the "Add New User" function item of the phonebook, for example, "W", the thesaurus adjustment module will be activated to start the corresponding operation. First, the thesaurus adjustment module obtains the scene information that the user is currently located from the information linked list, that is, the newly added application name mobilePhoneBook in the information linked list; and then searches for the name of the local stored association table in the pinyin input method according to the name. mobilePhoneBook app. If present, the thesaurus adjustment module adjusts the input method wordbase based on the identified identification information of the application-related word library for the mobilePhoneBook. If it does not exist, the thesaurus adjustment module performs a semantic analysis on the mobilePhoneBook. For example, the mobile phone can extract the "phone book" phrase from the mobilePhneBook, and then find the identifier of the word library with the keyword phone book in the associated table according to the "phone book". Information, if found, adjust the input method word library according to the keyword information of the word book of the phone book, otherwise the terminology adjustment process is ended, and the original input method lexicon is kept unchanged.
其中, 如果名称为 mobilePhoneBook的应用程序相关的字词库或关键词 为 phone book的字词库不存在于输入法字词库中, 词库调整模块可以将名称 为 mobilePhoneBook的应用程序相关的字词库或者关键词为 phone book的字 词库加入到输入法字词库中, 并设置名称为 mobilePhoneBook的应用程序相 关的字词库或关键词为 phone book的字词库的优先级高于其他字词库的优先 级。如果名称为 mobilePhoneBook的应用程序相关的字词库或关键词为 phone book的字词库已经存在于输入法字词库中, 词库调整模块可以重新设置输入 法字词库中各字词库的优先级, 设置名称为 mobilePhoneBook的应用程序相 关的字词库或关键词为 phone book的字词库的优先级高于其他字词库的优先 级。这样在进行字词查找时,词库调整模块会优先在名称为 mobilePhoneBook 的应用程序相关的字词库或关键词为 phone book的字词库中进行查找。  Wherein, if the application-related word library whose name is mobilePhoneBook or the word library whose keyword is phone book does not exist in the input method word library, the thesaurus adjustment module can name the application related to mobilePhoneBook The library or the word library with the keyword phone book is added to the input method word library, and the word library with the name of mobilePhoneBook or the word library with the keyword phone book has higher priority than other words. The priority of the thesaurus. If the application-related word library whose name is mobilePhoneBook or the word library whose keyword is phone book already exists in the input method word library, the thesaurus adjustment module can reset the word dictionary in the input method word library. Priority, set the application-related word library whose name is mobilePhoneBook or the word library whose keyword is phone book has higher priority than other word banks. In this way, when performing word search, the thesaurus adjustment module will first look in the word library related to the application named mobilePhoneBook or the word library whose keyword is phone book.
在本示例中, 名称为 mobilePhoneBook的应用程序对应的字词库以姓名 关的字词的优先级则被降低。  In this example, the priority of the word whose name is corresponding to the word library of the application named mobilePhoneBook is lowered.
最后由拼音输入法在新的词库中查找与用户输入拼音编码 "w" 对应的 字词, 例如 "王、 吴、 魏、 韦、 邬等等" , 由于新的词库以姓名为主, 则能 快速显示出与拼音 "w"更有关联性的姓名字词,去除了无关字词,例如 "我、 为、 问、 未、 玩等等" 。 用户选择对应的字词后, 则完成了一次输入, 当用 户继续进行输入时, 由于输入法字词库已经替换, 不再重复进行上述的字词 库调整过程。 Finally, the pinyin input method finds the words corresponding to the user input pinyin code "w" in the new thesaurus, such as "Wang, Wu, Wei, Wei, Yi, etc.", because the new thesaurus is mainly named. It can quickly display the name words more relevant to the pinyin "w", removing irrelevant words such as "I, for, ask, not, play, etc." After the user selects the corresponding word, the input is completed. When the user continues to input, since the input method word library has been replaced, the above-mentioned word library adjustment process is not repeated.
上面以手机中电话簿应用程序中进行字词输入, 并且以电话簿应用程序 的标识信息为电话簿应用程序的名称为例进行了说明, 但不限于此。 本发明 各实施例的技术方案可以应用到手机进行字词输入的各种场景中, 例如手机 中进行短信编辑的应用场景。 本发明各实施例的技术方案并不限于应用到手 机中, 还可以应用到 ipad、 电脑等各种可以进行字词输入的应用场景中。 在 不同应用场景中, 其区别仅在于使用的字词库不同, 对字词库的调整流程均 相同, 可参见上述实施例的描述。  The above is a word input in the phone book application in the mobile phone, and the name of the phone book application is described by taking the identification information of the phone book application as an example, but is not limited thereto. The technical solutions of the embodiments of the present invention can be applied to various scenarios in which a mobile phone performs word input, such as an application scenario in which a short message is edited in a mobile phone. The technical solutions of the embodiments of the present invention are not limited to the application to the mobile phone, and can also be applied to various application scenarios such as ipads and computers that can perform word input. In different application scenarios, the difference is only that the word library used is different, and the process of adjusting the word library is the same. See the description of the above embodiment.
图 3为本发明一实施例提供的字词库调整设备的结构示意图。 如图 3所 示, 本实施例的设备包括: 第一获取模块 31、 第二获取模块 32和调整模块 33。  FIG. 3 is a schematic structural diagram of a word bank adjustment apparatus according to an embodiment of the present invention. As shown in FIG. 3, the device in this embodiment includes: a first obtaining module 31, a second obtaining module 32, and an adjusting module 33.
其中, 第一获取模块 31 , 用于获取第一应用程序的标识信息, 所述第一 应用程序为用户当前作为应用场景进行字符输入操作的应用程序。 第二获取 模块 32, 与第一获取模块 31连接, 用于根据第一获取模块 31获取的第一应 用程序的标识信息在预设的关联表格中进行查找, 获取第一应用程序相关的 字词库的标识信息, 所述第一应用程序相关的字词库包括在第一应用程序下 使用频率高于预设频率门限的字词, 所述关联表格中存储有应用程序与所述 应用程序相关的字词库的对应关系。 调整模块 33 , 与第二获取模块 32连接, 用于根据第二获取模块 32获取的第一应用程序相关的字词库的标识信息,设 置第一应用程序相关的字词库的优先级高于输入法字词库中其他字词库的优 先级。  The first obtaining module 31 is configured to obtain identifier information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario. The second obtaining module 32 is connected to the first acquiring module 31, and configured to perform searching according to the identifier information of the first application acquired by the first acquiring module 31 in a preset association table, and acquire the words related to the first application. The identifier information of the library, the word library related to the first application includes a word whose frequency is higher than a preset frequency threshold under the first application, where the application file is associated with the application The correspondence of the word library. The adjustment module 33 is connected to the second acquisition module 32, and is configured to set the priority of the first application-related word library to be higher than the identifier information of the first application-related word library acquired by the second acquisition module 32. Enter the priority of other word banks in the French word library.
本实施例的字词库调整设备的各功能模块可用于执行图 1所示字词库调 整方法的流程, 其具体实现方式不再赘述, 详见方法实施例的描述。  The function modules of the word library adjustment device of the present embodiment can be used to execute the flow of the word library adjustment method shown in FIG. 1. The specific implementation manner is not described here. For details, refer to the description of the method embodiment.
在此说明, 本实施例的字词库调整设备除了具有上述功能模块之外, 还 包括处理器、 存储介质、 各种扩展卡、 连接线、 电源、 输入装置(例如键盘、 鼠标等)等部件。 为便于图示, 附图中未示出上述部件。  It is to be noted that the word library adjusting device of the embodiment includes a processor, a storage medium, various expansion cards, a connecting line, a power source, and an input device (such as a keyboard, a mouse, etc.) in addition to the above functional modules. . For ease of illustration, the above components are not shown in the drawings.
本实施例的字词库调整设备, 获取用户当前作为应用场景进行字符输入 操作的应用程序的标识信息, 并基于获取的应用程序的标识信息在预设的关 联表格中进行查找, 获取与该应用程序相关的字词库的标识信息, 然后根据 该字词库的标识信息, 设置该字词库的标识信息所标识的字词库的优先级高 于输入法字词库中其他字词库的优先级, 实现了自动识别用户当前作为应用 场景进行字符输入操作的应用程序并自动根据当前应用场景调整输入法字词 库, 使得用户不用在手动调整输入法字词库, 提高了输出法字词库的调整效 率。 尤其是在不同应用程序之间切换时, 字词库调整设备能通过自动进行输 入法字词库的调整, 提高了词库调整效率, 降低了词库调整对输入效率的影 响, 进一步提高了输入效率。 The word library adjustment device of the embodiment obtains the identification information of the application program that the user currently performs the character input operation as the application scenario, and searches for the application in the preset association table based on the acquired identification information of the application program, and acquires the application. Identification information of the program-related word library, and then The identification information of the word library, the priority of the word library identified by the identifier information of the word dictionary is higher than the priority of other word banks in the input method word bank, and the automatic identification of the current user as the application scenario is realized. The application for character input operation automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, thereby improving the adjustment efficiency of the output method word library. Especially when switching between different applications, the word library adjustment device can automatically adjust the input method word library, improve the efficiency of the thesaurus adjustment, reduce the influence of the thesaurus adjustment on the input efficiency, and further improve the input. effectiveness.
图 4为本发明另一实施例提供的字词库调整设备的结构示意图。 本实施 例可基于图 3所示实施例实现, 如图 4所示, 本实施例的第二获取模块 32包 括: 第一判断单元 321和第一获取单元 322。  FIG. 4 is a schematic structural diagram of a word library adjustment apparatus according to another embodiment of the present invention. This embodiment can be implemented based on the embodiment shown in FIG. 3. As shown in FIG. 4, the second obtaining module 32 of this embodiment includes: a first determining unit 321 and a first obtaining unit 322.
其中, 第一判断单元 321 , 与第一获取模块 31连接, 用于将第一获取模 块 31 获取的第一应用程序的标识信息与关联表格中各应用程序的标识信息 进行比较, 判断第一应用程序的标识信息是否存在于所述关联表格中。  The first determining unit 321 is connected to the first obtaining module 31, and is configured to compare the identifier information of the first application acquired by the first acquiring module 31 with the identifier information of each application in the associated table, and determine the first application. Whether the identification information of the program exists in the associated table.
第一获取单元 322, 与第一判断单元 321连接, 用于在第一判断单元 321 的判断结果为是时,获取与第一应用程序具有对应关系的字词库的标识信息。  The first obtaining unit 322 is connected to the first determining unit 321 for obtaining the identification information of the word library having the corresponding relationship with the first application when the determination result of the first determining unit 321 is YES.
进一步, 第二获取模块 32还包括: 第二获取单元 323和第三获取单元 Further, the second obtaining module 32 further includes: a second obtaining unit 323 and a third acquiring unit
324。 324.
其中, 第二获取单元 323 , 与第一判断单元 321 连接, 用于在第一判断 单元 321 的判断结果为否时, 将第一应用程序的标识信息进行拆分, 获取能 够标识第一应用程序的特征的分标识信息。  The second obtaining unit 323 is connected to the first determining unit 321 and configured to split the identification information of the first application when the determining result of the first determining unit 321 is negative, to obtain the first application that can identify the first application. The sub-identification information of the feature.
第三获取单元 324, 与第二获取单元 323连接, 用于将第二获取单元 323 获取的分标识信息与关联表格中各字词库的标识信息进行比较, 获取与分标 识信息具有对应关系的字词库的标识信息。  The third obtaining unit 324 is connected to the second obtaining unit 323, and is configured to compare the sub-identification information acquired by the second obtaining unit 323 with the identification information of each word dictionary in the association table, and obtain a correspondence relationship with the sub-identification information. Identification information for the word library.
其中, 关联表格中各字词库的标识信息还包括: 各字词库对应的关键词。 其中, 第一应用程序的标识信息包括下述信息中的至少其中之一: 第一 应用程序的名称、 第一应用程序的名称和开发者、 第一应用程序的名称和版 本号、 第一应用程序的名称、 开发者和版本号。  The identification information of each word dictionary in the association table further includes: keywords corresponding to each word dictionary. The identification information of the first application includes at least one of the following information: a name of the first application, a name of the first application, a developer, a name and a version number of the first application, and a first application. The name, developer, and version number of the program.
其中, 关联表格中各应用程序的标识信息包括下述信息中的至少其中之 一: 各应用程序的名称、 各应用程序的名称和开发者、 各应用程序的名称和 版本号、 各应用程序的名称、 开发者和版本号。 进一步, 本实施例的调整模块 33 包括: 第二判断单元 331 和调整单元The identification information of each application in the associated table includes at least one of the following information: a name of each application, a name of each application and a developer, a name and a version number of each application, and an application Name, developer, and version number. Further, the adjustment module 33 of this embodiment includes: a second determining unit 331 and an adjusting unit
332。 332.
其中, 第二判断单元 331 , 与第一获取单元 322和第三获取单元 324, 用 于根据第一获取单元 322或第三获取单元 324获取的第一应用程序相关的字 词库的标识信息, 判断第一应用程序相关的字词库是否存在于输入法字词库 中。  The second determining unit 331 and the first obtaining unit 322 and the third obtaining unit 324 are configured to use, according to the identifier information of the first application related to the first application acquired by the first obtaining unit 322 or the third obtaining unit 324, Determine whether the first application-related word library exists in the input method word library.
调整单元 332, 与第二判断单元 331连接, 用于在第二判断单元 331的 判断结果为是时, 直接设置第一应用程序相关的字词库的优先级高于输入法 字词库中其他字词库的优先级; 在第二判断单元 331 的判断结果为否时, 将 第一应用程序相关的字词库加入输入法字词库中, 并设置第一应用程序相关 的字词库的优先级高于输入法字词库中其他字词库的优先级。  The adjusting unit 332 is connected to the second determining unit 331, and is configured to directly set the priority of the first application related word library to be higher than the input method word bank when the second determining unit 331 determines that the result is yes. Priority of the word library; when the judgment result of the second determining unit 331 is negative, adding the word library related to the first application to the input method word library, and setting the word library of the first application related The priority is higher than the priority of other word banks in the input method word library.
进一步, 第一应用程序相关的字词库的标识信息还包括: 第一应用程序 相关的字词库的识别码。 基于此, 第二判断单元 331具体可用于判断第一应 用程序相关的字词库的识别码是否存在于输入法字词库对应的识别码列表 中, 当判断结果为否时, 判定第一应用程序相关的字词库不存在于输入法字 词库中, 当判断结果为是时, 判定第一应用程序相关的字词库存在于输入法 字词库中。 其中, 识别码列表存储有输入法字词库中的各字词库的识别码。  Further, the identification information of the first application-related word library further includes: an identifier of the first application-related word library. Based on this, the second determining unit 331 is specifically configured to determine whether the identifier of the word store associated with the first application exists in the identifier list corresponding to the input method word bank, and when the determination result is no, determine the first application. The program-related word library does not exist in the input method word library. When the judgment result is yes, it is determined that the word inventory related to the first application is in the input method word library. The identification code list stores an identification code of each word dictionary in the input method word library.
更进一步, 本实施例的调整模块 33 , 具体来说是调整单元 332, 具体可 用于在第一应用程序被用户作为当前应用场景进行字符输入操作期间, 设置 第一应用程序相关的字词库的优先级高于输入法字词库中其他字词库的优先 级。  Further, the adjustment module 33 of the embodiment is specifically an adjustment unit 332, which is specifically configured to set a first application-related word library during a character input operation by the user as a current application scenario. The priority is higher than the priority of other word banks in the input method word library.
进一步, 本实施例的第一获取模块 31包括: 第四获取单元 311和第五获 取单元 312。  Further, the first obtaining module 31 of the embodiment includes: a fourth obtaining unit 311 and a fifth obtaining unit 312.
其中, 第四获取单元 311 , 用于获取第一应用程序的识别码。  The fourth obtaining unit 311 is configured to obtain an identifier of the first application.
第五获取单元 312, 与第四获取单元 311连接, 用于将第四获取单元 311 获取的识别码作为操作系统提供的 API的入口参数, 调用 API, 以使操作系 统执行所述 API, 并返回第一应用程序的标识信息。 具体的, 第一判断单元 321与第五获取单元 312连接, 用于将第五获取单元 312获取的第一应用程 序的标识信息与关联表格中各应用程序的标识信息进行比较, 判断第一应用 程序的标识信息是否存在于所述关联表格中。 程, 其具体实现方式不再赘述, 详见方法实施例的描述。 The fifth obtaining unit 312 is connected to the fourth obtaining unit 311, and is configured to use an identifier obtained by the fourth obtaining unit 311 as an entry parameter of an API provided by the operating system, to invoke an API, so that the operating system executes the API, and returns Identification information of the first application. Specifically, the first determining unit 321 is connected to the fifth obtaining unit 312, and is configured to compare the identifier information of the first application acquired by the fifth acquiring unit 312 with the identifier information of each application in the association table, and determine the first application. Whether the identification information of the program exists in the associated table. For details, refer to the description of the method embodiments.
本实施例的字词库调整设备, 获取用户当前作为应用场景进行字符输入 操作的应用程序的标识信息, 并基于获取的应用程序的标识信息在预设的关 联表格中进行查找, 获取与该应用程序相关的字词库的标识信息, 然后根据 该字词库的标识信息, 设置该字词库的标识信息所标识的字词库的优先级高 于输入法字词库中其他字词库的优先级, 实现了自动识别用户当前作为应用 场景进行字符输入操作的应用程序并自动根据当前应用场景调整输入法字词 库, 使得用户不用在手动调整输入法字词库, 提高了输出法字词库的调整效 率。 尤其是在不同应用程序之间切换时, 字词库调整设备能通过自动进行输 入法字词库的调整, 提高了词库调整效率, 降低了词库调整对输入效率的影 响, 进一步提高了输入效率。  The word library adjustment device of the embodiment obtains the identification information of the application program that the user currently performs the character input operation as the application scenario, and searches for the application in the preset association table based on the acquired identification information of the application program, and acquires the application. The identification information of the program-related word library, and then according to the identification information of the word library, setting the word library identified by the identifier information of the word library has higher priority than other word banks in the input method word library Priority, which realizes the application that automatically recognizes the user's current character input operation as an application scenario and automatically adjusts the input method word library according to the current application scenario, so that the user does not need to manually adjust the input method word library, thereby improving the output method word. The efficiency of the library adjustment. Especially when switching between different applications, the word library adjustment device can automatically adjust the input method word library, improve the efficiency of the thesaurus adjustment, reduce the influence of the thesaurus adjustment on the input efficiency, and further improve the input. effectiveness.
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。  A person skilled in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by using hardware related to program instructions, and the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed. The foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。  Finally, it should be noted that the above embodiments are only for explaining the technical solutions of the present invention, and are not intended to be limiting thereof; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that The technical solutions described in the foregoing embodiments may be modified, or some or all of the technical features may be equivalently replaced; and the modifications or substitutions do not deviate from the technical solutions of the embodiments of the present invention. range.

Claims

权 利 要求 书 Claim
1、 一种字词库调整方法, 其特征在于, 包括: A method for adjusting a word bank, characterized in that it comprises:
获取第一应用程序的标识信息, 所述第一应用程序为用户当前作为应用 场景进行字符输入操作的应用程序;  Obtaining identification information of the first application, where the first application is an application for performing a character input operation by the user as an application scenario;
根据所述第一应用程序的标识信息在预设的关联表格中进行查找, 获取 第一应用程序相关的字词库的标识信息, 所述第一应用程序相关的字词库包 括在所述第一应用程序下使用频率高于预设频率门限的字词, 所述关联表格 根据所述第一应用程序相关的字词库的标识信息, 设置所述第一应用程 序相关的字词库的优先级高于输入法字词库中其他字词库的优先级。  Performing a search in a preset association table according to the identifier information of the first application, acquiring identifier information of a first application-related word library, where the first application-related word library is included in the first a word using a frequency higher than a preset frequency threshold, the association table setting a priority of the first application-related word library according to the identification information of the first application-related word library The level is higher than the priority of other word banks in the input method word library.
2、 根据权利要求 1所述的字词库调整方法, 其特征在于, 所述根据所述 第一应用程序的标识信息在预设的关联表格中进行查找, 获取第一应用程序 相关的字词库的标识信息包括:  The word library adjustment method according to claim 1, wherein the searching according to the identification information of the first application is performed in a preset association table, and the words related to the first application are obtained. The identification information of the library includes:
将所述第一应用程序的标识信息与所述关联表格中各应用程序的标识信 息进行比较,判断所述第一应用程序的标识信息是否存在于所述关联表格中; 当所述第一应用程序的标识信息存在于所述关联表格中时, 获取与所述 第一应用程序有对应关系的字词库的标识信息。  Comparing the identification information of the first application with the identification information of each application in the associated table, determining whether the identification information of the first application exists in the association table; when the first application When the identification information of the program exists in the association table, the identification information of the word library corresponding to the first application is obtained.
3、 根据权利要求 2所述的字词库调整方法, 其特征在于, 还包括: 当所述第一应用程序的标识信息不存在于所述关联表格中时, 将所述第 一应用程序的标识信息进行拆分, 获取能够标识所述第一应用程序的特征的 分标识信息;  The method for adjusting a word library according to claim 2, further comprising: when the identification information of the first application is not present in the association table, the first application is Separating the identification information to obtain sub-identification information capable of identifying a feature of the first application;
将所述分标识信息与所述关联表格中各字词库的标识信息进行比较, 获 取与所述分标识信息具有对应关系的字词库的标识信息  Comparing the sub-identification information with the identification information of each word dictionary in the association table, and obtaining identification information of the word library having a correspondence relationship with the sub-identification information
4、 根据权利要求 2或 3所述的字词库调整方法, 其特征在于, 所述关联 表格中各字词库的标识信息还包括: 所述各字词库对应的关键词;  The method for adjusting a word bank according to claim 2 or 3, wherein the identification information of each of the word banks in the associated table further includes: keywords corresponding to the word banks;
所述第一应用程序的标识信息包括下述信息中的至少其中之一: 所述第 一应用程序的名称、 所述第一应用程序的名称和开发者、 所述第一应用程序 的名称和版本号、 所述第一应用程序的名称、 开发者和版本号;  The identification information of the first application includes at least one of the following: a name of the first application, a name of the first application, a developer, a name of the first application, and a version number, a name of the first application, a developer, and a version number;
所述关联表格中各应用程序的标识信息包括下述信息中的至少其中之 一: 所述各应用程序的名称、 所述各应用程序的名称和开发者、 所述各应用 程序的名称和版本号、 所述各应用程序的名称、 开发者和版本号。 The identification information of each application in the association table includes at least one of the following information: a name of each application, a name of the application, a developer, and each application. The name and version number of the program, the name of each application, the developer, and the version number.
5、 根据权利要求 1-4任一项所述的字词库调整方法, 其特征在于, 所述 根据所述第一应用程序相关的字词库的标识信息, 设置所述第一应用程序相 关的字词库的优先级高于输入法字词库中其他字词库的优先级包括:  The word library adjustment method according to any one of claims 1 to 4, wherein the first application is related to the identification information of the word library associated with the first application. The priority of the word library is higher than the priority of other word banks in the input method word library:
根据所述第一应用程序相关的字词库的标识信息, 判断所述第一应用程 序相关的字词库是否存在于所述输入法字词库中;  Determining, according to the identifier information of the word library related to the first application, whether the word library associated with the first application exists in the input method word library;
如果所述第一应用程序相关的字词库存在于所述输入法字词库中, 直接 设置所述第一应用程序相关的字词库的优先级高于所述输入法字词库中其他 字词库的优先级;  If the first application related word inventory is in the input method word library, directly setting the first application related word library has higher priority than the other words in the input method word library The priority of the thesaurus;
如果所述第一应用程序相关的字词库不存在于所述输入法字词库中, 将 所述第一应用程序相关的字词库加入所述输入法字词库中, 并设置所述第一 应用程序相关的字词库的优先级高于所述输入法字词库中其他字词库的优先 级。  If the first application-related word library does not exist in the input method word library, add the first application-related word library to the input method word library, and set the The first application-related word library has a higher priority than the other word banks in the input method word library.
6、 根据权利要求 5所述的字词库调整方法, 其特征在于, 所述第一应用 程序相关的字词库的标识信息还包括: 所述第一应用程序相关的字词库的识 别码;  The word library adjustment method according to claim 5, wherein the identifier information of the word library related to the first application program further includes: an identifier of the word library associated with the first application program ;
所述根据所述第一应用程序相关的字词库的标识信息, 判断所述第一应 用程序相关的字词库是否存在于所述输入法字词库中包括:  Determining, according to the identifier information of the word library associated with the first application, whether the word library associated with the first application exists in the input method word library comprises:
判断所述第一应用程序相关的字词库的识别码是否存在于所述输入法字 词库对应的识别码列表中; 所述识别码列表存储有所述输入法字词库中的各 字词库的识别码;  Determining whether an identifier of the word library associated with the first application exists in an identifier list corresponding to the input method word bank; the identifier code list stores each word in the input method word library The identifier of the thesaurus;
如果所述第一应用程序相关的字词库的识别码不在于所述识别码列表 中, 判定所述第一应用程序相关的字词库不存在于所述输入法字词库中; 如果所述第一应用程序相关的字词库的识别码存在于所述识别码列表 中, 判定所述第一应用程序相关的字词库存在于所述输入法字词库中。  If the identifier of the first application-related word library is not in the identifier list, determining that the first application-related word library does not exist in the input method word library; An identifier of the first application-related word library exists in the identification code list, and it is determined that the word inventory related to the first application is in the input method word library.
7、 根据权利要求 1-6任一项所述的字词库调整方法, 其特征在于, 所述 设置所述第一应用程序相关的字词库的优先级高于所述输入法字词库中其他 字词库的优先级进一步包括:  The word library adjustment method according to any one of claims 1 to 6, wherein the setting of the first application-related word library has a higher priority than the input method word library. The priority of other word banks in addition further includes:
在所述第一应用程序被所述用户作为当前应用场景进行字符输入操作期 间, 设置所述第一应用程序相关的字词库的优先级高于所述输入法字词库中 其他字词库的优先级。 During the character input operation performed by the user as the current application scenario, the first application-related word library is set to have a higher priority than the input method word library. The priority of other word banks.
8、 根据权利要求 1-7任一项所述的字词库调整方法, 其特征在于, 所述 获取第一应用程序的标识信息包括:  The method for adjusting a word library according to any one of claims 1 to 7, wherein the obtaining the identification information of the first application comprises:
获取所述第一应用程序的识别码;  Obtaining an identifier of the first application;
将所述识别码作为操作系统提供的应用程序接口函数的入口参数, 调用 所述应用程序接口函数, 以使所述操作系统执行所述应用程序接口函数, 并 返回所述第一应用程序的标识信息。  Using the identification code as an entry parameter of an application program interface function provided by an operating system, calling the application program interface function, so that the operating system executes the application program interface function, and returns an identifier of the first application program information.
9、 一种字词库调整设备, 其特征在于, 包括:  9. A word library adjustment device, comprising:
第一获取模块, 用于获取第一应用程序的标识信息, 所述第一应用程序 为用户当前作为应用场景进行字符输入操作的应用程序;  a first acquiring module, configured to acquire identifier information of the first application, where the first application is an application that performs a character input operation by the user as an application scenario;
第二获取模块, 用于根据所述第一应用程序的标识信息在预设的关联表 格中进行查找, 获取第一应用程序相关的字词库的标识信息, 所述第一应用 程序相关的字词库包括在所述第一应用程序下使用频率高于预设频率门限的 关系;  a second obtaining module, configured to perform, in the preset association table, the identifier information of the first application to obtain the identifier information of the first application related word library, and the first application related word The thesaurus includes a relationship in which the frequency of use is higher than a preset frequency threshold under the first application;
调整模块, 用于根据所述第一应用程序相关的字词库的标识信息, 设置 所述第一应用程序相关的字词库的优先级高于输入法字词库中其他字词库的 优先级。  And an adjustment module, configured to set, according to the identifier information of the first application-related word library, a priority of the first application-related word library is higher than a priority of other word banks in the input method word library level.
10、 根据权利要求 9所述的字词库调整设备, 其特征在于, 所述第二获 取模块包括:  The word acquisition device according to claim 9, wherein the second acquisition module comprises:
第一判断单元, 用于将所述第一应用程序的标识信息与所述关联表格中 各应用程序的标识信息进行比较, 判断所述第一应用程序的标识信息是否存 在于所述关联表格中;  a first determining unit, configured to compare identifier information of the first application with identifier information of each application in the association table, and determine whether identifier information of the first application exists in the association table ;
第一获取单元, 用于在所述第一判断单元的判断结果为是时, 获取与所 述第一应用程序有对应关系的字词库的标识信息。  The first obtaining unit is configured to obtain, when the determination result of the first determining unit is YES, the identification information of the word library corresponding to the first application.
1 1、 根据权利要求 10所述的字词库调整设备, 其特征在于, 所述第二获 取模块还包括:  The vocabulary adjustment device according to claim 10, wherein the second acquisition module further comprises:
第二获取单元, 用于在所述第一判断单元的判断结果为否时, 将所述第 一应用程序的标识信息进行拆分, 获取能够标识所述第一应用程序的特征的 分标识信息; 第三获取单元, 用于将所述分标识信息与所述关联表格中各字词库的标 识信息进行比较,获取与所述分标识信息具有对应关系的字词库的标识信息。 a second acquiring unit, configured to: when the determining result of the first determining unit is negative, split the identification information of the first application, and obtain the sub-identification information that can identify the feature of the first application ; The third obtaining unit is configured to compare the sub-identification information with the identification information of each of the word banks in the association table, and obtain identification information of the word library having a correspondence relationship with the sub-identification information.
12、 根据权利要求 10或 1 1所述的字词库调整设备, 其特征在于, 所述 关联表格中各字词库的标识信息还包括: 所述各字词库对应的关键词;  The word library adjustment device according to claim 10 or 11, wherein the identification information of each word dictionary in the association table further includes: keywords corresponding to the word pools;
所述第一应用程序的标识信息包括下述信息中的至少其中之一: 所述第 一应用程序的名称、 所述第一应用程序的名称和开发者、 所述第一应用程序 的名称和版本号、 所述第一应用程序的名称、 开发者和版本号;  The identification information of the first application includes at least one of the following: a name of the first application, a name of the first application, a developer, a name of the first application, and a version number, a name of the first application, a developer, and a version number;
所述关联表格中各应用程序的标识信息包括下述信息中的至少其中之 一: 所述各应用程序的名称、 所述各应用程序的名称和开发者、 所述各应用 程序的名称和版本号、 所述各应用程序的名称、 开发者和版本号。  The identification information of each application in the association table includes at least one of the following: a name of each application, a name of the application, and a developer, a name and a version of each application. Number, the name, developer, and version number of each application.
13、 根据权利要求 9-12任一项所述的字词库调整设备, 其特征在于, 所 述调整模块包括:  The word library adjustment device according to any one of claims 9 to 12, wherein the adjustment module comprises:
第二判断单元, 用于根据所述第一应用程序相关的字词库的标识信息, 判断所述第一应用程序相关的字词库是否存在于所述输入法字词库中;  a second determining unit, configured to determine, according to the identifier information of the word library associated with the first application, whether the word library associated with the first application exists in the input method word library;
调整单元, 用于在所述第二判断单元的判断结果为是时, 直接设置所述 第一应用程序相关的字词库的优先级高于所述输入法字词库中其他字词库的 优先级; 在所述第二判断单元的判断结果为否时, 将所述第一应用程序相关 的字词库加入所述输入法字词库中, 并设置所述第一应用程序相关的字词库 的优先级高于所述输入法字词库中其他字词库的优先级。  And an adjusting unit, configured to directly set, when the determination result of the second determining unit is yes, a priority of the first application-related word library is higher than other words in the input method word library a priority level; when the determination result of the second determining unit is no, adding the first application-related word library to the input method word library, and setting the first application-related word The lexicon has a higher priority than other lexicons in the input method word bank.
14、 根据权利要求 13所述的字词库调整方法, 其特征在于, 所述第一应 用程序相关的字词库的标识信息还包括: 所述第一应用程序相关的字词库的 识别码;  The method for adjusting the word library according to claim 13, wherein the identification information of the word library associated with the first application further comprises: an identifier of the word library associated with the first application ;
相应的, 所述第二判断单元用于判断所述第一应用程序相关的字词库的 识别码是否存在于所述输入法字词库对应的识别码列表中, 当判断结果为否 时, 判定所述第一应用程序相关的字词库不存在于所述输入法字词库中, 当 判断结果为是时, 判定所述第一应用程序相关的字词库存在于所述输入法字 词库中; 所述识别码列表存储有所述输入法字词库中的各字词库的识别码。  Correspondingly, the second determining unit is configured to determine whether an identifier of the word library associated with the first application exists in an identifier list corresponding to the input method word bank, and when the determination result is no, Determining that the first application related word dictionary does not exist in the input method word library, and when the determination result is yes, determining that the first application related word inventory is in the input method word The identification code list stores an identification code of each word dictionary in the input method word library.
15、 根据权利要求 9-14任一项所述的字词库调整设备, 其特征在于, 所 述调整模块具体用于在所述第一应用程序被所述用户作为当前应用场景进行 字符输入操作期间, 设置所述第一应用程序相关的字词库的优先级高于所述 输入法字词库中其他字词库的优先级。 The word library adjustment device according to any one of claims 9 to 14, wherein the adjustment module is specifically configured to perform a character input operation on the first application by the user as a current application scenario. During the setting, the first application related word dictionary is set to have a higher priority than the Enter the priority of other word banks in the French word library.
16、 根据权利要求 9-15任一项所述的字词库调整设备, 其特征在于, 所 述第一获取模块包括:  The vocabulary adjustment device according to any one of claims 9 to 15, wherein the first acquisition module comprises:
第四获取单元, 用于获取所述第一应用程序的识别码;  a fourth obtaining unit, configured to acquire an identifier of the first application;
第五获取单元, 用于将所述识别码作为操作系统提供的应用程序接口函 数的入口参数, 调用所述应用程序接口函数, 以使所述操作系统执行所述应 用程序接口函数, 并返回所述第一应用程序的标识信息。  a fifth obtaining unit, configured to use the identifier as an entry parameter of an application program interface function provided by an operating system, to invoke the application program interface function, to enable the operating system to execute the application program interface function, and return to the The identification information of the first application.
PCT/CN2012/075021 2012-05-03 2012-05-03 Method and device for adjusting word bank WO2013163804A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN2012800007870A CN102959547A (en) 2012-05-03 2012-05-03 Word bank adjusting method and equipment
PCT/CN2012/075021 WO2013163804A1 (en) 2012-05-03 2012-05-03 Method and device for adjusting word bank

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/075021 WO2013163804A1 (en) 2012-05-03 2012-05-03 Method and device for adjusting word bank

Publications (1)

Publication Number Publication Date
WO2013163804A1 true WO2013163804A1 (en) 2013-11-07

Family

ID=47766346

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/075021 WO2013163804A1 (en) 2012-05-03 2012-05-03 Method and device for adjusting word bank

Country Status (2)

Country Link
CN (1) CN102959547A (en)
WO (1) WO2013163804A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765831A (en) * 2015-04-13 2015-07-08 天脉聚源(北京)传媒科技有限公司 Dictionary sheet generating method and device and dictionary sheet application method and device
CN105404381A (en) * 2015-11-06 2016-03-16 珠海全志科技股份有限公司 Terminal device operation frequency control method and system
CN108228620A (en) * 2016-12-14 2018-06-29 北京搜狗科技发展有限公司 A kind of Word library updating method and device

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461700A (en) * 2013-09-12 2015-03-25 中兴通讯股份有限公司 Application platform configuring method and device
CN103488796B (en) * 2013-10-12 2018-12-07 惠州Tcl移动通信有限公司 Based on context the method and mobile terminal inputted
CN103714141A (en) * 2013-12-24 2014-04-09 百度国际科技(深圳)有限公司 Information pushing method and device
CN104199616B (en) * 2014-09-26 2018-09-14 厦门美图移动科技有限公司 A kind of data inputting method and equipment of mobile terminal
CN104317480B (en) * 2014-10-14 2017-12-08 小米科技有限责任公司 Character keys display methods, device and terminal
CN104375663A (en) * 2014-11-11 2015-02-25 广东欧珀移动通信有限公司 Associating input method and device
CN104778247B (en) * 2015-04-13 2018-01-05 天脉聚源(北京)传媒科技有限公司 A kind of information retrieval method and device based on data-oriented resource
CN104765830B (en) * 2015-04-13 2018-11-20 天脉聚源(北京)传媒科技有限公司 A kind of information search method and device
CN105117030A (en) * 2015-07-31 2015-12-02 Tcl海外电子(惠州)有限公司 Recommendation method and terminal for associative vocabularies in input method
CN105912138B (en) * 2016-04-06 2019-03-12 百度在线网络技术(北京)有限公司 A kind of input method and device of phrase
CN107870932B (en) * 2016-09-26 2021-10-08 北京搜狗科技发展有限公司 User word stock optimization method and device and electronic equipment
CN107870931B (en) * 2016-09-26 2021-09-07 北京搜狗科技发展有限公司 Method and device for optimizing user lexicon and electronic equipment
CN106896937A (en) * 2017-02-28 2017-06-27 百度在线网络技术(北京)有限公司 Method and apparatus for being input into information
CN107322593B (en) * 2017-06-15 2020-07-14 重庆柚瓣家科技有限公司 Outdoor movable accompany and house-based old-age care robot
CN109213469A (en) * 2018-08-27 2019-01-15 四川长虹电器股份有限公司 Phonitic entry method dictionary priority automatic adjusting method and system
CN111627438A (en) * 2020-05-21 2020-09-04 四川虹美智能科技有限公司 Voice recognition method and device
CN114791769A (en) * 2022-06-24 2022-07-26 湖北云享客数字智能科技有限公司 Big database establishment method for user behavior prediction result

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040006558A1 (en) * 2002-07-03 2004-01-08 Dehlinger Peter J. Text-processing code, system and method
CN101149757A (en) * 2007-11-09 2008-03-26 腾讯科技(深圳)有限公司 Method for accomplishing scene style word input
CN101571758A (en) * 2009-06-04 2009-11-04 腾讯科技(深圳)有限公司 Input method system, method and device thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040006558A1 (en) * 2002-07-03 2004-01-08 Dehlinger Peter J. Text-processing code, system and method
CN101149757A (en) * 2007-11-09 2008-03-26 腾讯科技(深圳)有限公司 Method for accomplishing scene style word input
CN101571758A (en) * 2009-06-04 2009-11-04 腾讯科技(深圳)有限公司 Input method system, method and device thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104765831A (en) * 2015-04-13 2015-07-08 天脉聚源(北京)传媒科技有限公司 Dictionary sheet generating method and device and dictionary sheet application method and device
CN105404381A (en) * 2015-11-06 2016-03-16 珠海全志科技股份有限公司 Terminal device operation frequency control method and system
CN108228620A (en) * 2016-12-14 2018-06-29 北京搜狗科技发展有限公司 A kind of Word library updating method and device

Also Published As

Publication number Publication date
CN102959547A (en) 2013-03-06

Similar Documents

Publication Publication Date Title
WO2013163804A1 (en) Method and device for adjusting word bank
US20220214775A1 (en) Method for extracting salient dialog usage from live data
US10431214B2 (en) System and method of determining a domain and/or an action related to a natural language input
US10698654B2 (en) Ranking and boosting relevant distributable digital assistant operations
US9971967B2 (en) Generating a superset of question/answer action paths based on dynamically generated type sets
CN108369580B (en) Language and domain independent model based approach to on-screen item selection
JP5860171B2 (en) Input processing method and apparatus
US10108698B2 (en) Common data repository for improving transactional efficiencies of user interactions with a computing device
US20150234927A1 (en) Application search method, apparatus, and terminal
US10783885B2 (en) Image display device, method for driving the same, and computer readable recording medium
CN111566638B (en) Adding descriptive metadata to an application programming interface for use by intelligent agents
US10635668B2 (en) Intelligently utilizing non-matching weighted indexes
WO2008141583A1 (en) Character input method, input system and method for updating word lexicon
JP2016508264A (en) Method and apparatus for providing input candidate item corresponding to input character string
CN103384290A (en) Mobile terminal with positioning and navigation functions and fast positioning and navigation method of mobile terminal
WO2014040521A1 (en) Searching method, system and storage medium
US11573961B2 (en) Delta graph traversing system
CN108268438B (en) Page content extraction method and device and client
JP2004038179A (en) Apparatus and method for voice instruction word processing
CN112487159A (en) Search method, search device, and computer-readable storage medium
WO2017097102A1 (en) Retrieval method and retrieval device
CN108595470B (en) Audio paragraph collection method, device and system and computer equipment
CN104268195A (en) Method and device for processing local resources in terminal
KR102351264B1 (en) Method for providing personalized information of new books and system for the same
WO2024012009A1 (en) Keyboard input method and system, and computer-readable storage medium, electronic device and computer program product

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201280000787.0

Country of ref document: CN

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12876022

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12876022

Country of ref document: EP

Kind code of ref document: A1