CN109669550B - Method and device for obtaining user word stock - Google Patents

Method and device for obtaining user word stock Download PDF

Info

Publication number
CN109669550B
CN109669550B CN201710967481.7A CN201710967481A CN109669550B CN 109669550 B CN109669550 B CN 109669550B CN 201710967481 A CN201710967481 A CN 201710967481A CN 109669550 B CN109669550 B CN 109669550B
Authority
CN
China
Prior art keywords
user
word stock
acquiring
area
words
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710967481.7A
Other languages
Chinese (zh)
Other versions
CN109669550A (en
Inventor
涂畅
张扬
王砚峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201710967481.7A priority Critical patent/CN109669550B/en
Publication of CN109669550A publication Critical patent/CN109669550A/en
Application granted granted Critical
Publication of CN109669550B publication Critical patent/CN109669550B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • G06F3/0237Character input methods using prediction or retrieval techniques

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to the field of input methods, in particular to a method and a device for acquiring a user word stock. The method for acquiring the user word stock comprises the following steps: acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person; and if the user word stock meets the preset condition, importing the recommended word stock into the user word stock. The invention is at least used for solving the technical problem of how to provide personalized candidate words for the user when the user word stock is empty.

Description

Method and device for obtaining user word stock
Technical Field
The invention relates to the field of input methods, in particular to a method and a device for acquiring a user word stock.
Background
Many input methods have a user lexicon and the user words are typically ordered before the system words in the input candidates, so that the user selects words that fit his own personalisation. However, if there is no user thesaurus (e.g., the input method has just been installed), i.e., the user thesaurus is empty, it is difficult for the user to quickly select a word that meets the personalization. Further, in this case, the input provides systematic words to the user, which results in the user now accidentally selected words entering the user thesaurus because the user thesaurus is empty. Then, if the accidentally selected words do not actually meet the user's personalized features, but according to the principle that the user's words take precedence over the system's words, the accidentally selected words will be ranked forward, thereby increasing the difficulty of the user to quickly select the personalized words.
Disclosure of Invention
The embodiment of the invention provides a method and a device for acquiring a user word stock, which are at least used for solving the technical problem of how to provide personalized candidate words for a user when the user word stock is empty.
In a first aspect, the present invention provides a method for obtaining a user word stock, including:
acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person;
and if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
With reference to the first aspect, in a first optional embodiment, the obtaining a recommended word stock based on geographic information of the user includes:
acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user;
and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
With reference to the first optional embodiment of the first aspect, in a second optional embodiment, the obtaining, based on one or more location areas of the user, a recommended word stock of the user includes:
Determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
With reference to the second optional embodiment of the first aspect, in a third optional embodiment, before the acquiring, based on the one or more location areas of the user, a recommended word stock of the user, the method further includes: acquiring time and/or activity of the user in the position area;
the obtaining the target word from the regional cloud word stock comprises the following steps:
determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the first aspect, in a fourth optional embodiment, the determining, based on a time and/or an activity of the user in the location area, to obtain the number of target words from the area cloud word stock includes:
Acquiring the capacity of the user word stock;
determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the first aspect, in a fifth optional embodiment, the determining, based on a time of the user in the location area, to obtain the number of words from the area cloud word stock includes:
and calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
With reference to the third optional embodiment of the first aspect, in a sixth optional embodiment, the determining, based on the activity of the user in the location area, to obtain the number of words from the area cloud word stock includes:
and calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
With reference to the third optional embodiment of the first aspect, in a seventh optional embodiment, the time of the user in the location area includes one or more of:
The dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
With reference to the third optional embodiment of the first aspect, in an eighth optional embodiment, the activity of the user in the location area includes a number of consumption of the user in the location area and/or a number of times the user arrives in the location area.
With reference to any one of the first to eighth optional embodiments of the first aspect, in a ninth optional embodiment, the method further comprises:
acquiring operation information of the user input word, wherein the input information comprises a position area corresponding to the user input operation;
and updating the regional cloud word stock corresponding to the position region according to the operation information.
With reference to the first aspect, in a tenth optional embodiment, the obtaining the recommended word stock based on the contact related information of the user includes:
acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
And acquiring the recommended word stock based on the high-frequency words used by the contact.
With reference to the first aspect, in an eleventh optional embodiment, the method further comprises:
acquiring input information of the user;
and updating the user word stock according to the input information.
With reference to the first aspect, in a twelfth optional embodiment, the preset condition is that the user word stock is empty, or the user word stock is not empty but the amount of the user word stock does not reach a threshold.
In a second aspect, the present invention provides a method of providing input candidates, comprising:
receiving a character string input by a user;
and acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions;
and outputting one or more candidate words matched with the character string.
In a third aspect, the present invention provides a method for constructing a regional cloud word stock, including:
Acquiring input information of a user input word, wherein the input information comprises a position area corresponding to the user input operation;
and constructing an area cloud word stock corresponding to the position area by utilizing the input information.
In a fourth aspect, the present invention provides an apparatus for obtaining a user thesaurus, including:
the first acquisition module is used for acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person;
and the importing module is used for importing the recommended word stock into the user word stock if the user word stock meets the preset condition.
With reference to the fourth aspect, in a first optional embodiment, the first obtaining module includes a first sub-obtaining module, configured to obtain one or more location areas of a user, where the geographic information is represented by the one or more location areas of the user; and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
With reference to the first optional embodiment of the fourth aspect, in a second optional embodiment, the first sub-obtaining module is configured to determine an area cloud word stock corresponding to the location area based on area cloud word stocks corresponding to different areas; obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words; and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
With reference to the second optional embodiment of the fourth aspect, in a third optional embodiment, the first obtaining module further includes a time and/or activity obtaining module, configured to obtain a time and/or activity of the user in the location area before the obtaining of the recommended word stock of the user based on one or more location areas of the user;
the first sub-acquisition module is used for determining the number of target words acquired from the regional cloud word stock based on the time and/or the activity of the user in the position region; and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the fourth aspect, in a fourth optional embodiment, the first sub-obtaining module is configured to obtain a capacity of the user word stock; determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the fourth aspect, in a fifth optional embodiment, the first sub-obtaining module is configured to calculate, based on a time of the user in the location area and a preset unit time, a number of target words obtained from the area cloud word stock.
With reference to the third optional embodiment of the fourth aspect, in a sixth optional embodiment, the first sub-obtaining module is configured to calculate, based on the activity level of the user in the location area and a preset unit activity level, a number of words obtained from the area cloud word stock.
With reference to the third optional embodiment of the fourth aspect, in a seventh optional embodiment, the time of the user in the location area includes one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
With reference to the third optional embodiment of the fourth aspect, in an eighth optional embodiment, the activity of the user in the location area includes a number of consumption of the user in the location area and/or a number of times the user arrives in the location area.
With reference to any one of the first to eighth optional embodiments of the fourth aspect, in a ninth optional embodiment, the apparatus further comprises:
the second acquisition module is used for acquiring the operation information of the user input word, wherein the input information comprises a position area corresponding to the user input operation;
And the first updating module is used for updating the regional cloud word stock corresponding to the position region according to the operation information.
With reference to the fourth aspect, in a tenth optional embodiment, the first obtaining module further includes a second sub-obtaining module, configured to obtain contact information in a currently installed application program; based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact; and acquiring the recommended word stock based on the high-frequency words used by the contact.
With reference to the fourth aspect, in an eleventh alternative embodiment, the apparatus further includes:
the third acquisition module is used for acquiring the input information of the user;
and the second updating module is used for updating the user word stock according to the input information.
With reference to the fourth aspect, in a twelfth optional embodiment, the preset condition is that the user word stock is empty, or the user word stock is not empty but the amount of the user word stock does not reach a threshold.
In a fifth aspect, the present invention provides an apparatus for providing input candidates, comprising:
The receiving module is used for receiving the character string input by the user;
the acquisition module is used for acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions;
an output module for outputting one or more candidate words matched with the character string
In a sixth aspect, the present invention provides a device for constructing an regional cloud word stock, including:
the acquisition module is used for acquiring input information of a user input word, wherein the input information comprises a position area corresponding to the user input operation;
and the construction module is used for constructing an area cloud word stock corresponding to the position area by utilizing the input information.
In a seventh aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person;
And if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
With reference to the seventh aspect, in a first alternative embodiment, the computer readable storage medium stores the following steps: the computer program corresponding to the recommended word stock is obtained based on the geographic information of the user, when being executed, specifically comprises the following steps:
acquiring a recommended word stock of the user based on one or more location areas of the user to acquire one or more location areas of the user, wherein the geographic information is represented by the one or more location areas of the user;
and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
With reference to the first optional embodiment of the seventh aspect, in a second optional embodiment, the computer readable storage medium stores the following steps: based on one or more location areas of the user, the computer program corresponding to the recommended word stock of the user is obtained, when executed, specifically comprising the following steps:
determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
Obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
With reference to the second optional embodiment of the seventh aspect, in a third optional embodiment, the computer readable storage medium further stores further computer programs, where the further computer programs are in steps of: based on one or more location areas of the user, the method is executed before acquiring the recommended word stock of the user, and the following steps are realized when the method is executed: acquiring time and/or activity of the user in the position area;
the and steps stored in the computer readable storage medium: the computer program for acquiring the target word from the regional cloud word stock specifically comprises the following steps when being executed:
determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the seventh aspect, in a fourth optional embodiment, the computer readable storage medium stores the following steps: determining that a computer program corresponding to the number of target words obtained from the regional cloud word stock is executed based on the time and/or the activity of the user in the position region, wherein the computer program specifically comprises the following steps:
Acquiring the capacity of the user word stock;
determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the seventh aspect, in a fifth optional embodiment, the computer readable storage medium stores the following steps: determining that a computer program corresponding to the number of words obtained from the regional cloud word stock based on the time of the user in the location region is executed, specifically including the following steps:
and calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
With reference to the third optional embodiment of the seventh aspect, in a sixth optional embodiment, the computer readable storage medium stores the following steps: determining that a computer program corresponding to the number of words obtained from the regional cloud word stock based on the activity of the user in a location region is executed, specifically comprising the following steps:
And calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
With reference to the third optional embodiment of the seventh aspect, in a seventh optional embodiment, the time of the user in the location area includes one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
With reference to the third optional embodiment of the seventh aspect, in an eighth optional embodiment, the activity of the user in the location area includes a number of consumption of the user in the location area and/or a number of times the user arrives in the location area.
With reference to any one of the first to eighth optional embodiments of the seventh aspect, in a ninth optional embodiment, the computer readable storage medium further stores further computer programs, which when executed implement the following steps:
acquiring operation information of the user input word, wherein the input information comprises a position area corresponding to the user input operation;
And updating the regional cloud word stock corresponding to the position region according to the operation information.
With reference to the seventh aspect, in a tenth alternative embodiment, the steps stored in the computer readable storage medium include: the method specifically comprises the following steps of:
acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
and acquiring the recommended word stock based on the high-frequency words used by the contact.
With reference to the seventh aspect, in an eleventh alternative embodiment, the computer readable storage medium stores the following steps: the method specifically comprises the following steps of:
acquiring input information of the user;
and updating the user word stock according to the input information.
With reference to the seventh aspect, in a twelfth optional embodiment, the preset condition is that the user word stock is empty, or the user word stock is not empty but the amount of the user word stock does not reach a threshold.
In an eighth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a character string input by a user;
and acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions;
and outputting one or more candidate words matched with the character string.
In a ninth aspect, the present invention provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring input information of a user input word, wherein the input information comprises a position area corresponding to the user input operation;
and constructing an area cloud word stock corresponding to the position area by utilizing the input information.
In a tenth aspect, the present invention provides an apparatus for providing a user thesaurus, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, the one or more programs comprising instructions for:
Acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person;
and if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
With reference to the tenth aspect, in a first alternative embodiment, the apparatus is further configured to execute the one or more programs by one or more processors, including instructions for:
acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user;
and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
With reference to the first optional embodiment of the tenth aspect, in a second optional embodiment, the apparatus is further configured to execute, by the one or more processors, the one or more programs comprising instructions for:
determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
And constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
With reference to the second optional embodiment of the tenth aspect, in a third optional embodiment, the apparatus is further configured to execute, by the one or more processors, the one or more programs comprising instructions for:
acquiring time and/or liveness of the user in one or more location areas based on the user before acquiring a recommended word stock of the user;
determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the tenth aspect, in a fourth optional embodiment, the apparatus is further configured to execute, by the one or more processors, the one or more programs comprising instructions for:
acquiring time and/or liveness of the user in one or more location areas based on the user before acquiring a recommended word stock of the user;
Determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
With reference to the third optional embodiment of the tenth aspect, in a fifth optional embodiment, the apparatus is further configured to execute, by the one or more processors, the one or more programs comprising instructions for:
and calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
With reference to the third optional embodiment of the tenth aspect, in a sixth optional embodiment, the apparatus is further configured to execute, by the one or more processors, the one or more programs comprising instructions for:
and calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
With reference to the third optional embodiment of the tenth aspect, in a seventh optional embodiment, the time of the user in the location area includes one or more of:
The dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
With reference to the third optional embodiment of the tenth aspect, in an eighth optional embodiment, the activity of the user in the location area includes a number of consumption of the user in the location area and/or a number of arrival of the user in the location area.
With reference to any one of the first to eighth optional embodiments of the tenth aspect, in a ninth optional embodiment, the apparatus is further configured to execute, by the one or more processors, the one or more programs comprising instructions for:
acquiring operation information of the user input word, wherein the input information comprises a position area corresponding to the user input operation;
and updating the regional cloud word stock corresponding to the position region according to the operation information.
With reference to the tenth aspect, in a tenth alternative embodiment, the apparatus is further configured to execute the one or more programs by one or more processors, the one or more programs including instructions for:
Acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
acquiring the recommended word stock based on the high-frequency words used by the contact person
With reference to the tenth aspect, in an eleventh alternative embodiment, the apparatus is further configured to execute the one or more programs by one or more processors, the one or more programs including instructions for:
acquiring input information of the user;
and updating the user word stock according to the input information.
With reference to the tenth aspect, in a twelfth optional embodiment, the preset condition is that the user word stock is empty, or the user word stock is not empty but the amount of the user word stock does not reach a threshold.
In an eleventh aspect, the present invention provides an apparatus for providing input candidates, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
Receiving a character string input by a user;
and acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions;
and outputting one or more candidate words matched with the character string.
In a twelfth aspect, the present invention provides an apparatus for building an regional cloud word stock, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
acquiring input information of a user input word, wherein the input information comprises a position area corresponding to the user input operation;
and constructing an area cloud word stock corresponding to the position area by utilizing the input information.
The above-mentioned one or more technical solutions in the embodiments of the present application at least have one or more of the following technical effects:
In the technical scheme of the embodiment of the invention, a recommended word stock with user individuation characteristics is firstly obtained based on geographic information of a user or related information of a contact person, and then the recommended word stock is imported into the user word stock if the user word stock meets preset conditions. Because the recommended word stock has the personalized characteristics of the user, when the user word stock is empty, the recommended word stock is used as the user word stock, so that the user can experience the input personalized service, and the technical problem of how to provide personalized candidate words for the user when the user word stock is empty is solved.
Drawings
FIG. 1 is a flowchart of a method for obtaining a user word stock in an embodiment of the present invention;
FIG. 2 is a flow chart of a method for providing input candidates according to an embodiment of the invention;
FIG. 3 is a flowchart of a method for constructing a regional cloud word stock in an embodiment of the present invention;
FIG. 4 is a schematic diagram of a device for obtaining a word stock of a user according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of an apparatus for providing input candidates according to an embodiment of the present invention;
FIG. 6 is a schematic diagram of a device for constructing a regional cloud word stock in an embodiment of the present invention;
FIG. 7 is a schematic diagram of an electronic device according to an embodiment of the invention;
fig. 8 is a schematic diagram of a server structure according to an embodiment of the invention.
Detailed Description
The embodiment of the invention provides a method and a device for acquiring a user word stock, which are at least used for solving the technical problem of how to provide personalized service for a user when the user word stock is empty.
In order to solve the technical problems, the technical scheme provided by the invention has the following ideas:
in the technical scheme of the embodiment of the invention, a recommended word stock with user individuation characteristics is firstly obtained based on geographic information of a user or related information of a contact person, and then the recommended word stock is imported into the user word stock if the user word stock meets preset conditions. Because the recommended word stock has the personalized characteristics of the user, when the user word stock is empty, the recommended word stock is used as the user word stock, so that the user can experience the input personalized service, and the technical problem of how to provide personalized candidate words for the user when the user word stock is empty is solved.
The following detailed description of the technical solutions of the present invention is made by the accompanying drawings and specific embodiments, and it should be understood that the specific features of the embodiments and embodiments of the present application are detailed descriptions of the technical solutions of the present application, and not limiting the technical solutions of the present application, and the technical features of the embodiments and embodiments of the present application may be combined with each other without conflict.
The term "and/or" is herein merely an association relationship describing an associated object, meaning that there may be three relationships, e.g., a and/or B, may represent: a exists alone, A and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
The first aspect of the present invention provides a method for obtaining a user word stock, please refer to fig. 1, which is a flowchart of a method for obtaining a user word stock in an embodiment of the present invention. The method comprises the following steps:
s101: acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person;
s102: and if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
The scheme can be applied to the client, and the client is, for example: cell phones, tablet computers, notebook computers, all-in-one machines, PCs (Personal Computer: personal computers), and the like; the scheme may also be applied to servers.
Optionally, the technical scheme of the embodiment of the invention can be applied to the situation that the user word stock meets the preset condition, namely, when the user word stock meets the preset condition, the recommended word stock is imported into the user word stock. The preset condition is that the user word stock is empty, or the user word stock is not empty but the quantity of the user word stock does not reach a threshold value. The fact that the user word stock is empty refers to, for example, a case that the client side cold-starts the input method program and does not import the word stock, a case that the user word stock of the newly registered user does not have words yet, a case that the registered user deletes all words in the user word stock, and the like, and the invention is not particularly limited. The threshold is, for example, 50% of the user word stock, or a specific number, for example, 3000 words, etc., and the present invention is not limited in particular. In other words, when the user word stock is empty, the technical scheme of the embodiment of the invention can be utilized to acquire the user word stock, and when the user word stock is not empty but the amount is less, the technical scheme of the embodiment of the invention can be utilized to supplement the user word stock. For example, the user word stock has a capacity of 10000 words, but only 5000 words in the user word stock, in order to improve the richness and accuracy of providing candidate words for users, the scheme of the embodiment of the invention can be applied to obtain a recommended word stock containing 5000 words as the rest of the user word stock. And when the user word stock is not empty and the quantity of the user word stock reaches a threshold value, for example, when the user word stock is saturated, the technical scheme in the embodiment of the invention can be applied to cover or replace the user word stock. Therefore, the technical scheme in the embodiment of the invention can be applied to any situation, and the invention is not particularly limited.
The user word stock in the embodiment of the invention comprises the user word stock of the client and/or the user word stock of the server, and in the concrete implementation process, the user word stock of the same user at the client and the user word stock of the server can be kept synchronous.
Specifically, the recommended word stock in the embodiment of the invention is a word stock with user individuation characteristics. The user personalized features are obtained through geographic information of the user, related information of contacts of the user or other information. Therefore, in the embodiment of the invention, the recommended word stock can be obtained based on the geographic information of the user or the related information of the contact person.
Specifically, if S101 acquires the recommended word stock based on the geographic information of the user, this can be achieved by:
acquiring one or more location areas of a user;
and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
The location area in the embodiment of the invention can be one or more of a city, a administrative area, a community, a business district, and the like. The division of the areas can be performed according to administrative ranges, longitude and latitude, cultural tradition or streets, and the like, and one of ordinary skill in the art can select the areas according to the actual practice, so that the invention is not particularly limited.
In the embodiment of the invention, the location area is the current area or the history area of the user, and one or more location areas of the user represent the geographic information of the user. There are various embodiments for acquiring one or more location areas of a user. In one embodiment, the user may be prompted to enter one or more regions, and the user entered region may be used as the user's location region. For example, the user is prompted to input the areas or addresses of "home" and "company", and then the "gyrogloss" of the area of "home" and the address of company "Guanyun east road in the sea area" input by the user are received, and then the area of "Guanyun east road" in the sea area is determined to be the "five road junction", and then two position areas of the user, namely the gyrogloss area and the five road junction area, are obtained. In another embodiment, the client invokes the positioning system to obtain one or more positioning locations, and then obtains one or more location areas according to the area to which the positioning locations belong. In another embodiment, a server receives one or more location areas sent by a client; or receiving one or more positions sent by the client, and determining the affiliated area of each position as a position area. In a specific implementation process, a person of ordinary skill in the art to which the present invention pertains may choose according to the actual implementation, and the present invention is not limited in particular.
Optionally, if the location area is acquired specifically through the positioning system, in order to improve accuracy, an area in which the user occasionally enters is prevented from being used as the location area, in the embodiment of the present invention, the residence time of the user in each location area may be counted, and then, an area in which the residence time reaches a time threshold is used as the location area; or sorting according to the residence time, and taking the area with the sorting reaching the preset position as the position area. The time threshold is, for example, 24 hours, and the preset position is, for example, 3 or 4, and the invention is not limited in particular.
Next, in S102, a recommended word stock is acquired based on the one or more location areas. Specifically, the recommended word stock includes words in an area cloud word stock corresponding to one or more location areas of the user, and the area cloud word stock is a word stock capable of embodying area features. In the embodiment of the invention, each regional cloud word stock corresponds to a region, for example, a five-crossing regional cloud word stock corresponds to a five-crossing region, and a gyrogloss regional cloud word stock corresponds to a gyrogloss region.
The regional cloud word stock can be automatically constructed by utilizing the operation information of words used by users in the region, for example, a home theater is arranged in a certain region, the users in the region all like to watch movies by the home theater, and the names of the home theater are frequently used, so that the names of the home theater are added into the regional cloud word stock of the region, and the regional cloud word stock constructed by the regional cloud word stock shows regional characteristics. Alternatively, the regional cloud word stock may be constructed by those skilled in the art according to the geographic location and cultural characteristics of the region, for example, the search for fox building, the search for dogs and the clearing are famous places in the five-way region, so that words such as "search for fox building", "search for dogs" and "clearing" are added into the five-way region cloud word stock, thereby constructing the regional cloud word stock embodying the regional characteristics.
The recommended word stock includes words of an area word stock corresponding to the user location area, specifically, the recommended word stock may include all words of an area word stock, or may include some words of an area cloud word stock, which is not particularly limited in the present invention.
The regional cloud word stock can reflect regional characteristics, and the position region of the user can reflect individuation of the user, so that the recommended word stock obtained by utilizing the regional cloud word stock corresponding to the user position region can be attached to individuation characteristics of the user, and therefore, when the user word stock is empty, the obtained recommended word stock is used as the user word stock, and the user can experience the input individuation service, so that the technical problem of how to provide individuation candidate words for the user when the user word stock is empty is solved.
How to obtain the recommended word stock based on the location area of the user is described below.
Specifically, the recommended word stock is obtained based on the location area of the user, which can be achieved by the following procedures: determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas, acquiring target words from the area cloud word stock, wherein the target words comprise one or more words, and constructing a recommended word stock based on the target words acquired from the area cloud word stock.
Specifically, firstly, according to regional cloud word libraries corresponding to different regions, determining regional cloud word libraries corresponding to one or more position regions of a user. For example, the location area of the user is a five-way mouth area and a back-looking area, and the area cloud word banks corresponding to the five-way mouth area and the back-looking area are a five-way mouth area cloud word bank and a back-looking area cloud word bank respectively, so that the five-way mouth area cloud word bank and the back-looking area cloud word bank are determined to be the area cloud word banks corresponding to the location area of the user.
And then, obtaining target words from the determined partial or all regional cloud word stock, wherein the target words comprise one or more words, and the number of words contained in the target words extracted from the different regional cloud word stock can be the same or different, and the invention is not particularly limited. Along with the above example, a first set of target words is extracted from the five crossing region cloud word stock, assuming that the set of target words contains 400 words, and a second set of target words is extracted from the gyroglossus region cloud word stock, assuming that the set of target words contains 600 words.
And finally, constructing a recommended word stock by utilizing the target words respectively taken out of each regional cloud word stock. As in the example above, the recommended word stock is built using 400 words contained in the first set of target words and 600 words contained in the second set of target words.
Further, if the target word taken from the regional cloud word stock is only a partial word of the regional cloud word stock, the word may be randomly taken from the regional cloud word stock, or the word ranked first may be taken from the regional cloud word stock. In the specific implementation process, the ordering of each word can be determined according to one or more parameters of word frequency, heat, latest selected time, popularization strength and the like of each word, and the invention is not particularly limited.
In addition, in the embodiment of the present invention, the number of target words obtained from each regional cloud word stock may be a randomly determined number, or may be a number determined according to some parameters, which is not particularly limited in the present invention. If the number of target words is determined according to some parameters, in one embodiment, the number of target words taken from each regional cloud word stock may be determined according to the time of the user in each location region; or in another embodiment, the number of target words taken from each regional cloud word stock can be determined according to the activity degree of the user in each position region; alternatively, in another embodiment, the number of target words taken from the cloud word stock of each location may be determined according to the time and the activity of the user in each location area, and one of ordinary skill in the art may select according to the actual implementation, which is not particularly limited. The number of target words to be fetched is determined according to the time and/or the liveness of the user in the location area will be described in detail.
Specifically, before the recommended word stock of the user is obtained, the method further comprises: acquiring the time and/or activity of the user in the location area, and acquiring the target word from the area cloud word stock, wherein the method comprises the following steps: and determining the number of target words obtained from the regional cloud word banks based on the time and/or the activity of the user in the location region, and obtaining the target words from the regional cloud word banks according to the number of the target words obtained from each regional cloud word bank.
First, how to determine the number of target words to be fetched according to the time of the user in the location area is described.
In the embodiment of the present invention, the time of the user in the location area may be a historical accumulated time, or may be an accumulated time in a certain period (for example, the week or the month), which is not particularly limited in the present invention. Specifically, the time the user is within the location area may be one or more of: the stay time of the user in the location area, the time of the user using the input method program in the location area, or the time of the user editing the document in the location area can be selected according to the actual practice by those of ordinary skill in the art, and the present invention is not particularly limited. The residence time of the user in the location area can be calculated and counted according to the positioning position acquired in each period by acquiring the positioning position by the positioning system according to a preset period in the past or in a time period, wherein the preset period is, for example, 1 minute or 3 minutes. The time at which the user uses the input method program in the location area can be obtained by counting the running time of the input method program in the location area. The time at which the user edits the document in the location area may then be obtained by counting the time at which the document editing program runs within the location area.
For convenience of explanation, the following will be given by taking a time in the location area of the user, specifically, a stay time in the location area as an example.
Specifically, there are various embodiments for determining the number of target words obtained from each regional cloud word stock according to the time of the user in the location region, and two embodiments are described below, and in a specific implementation process, the following two embodiments are included but not limited to.
1) Determining the number of target words obtained from the regional cloud word stock based on the time of the user in the location region comprises the following steps: the method comprises the steps of obtaining the capacity of a user word stock, determining the proportion of obtaining target words from each regional cloud word stock based on the time of the user in a position region, and determining the number of obtaining target words from each regional cloud word stock based on the capacity of the user word stock and the proportion of obtaining the target words from each regional cloud word stock.
Specifically, the current volume of a portion of the user thesaurus is fixed, e.g., 1000 words or 2000 words, in order to expand the words of the user thesaurus as much as possible, in this embodiment the recommended thesaurus volume corresponds to the volume of the user thesaurus. Thus, the capacity of the user thesaurus is first obtained.
Then, the specific gravity of the words obtained from each regional cloud word stock is determined based on the time of the user in each regional. Specifically, the specific gravity of the target word obtained from the cloud word stock of a certain region is specifically the proportion of the time of the region in all times. Let t1 denote the time of the user in the 1 st location area, t2 denote the time of the user in the 2 nd location area, … denote the time of the user in the n th location area, n is a positive integer, tn is a positive number, and then the specific gravity qi=ti/(t1+t2+ … +tn) of the target word is obtained from the region cloud word stock corresponding to the i-th location area.
Of course, although the present invention records "the capacity of obtaining the user word stock" before "determining the number of target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of obtaining the target words from the regional cloud word stock", in a specific implementation process, the specific gravity may be determined first and then the capacity of the user word stock may be obtained, or the capacity of the user word stock and the specific gravity may be obtained at the same time.
Next, the volume of the user word stock is multiplied by the specific gravity of the target words obtained from each regional cloud word stock, and the product is taken as the number of the target words obtained from the regional cloud word stock. As a specific example, the user A has a five-way area residence time of 50 hours, a round-view area residence time of 60 hours, a western-style area residence time of 20 hours, and a user word stock volume of 1300. According to the residence time of the user in the three areas, the specific gravity of the target words obtained from the five-crossing area cloud word stock can be determined to be 50/(50+60+20), the specific gravity of the target words obtained from the round-looking area cloud word stock is determined to be 60/(50+60+20), and the specific gravity of the target words obtained from the western single area cloud word stock is determined to be 20/(50+60+20). Further, according to the user word stock capacity 1300 and the specific gravity of the target words obtained from each regional cloud word stock, it is determined that the number of target words obtained from the five-crossing regional cloud word stock is 500, the number of target words obtained from the round-looking regional cloud word stock is 600, and the number of target words obtained from the western-style regional cloud word stock is 200. And then, respectively obtaining 500 words from the five-way mouth region cloud word stock according to the determined quantity, obtaining 600 words from the round-the-dragon region cloud word stock, obtaining 200 words from the western single region cloud word stock, and further constructing a recommended word stock comprising 1300 words.
2) Determining the number of words obtained from each regional cloud word stock based on the time of the user in the location region comprises the following steps: and calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
Unlike embodiment 1), in embodiment 2), the user lexicon capacity is flexible, i.e., a larger capacity is allocated to the user lexicon when the user personalization feature is greater, whereas a smaller capacity is allocated to the user lexicon when the user personalization feature is less. Thus, in such an embodiment, more words are obtained from the corresponding regional cloud word stock if the user is in the location region for a longer period of time, and fewer words are obtained from the corresponding regional cloud word stock if the user is in the location region for a shorter period of time.
Specifically, the time of the user in each location area is divided by a preset unit time, and the quotient is taken as the number of target words obtained from each area cloud word stock. The unit time is, for example, 1 hour, 30 minutes, or 10 minutes, and the like, and one of ordinary skill in the art to which the present invention pertains can set according to the actual implementation, and the present invention is not particularly limited.
Along the examples above, the user a has a five-port area residence time of 50 hours, a gyros area residence time of 60 hours, a western-style area residence time of 20 hours, and a unit time of 0.5 hours within one week. According to the residence time of the user in the three areas, the number of target words obtained from the five-crossing area cloud word stock is determined to be 50/0.5=100, the number of target words obtained from the round-the-dragon area cloud word stock is determined to be 60/0.5=120, and the number of target words obtained from the western single area cloud word stock is determined to be 20/0.5=40. And then, respectively acquiring 100 target words from the five-way mouth region cloud word stock according to the determined quantity, acquiring 120 target words from the round-the-dragon region cloud word stock, and acquiring 20 target words from the western single region cloud word stock, thereby constructing a recommended word stock comprising the 240 words.
In the above description, the residence time of the user in the location area is taken as an example, and in a specific implementation process, if the residence time of the user in the location area includes a plurality of residence times, the time of using the input method program or the time of editing the document, different parameters may be assigned different weights, and then the weighted sum is taken as the time of the user in the location area. For example, a weight of 0.15 is assigned to the dwell time, a weight of 0.5 is assigned to the time of using the input method program, and a weight of 0.35 is assigned to the time of editing the document, and if the dwell time of the user in the five-crossing area is 50 hours, the time of using the input method program is 30 hours, and the time of editing the document is 10 hours, 50×0.15+30×0.5+10×0.35=12.5 hours are taken as the time of the user in the five-crossing area.
After how to determine the number of words according to the time of the user in the location area is described, how to determine the number of words according to the activity of the user in the location area is described next.
Specifically, in the embodiment of the present invention, the activity of the user in the location area may be the number of consumption times of the user in the location area and/or the number of times the user arrives in the location area. Wherein, the user generates a successful transaction in the location area, the consumption times are increased by 1; the number of arrivals is increased by 1 if the user's location is located once in the location area.
For convenience of explanation, the following description will be given by taking an example in which the user's liveness in the location area is specifically the number of consumption times in the location area.
Similar to the two embodiments of determining the number of words to be fetched according to the time of the user in the location area, in one embodiment, determining the number of target words to be fetched from the regional cloud word stock based on the activity of the user in the location area includes: acquiring the capacity of a user word stock, determining the proportion of acquiring target words from an area cloud word stock based on the activity degree of the user in a position area, and determining the number of acquiring target words from the area cloud word stock based on the capacity of the user word stock and the proportion of acquiring the target words from the area cloud word stock; in another embodiment, determining the number of target words obtained from the regional cloud word stock based on the activity of the user in the location region includes: and calculating the number of target words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree. The unit liveness is, for example, the number of unit consumption times and the number of unit arrival times. Since the above description has been made in detail of how the number of words to be taken is determined according to the time of the user in the location area, and the embodiment of determining the number of words to be taken according to the activity of the user in the location area is similar thereto, the description will be made here with two specific examples, and the specific process will not be repeated.
1) The user A consumes 20 times in the five-way area, 15 times in the round-looking area and 5 times in the western-style area within a week, and the user word stock has the capacity of 1300. According to the consumption times of the user in the three areas, the specific gravity of the target words obtained from the five-crossing area cloud word stock can be determined to be 20/(20+15+5), the specific gravity of the target words obtained from the round-looking area cloud word stock is determined to be 15/(20+15+5), and the specific gravity of the target words obtained from the western-style area cloud word stock is determined to be 2/(20+15+5). Furthermore, according to the specific gravity of the user word stock and the target words obtained from each regional cloud word stock, the number of the target words obtained from the five-crossing regional cloud word stock is 650, the number of the target words obtained from the round-the-dragon regional cloud word stock is 488, and the number of the target words obtained from the western single regional cloud word stock is 162. Then, 650 target words are obtained from the five-way mouth area cloud word stock according to the determined quantity, 488 target words are obtained from the round-the-dragon area cloud word stock, 162 target words are obtained from the western bill area cloud word stock, and a recommended word stock comprising 1300 words is further constructed.
2) The user A consumed 20 times in the five-way area, 15 times in the Huilong area, 5 times in the western style area, and the unit consumption times were 0.05 times. According to the consumption times of the user in the three areas, the number of target words obtained from the five-crossing area cloud word stock can be determined to be 400, the number of target words obtained from the round-the-dragon area cloud word stock is determined to be 300, and the number of target words obtained from the western-style area cloud word stock is determined to be 100. And then, respectively acquiring 400 target words from the five-way mouth region cloud word stock according to the determined quantity, acquiring 300 target words from the round-the-dragon region cloud word stock, and acquiring 100 target words from the western single region cloud word stock, thereby constructing a recommended word stock comprising the 800 words.
After how to determine the number of target words according to the liveness of the user in the location area, it is next described how to determine the number of target words according to the time and liveness of the user in the location area.
Specifically, when the number of words to be fetched is determined according to the time or the activity of the user in the location area, the time and the activity of each location area can be combined according to preset weights, the proportion of the target words to be fetched from each area cloud word stock is determined according to the combined time and the activity of each location area, and then the target words to be fetched from the area cloud word stock according to the proportion.
Again, for the example of dwell time and number of consumption, it is assumed that dwell time is weighted by 0.6 and number of consumption is weighted by 0.4. Suppose that user a spends 20 times in a week for 50 hours in the five crossing area, spends 15 times in the gyrocompass area for 60 hours, spends 5 times in the western-style area for 20 hours, and the user word stock has a capacity of 1300. According to the number of consumption times of the user in the three regions, it may be determined that the specific gravity of the target word obtained from the five-crossing region cloud word stock is (50×0.6+20×0.4)/[ 0.6×50+60+20) +0.4×20+15+5 ], the specific gravity of the target word obtained from the round-looking region cloud word stock is (60×0.6+15×0.4)/[ 0.6×50+60+20) +0.4×20+15+5 ], and the specific gravity of the target word obtained from the western-word region cloud word stock is (20×0.6+5+0.4)/[ 0.6×50+60+20) +0.4×20+15+5 ]. Furthermore, according to the specific gravity of the user word stock and the target words obtained from each regional cloud word stock, the number of target words obtained from the five-crossing regional cloud word stock is determined to be 525, the number of target words obtained from the round-the-dragon regional cloud word stock is 581, and the number of target words obtained from the western-style regional cloud word stock is 194. Next, 525 target words are obtained from the five-way mouth region cloud word stock according to the determined quantity, 581 target words are obtained from the round-the-dragon region cloud word stock, 194 target words are obtained from the western single region cloud word stock, and then a recommended word stock comprising the 1300 words is constructed.
The contents executed by the different execution bodies are specifically described below.
When the execution subject is specifically a client, the client may store all the regional cloud word stock, and the client executes: obtaining a user position area and time or activity of the user in the position area, further extracting words from a locally stored area cloud word stock based on the position area and the time or activity of the user in the position area, constructing a recommended word stock, and finally taking the self-constructed recommended word stock as a user word stock; alternatively, the regional cloud word stock may be stored in the server, and then the client performs: the obtained user position area, the time or activity of the user in the position area, the area cloud word stock needing to be fetched and the specific word fetching quantity are determined, a server is informed of fetching words from the corresponding area cloud word stock and constructing a recommended word stock, and then the recommended word stock returned by the server is used as the user word stock; alternatively, the regional cloud word stock may be stored in the server, and then the client performs: determining an area cloud word stock needing word taking according to the acquired user position area, reporting the area cloud word stock needing word taking to a server, reporting the time or activity of a user in the position area to the server, enabling the server to determine the number of words to be specifically taken and construct a recommended word stock, and then executing the following steps: and taking the recommended word stock returned by the server as a user word stock.
When the execution subject is specifically a server, the regional cloud word stock is stored in the server, and the server executes: obtaining a position area reported by a client and time or activity of a user in the position area, extracting words according to the position area and the time or activity of the user in the position area, constructing a recommended word stock, and then taking the recommended word stock as a user word stock of a server, wherein the user word stock of the server and the user word stock of the client can be further executed; or the server performs: and receiving a positioning position or transaction reported by the client, determining a user position area, time or activity of the user in the user position area, further determining an area cloud word stock needing to be fetched and specifically the number of fetched words, then fetching words from the corresponding area cloud word stock, constructing a recommended word stock, taking the recommended word stock as a user word stock of a server, and further executing the user word stock of the synchronous server and the user word stock of the client.
Further, the ranking of each word in the recommended word stock may be randomly ranked, or may be ranked according to word frequency, heat, latest selected time, popularization strength, etc. of each word, the present invention is not limited in particular.
After obtaining the recommended word stock through any one or more of the above embodiments, if the user word stock meets the preset condition, in S102, the recommended word stock is imported into the user word stock, and further input candidates are provided to the user based on the user word stock.
According to the description, the regional cloud word stock reflects regional characteristics, and the position region of the user can reflect individuation of the user, so that the recommended word stock obtained by using the regional cloud word stock corresponding to the position region of the user can be attached to the individuation characteristics of the user, and therefore, when the user word stock is empty, the recommended word stock is used as the user word stock, and the user can experience the input individuation service, so that the technical problem of how to provide individuation candidate words for the user when the user word stock is empty is solved.
An optional implementation manner is described below, and the implementation manner achieves the technical effect of optimizing the regional cloud word stock in addition to the technical effect of providing personalized service for the user when the user word stock is empty.
The embodiment further comprises, based on the technical scheme, the following steps: and acquiring input information of a user, wherein the input information comprises a corresponding position area when the user performs input operation, and updating an area cloud word stock corresponding to the relevant area according to the operation information.
Specifically, according to the location area included in the operation information, an area cloud word stock corresponding to each piece of input information is determined. Further, the cloud word stock of the corresponding region is updated according to words in the input information. In addition, in the embodiment of the invention, the updated regional cloud word stock not only comprises the regional cloud word stock contained in the recommended word stock, but also comprises other word stocks.
The method for updating the regional cloud word stock is similar to the method for updating the user word stock, and the method is not particularly limited.
As a specific example, assume that the recommended word stock as the user word stock specifically includes 500 words in the five-way mouth region cloud word stock, 600 words in the gyroglideus region cloud word stock, and 200 words in the western single region cloud word stock. The collected multiple input information indicates that the user uses the shared automobile once in the Tiantong yuan area, so that the word of the shared automobile is added into the word stock of the Tiantong yuan area. In addition, if a large number of users have similar input information, namely the shared automobile is used in the Tiantong yuan, higher ordering can be set for the shared automobile in the Tiantong Yuan area cloud word stock, so that the shared automobile can enter the recommended word stock more easily, and the area cloud word stock is optimized.
Another specific example is also assumed that the recommended word stock as the user word stock specifically includes 500 words in the five-way mouth region cloud word stock, 600 words in the gyrogle region cloud word stock, and 200 words in the western single region cloud word stock. The method comprises the steps that 200 words of a western-style single-area cloud word stock comprise two words of 'western-style single-large-city' and 'western-style single-market', and the ranking of the 'western-style single-market' in the western-style single-area cloud word stock is higher than that of 'western-style single-large-city'. As can be seen from the input information of the user, the user uses "western style large city" 20 times and "western style mall" 1 time in the western style area, and therefore the ranking of the word "western style large city" is adjusted to be higher than that of "western style mall" in the western style area Yun Ciku according to the operation information.
As can be seen from the above description, the input information includes a location area corresponding to the user when performing the input operation, and updates one or more regional cloud word banks corresponding to the one or more relevant areas according to the input information, so that words in the regional cloud word banks more conform to personalized features of the user in the region, and the regional cloud word banks are further optimized, so that a more accurate recommended word bank is provided for the user.
The above description is presented on how to obtain the recommended word stock based on the geographic information of the user, and the following description is presented on how to obtain the recommended word stock based on the relevant information of the contact person.
When the recommended word stock is obtained based on the contact person related information of the user, the method can be realized by the following steps:
acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
and acquiring the recommended word stock based on the high-frequency words used by the contact.
Specifically, contact information that the application currently installed by the client has is first acquired. More specifically, the contact information is obtained from an application program with a contact, for example, weChat, QQ, browser, address book, etc., and the contact information is for example, contact identification (for example, mobile phone number, micro signal or mailbox, etc.), operation information of an input word of the contact on its terminal, etc., and the invention is not limited in particular.
And then, screening out high-frequency words used by the contacts of the user based on the operation information of the input words in the contact information. Specifically, word frequency of each word can be obtained according to statistics of input words of contacts, then sorting is performed according to the word frequency of each word, and then words with word frequency higher than a preset word frequency are determined to be high-frequency words or words reaching a preset position are determined to be high-frequency words. The preset word frequency is, for example, 30, the preset position is, for example, 500 or 300, etc., and the present invention is not particularly limited. In the embodiment of the invention, the high-frequency words used by the contact are the contact related information in the embodiment of the invention.
Then, a recommended word stock is constructed based on the high-frequency words used by the contacts obtained through screening, and then the high-frequency words used by the contacts are added into the recommended word stock.
Optionally, if the number of contacts of the user is greater than the first preset threshold, contacts with a contact frequency exceeding the second preset threshold may be selected to construct the recommended word stock, and specific values of the first preset threshold and the second preset threshold are not limited herein.
Because the contacts of the user are mostly people with certain common individuation characteristics with the user, such as family members, friends, colleagues, classmates and the like of the user, for example, the colleagues of the user and the user can input the same work place, the recommended word stock obtained based on the related information of the contacts can fit the individuation characteristics of the user, and therefore when the user word stock is empty, the recommended word stock obtained by the method is used as the user word stock, the user can experience the input individuation service, and the technical problem of how to provide individuation candidate words for the user when the user word stock is empty is solved.
The foregoing describes how to solve the technical problem of providing personalized candidate words for a user when a user word stock is empty, and the following describes an alternative embodiment, which achieves the technical effect of providing personalized services for the user when the user word stock is empty, and also achieves the technical effect of reducing the deviation existing by taking the recommended word stock as the user word stock.
Specifically, the embodiment further comprises, based on the above technical solution: and acquiring input information of the words input by the user, and updating a user word stock according to the input information.
Specifically, since the recommended word stock is constructed according to the location area of the user or the related information of the contact person, a certain deviation exists between the recommended word stock and the actual personalized feature of the user, in order to reduce the deviation, in the embodiment of the invention, after the recommended word entry is imported into the user word stock, the input information of the input word of the user, such as the selected word, the selection frequency of each word, frequently used place words, food words, contact person words, frequently occurring false sounds, frequently used picture expressions and the like, is continuously collected, and then the user word stock is updated according to the collected input information.
Specifically, if the user uses some new words which are not in the user word stock, adding the new words to the user word stock according to the operation information, and setting corresponding ranks according to the input information; if the user uses some words already in the user lexicon, the ordering of these words is up-regulated according to the input information; conversely, if the user does not use some words already in the user lexicon, the ordering of these words is downturned according to the operation information, and even these words are deleted.
In a specific example, it is assumed that a recommended word stock as a user word stock specifically includes 500 words in a five-way mouth area cloud word stock, 600 words in a round-looking area cloud word stock, and 200 words in a western single area cloud word stock, but the most commonly used place word of the user is collected as "Tiantong yuan", so that a word of "Tiantong yuan" is added in the user word stock according to the operation information, and a higher ranking is set for "Tiantong yuan", so that the user can select "Tiantong yuan" from a relatively front position after inputting a character string corresponding to Tiantong yuan.
Another specific example is also assumed that the recommended word stock as the user word stock specifically includes 500 words in the five-way mouth region cloud word stock, 600 words in the gyrogle region cloud word stock, and 200 words in the western single region cloud word stock. The method comprises the steps that 200 words of a western-style regional cloud word stock comprise two words of 'western-style big Yue city' and 'western-style mall', and the initial ranking of the 'western-style mall' in a user word stock is higher than that of the 'western-style big Yue city'. By acquiring the operation information of the user, the user uses the "great western style city" 20 times and uses the "great western style city" 1 time, so that the word order of the "great western style city" is adjusted to be higher than that of the "great western style city" in the user word stock according to the operation information, and the user can select the "great western style city" from a more front position after inputting the character string of the great western style city subsequently.
As can be seen from the above description, by acquiring the operation information of the user and updating the user word stock according to the operation information of the user, the user word stock is more and more personalized to the user, and the deviation of taking the recommended word stock as the user word stock is gradually reduced.
Based on the same inventive concept as the method for obtaining the user word stock in the foregoing embodiment, the second aspect of the present invention further provides a method for providing input candidates, as shown in fig. 2, including:
s201: receiving a character string input by a user;
s202: acquiring one or more candidate words matched with the character string from a user word stock based on the character string;
s203: and outputting one or more candidate words matched with the character string.
In S201, the client receives the character string input by the user, then in S202, one or more candidate words matching the character string are obtained from the user word stock based on the character string, and finally in S203, one or more candidate words matching the character string are output. The method for obtaining the user word stock is obtained in the manner described in detail above, and will not be repeated here.
For example, taking the above example as an example, assume that the recommended word stock as the user word stock specifically includes 500 words in the five-way mouth region cloud word stock, 600 words in the back-looking region cloud word stock, and 200 words in the western single region cloud word stock. The character string input by the user is "qinghua", and candidate words matched with the "qinghua" in the user word stock have "sublimated" and "emotion", so that two candidate words of "sublimated" and "emotion" are output to the user.
Further, when outputting the candidate words matched with the character strings, the candidate words can be output according to the sequence of the candidate words in the user word stock, so that the user can conveniently select the candidate words related to the position area. For example, in the user word stock, the ranking of "bloom" is higher than that of "emotion", so that when two candidate words of "bloom" and "emotion" are output, "bloom" is displayed before "emotion". Because the user is often located in the five-way mouth area, the possibility of selecting the "clean" is higher, so the candidate words are output according to the ordering of the candidate words in the user word stock, if the user inputs the "qinghua" character string, the desired result is "clean", and the user can select the "clean" candidate word at a relatively front position.
Based on the same inventive concept as the method for obtaining the user word stock in the foregoing embodiment, a third aspect of the present invention further provides a method for constructing an regional cloud word stock, as shown in fig. 3, including:
s301: acquiring input information of a user input word, wherein the operation information comprises a corresponding position area corresponding to the user input operation;
s302: and constructing an area cloud word stock corresponding to the position area by utilizing the input information.
Specifically, the embodiment of the invention divides one or more areas in advance, and the areas can be one or more of cities, administrative areas, communities, business circles and the like. The division of the areas can be performed according to administrative ranges, longitude and latitude, cultural tradition or streets, and the like, and one of ordinary skill in the art can select the areas according to the actual practice, so that the invention is not particularly limited. In the embodiment of the invention, an area cloud word stock is correspondingly constructed for each area.
First, in S301, input information of a plurality of user input words is collected, the plurality of users including a whole-network user, the input information including a frequency of the user inputting each word, frequently used place words, food words, contact words, frequently occurring false sounds, frequently used picture expressions, and the like, and the input information further including a location area when the user performs an input operation.
Then, in S302, an area cloud word stock corresponding to each area is constructed using the input information of the user. Specifically, if the word a enters a user word stock of a certain user according to input information of the user, and the corresponding position area when the user inputs the word a is determined to be a five-way mouth area, the word a is added into the five-way mouth area cloud word stock. In the specific implementation process of constructing the regional cloud word stock, a threshold value can be set for the words added into the regional cloud word stock by combining the input information of a plurality of users, namely, when the frequency of determining that the corresponding position region is a certain region when the word is input exceeds the threshold value for the same word, the word is added into the regional cloud word stock corresponding to the region.
And continuously adding different words into the regional cloud word stock according to the mode, so that the regional cloud word stock is constructed according to the input information of the users in the region.
Based on the same inventive concept as the method for obtaining a user word stock in the foregoing embodiment, the fourth aspect of the present invention further provides an apparatus for obtaining a user word stock, as shown in fig. 4, including:
a first obtaining module 101, configured to obtain a recommended word stock with personalized features of a user based on geographic information or contact related information of the user;
and the importing module 102 is configured to import the recommended word stock into the user word stock if the user word stock meets a preset condition.
Specifically, the first acquisition module 101 includes a first sub-acquisition module for acquiring one or more location areas of a user, the geographic information being represented by the one or more location areas of the user; and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
Optionally, the first sub-obtaining module is configured to determine an area cloud word stock corresponding to the location area based on the area cloud word stock corresponding to the different areas; obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words; and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
Optionally, the first obtaining module 101 further includes a time and/or activity obtaining module, configured to obtain a time and/or activity of the user in the location area before the obtaining of the recommended word stock of the user based on one or more location areas of the user;
the first sub-acquisition module is used for determining the number of target words acquired from the regional cloud word stock based on the time and/or the activity of the user in the position region; and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
Optionally, the first sub-obtaining module is configured to obtain a capacity of the user word stock; determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
Optionally, the first sub-obtaining module is configured to calculate, based on a time of the user in the location area and a preset unit time, a number of target words obtained from the area cloud word stock.
Optionally, the first sub-obtaining module is configured to calculate, based on the activity of the user in the location area and a preset unit activity, a number of words obtained from the area cloud word stock.
Optionally, the time of the user in the location area includes one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
Optionally, the activity of the user in the location area includes the number of consumption of the user in the location area and/or the number of times the user arrives at the location area.
Optionally, the apparatus further includes:
the second acquisition module is used for acquiring the operation information of the user input word, wherein the input information comprises a position area corresponding to the user input operation;
and the first updating module is used for updating the regional cloud word stock corresponding to the position region according to the operation information.
Or, the first obtaining module 101 further includes a second sub-obtaining module, configured to obtain contact information in the currently installed application program; based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact; and acquiring the recommended word stock based on the high-frequency words used by the contact.
Optionally, the apparatus further includes:
the third acquisition module is used for acquiring the input information of the user;
and the second updating module is used for updating the user word stock according to the input information.
Optionally, the preset condition is that the user word stock is empty, or the user word stock is not empty but the quantity of the user word stock does not reach a threshold.
The foregoing various modifications and specific examples of the method for obtaining a user thesaurus in the embodiment of fig. 1 are applicable to the apparatus for obtaining a user thesaurus in this embodiment, and those skilled in the art will be aware of the implementation method of the apparatus for obtaining a user thesaurus in this embodiment through the foregoing detailed description of the method for obtaining a user thesaurus, so that the description will not be repeated here for brevity.
Based on the same inventive concept as the method of providing input candidates of the foregoing embodiment, the fifth aspect of the present invention further provides an apparatus for providing input candidates, as shown in fig. 5, including:
a receiving module 201, configured to receive a character string input by a user;
an obtaining module 202, configured to obtain, based on the character string, one or more candidate words that match the character string from a user word stock, where the user word stock is obtained by: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions;
And the output module 203 is configured to output one or more candidate words that match the character string.
The foregoing various modifications and embodiments of the method for providing input candidates in the embodiment of fig. 2 are equally applicable to the apparatus for providing input candidates in this embodiment, and those skilled in the art will be aware of the foregoing detailed description of the method for providing input candidates, so that the detailed description of the implementation method of the apparatus for providing input candidates in this embodiment will not be repeated here for brevity.
Based on the same inventive concept as the method for constructing a regional cloud word stock in the foregoing embodiment, the sixth aspect of the present invention further provides an apparatus for constructing a regional cloud word stock, as shown in fig. 6, including:
the acquisition module 301 is configured to acquire input information of a word input by a user, where the input information includes a location area corresponding to the user input operation;
and the construction module 302 is configured to construct an area cloud word stock corresponding to the location area by using the input information.
The foregoing various modifications and specific examples of the method for constructing an regional cloud word stock in the embodiment of fig. 3 are applicable to the apparatus for constructing an regional cloud word stock in this embodiment, and the implementation method of the apparatus for constructing an regional cloud word stock in this embodiment will be apparent to those skilled in the art from the foregoing detailed description of the method for constructing an regional cloud word stock, so that, for brevity of description, details will not be given here.
Based on the same inventive concept as the method of obtaining a user thesaurus of the previous embodiments, a seventh aspect of the present invention further provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person;
and if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
Optionally, the steps stored in the computer readable storage medium are as follows: the computer program corresponding to the recommended word stock is obtained based on the geographic information of the user, when being executed, specifically comprises the following steps:
acquiring a recommended word stock of the user based on one or more location areas of the user to acquire one or more location areas of the user, wherein the geographic information is represented by the one or more location areas of the user;
and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
Optionally, the steps stored in the computer readable storage medium are as follows: based on one or more location areas of the user, the computer program corresponding to the recommended word stock of the user is obtained, when executed, specifically comprising the following steps:
Determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
Optionally, the computer readable storage medium further stores further computer programs, which further computer programs are in the steps of: based on one or more location areas of the user, the method is executed before acquiring the recommended word stock of the user, and the following steps are realized when the method is executed: acquiring time and/or activity of the user in the position area;
the and steps stored in the computer readable storage medium: the computer program for acquiring the target word from the regional cloud word stock specifically comprises the following steps when being executed:
determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
Optionally, the steps stored in the computer readable storage medium are as follows: determining that a computer program corresponding to the number of target words obtained from the regional cloud word stock is executed based on the time and/or the activity of the user in the position region, wherein the computer program specifically comprises the following steps:
Acquiring the capacity of the user word stock;
determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
Optionally, the steps stored in the computer readable storage medium are as follows: determining that a computer program corresponding to the number of words obtained from the regional cloud word stock based on the time of the user in the location region is executed, specifically including the following steps:
and calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
Optionally, the steps stored in the computer readable storage medium are as follows: determining that a computer program corresponding to the number of words obtained from the regional cloud word stock based on the activity of the user in a location region is executed, specifically comprising the following steps:
and calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
Optionally, the time of the user in the location area includes one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
Optionally, the activity of the user in the location area includes the number of consumption of the user in the location area and/or the number of times the user arrives at the location area.
Optionally, the computer readable storage medium further stores further computer programs which when executed implement the steps of:
acquiring operation information of the user input word, wherein the input information comprises a position area corresponding to the user input operation;
and updating the regional cloud word stock corresponding to the position region according to the operation information.
Optionally, the steps stored in the computer readable storage medium are as follows: the method specifically comprises the following steps of:
acquiring contact information in a currently installed application program;
Based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
and acquiring the recommended word stock based on the high-frequency words used by the contact.
Optionally, the steps stored in the computer readable storage medium are as follows: the method specifically comprises the following steps of:
acquiring input information of the user;
and updating the user word stock according to the input information.
Optionally, the preset condition is that the user word stock is empty, or the user word stock is not empty but the quantity of the user word stock does not reach a threshold.
Based on the same inventive concept as the method of providing input candidates of the previous embodiments, the eighth aspect of the present invention also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, realizes the steps of:
receiving a character string input by a user;
and acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions;
And outputting one or more candidate words matched with the character string.
Based on the same inventive concept as the method of building a regional cloud word stock of the previous embodiments, the ninth aspect of the present invention further provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
acquiring input information of a user input word, wherein the input information comprises a position area corresponding to the user input operation;
and constructing an area cloud word stock corresponding to the position area by utilizing the input information.
Based on the same inventive concept as the method of providing a user thesaurus in the previous embodiments, the tenth aspect of the present invention also provides an apparatus for providing a user thesaurus, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person;
and if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user;
and acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
Acquiring time and/or liveness of the user in one or more location areas based on the user before acquiring a recommended word stock of the user;
determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
acquiring the capacity of the user word stock;
determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
And calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
and calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
Optionally, the time of the user in the location area includes one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
Optionally, the activity of the user in the location area includes the number of consumption of the user in the location area and/or the number of times the user arrives at the location area.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
Acquiring operation information of the user input word, wherein the input information comprises a position area corresponding to the user input operation;
and updating the regional cloud word stock corresponding to the position region according to the operation information.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
and acquiring the recommended word stock based on the high-frequency words used by the contact.
Optionally, the apparatus is also configured to execute the one or more programs by one or more processors, including instructions for:
acquiring input information of the user;
and updating the user word stock according to the input information.
Optionally, the preset condition is that the user word stock is empty, or the user word stock is not empty but the quantity of the user word stock does not reach a threshold.
The foregoing various modifications and specific examples of the method for obtaining a user thesaurus in the embodiment of fig. 1 are applicable to the apparatus for obtaining a user thesaurus in this embodiment, and those skilled in the art will be aware of the implementation method of the apparatus for obtaining a user thesaurus in this embodiment through the foregoing detailed description of the method for obtaining a user thesaurus, so that the description will not be repeated herein for brevity.
Based on the same inventive concept as the method of providing input candidates of the previous embodiments, an eleventh aspect of the present invention also provides an apparatus for providing input candidates, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
receiving a character string input by a user;
and acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions;
And outputting one or more candidate words matched with the character string.
The foregoing various modifications and specific examples of the method for providing input candidates in the embodiment of fig. 2 are equally applicable to the apparatus for providing input candidates of the present embodiment, and the implementation method of the apparatus for providing input candidates in the present embodiment will be apparent to those skilled in the art from the foregoing detailed description of the method for providing input candidates, so that they will not be described in detail herein for brevity of description.
Based on the same inventive concept as the method for building a regional cloud word stock according to the foregoing embodiment, the twelfth aspect of the present invention further provides an apparatus for building a regional cloud word stock, including a memory, and one or more programs, wherein the one or more programs are stored in the memory, and configured to be executed by the one or more processors, the one or more programs including instructions for:
acquiring input information of a user input word, wherein the input information comprises a position area corresponding to the user input operation;
and constructing an area cloud word stock corresponding to the position area by utilizing the input information.
The foregoing various modifications and specific examples of the method for constructing an regional cloud word stock in the embodiment of fig. 3 are applicable to the apparatus for constructing an regional cloud word stock in this embodiment, and the implementation method of the apparatus for constructing an regional cloud word stock in this embodiment will be apparent to those skilled in the art from the foregoing detailed description of the method for constructing an regional cloud word stock, so that, for brevity of description, details will not be given here.
Fig. 7 is a block diagram of an electronic device 800, which may be the device for obtaining a user thesaurus, the device for providing input candidates, or the device for building a regional cloud thesaurus described above, according to an exemplary embodiment, and the present invention is not limited in particular. For example, electronic device 800 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to fig. 7, an electronic device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input/output (I/O) interface 812, a sensor component 814, and a communication component 816.
The processing component 802 generally controls overall operation of the electronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 802 may include one or more processors 820 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interactions between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power supply component 806 provides power to the various components of the electronic device 800. The power components 806 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen between the electronic device 800 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and/or a rear camera. When the electronic device 800 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras may be a fixed optical lens system or a system with focal length and optical zoom capabilities.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 further includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be a keyboard, click wheel, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 814 includes one or more sensors for providing status assessment of various aspects of the electronic device 800. For example, the sensor assembly 814 may detect an on/off state of the electronic device 800, a relative positioning of the components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in position of the electronic device 800 or a component of the electronic device 800, the presence or absence of a user's contact with the electronic device 800, an orientation or acceleration/deceleration of the electronic device 800, and a change in temperature of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communication between the electronic device 800 and other devices, either wired or wireless. The electronic device 800 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication component 816 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 804 including instructions executable by processor 820 of electronic device 800 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
Fig. 8 is a schematic structural diagram of a server according to an embodiment of the present invention, where the server may be used to implement the method for providing a user word stock, the method for providing input candidates, or the method for constructing a regional cloud word stock described above, and the present invention is not limited in particular. The server 1900 may vary considerably in configuration or performance and may include one or more central processing units (central processing units, CPU) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) that store applications 1942 or data 1944. Wherein the memory 1932 and storage medium 1930 may be transitory or persistent. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, a central processor 1922 may be provided in communication with a storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input/output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
The above-mentioned one or more technical solutions in the embodiments of the present application at least have one or more of the following technical effects:
in the technical scheme of the embodiment of the invention, a recommended word stock with user individuation characteristics is firstly obtained based on geographic information of a user or related information of a contact person, and then the recommended word stock is imported into the user word stock if the user word stock meets preset conditions. Because the recommended word stock has the personalized characteristics of the user, when the user word stock is empty, the recommended word stock is used as the user word stock, so that the user can experience the input personalized service, and the technical problem of how to provide personalized candidate words for the user when the user word stock is empty is solved.
It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (48)

