CN107870932B - User word stock optimization method and device and electronic equipment - Google Patents

User word stock optimization method and device and electronic equipment Download PDF

Info

Publication number
CN107870932B
CN107870932B CN201610853368.1A CN201610853368A CN107870932B CN 107870932 B CN107870932 B CN 107870932B CN 201610853368 A CN201610853368 A CN 201610853368A CN 107870932 B CN107870932 B CN 107870932B
Authority
CN
China
Prior art keywords
input
word
screen
cost
user
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
CN201610853368.1A
Other languages
Chinese (zh)
Other versions
CN107870932A (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 CN201610853368.1A priority Critical patent/CN107870932B/en
Publication of CN107870932A publication Critical patent/CN107870932A/en
Application granted granted Critical
Publication of CN107870932B publication Critical patent/CN107870932B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/215Improving data quality; Data cleansing, e.g. de-duplication, removing invalid entries or correcting typographical errors

Abstract

The invention discloses a user word stock optimization method, a device and electronic equipment, wherein the user word stock optimization method comprises the following steps: obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word; and optimizing the number of the input words in the user word bank according to the input cost of the input words. In the technical scheme, the input cost of the input words is obtained, and optimization is performed according to the input cost of the input words when the user word bank is optimized, so that the words with high input cost are prevented from being deleted from the user word bank, the technical problem that the input efficiency is reduced when the user word bank is optimized in the prior art is solved, and the input efficiency of a user is improved.

Description

User word stock optimization method and device and electronic equipment
Technical Field
The invention relates to the technical field of databases, in particular to a user word stock optimization method and device and electronic equipment.
Background
The user word stock is important for an input method and is mainly used for recording words on a screen of a user. And when the input method displays the candidate words, preferentially displaying words in the user word bank. Since the user word stock is stored in the client, there is a certain size limitation, such as a maximum of 20w words or a maximum capacity of 20M. Therefore, if the user word bank reaches the upper limit, the user needs to perform slimming optimization, and mainly deletes bad words to make room for continuous learning.
In the prior art, most of the slimming strategies adopted for slimming optimization of a user lexicon are as follows: preferentially deleting words with early screen-on time, few screen-on times or small comprehensive scores of the two. When the optimization is performed according to the existing slimming strategy, some words which are few in screen-on times but have high screen-on cost of the user (for example, screen-on after multiple times of manual word selection) are deleted, but for the words, once the user inputs the words, the user inevitably screens on the screen, so that the user needs to input the words again, and then the user needs to pay high cost again, and the input efficiency is reduced.
Therefore, in the prior art, the user word bank is optimized without considering the screen-on cost of input words, and the technical problem of reducing the input efficiency exists.
Disclosure of Invention
The embodiment of the invention provides a user word stock optimization method, a user word stock optimization device and electronic equipment, which are used for solving the technical problem of reducing input efficiency in the prior art when a user word stock is optimized.
The embodiment of the application provides a user word stock optimization method, which comprises the following steps:
obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word;
and optimizing the number of the input words in the user word bank according to the input cost of the input words.
Optionally, the optimizing the number of the input words in the user lexicon according to the input cost of the input words includes:
obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time, and/or the number of times and/or the frequency of ignoring that the input word is displayed not on the screen;
and optimizing the number of the input words in the user word bank according to the input cost and the neglecting factor.
Optionally, before obtaining the input cost of the input word, the method further includes:
obtaining the on-screen cost of the input word according to the following formula:
C=a1*pagenum+x+a2
wherein C represents the cost of the screen-up, a1Representing a constant, pagenum representing a candidate page over which the input word is obtained, x representing a candidate position of the input word on a candidate interface, a2Added value of manual word forming for user, when the input word is not obtained by manual word forming for user2Is 0, a when the input word is obtained by manual word formation by the user2Is a non-zero positive number.
Optionally, the obtaining the input cost of the input word includes:
obtaining the screen cost or the length of the input character string as the input cost; or
According to the formula: sc ═ b1*c+b2Obtaining the input cost, wherein Sc represents the input cost, l represents the input character string length, and b1、b2Represents a constant, b1+b2=1.0。
Optionally, the optimizing the number of the input words in the user lexicon according to the input cost of the input words includes:
obtaining the latest screen-on time and screen-on times of the input word;
obtaining a comprehensive score Co of the input word according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, c1、c2、c3Represents a constant value, c1+c2+c3=1.0;
And deleting the n input words with the lowest comprehensive scores.
Optionally, optimizing the number of input words in the user lexicon according to the input cost and the ignoring factor, including:
calculating to obtain a comprehensive score of the input word according to the input cost and the neglecting factor;
and deleting the n input words with the lowest comprehensive scores.
Optionally, the calculating, according to the input cost and the ignoring factor, a comprehensive score of the input word includes:
obtaining a comprehensive score Co of the input word according to the following formula:
Co=d1*log((Sc)/Scmax)+d2*log((Hmax-h)/Hmax)
wherein Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and d1、d2Represents a constant, d1+d2H denotes the forgetting factor, and Hmax denotes the largest forgetting factor in the user lexicon.
Optionally, optimizing the number of input words in the user lexicon according to the input cost and the ignoring factor, including:
obtaining the latest screen-on time and screen-on times of the input word;
calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost and the neglecting factor of the input word;
and deleting the n input words with the lowest comprehensive scores.
Optionally, the calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost, and the ignoring factor of the input word includes:
obtaining a comprehensive score Co of the input word according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)+c4*log((Hmax-h)/Hmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, h represents the ignoring factor, Hmax represents the maximum ignoring factor in the user lexicon, c represents the input cost, and1、c2、c3、c4represents a constant value, c1+c2+c3+c4=1.0。
The present application further provides a user lexicon optimization device, including:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring input cost of an input word, and the input cost comprises the input character string length of the input word and/or the screen-on cost of the input word;
and the optimizing unit is used for optimizing the number of the input words in the user word bank according to the input cost of the input words.
Optionally, the optimization unit includes:
the obtaining subunit is used for obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time when the input word is displayed and is not displayed on a screen, and/or the number of times of ignoring and/or the frequency of ignoring;
and the optimizing subunit is used for optimizing the number of the input words in the user word bank according to the input cost and the neglecting factor.
Optionally, the apparatus further comprises:
a second obtaining unit, configured to, before obtaining the input cost of the input word, obtain an on-screen cost of the input word according to the following formula:
C=a1*pagenum+x+a2
wherein C represents the cost of the screen-up, a1Representing a constant, pagenum representing a candidate page over which the input word is obtained, x representing a candidate position of the input word on a candidate interface, a2Added value of manual word forming for user, when the input word is not obtained by manual word forming for user2Is 0, a when the input word is obtained by manual word formation by the user2Is a non-zero positive number.
Optionally, the first obtaining unit is configured to:
obtaining the screen cost or the length of the input character string as the input cost; or
According to the formula: sc ═ b1*c+b2Obtaining the input cost, wherein Sc represents the input cost, l represents the input character string length, and b1、b2Represents a constant, b1+b2=1.0。
Optionally, the optimizing unit is configured to:
obtaining the latest screen-on time and screen-on times of the input word;
obtaining a comprehensive score Co of the input word according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)
wherein t represents the most recent screen-up time of the input word,tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input words, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and c represents the maximum input cost in the user lexicon1、c2、c3Represents a constant value, c1+c2+c3=1.0;
And deleting the n input words with the lowest comprehensive scores.
Optionally, the optimizing subunit is configured to:
calculating to obtain a comprehensive score of the input word according to the input cost and the neglecting factor;
and deleting the n input words with the lowest comprehensive scores.
Optionally, the optimizing subunit is further configured to:
obtaining a comprehensive score Co of the input word according to the following formula:
Co=d1*log((Sc)/Scmax)+d2*log((Hmax-h)/Hmax)
wherein Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and d1、d2Represents a constant, d1+d2H denotes the forgetting factor, and Hmax denotes the largest forgetting factor in the user lexicon.
Optionally, the optimizing subunit is further configured to:
obtaining the latest screen-on time and screen-on times of the input word;
calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost and the neglecting factor of the input word;
and deleting the n input words with the lowest comprehensive scores.
Optionally, the optimization subunit is further configured to:
obtaining a comprehensive score Co of the input word according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)+c4*log((Hmax-h)/Hmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, h represents the ignoring factor, Hmax represents the maximum ignoring factor in the user lexicon, c represents the input cost, and1、c2、c3、c4represents a constant value, c1+c2+c3+c4=1.0。
Embodiments of the present application also provide an electronic device 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 the one or more processors, the one or more programs including instructions for:
obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word;
and optimizing the number of the input words in the user word bank according to the input cost of the input words. One or more technical solutions in the embodiments of the present application have at least the following technical effects:
the input cost of the input words of the user, including the input character string length and/or the screen-on cost of the input words, is obtained, the data volume of the input words in the user word bank is optimized according to the input cost of the input words, and the words with high input cost are prevented from being deleted from the user word bank, so that the technical problem that the input efficiency is reduced when the user word bank is optimized in the prior art is solved, and the input efficiency of the user is improved.
Drawings
Fig. 1 is a flowchart of a first user lexicon optimization method according to an embodiment of the present application;
fig. 2 is a flowchart of a second user lexicon optimization method provided in the second embodiment of the present application;
fig. 3 is a flowchart of a third method for optimizing a user lexicon according to a third embodiment of the present application;
fig. 4 is a schematic diagram of a user lexicon optimization apparatus according to an embodiment of the present application;
fig. 5 is a schematic view of an electronic device for implementing a user lexicon optimization method according to an embodiment of the present application.
Detailed Description
In the technical scheme provided by the embodiment of the application, the input cost of the input word is obtained, and optimization is performed according to the input cost of the input word when the user word bank is optimized, so that the word with higher input cost is prevented from being preferentially deleted from the user word bank, the technical problem that the input efficiency is reduced when the user word bank is optimized in the prior art is solved, and the input efficiency of a user is improved.
The main implementation principle, the specific implementation mode and the corresponding beneficial effects of the technical scheme of the embodiment of the present application are explained in detail with reference to the accompanying drawings.
Example one
Referring to fig. 1, a method for optimizing a user lexicon provided in an embodiment of the present application includes:
s101: obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word;
s102: and optimizing the number of the input words in the user word bank according to the input cost of the input words.
In a specific implementation process, the user lexicon optimization method provided in the embodiment of the present application is applied to an electronic device at a client, and when a user uses the electronic device at the client to perform character input, S101 is executed to obtain an input cost of an input word (a word input on a screen). Wherein the input cost comprises the input character string length of the input word and/or the on-screen cost of the input word.
The input character string length refers to the length of a character string directly input by a user, for example, the user inputs 'nihao' through an input method, and selects a candidate item 'hello' displayed correspondingly through conversion to be displayed on a screen, at the moment, the 'hello' is an input word, and the length 5 of the character string of the 'nihao' is the input character string length of the input word 'hello'.
The screen-on cost is used for representing the degree of convenience of operation when the user screens the candidate words, if the candidate words to be screened are located at the first candidate position of the first screen, the screen can be conveniently screened by directly clicking the space key, the convenience degree is the highest, the screen-on cost is limited by factors such as user sight lines, the more the candidate position is backward, the lower the convenience degree is, and the lower the convenience degree is when the page is turned or the words are manually grouped. Specifically, C is used for representing the cost of the screen, when a candidate word on the first screen is displayed, C is a candidate position, if the page turning C is a constant, pagenum + candidate position, pagenum represents a candidate page turned by the obtained candidate word, and when the page turning pagenum is not displayed on the first screen, the page turning pagenum is 0; if the words are manually organized, a penalty value is additionally added, so that the on-screen cost can be obtained through the following formula:
C=a1*pagenum+x+a2
wherein C represents the cost of the screen-up, a1Representing a constant, pagenum representing a candidate page over which the input word is obtained, x representing a candidate position of the input word on a candidate interface, a2Added value of manual word forming for user, when the input word is not obtained by manual word forming for user2Is 0, a when the input word is obtained by manual word formation by the user2Is a non-zero positive number. The embodiment of the present application does not limit a1And a2The specific value of (3) can be 5, 10, 20 and the like.
For example: the user inputs ' nihao ', selects ' you ' with the candidate position of 4 on the first page of the candidate, then is in a half-selection state, then turns over 1 page to select ' you ' on the screen ' with the candidate position of 2, and assumes that a1And a2All the values of (1) are 10, and the input cost C of the input word "you hao" is 4+ (10 × 1+2) + 10.
When the input cost only includes the screen cost or the input character string length, the screen cost or the input character string length is directly used as the input cost. When the input cost comprises the screen-on cost and the input character string length, fitting the screen-on cost C and the input character string length l into the input cost by using two factors, and specifically obtaining the input cost according to the following formula:
Sc=b1*c+b2*l
where Sc represents the input cost, l represents the input string length, b1、b2Represents a constant, b1+b2=1.0。
After the input word and the input cost of the user are obtained, the input word and the input cost of the input word are written into a user word bank, and if the word is already in the user word bank, the maximum value of the input word and the input cost is taken. And optimizing the user word bank when the number of the user word banks reaches an upper limit, or periodically optimizing the user word bank every week, every month, every quarter and the like.
And S102 is executed, and the number of the input words in the user word library is optimized according to the input cost of the input words. Specifically, n input words with the lowest input cost may be preferentially deleted according to the input cost, where n is a positive integer. Because the input words with low input cost are deleted, the subsequent input does not influence the input efficiency.
For example: if the words on the screen in the user word stock have two words: "hello" (the first word located at the first screen, the input cost is 1, and the input character string length l is 5), "hello nothing" (the input character string is "nhaogawug", the input character string length l is 10, "hello" at the candidate position 3 is selected on the first page of the candidate page, "sono" at the candidate position 1 is selected by turning 1 page again, C is 3+10 + 1+10, and "b" is selected according to the formula Sc1*c+b2L (assume b)1、b2Both 0.5) and the input costs are respectively 3 and 16.5, so that the two words are eliminated according to the input costs, and the word "hello" is preferentially eliminated because the upper shielding cost is greater than the word "hello irrelevant".
Further, when the number of input words in the user word bank is optimized according to the input cost of the user, the latest screen-up time and screen-up times of the input words can be obtained, the comprehensive score of the input words is calculated according to the input cost, the latest screen-up time and the screen-up times, and n input words with the lowest comprehensive score in the user word bank are deleted. Specifically, the comprehensive score Co of the input word may be obtained according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, c1、c2、c3Represents a constant value, c1+c2+c3=1.0。
In the technical scheme, a new user word stock slimming strategy is provided, and the user word stock is optimized according to the input cost of the input words, so that the input words with higher input cost are prevented from being deleted preferentially, the technical problem that the input efficiency is reduced during the optimization of the user word stock in the prior art is solved, and the input efficiency of characters is improved.
Furthermore, the input cost is added into a slimming strategy comprising the screen-up times and the screen-up time, the comprehensive score of the input word is obtained through fitting calculation of the input cost, the screen-up times and the screen-up time, the user lexicon is optimized according to the comprehensive score, and accuracy of optimization of the user lexicon is improved.
Example two
Referring to fig. 2, a method for optimizing a user lexicon provided in an embodiment of the present application includes:
s201: obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time, the ignoring time and/or the ignoring frequency of the input word which is displayed and not displayed on a screen;
s202: and optimizing the number of the input words in the user word bank according to the neglecting factor of the input words.
Similarly, the user lexicon optimization method provided by the embodiment of the application is applied to the electronic equipment at the user end. When inputting characters through the electronic device at the user end, S201 is executed to obtain the ignoring factor of the input word (word input on the screen). The ignoring factor is a parameter of words in the user word stock which are displayed but not on the screen, and is used for representing the possibility of the input words being ignored, including the latest ignoring time and/or the ignoring times and/or the ignoring frequency of the words which are displayed and not on the screen.
Specifically, in the user input process, when some input words in the corresponding user word bank are displayed but not displayed on the screen, that is, are ignored, the currently ignored time field is obtained, the latest neglected time of the input words is updated to the current time field, and the neglected time is not modified for candidate words not in the user word bank. Similarly, the input times and the neglect frequency of the input words are updated with each input action of the user.
S202, optimizing the number of input words in the user word bank according to the neglect factors of the input words, specifically, calculating the neglect scores of the input words according to the neglect factors of the input words, and optimizing the number of the input words in the user word bank according to the neglect scores.
The neglect score is represented by y (h), y (h) is (Hmax-h)/Hmax, h represents the neglect factor of the input word, Hmax represents the largest neglect factor in the user lexicon, and the smaller the neglect score is, the higher the possibility that the input word is ignored is, and the smaller the neglect score is. When the forgetting factor h is the latest forgetting time, Hmax represents the maximum latest forgetting time in the user lexicon (i.e., the forgetting time field of the input word that was most recently ignored among all the input words). In performing the skip score calculation, the most recent skip time is added to the calculation in the form of a numerical value, such as time 2016.8.25, which is a binary number when stored and used directly when calculated. When the forgetting factor h is the number of times of forgetting or the frequency of forgetting, Hmax represents the maximum number of times of forgetting or the highest frequency of forgetting in the user lexicon. When the neglect is two or three parameters of the neglect times, the neglect frequency and the neglect time, the parameter neglect scores respectively calculated by the parameters can be weighted to obtain the final neglect score.
It should be noted that the ignore score may also be calculated by using y (h) ═ h/Hmax, where a larger ignore score indicates a higher probability that the input word is ignored, and vice versa. In the following, the calculation of the comprehensive score of the input word is exemplified by (Hmax-h)/Hmax, and when the neglected score is calculated by (y), (h) -h/Hmax, it is only necessary to multiply the neglected score by-1, because the contribution of the neglected score to the input word at this time is negative.
When the number of input words in the user word bank is optimized according to the neglected scores, n input words with the lowest neglected scores can be deleted, wherein n is a positive integer. For example: the user inputs 'huijia', the user can go to the screen and get home certainly, the neglecting time is 0, the neglecting score is 1, but the condition of inputting 'huijia' is less, so the screen-going times of 'home' are less; if the user inputs feiji, the user may go to "airplane", "fat chicken", "feiji", etc., wherein the neglect time of "fat chicken" is 0810, and the neglect score is 0.02, and now the user lexicon is optimized according to the neglect factor, and the "fat chicken" is preferentially deleted because the neglect score is low and is more likely to be neglected.
Certainly, when the number of input words in the user word bank is optimized, the latest screen-on time and screen-on times of the input words can be obtained; calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times and the neglecting factor; and deleting the n input words with the lowest comprehensive scores in the user word bank.
Specifically, when the comprehensive score of the input word is obtained by calculation according to the latest screen-on time, the screen-on times and the ignoring factor of the input word, the comprehensive score Co can be obtained according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Hmax-h)/Hmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, h represents the ignoring factor, Hmax represents the maximum latest ignoring factor in the user lexicon, c1、c2、c3Represents a constant value, c1+c2+c3=1.0。
In the technical scheme, a new user word stock slimming strategy is provided, the user word stock is optimized according to the neglect factor of the input word, the input word which is frequently ignored or is ignored recently is preferentially deleted, the technical problem that the input efficiency is reduced during the optimization of the user word stock in the prior art is solved, and the input efficiency of characters is improved.
Furthermore, the neglect factor is added into the slimming strategy comprising the screen-up times and the screen-up time, the comprehensive score of the input word is obtained through fitting calculation of the neglect factor, the screen-up times and the screen-up time, the user lexicon is optimized according to the comprehensive score, and accuracy of optimization of the user lexicon is improved.
EXAMPLE III
Referring to fig. 3, a method for optimizing a user lexicon provided in an embodiment of the present application includes:
s301: obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word;
s302: obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time, the ignoring time and/or the ignoring frequency of the input word which is displayed and not displayed on a screen;
s303: and optimizing the number of the input words in the user word bank according to the input cost of the input words and the neglecting factor.
In the specific implementation process, the specific implementation processes of S301 and S302 are the same as those of S101 and S201 in the first and second embodiments, and therefore, detailed description thereof is omitted.
S303, when optimizing the input word data in the user word library according to the input cost and the neglecting factor of the input word, calculating to obtain the comprehensive score of the input word according to the input cost and the neglecting factor of the input word, and then deleting n input words with the lowest comprehensive score in the user word library, wherein n is a positive integer. Specifically, the comprehensive score Co of the input word can be calculated according to the following formula:
Co=d1*log((Sc)/Scmax)+d2*log((Hmax-h)/Hmax)
wherein Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and d1、d2Represents a constant, d1+d2H denotes the forgetting factor, and Hmax denotes the largest forgetting factor in the user lexicon. When the forgetting factor h is the latest forgetting time, Hmax represents the maximum latest forgetting time in the user lexicon (i.e., the forgetting time field of the input word that was most recently ignored among all the input words). In performing the skip score calculation, the most recent skip time is added to the calculation in the form of a numerical value, such as time 2016.8.25, which is a binary number when stored and used directly when calculated. When the forgetting factor h is the number of times of forgetting or the frequency of forgetting, Hmax represents the maximum number of times of forgetting or the highest frequency of forgetting in the user lexicon.
In a specific implementation process, when S303 is executed, the latest screen-up time and screen-up times of the input word may also be obtained; calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost and the neglecting factor of the input word; and deleting the n input words with the lowest comprehensive scores in the user word bank.
When the comprehensive score of the input word is obtained by calculation according to the latest screen-on time, the screen-on times, the input cost and the neglect factor of the input word, the calculation of the comprehensive score Co can be carried out according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)+c4*log((Hmax-h)/Hmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, h represents the ignoring factor, and Hmax represents the user lexiconThe largest most recent neglecting factor, c1、c2、c3、c4Represents a constant value, c1+c2+c3+c4=1.0。
In the technical scheme, a new user word stock slimming strategy is provided, the user word stock is optimized according to the input cost and the neglecting factor of the input words, the input words which are easy to be ignored and have low input cost are preferentially deleted, the technical problem that the input efficiency is reduced during the optimization of the user word stock in the prior art is solved, and the input efficiency of characters is improved.
Furthermore, the neglect factor is added into the slimming strategy comprising the screen-up times and the screen-up time, the comprehensive score of the input word is obtained through fitting calculation of the input cost, the neglect factor, the screen-up times and the screen-up time, the user lexicon is optimized according to the comprehensive score, and accuracy of optimization of the user lexicon is improved.
Referring to fig. 4, in view of the user lexicon optimization methods provided in the foregoing examples one to three, an embodiment of the present application correspondingly provides a user lexicon optimization apparatus, including:
a first obtaining unit 41, configured to obtain an input cost of an input word, where the input cost includes an input string length of the input word and/or an on-screen cost of the input word;
and an optimizing unit 42, configured to optimize the number of input words in the user lexicon according to the input cost of the input word.
In a specific implementation process, the optimization unit 42 includes:
the obtaining subunit is used for obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time when the input word is displayed and is not displayed on a screen, and/or the number of times of ignoring and/or the frequency of ignoring;
and the optimizing subunit is used for optimizing the number of the input words in the user word bank according to the input cost and the neglecting factor.
Further, the apparatus further comprises:
a second obtaining unit 41, configured to, before obtaining the input cost of the input word, obtain an on-screen cost of the input word according to the following formula:
C=a1*pagenum+x+a2
wherein C represents the cost of the screen-up, a1Representing a constant, pagenum representing a candidate page over which the input word is obtained, x representing a candidate position of the input word on a candidate interface, a2Added value of manual word forming for user, when the input word is not obtained by manual word forming for user2Is 0, a when the input word is obtained by manual word formation by the user2Is a non-zero positive number.
In a specific implementation process, the first obtaining unit 41 is configured to:
obtaining the screen cost or the length of the input character string as the input cost; or
According to the formula: sc ═ b1*c+b2Obtaining the input cost, wherein Sc represents the input cost, l represents the input character string length, and b1、b2Represents a constant, b1+b2=1.0。
Further, the optimizing unit 42 may be configured to: obtaining the latest screen-on time and screen-on times of the input word; obtaining a comprehensive score Co of the input word according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, c1、c2、c3Represents a constant value, c1+c2+c3=1.0;
And deleting the n input words with the lowest comprehensive scores.
In a specific implementation process, the optimization subunit may be configured to: calculating to obtain a comprehensive score of the input word according to the input cost and the neglecting factor; and deleting the n input words with the lowest comprehensive scores. Meanwhile, the optimization subunit may be further configured to: obtaining a comprehensive score Co of the input word according to the following formula:
Co=d1*log((Sc)/Scmax)+d2*log((Hmax-h)/Hmax)
wherein Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and d1、d2Represents a constant, d1+d2H denotes the forgetting factor, and Hmax denotes the largest forgetting factor in the user lexicon.
In a specific implementation process, the optimization subunit may further be configured to: obtaining the latest screen-on time and screen-on times of the input word; calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost and the neglecting factor of the input word; and deleting the n input words with the lowest comprehensive scores. Specifically, when obtaining the comprehensive score, the optimization sub-sheet may obtain the comprehensive score Co of the input word according to the following formula:
Co=c1*log(t/Tmax)+c2*log(f/Fmax)+c3*log((Sc)/Scmax)+c4*log((Hmax-h)/Hmax)
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, h represents the ignoring factor, Hmax represents the maximum ignoring factor in the user lexicon, c represents the input cost, and1、c2、c3、c4represents a constant value, c1+c2+c3+c4=1.0。
With regard to the apparatus in the above-described embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
Fig. 5 is a block diagram illustrating an electronic device 800 for implementing a user thesaurus optimization method according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 5, electronic device 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and 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. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction 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 operation 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 non-volatile 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 disks.
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 supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.
The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and a user. 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 an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
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 further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also 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 keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the electronic device 800. For example, the sensor assembly 814 may detect an open/closed state of the device 800, the relative positioning of components, such as a display and keypad of the electronic device 800, the sensor assembly 814 may also detect a change in the position of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, orientation or acceleration/deceleration of the electronic device 800, and a change in the temperature of the electronic device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object 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 gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. 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 an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications 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, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the electronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein which, when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of user thesaurus optimization, the method comprising: obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word; and optimizing the number of the input words in the user word bank according to the input cost of the input words.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (25)

1. A user lexicon optimization method is characterized by comprising the following steps:
obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word;
optimizing the number of the input words in the user word bank according to the input cost of the input words;
obtaining the on-screen cost of the input word according to the following formula:
Figure DEST_PATH_IMAGE002
wherein C represents the screen-up cost, a1 represents a constant, pagenum represents a candidate page over which the input word is obtained, x represents a candidate position of the input word on a candidate interface, a2 is an additional value of the user for manually forming the word, a2 is 0 when the input word is not obtained by manually forming the word by the user, and a2 is a non-zero positive number when the input word is obtained by manually forming the word by the user.
2. The method of claim 1, wherein said optimizing the number of said input words in said user lexicon according to said input cost of said input word comprises:
obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time, and/or the number of times and/or the frequency of ignoring that the input word is displayed not on the screen;
and optimizing the number of the input words in the user word bank according to the input cost and the neglecting factor.
3. The method of claim 1, wherein obtaining the input cost for the input word comprises:
obtaining the screen cost or the length of the input character string as the input cost; or
According to the formula: sc = b1*C +b2Obtaining the input cost, wherein Sc represents the input cost, l represents the input character string length, and b1、b2Represents a constant, b1+b2=1.0。
4. The method of claim 1 or 3, wherein said optimizing the number of said input words in said user lexicon according to said input cost of said input words comprises:
obtaining the latest screen-on time and screen-on times of the input word;
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE004
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, c1、c2、c3Represents a constant value, c1+c2+c3=1.0;
And deleting the n input words with the lowest comprehensive scores.
5. The method of claim 2, wherein optimizing the number of input words in the user lexicon according to the input cost and the forgetting factor comprises:
calculating to obtain a comprehensive score of the input word according to the input cost and the neglecting factor;
and deleting the n input words with the lowest comprehensive scores.
6. The method of claim 5, wherein said computing a composite score for the input word based on the input cost and the forgetting factor comprises:
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE006
wherein Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and d1、d2Represents a constant, d1+d2 =1.0H represents the forgetting factor, and Hmax represents the largest forgetting factor in the user lexicon.
7. The method of claim 2, wherein optimizing the number of input words in the user lexicon according to the input cost and the forgetting factor comprises:
obtaining the latest screen-on time and screen-on times of the input word;
calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost and the neglecting factor of the input word;
and deleting the n input words with the lowest comprehensive scores.
8. The method of claim 7, wherein the calculating a composite score of the input word according to the latest screen-on time, the screen-on times, the input cost, and the ignoring factor of the input word comprises:
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE008
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, h represents the ignoring factor, Hmax represents the maximum ignoring factor in the user lexicon, c represents the input cost, and1、c2、c3、c4represents a constant value, c1+c2+c3+c4=1.0。
9. A user lexicon optimization apparatus, comprising:
the device comprises a first acquisition unit, a second acquisition unit and a display unit, wherein the first acquisition unit is used for acquiring input cost of an input word, and the input cost comprises the input character string length of the input word and/or the screen-on cost of the input word;
the optimization unit is used for optimizing the number of the input words in the user word bank according to the input cost of the input words;
a second obtaining unit, configured to, before obtaining the input cost of the input word, obtain an on-screen cost of the input word according to the following formula:
Figure DEST_PATH_IMAGE010
wherein C represents the cost of the screen-up, a1Representing a constant, pagenum representing a candidate page over which the input word is obtained, x representing a candidate position of the input word on a candidate interface, a2 being an additional value of the user for manually composing the word, a being an additional value of the user for manually composing the word when the input word is not obtained by manually composing the word by the user2Is 0, a when the input word is obtained by manual word formation by the user2Is a non-zero positive number.
10. The apparatus of claim 9, wherein the optimization unit comprises:
the obtaining subunit is used for obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time when the input word is displayed and is not displayed on a screen, and/or the number of times of ignoring and/or the frequency of ignoring;
and the optimizing subunit is used for optimizing the number of the input words in the user word bank according to the input cost and the neglecting factor.
11. The apparatus of claim 9, wherein the first obtaining unit is to:
obtaining the screen cost or the length of the input character string as the input cost; or
According to the formula: sc = b1*C +b2L obtaining the input cost, whichIn (c), Sc represents the input cost, l represents the input string length, b1、b2Represents a constant, b1+b2=1.0。
12. The apparatus of claim 9 or 11, wherein the optimization unit is to:
obtaining the latest screen-on time and screen-on times of the input word;
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE012
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, c1、c2、c3Represents a constant value, c1+c2+c3=1.0;
And deleting the n input words with the lowest comprehensive scores.
13. The apparatus of claim 10, wherein the optimization subunit is to:
calculating to obtain a comprehensive score of the input word according to the input cost and the neglecting factor;
and deleting the n input words with the lowest comprehensive scores.
14. The apparatus of claim 13, wherein the optimization subunit is further configured to:
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE014
wherein Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and d1、d2Represents a constant, d1+d2=1.0, h represents the forgetting factor, Hmax represents the largest forgetting factor in the user lexicon.
15. The apparatus of claim 10, wherein the optimization subunit is further configured to:
obtaining the latest screen-on time and screen-on times of the input word;
calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost and the neglecting factor of the input word;
and deleting the n input words with the lowest comprehensive scores.
16. The apparatus of claim 15, wherein the optimization subunit is further configured to:
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE016
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, h represents the ignoring factor, Hmax represents the maximum ignoring factor in the user lexicon, c represents the input cost, and1、c2、c3、c4represents a constant value, c1+c2+c3+c4=1.0。
17. An electronic device 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 including instructions for:
obtaining an input cost of an input word, wherein the input cost comprises an input character string length of the input word and/or an on-screen cost of the input word;
optimizing the number of the input words in the user word bank according to the input cost of the input words;
obtaining the on-screen cost of the input word according to the following formula:
Figure DEST_PATH_IMAGE018
wherein C represents the screen-up cost, a1 represents a constant, pagenum represents a candidate page over which the input word is obtained, x represents a candidate position of the input word on a candidate interface, a2 is an additional value of the user for manually forming the word, a2 is 0 when the input word is not obtained by manually forming the word by the user, and a2 is a non-zero positive number when the input word is obtained by manually forming the word by the user.
18. The electronic device of claim 17, wherein said optimizing the number of said input words in said user lexicon according to said input cost of said input word comprises:
obtaining an ignoring factor of the input word, wherein the ignoring factor comprises the latest ignoring time, and/or the number of times and/or the frequency of ignoring that the input word is displayed not on the screen;
and optimizing the number of the input words in the user word bank according to the input cost and the neglecting factor.
19. The electronic device of claim 17, wherein obtaining an input cost for an input word comprises:
obtaining the screen cost or the length of the input character string as the input cost; or
According to the formula: sc = b1*C +b2Obtaining the input cost, wherein Sc represents the input cost, l represents the input character string length, and b1、b2Represents a constant, b1+b2=1.0。
20. The electronic device of claim 17 or 19, wherein said optimizing the number of said input words in said user lexicon according to said input cost of said input words comprises:
obtaining the latest screen-on time and screen-on times of the input word;
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE020
wherein t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, c1、c2、c3Represents a constant value, c1+c2+c3=1.0;
And deleting the n input words with the lowest comprehensive scores.
21. The electronic device of claim 18, wherein optimizing the number of input words in the user lexicon according to the input cost and the forgetting factor comprises:
calculating to obtain a comprehensive score of the input word according to the input cost and the neglecting factor;
and deleting the n input words with the lowest comprehensive scores.
22. The electronic device of claim 21, wherein the calculating a composite score for the input word based on the input cost and the forgetting factor comprises:
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE022
wherein Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, and d1、d2Represents a constant, d1+d2=1.0, h represents the forgetting factor, Hmax represents the largest forgetting factor in the user lexicon.
23. The electronic device of claim 18, wherein optimizing the number of input words in the user lexicon according to the input cost and the forgetting factor comprises:
obtaining the latest screen-on time and screen-on times of the input word;
calculating to obtain a comprehensive score of the input word according to the latest screen-on time, the screen-on times, the input cost and the neglecting factor of the input word;
and deleting the n input words with the lowest comprehensive scores.
24. The electronic device of claim 23, wherein the calculating a composite score of the input word according to the latest screen-on time, the screen-on times, the input cost, and the ignoring factor of the input word comprises:
obtaining a comprehensive score Co of the input word according to the following formula:
Figure DEST_PATH_IMAGE024
wherein the content of the first and second substances,t represents the latest screen-up time of the input word, Tmax represents the latest screen-up time in the user lexicon, f represents the screen-up times of the input word, Fmax represents the maximum screen-up times in the user lexicon, Sc represents the input cost, Scmax represents the maximum input cost in the user lexicon, h represents the ignoring factor, Hmax represents the maximum ignoring factor in the user lexicon, c represents the input word, f represents the input word, m represents the word, m represents1、c2、c3、c4Represents a constant value, c1+c2+c3+c4=1.0。
25. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN201610853368.1A 2016-09-26 2016-09-26 User word stock optimization method and device and electronic equipment Active CN107870932B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610853368.1A CN107870932B (en) 2016-09-26 2016-09-26 User word stock optimization method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610853368.1A CN107870932B (en) 2016-09-26 2016-09-26 User word stock optimization method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN107870932A CN107870932A (en) 2018-04-03
CN107870932B true CN107870932B (en) 2021-10-08

Family

ID=61751046

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610853368.1A Active CN107870932B (en) 2016-09-26 2016-09-26 User word stock optimization method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN107870932B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114527919A (en) * 2020-11-19 2022-05-24 北京搜狗科技发展有限公司 Information display method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178741A (en) * 2007-12-24 2008-05-14 腾讯科技(深圳)有限公司 Method and device for updating user's word stock
CN102467537A (en) * 2010-11-10 2012-05-23 腾讯科技(深圳)有限公司 Method and device for deleting vocabulary
CN102768576A (en) * 2011-05-06 2012-11-07 张家港市赫图阿拉信息技术有限公司 Input method allowing user to manage custom dictionary
CN102959547A (en) * 2012-05-03 2013-03-06 华为技术有限公司 Word bank adjusting method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101178741A (en) * 2007-12-24 2008-05-14 腾讯科技(深圳)有限公司 Method and device for updating user's word stock
CN102467537A (en) * 2010-11-10 2012-05-23 腾讯科技(深圳)有限公司 Method and device for deleting vocabulary
CN102768576A (en) * 2011-05-06 2012-11-07 张家港市赫图阿拉信息技术有限公司 Input method allowing user to manage custom dictionary
CN102959547A (en) * 2012-05-03 2013-03-06 华为技术有限公司 Word bank adjusting method and equipment

Also Published As

Publication number Publication date
CN107870932A (en) 2018-04-03

Similar Documents

Publication Publication Date Title
JP6227766B2 (en) Method, apparatus and terminal device for changing facial expression symbol in chat interface
US10296201B2 (en) Method and apparatus for text selection
JP6321296B2 (en) Text input method, apparatus, program, and recording medium
CN106469054B (en) Notification message control method and device and terminal
WO2017084183A1 (en) Information displaying method and device
US9959487B2 (en) Method and device for adding font
US10078422B2 (en) Method and device for updating a list
US11222223B2 (en) Collecting fingerprints
EP2921969A1 (en) Method and apparatus for centering and zooming webpage and electronic device
US20210165670A1 (en) Method, apparatus for adding shortcut plug-in, and intelligent device
US20170090684A1 (en) Method and apparatus for processing information
JP2016527577A (en) User command execution method, execution device, program, and storage medium
CN105511777B (en) Session display method and device on touch display screen
CN104850643B (en) Picture comparison method and device
WO2021031311A1 (en) Supernet construction method and device, supernet usage method and device, and medium
US10229165B2 (en) Method and device for presenting tasks
CN109783171B (en) Desktop plug-in switching method and device and storage medium
WO2016197549A1 (en) Searching method and apparatus
CN107870932B (en) User word stock optimization method and device and electronic equipment
CN108874450B (en) Method and device for waking up voice assistant
CN107832112B (en) Wallpaper setting method and device
CN111092971A (en) Display method and device for displaying
CN110648657A (en) Language model training method, language model construction method and language model construction device
WO2021190292A1 (en) Method, apparatus and system for processing details page, electronic device and storage medium
CN107870931B (en) Method and device for optimizing user lexicon and electronic equipment

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