1. A method for obtaining a user thesaurus, comprising:
acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person; the obtaining the recommended word stock based on the geographic information of the user comprises the following steps: acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas; before the acquiring the recommended word stock of the user based on the one or more location areas of the user, the method further comprises: acquiring time and/or activity of the user in the position area; obtaining the target word from the regional cloud word stock comprises the following steps: determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock;
And if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
2. The method of claim 1, wherein the obtaining the recommended word stock of the user based on the one or more location areas of the user comprises:
determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
3. The method of claim 1, wherein the determining the number of target words to obtain from the regional cloud word stock based on the time and/or activity of the user in the location region comprises:
acquiring the capacity of the user word stock;
determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
4. The method of claim 1, wherein the determining the number of words to obtain from the regional cloud word stock based on the time the user is in the location region comprises:
And calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
5. The method of claim 1, wherein the determining the number of words to obtain from the regional cloud word stock based on the user's liveness in the location region comprises:
and calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
6. The method of claim 1, wherein the time the user is in the location area comprises one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
7. The method of claim 1, wherein the user's liveness in the location area comprises a number of spending of the user in the location area and/or a number of times the user arrives in the location area.
8. The method of any one of claims 1-7, wherein the method further comprises:
Acquiring operation information of the user input word, wherein the operation information comprises a position area corresponding to the user input operation;
and updating the regional cloud word stock corresponding to the position region according to the operation information.
9. The method of claim 1, wherein the obtaining the recommended word stock based on contact related information of the user comprises:
acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
and acquiring the recommended word stock based on the high-frequency words used by the contact.
10. The method of claim 1, wherein the method further comprises:
acquiring input information of the user;
and updating the user word stock according to the input information.
11. The method of claim 1, wherein the preset condition is that the user thesaurus is empty, or the user thesaurus is not empty but the amount of the user thesaurus does not reach a threshold.
12. A method of providing input candidates, comprising:
Receiving a character string input by a user;
and acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions; the obtaining the recommended word stock based on the geographic information of the user comprises the following steps: acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas; before the acquiring the recommended word stock of the user based on the one or more location areas of the user, the method further comprises: acquiring time and/or activity of the user in the position area; obtaining the target word from the regional cloud word stock comprises the following steps: determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock;
And outputting one or more candidate words matched with the character string.
13. An apparatus for obtaining a user thesaurus, comprising:
the first acquisition module is used for acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person; the first acquisition module comprises a first sub-acquisition module, a second acquisition module and a first control module, wherein the first acquisition module is used for acquiring one or more location areas of a user, and the geographic information is represented by the one or more location areas of the user; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas;
the first obtaining module further comprises a time and/or activity obtaining module, which is used for obtaining the time and/or activity of the user in the location area before the recommended word stock of the user is obtained based on one or more location areas of the user;
the first sub-acquisition module is used for determining the number of target words acquired from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock
And the importing module is used for importing the recommended word stock into the user word stock if the user word stock meets the preset condition.
14. The apparatus of claim 13, wherein the first sub-acquisition module is configured to determine an area cloud word stock corresponding to the location area based on the area cloud word stock corresponding to the different areas; obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words; and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
15. The apparatus of claim 13, wherein the first sub-acquisition module is configured to acquire a capacity of the user thesaurus; determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
16. The apparatus of claim 13, wherein the first sub-obtaining module is configured to calculate a number of target words obtained from the regional cloud word stock based on a time of the user in the location region and a preset unit time.
17. The apparatus of claim 13, wherein the first sub-obtaining module is configured to calculate a number of words obtained from the regional cloud word stock based on an activity level of the user in the location region and a preset unit activity level.
18. The apparatus of claim 13, wherein the time the user is in the location area comprises one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
19. The apparatus of claim 13, wherein the user's liveness in the location area comprises a number of spending of the user in the location area and/or a number of times the user arrives in the location area.
20. The apparatus of any one of claims 13-19, wherein the apparatus further comprises:
the second acquisition module is used for acquiring operation information of the user input word, wherein the operation information comprises a position area corresponding to the user input operation;
and the first updating module is used for updating the regional cloud word stock corresponding to the position region according to the operation information.
21. The apparatus of claim 13, wherein the first acquisition module further comprises a second sub-acquisition module for acquiring contact information in a currently installed application; based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact; and acquiring the recommended word stock based on the high-frequency words used by the contact.
22. The apparatus of claim 13, wherein the apparatus further comprises:
the third acquisition module is used for acquiring the input information of the user;
and the second updating module is used for updating the user word stock according to the input information.
23. The apparatus of claim 13, wherein the preset condition is that the user thesaurus is empty or that the user thesaurus is not empty but the amount of the user thesaurus does not reach a threshold.
24. An apparatus for providing input candidates, comprising:
the receiving module is used for receiving the character string input by the user;
the acquisition module is used for acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions; the obtaining the recommended word stock based on the geographic information of the user comprises the following steps: acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas; before the acquiring the recommended word stock of the user based on the one or more location areas of the user, the method further comprises: acquiring time and/or activity of the user in the position area; obtaining the target word from the regional cloud word stock comprises the following steps: determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock;
And the output module is used for outputting one or more candidate words matched with the character string.
25. A computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor performs the steps of:
acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person; the obtaining the recommended word stock based on the geographic information of the user comprises the following steps: acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user; obtaining the time and/or activity of the user in the position area, and obtaining the target word from an area cloud word stock, wherein the method comprises the following steps: determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas;
And if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
26. The computer-readable storage medium of claim 25, wherein the and steps stored in the computer-readable storage medium are: based on one or more location areas of the user, the computer program corresponding to the recommended word stock of the user is obtained, when executed, specifically comprising the following steps:
determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
27. The computer-readable storage medium of claim 25, wherein the and steps stored in the computer-readable storage medium are: determining that a computer program corresponding to the number of target words obtained from the regional cloud word stock is executed based on the time and/or the activity of the user in the position region, wherein the computer program specifically comprises the following steps:
acquiring the capacity of the user word stock;
determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
And determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
28. The computer-readable storage medium of claim 25, wherein the and steps stored in the computer-readable storage medium are: determining that a computer program corresponding to the number of words obtained from the regional cloud word stock based on the time of the user in the location region is executed, specifically including the following steps:
and calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
29. The computer-readable storage medium of claim 25, wherein the and steps stored in the computer-readable storage medium are: determining that a computer program corresponding to the number of words obtained from the regional cloud word stock based on the activity of the user in a location region is executed, specifically comprising the following steps:
and calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
30. The computer-readable storage medium of claim 25, wherein the time the user is in the location area comprises one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
31. The computer-readable storage medium of claim 25, wherein the user's liveness in the location area comprises a number of times the user consumes in the location area and/or a number of times the user arrives in the location area.
32. The computer readable storage medium according to any of claims 25-31, wherein the computer readable storage medium further stores further computer programs which when executed perform the steps of:
acquiring operation information of the user input word, wherein the operation information comprises a position area corresponding to the user input operation;
and updating the regional cloud word stock corresponding to the position region according to the operation information.
33. The computer-readable storage medium of claim 25, wherein the and steps stored in the computer-readable storage medium are: the method specifically comprises the following steps of:
Acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
and acquiring the recommended word stock based on the high-frequency words used by the contact.
34. The computer-readable storage medium of claim 25, wherein the and steps stored in the computer-readable storage medium are: the method specifically comprises the following steps of:
acquiring input information of the user;
and updating the user word stock according to the input information.
35. The computer-readable storage medium of claim 25, wherein the preset condition is that the user thesaurus is empty, or that the user thesaurus is not empty but the amount of the user thesaurus does not reach a threshold.
36. A computer readable storage medium having stored thereon a computer program, characterized in that the program when executed by a processor performs the steps of:
receiving a character string input by a user;
And acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions; the obtaining the recommended word stock based on the geographic information of the user comprises the following steps: acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas; before the acquiring the recommended word stock of the user based on the one or more location areas of the user, the method further comprises: acquiring time and/or activity of the user in the position area; obtaining the target word from the regional cloud word stock comprises the following steps: determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock;
And outputting one or more candidate words matched with the character string.
37. An apparatus for providing a user thesaurus, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, the one or more programs comprising instructions for:
acquiring a recommended word stock with personalized characteristics of a user based on geographic information of the user or related information of a contact person; the obtaining the recommended word stock based on the geographic information of the user comprises the following steps: acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas; before the acquiring the recommended word stock of the user based on the one or more location areas of the user, the method further comprises: acquiring time and/or activity of the user in the position area; obtaining the target word from the regional cloud word stock comprises the following steps: determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock;
And if the user word stock meets the preset condition, importing the recommended word stock into the user word stock.
38. The apparatus of claim 37, wherein the apparatus is further configured to be executed by one or more processors the one or more programs comprising instructions for:
determining an area cloud word stock corresponding to the position area based on the area cloud word stock corresponding to the different areas;
obtaining target words from the regional cloud word stock, wherein the target words comprise one or more words;
and constructing the recommended word stock based on the target word obtained from the regional cloud word stock.
39. The apparatus of claim 37, wherein the apparatus is further configured to be executed by one or more processors the one or more programs comprising instructions for:
acquiring the capacity of the user word stock;
determining the proportion of the target word obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region;
and determining the number of the target words obtained from the regional cloud word stock based on the capacity of the user word stock and the specific gravity of the target words obtained from the regional cloud word stock.
40. The apparatus of claim 37, wherein the apparatus is further configured to be executed by one or more processors the one or more programs comprising instructions for:
and calculating the number of target words obtained from the regional cloud word stock based on the time of the user in the position region and the preset unit time.
41. The apparatus of claim 37, wherein the apparatus is further configured to be executed by one or more processors the one or more programs comprising instructions for:
and calculating the number of words obtained from the regional cloud word stock based on the activity degree of the user in the position region and the preset unit activity degree.
42. The apparatus of claim 37, wherein the time the user is in the location area comprises one or more of:
the dwell time of the user in the location area, the time of the user using an input method program in the location area, the time of the user editing a document in the location area.
43. The apparatus of claim 37, wherein the user's liveness in the location area comprises a number of spending of the user in the location area and/or a number of times the user arrives in the location area.
44. The apparatus of any one of claims 37-43, wherein the apparatus is further configured to execute the one or more programs by one or more processors comprising instructions for:
acquiring operation information of the user input word, wherein the operation information comprises a position area corresponding to the user input operation;
and updating the regional cloud word stock corresponding to the position region according to the operation information.
45. The apparatus of claim 37, wherein the apparatus is further configured to be executed by one or more processors the one or more programs comprising instructions for:
acquiring contact information in a currently installed application program;
based on the contact information, obtaining a high-frequency word used by a contact of a currently installed application program, wherein the contact related information is represented by the high-frequency word used by the contact;
and acquiring the recommended word stock based on the high-frequency words used by the contact.
46. The apparatus of claim 37, wherein the apparatus is further configured to be executed by one or more processors the one or more programs comprising instructions for:
Acquiring input information of the user;
and updating the user word stock according to the input information.
47. The apparatus of claim 37, wherein the preset condition is that the user thesaurus is empty, or that the user thesaurus is not empty but the amount of the user thesaurus does not reach a threshold.
48. An apparatus for providing input candidates, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
receiving a character string input by a user;
and acquiring one or more candidate words matched with the character string from a user word stock based on the character string, wherein the user word stock is acquired through the following steps: acquiring a recommended word stock with user individuation characteristics based on geographic information of a user or related information of a contact person, and importing the recommended word stock into the user word stock if the user word stock meets preset conditions; the obtaining the recommended word stock based on the geographic information of the user comprises the following steps: acquiring one or more location areas of a user, wherein the geographic information is represented by the one or more location areas of the user; acquiring a recommended word stock of the user based on one or more location areas of the user, wherein the recommended word stock comprises words in an area cloud word stock corresponding to the location areas; before the acquiring the recommended word stock of the user based on the one or more location areas of the user, the method further comprises: acquiring time and/or activity of the user in the position area; obtaining the target word from the regional cloud word stock comprises the following steps: determining the number of target words obtained from the regional cloud word stock based on the time and/or the activity of the user in the position region; obtaining target words from the regional cloud word stock according to the number of the target words obtained from the regional cloud word stock;
And outputting one or more candidate words matched with the character string.
CN201710967481.7A 2017-10-17 2017-10-17 Method and device for obtaining user word stock Active CN109669550B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710967481.7A CN109669550B (en) 2017-10-17 2017-10-17 Method and device for obtaining user word stock

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710967481.7A CN109669550B (en) 2017-10-17 2017-10-17 Method and device for obtaining user word stock

Publications (2)

Publication Number Publication Date
CN109669550A CN109669550A (en) 2019-04-23
CN109669550B true CN109669550B (en) 2023-05-16

Family

ID=66141418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710967481.7A Active CN109669550B (en) 2017-10-17 2017-10-17 Method and device for obtaining user word stock

Country Status (1)

Country Link
CN (1) CN109669550B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388011A (en) * 2007-09-13 2009-03-18 北京搜狗科技发展有限公司 Method and apparatus for recording information into user thesaurus
CN102209083A (en) * 2010-03-31 2011-10-05 北京搜狗科技发展有限公司 Method and server for synchronous update of user lexicon and input method system
CN102508903A (en) * 2011-11-09 2012-06-20 中兴通讯股份有限公司 Updating method for word bank of input method, character input method and terminal
CN106406565A (en) * 2016-09-29 2017-02-15 维沃移动通信有限公司 Vocabulary input method for mobile terminal and mobile terminal
CN106528748A (en) * 2016-10-27 2017-03-22 百度在线网络技术(北京)有限公司 Method and apparatus for determining regional word stocks
CN106896932A (en) * 2016-06-07 2017-06-27 阿里巴巴集团控股有限公司 A kind of candidate word recommends method and device
CN107102746A (en) * 2016-02-19 2017-08-29 北京搜狗科技发展有限公司 Candidate word generation method, device and the device generated for candidate word
CN107885346A (en) * 2017-10-25 2018-04-06 努比亚技术有限公司 A kind of candidate's words recommending method, terminal and computer-readable recording medium

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508554A (en) * 2011-10-02 2012-06-20 上海量明科技发展有限公司 Input method with communication association, personal repertoire and system
CN107589855B (en) * 2012-05-29 2021-05-28 阿里巴巴集团控股有限公司 Method and device for recommending candidate words according to geographic positions
CN104050168B (en) * 2013-03-12 2017-11-28 联想(北京)有限公司 Information processing method, electronic equipment and dictionary server
CN106774970B (en) * 2015-11-24 2021-08-20 北京搜狗科技发展有限公司 Method and device for sorting candidate items of input method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101388011A (en) * 2007-09-13 2009-03-18 北京搜狗科技发展有限公司 Method and apparatus for recording information into user thesaurus
CN102209083A (en) * 2010-03-31 2011-10-05 北京搜狗科技发展有限公司 Method and server for synchronous update of user lexicon and input method system
CN102508903A (en) * 2011-11-09 2012-06-20 中兴通讯股份有限公司 Updating method for word bank of input method, character input method and terminal
CN107102746A (en) * 2016-02-19 2017-08-29 北京搜狗科技发展有限公司 Candidate word generation method, device and the device generated for candidate word
CN106896932A (en) * 2016-06-07 2017-06-27 阿里巴巴集团控股有限公司 A kind of candidate word recommends method and device
CN106406565A (en) * 2016-09-29 2017-02-15 维沃移动通信有限公司 Vocabulary input method for mobile terminal and mobile terminal
CN106528748A (en) * 2016-10-27 2017-03-22 百度在线网络技术(北京)有限公司 Method and apparatus for determining regional word stocks
CN107885346A (en) * 2017-10-25 2018-04-06 努比亚技术有限公司 A kind of candidate's words recommending method, terminal and computer-readable recording medium

Also Published As

Publication number Publication date
CN109669550A (en) 2019-04-23

Similar Documents

Publication Publication Date Title
RU2641655C2 (en) Method, device and system for displaying content of short message, method and device for determining short message display
US20180121040A1 (en) Method and device for managing notification messages
WO2017092198A1 (en) Recommendation method and device, and device for recommendation
CN105489220B (en) Voice recognition method and device
JP6302602B2 (en) Ticket information display method, apparatus, program, and recording medium
CN106250430B (en) Method and device for sorting intelligent device list
US20180342029A1 (en) Method, apparatus terminal device, and computer readable storage medium for invoking a virtual public transport card
RU2645282C2 (en) Method and device for calling via cloud-cards
CN105528403B (en) Target data identification method and device
CN105933863B (en) Method and device for adding friends and electronic equipment
CN108629178B (en) Resource access authority configuration method and device of application program
CN108874827B (en) Searching method and related device
CN107402937B (en) Searching method and device and electronic equipment
EP2993639A1 (en) Method of sharing information through map service and electronic device therefor
CN106897897A (en) Content item method for pushing and device
CN112131466A (en) Group display method, device, system and storage medium
CN105488074B (en) Photo clustering method and device
US20170017656A1 (en) Method and device for presenting tasks
CN107436896B (en) Input recommendation method and device and electronic equipment
CN107515853B (en) Cell word bank pushing method and device
CN109669550B (en) Method and device for obtaining user word stock
CN112784151A (en) Method and related device for determining recommendation information
CN107203279B (en) Keyword prompting method and device
CN107807929B (en) Information processing method, device and equipment
CN111382242A (en) Information providing method, device and readable medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant