CN106445189B - Candidate word display method and device - Google Patents

Candidate word display method and device Download PDF

Info

Publication number
CN106445189B
CN106445189B CN201611170483.5A CN201611170483A CN106445189B CN 106445189 B CN106445189 B CN 106445189B CN 201611170483 A CN201611170483 A CN 201611170483A CN 106445189 B CN106445189 B CN 106445189B
Authority
CN
China
Prior art keywords
input box
candidate word
input
environment
application program
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
CN201611170483.5A
Other languages
Chinese (zh)
Other versions
CN106445189A (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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201611170483.5A priority Critical patent/CN106445189B/en
Publication of CN106445189A publication Critical patent/CN106445189A/en
Application granted granted Critical
Publication of CN106445189B publication Critical patent/CN106445189B/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/0236Character input methods using selection techniques to select from displayed items
    • 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/03Arrangements for converting the position or the displacement of a member into a coded form
    • G06F3/041Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means
    • G06F3/0414Digitisers, e.g. for touch screens or touch pads, characterised by the transducing means using force sensing means to determine a position
    • 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/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04847Interaction techniques to control parameter settings, e.g. interaction with sliders or dials

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)
  • User Interface Of Digital Computer (AREA)

Abstract

The disclosure relates to a candidate word display method and device, and belongs to the technical field of character input. The method comprises the following steps: respectively querying a first word bank and a second word bank based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, wherein the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated by a user of the application program in a historical input process; detecting a current input environment; and if the input environment is an abnormal environment, hiding a target candidate word in the at least one second candidate word and displaying the at least one first candidate word. According to the method and the device, whether some candidate words which are accumulated in the historical input process of the user and possibly relate to the personal privacy of the user are displayed or not is determined by detecting the current input environment, so that the safety of the terminal is improved, and the risk of revealing the personal privacy of the user is reduced.

Description

Candidate word display method and device
Technical Field
The present disclosure relates to the field of character input technologies, and in particular, to a candidate word display method and apparatus.
Background
The input method is a necessary tool for a user to input characters into the terminal, runs on an operating system carried by the terminal, and can convert codes input by a keyboard or media data input by other non-keyboards into characters. At present, the input method can be divided into keyboard input and non-keyboard input, wherein the technology is the most mature, and the most widely used input method is the input method based on keyboard input.
The input method based on keyboard input is a method for inputting characters according to a certain coding rule by using a keyboard, when a user inputs the characters for the first time by using the input method in an application program, considering that the same characters may be input by the user for the next time, the input method often records other characters which are continuously input by the current user after the characters are input by the user, takes the other characters as candidate words of the characters, and displays the generated candidate words by using the input method until the character is input again by the user for the next time, so that the workload of the user for inputting the same characters and candidate words by using the keyboard can be reduced.
In carrying out the present disclosure, the disclosure finds at least the following problems with the related art:
when a user uses application programs related to personal privacy, such as a bank client, a payment tool client and the like, the user needs to input a related account number, a user name, a password and the like in an input box of the application programs, because an input method provides a candidate word function for the user, a number or a letter is sometimes input, and a candidate word used by the user before is displayed, and because the candidate words may relate to the personal privacy of the user, the security of the client is reduced, and the client has certain risks.
Disclosure of Invention
In order to overcome the problems in the related art, the present disclosure provides a candidate word display method and apparatus.
According to a first aspect of the embodiments of the present disclosure, there is provided a candidate word display method, the method including:
respectively querying a first word bank and a second word bank based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, wherein the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated by a user of the application program in a historical input process;
detecting a current input environment;
if the input environment is an abnormal environment, hiding a target candidate word in the at least one second candidate word, and displaying the at least one first candidate word, wherein the target candidate word is a part of or all candidate words in the at least one second candidate word.
The method provided by the embodiment of the disclosure queries a first word stock and a second word stock respectively based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, and detects a current input environment; if the input environment is an abnormal environment, hiding part of candidate words or all candidate words in the at least one second candidate word, and displaying the at least one first candidate word. According to the method and the device, whether some candidate words which are accumulated in the historical input process of the user and possibly relate to the personal privacy of the user are displayed or not is determined by detecting the current input environment, so that the safety of the terminal is improved, and the risk of revealing the personal privacy of the user is reduced.
In another embodiment, the detecting the current input environment includes:
determining the account type of a current login account in the application program, wherein the account type at least comprises a common account and a private account; if the current login account is a common account, determining that the current input environment is a normal environment; if the current login account is a private account, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
sending a connection request to a preset wearable device, and if a connection response of the preset wearable device is received, determining that the current input environment is a normal environment; if the connection response of the preset wearable device is not received, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
determining current geographical position information, and if the current geographical position information is displayed as a private position, determining that the current input environment is a normal environment; and if the current geographical position information is displayed as a public position, determining that the current input environment is an abnormal environment.
According to the method provided by the embodiment of the disclosure, the purpose of detecting the current input environment is achieved by determining the account type of the current login account in the application program, sending the connection request to the preset wearable device and determining the current geographic position information, so that the obtained detection result is more accurate when the current input environment is detected.
In another embodiment, after the detecting the current input environment, the method further comprises:
if the current input environment is a normal environment, determining the application program type of the application program, wherein the application program type at least comprises a common application program and a private application program;
if the application program type of the application program is a private application program, hiding the target candidate word and displaying the at least one first candidate word;
if the application type of the application program is a common application program, determining the input box type of the input box based on the input box identification of the input box, wherein the input box type at least comprises a private input box and a common input box;
if the input box type is a private input box, hiding the target candidate word and displaying the at least one first candidate word;
and if the input box type is a common input box, displaying the at least one first candidate word and the at least one second candidate word.
According to the method provided by the embodiment of the disclosure, under the condition that the current input environment is the normal environment, whether some candidate words which are accumulated by a user in the historical input process and possibly relate to the personal privacy of the user are displayed or not is determined by determining the program type and the input box type of the application program, so that under the condition that the current input environment is the normal environment, the personal privacy of the user is possibly leaked, and the safety of the terminal is improved.
In another embodiment, the determining the input box type of the input box based on the input box identification of the input box includes:
acquiring an input box type list, wherein the input box type list is used for storing the corresponding relation between the input box identification and the input box type;
and determining the input box type corresponding to the input box identification in the input box type list based on the input box identification of the current input box.
According to the method provided by the embodiment of the disclosure, the input box type of the input box is determined by obtaining the input box type list and based on the input box identification of the current input box, so that the result obtained by determining the input box type is more accurate.
In another embodiment, before the querying the first lexicon and the second lexicon respectively based on the input characters in the input box of the application to obtain at least one first candidate word and at least one second candidate word, the method further includes:
determining an input box grade of the input box based on the input box identification of the input box;
recording the words input by the user in the input box, and taking the words as second candidate words;
and storing the second candidate word and the input box in a hierarchical correspondence mode to a hierarchical list.
According to the method provided by the embodiment of the disclosure, the input box grades of the input boxes are determined, the words and phrases input by the user in the input boxes with different grades are recorded, and the words and phrases are used as the second candidate words, so that the purpose of storing at least one second candidate word and the input box grade corresponding to the input box correspondingly is achieved, the candidate words can be displayed according to the input box grades, convenience is provided for the user, and the privacy of the user is prevented from being revealed.
In another embodiment, after the detecting the current input environment, the method further comprises:
determining an input box grade corresponding to the input box identification based on the input box identification of the input box;
obtaining at least one input box grade higher than the input box grade in the grade list based on the input box grade;
correspondingly, the hiding the target candidate word in the at least one second candidate word and the displaying the at least one first candidate word comprise:
taking a second candidate word corresponding to the at least one input box grade as a target candidate word;
hiding the target candidate word, and displaying a second candidate word except the target candidate word in the at least one first candidate word and the at least one second candidate word.
According to the method provided by the embodiment of the disclosure, based on the input frame level of the input frame in the application program, at least one input frame level higher than the input frame level of the input frame is determined, the candidate word corresponding to the at least one input frame level is used as the target candidate word, and the target candidate word is hidden, so that the purpose of displaying part of the candidate words in the second candidate word is achieved, and the mode of displaying the candidate words is more intelligent.
According to a second aspect of the embodiments of the present disclosure, there is provided a candidate word display apparatus, the apparatus including:
the query module is configured to query a first word bank and a second word bank respectively based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, wherein the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated by a user of the application program in a historical input process;
a detection module configured to detect a current input environment;
a display module configured to hide a target candidate word in the at least one second candidate word and display the at least one first candidate word if the input environment is an abnormal environment, where the target candidate word is a part of or all candidate words in the at least one second candidate word.
In another embodiment, the detection module includes:
the first detection unit is configured to determine the account type of a current login account in the application program, wherein the account type at least comprises a common account and a private account; if the current login account is a common account, determining that the current input environment is a normal environment; if the current login account is a private account, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
the second detection unit is configured to send a connection request to a preset wearable device, and if a connection response of the preset wearable device is received, the current input environment is determined to be a normal environment; if the connection response of the wearable device is not received, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
a third detection unit configured to determine current geographical location information, and if the current geographical location information is displayed as a private location, determine that the current input environment is a normal environment; and if the current geographical position information is displayed as a public position, determining that the current input environment is an abnormal environment.
In another embodiment, the apparatus further comprises:
the type determining module is configured to determine the application program type of the application program if the current input environment is a normal environment, wherein the application program type at least comprises a common application program and a private application program;
the display module is further configured to hide the target candidate word and display the at least one first candidate word if the application program type of the application program is a private application program;
the type determination module is further configured to determine an input box type of the input box based on the input box identifier of the input box if the application type of the application program is a common application program, where the input box type at least includes a private input box and a common input box;
the display module is further configured to hide the target candidate word and display the at least one first candidate word if the input box type is a private input box;
the display module is further configured to display the at least one first candidate word and the at least one second candidate word if the input box type is a normal input box.
In another embodiment, the type determining module is further configured to obtain an input box type list, where the input box type list is used to store a correspondence between the input box identifier and the input box type; and determining the input box type corresponding to the input box identification in the input box type list based on the input box identification of the current input box.
In another embodiment, the apparatus further comprises:
a ranking determination module configured to determine an input box ranking for the input box based on an input box identification for the input box;
the recording module is configured to record the words input in the input box by the user, and the words are used as second candidate words;
the storage module is configured to store the second candidate word and the input box in a hierarchical correspondence to a hierarchical list.
In another embodiment, the level determination module is further configured to determine, based on the input box identifier of the input box, a corresponding input box level of the input box identifier; obtaining at least one input box grade higher than the input box grade in the grade list based on the input box grade;
correspondingly, the display module is configured to take the second candidate word corresponding to the at least one input box grade as the target candidate word; hiding the target candidate word, and displaying a second candidate word except the target candidate word in the at least one first candidate word and the at least one second candidate word.
According to a third aspect of the embodiments of the present disclosure, there is provided a candidate word display apparatus, the apparatus including:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: respectively querying a first word bank and a second word bank based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, wherein the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated by a user of the application program in a historical input process; detecting a current input environment; if the input environment is an abnormal environment, hiding a target candidate word in the at least one second candidate word, and displaying the at least one first candidate word, wherein the target candidate word is a part of or all candidate words in the at least one second candidate word.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure.
Fig. 1 is a flow diagram illustrating a candidate word display method in accordance with an example embodiment.
Fig. 2 is a flow diagram illustrating a candidate word display method in accordance with an example embodiment.
Fig. 3A is a block diagram illustrating a candidate word display apparatus according to an example embodiment.
Fig. 3B is a block diagram illustrating a candidate word display apparatus according to an example embodiment.
Fig. 3C is a block diagram illustrating a candidate word display apparatus according to an example embodiment.
Fig. 3D is a block diagram illustrating a candidate word display apparatus according to an example embodiment.
Fig. 4 is a block diagram illustrating a candidate word display apparatus 400 according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the exemplary embodiments below are not intended to represent all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present disclosure, as detailed in the appended claims.
Fig. 1 is a flowchart illustrating a candidate word display method according to an exemplary embodiment, which includes the following steps, as shown in fig. 1.
In step 101, a first word bank and a second word bank are respectively queried based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, where the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated by a user of the application program in a historical input process.
In step 102, a current input environment is detected.
In step 103, if the input environment is an abnormal environment, hiding the target candidate word in the at least one second candidate word, and displaying the at least one first candidate word, where the target candidate word is a partial candidate word or a full candidate word in the at least one second candidate word.
The method provided by the embodiment of the disclosure queries a first word stock and a second word stock respectively based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, and detects a current input environment; if the input environment is an abnormal environment, hiding part of candidate words or all candidate words in the at least one second candidate word, and displaying the at least one first candidate word. According to the method and the device, whether some candidate words which are accumulated in the historical input process of the user and possibly relate to the personal privacy of the user are displayed or not is determined by detecting the current input environment, so that the safety of the terminal is improved, and the risk of revealing the personal privacy of the user is reduced.
In another embodiment, detecting a current input environment includes:
determining the account type of a current login account in an application program, wherein the account type at least comprises a common account and a private account; if the current login account is a common account, determining that the current input environment is a normal environment; if the current login account is a private account, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
sending a connection request to the preset wearable device, and if a connection response of the preset wearable device is received, determining that the current input environment is a normal environment; if the connection response of the preset wearable device is not received, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
determining current geographical position information, and if the current geographical position information is displayed as a private position, determining the current input environment as a normal environment; and if the current geographical position information is displayed as a public position, determining that the current input environment is an abnormal environment.
In another embodiment, after detecting the current input environment, the method further comprises:
if the current input environment is a normal environment, determining the application program type of the application program, wherein the application program type at least comprises a common application program and a private application program;
if the application program type of the application program is a private application program, hiding the target candidate words and displaying at least one first candidate word;
if the application type of the application program is a common application program, determining the input box type of the input box based on the input box identification of the input box, wherein the input box type at least comprises a private input box and a common input box;
if the input box type is a private input box, hiding the target candidate words and displaying at least one first candidate word;
and if the input box type is a common input box, displaying at least one first candidate word and at least one second candidate word.
In another embodiment, determining the input box type of the input box based on the input box identification of the input box comprises:
acquiring an input box type list, wherein the input box type list is used for storing the corresponding relation between the input box identification and the input box type;
and determining the input box type corresponding to the input box identification in the input box type list based on the input box identification of the current input box.
In another embodiment, before querying the first lexicon and the second lexicon respectively based on input characters in an input box of the application to obtain at least one first candidate word and at least one second candidate word, the method further comprises:
determining a preset input frame grade of the input frame based on the input frame identification of the input frame;
recording the words input by the user in the input box, and taking the words as second candidate words;
and correspondingly storing the second candidate word and the preset input box grade to a grade list.
In another embodiment, after detecting the current input environment, the method further comprises:
determining a preset input frame grade corresponding to the input frame identification based on the input frame identification of the input frame;
acquiring at least one input frame grade higher than the preset input frame grade in the grade list based on the preset input frame grade;
accordingly, hiding the target candidate word in the at least one second candidate word, and displaying the at least one first candidate word comprises:
taking a second candidate word corresponding to at least one input box grade as a target candidate word;
hiding the target candidate words, and displaying the second candidate words except the target candidate words in the at least one first candidate word and the at least one second candidate word.
All the above optional technical solutions may be combined arbitrarily to form the optional embodiments of the present disclosure, and are not described herein again.
Fig. 2 is a flowchart illustrating a candidate word display method according to an exemplary embodiment, and the method is applied to a terminal, as shown in fig. 2, and includes the following steps.
In step 201, the terminal queries the first lexicon and the second lexicon respectively based on the input characters of the user in the input box of the application program to obtain at least one first candidate word and at least one second candidate word.
In the embodiment of the disclosure, the input box belongs to one of interface views in an operating system carried by a terminal, and each interface view corresponds to one identifier in the operating system, so the input box also has an input box identifier, and the input box identifier can be used for distinguishing input boxes of different applications or different functions of the system. The terminal provides an input box display inlet in the page of the application program, when a user needs to input characters in the application program, the input box display inlet is clicked, the terminal calls the input box of the application program in the operating system, and therefore the user can input the characters in the input box. When the input characters of the user are displayed in an input box of the application program, the terminal queries a first word bank based on the input characters to obtain at least one first candidate word; and then, querying a second word bank based on the input characters to obtain at least one second candidate word.
The first word stock is a core word stock applied by an operating system or an input method carried by the terminal, that is, the first word stock stores candidate words preset by a user, which are input methods currently running in the operating system carried by the terminal; thus, at least one first candidate word obtained in the first word bank is a candidate word preset for the user by the input method. The second word bank is used for storing words accumulated in the history input process of the user in the application program, namely candidate words recorded according to the input habits of the user. Thus, at least one second candidate word obtained in the second word bank is the word accumulated by the user in the history input process. For example, if the user has input the name "zhang san", the terminal takes "zhang san" as the second candidate word and stores it in the second lexicon, so that when the user inputs "zhang san" next time, the terminal will obtain the second candidate word "zhang san" in the second lexicon and display it to the user. It should be noted that the first lexicon and the second lexicon can be two different lexicons respectively, and can also be the same lexicon; and if the first word bank and the second word bank are the same word bank, at least one first candidate word and at least one second candidate word are respectively stored in different directories in the word bank.
For example, if the user has input the complete identification numbers "5201401987 xxxxxxxxxx" and "5201431993 xxxxxxxx" in the input box of the application, the terminal stores "5201401987 xxxxxxxxxx" and "5201431993 xxxxxxxxxx" as the second candidate word in the second thesaurus. When the input character of the user in the input box of the application program is '520', at least one first candidate word obtained by the terminal inquiring the first word bank can be a candidate word preset by an input method, such as 'I love you', '521', and the like; the at least one second candidate word from the second thesaurus may be "5201401987 xxxxxxxx", "5201431993 xxxxxxxx", etc.
In step 202, the terminal detects a current input environment, and if the current input environment is determined to be an abnormal environment, step 203 is executed; if the current input environment is determined to be a normal environment, step 204 is executed.
In order to ensure that the second candidate word is hidden in the abnormal environment to ensure the security of the privacy of the user, the terminal detects the current input environment before displaying the candidate words. When detecting the current input environment, the terminal may adopt at least one of the following three methods:
the method comprises the steps that a terminal determines the account type of a current login account in an application program, and if the current login account is a common account, the current input environment is determined to be a normal environment; and if the current login account is a private account, determining that the current input environment is an abnormal environment.
The inventors have realized that the security and privacy requirements may be different for different accounts involved in an application and that the user may wish to display different candidate words. For accounts that involve personal privacy such as assets, identification numbers, etc., the user may not need to display the second candidate word; for some accounts that do not involve personal privacy, the user may need to display the second candidate word for convenience, so the terminal may detect the input context based on the login account to determine how to display the candidate word.
In the embodiment of the present disclosure, the account types at least include a normal account and a private account, and the terminal may determine the account type of the currently logged-in account according to the password type of the account, the primary and secondary accounts (e.g., the primary account or the secondary account) of the account, the function of the account, and the like. The method includes the steps that a terminal determines the account type of a current login account according to the password type of the account. The terminal provides passwords with different forms such as digital passwords, pattern passwords, face passwords, fingerprint passwords and the like for the account, the passwords with different forms correspond to different account types, and the account is set to be a common account or a private account according to the password form set for the account by the user. If the current login account is determined to be a common account according to the password form, determining that the current input environment is a normal environment; and if the current login account is determined to be the private account according to the password form, determining that the current input environment is the abnormal environment.
For example, if the user sets a digital password for account a and sets a fingerprint password for account B, the terminal sets account a as a normal account and sets account B as a private account.
Continuing to take the above situation as an example, because the terminal provides a digital password for the common account and a fingerprint password for the private account, when the terminal determines the type of the account currently logged in the application program, if the password form of the currently logged account is the digital password, it can be determined that the currently logged account is the common account, that is, it is determined that the current input environment is the normal environment; if the password form of the current login account is the fingerprint password, the current login account can be determined to be a private account, namely the current input environment is determined to be an abnormal environment.
If the terminal determines the account type of the account according to the primary account and the secondary account, the terminal can set the primary account as a private account and the secondary account as a common account. Thus, if the terminal determines that the current login account is the slave account, the current input environment is determined to be the normal environment; and if the terminal determines that the current login account is the main account, determining that the current input environment is an abnormal environment.
If the terminal determines the account type of the account according to the account function, the terminal can use the account with the payment function as a private account and use the account without the payment function as a common account. Thus, if the terminal determines that the currently logged account does not have the payment function, the current input environment is determined to be a normal environment; and if the terminal determines that the currently logged account has the payment function, determining that the current input environment is an abnormal environment.
The second method comprises the steps that the terminal sends a connection request to the preset wearable device, and if a connection response of the preset wearable device is received, the current input environment is determined to be a normal environment; and if the connection response of the preset wearable device is not received, determining that the current input environment is an abnormal environment.
The inventor realizes that for common wearable devices such as a bracelet and a watch, a user can wear the wearable device frequently, and the terminal can determine whether the terminal is currently held by an actual user or not by connecting the wearable device so as to determine the current input environment, so that the terminal can adopt the following method for detecting the current input environment.
In the embodiment of the present disclosure, the preset wearable device may be a common wearable device of a user such as a bracelet and a watch. When the user sets wearing equipment commonly used as preset wearing equipment, the terminal can acquire the equipment identifier of the wearing equipment commonly used, and the equipment identifier of the wearing equipment commonly used is stored to serve as the equipment identifier of the preset wearing equipment. When a user calls an input box in an operating system according to the user requirement, the terminal sends a connection request to the preset wearable device according to the device identification of the preset wearable device; if the terminal receives a connection response of the preset wearable device, determining that the current input environment is a normal environment; and if the terminal does not receive the connection response of the preset wearable device, determining that the current input environment is an abnormal environment.
The terminal can be implemented by bluetooth, WI-FI (wireless fidelity, wireless network) and the like when sending a connection request to the preset wearable device.
If the terminal sends a connection request to the preset wearable device through the Bluetooth, the terminal and the preset wearable device both need to start the Bluetooth function. After the terminal sends a connection request to the preset wearable device through Bluetooth, if the preset wearable device sends a connection response to the terminal device, connection can be established between the preset wearable device and the terminal, and therefore the terminal can determine that the current input environment is a normal environment; if the distance between the preset wearable device and the terminal exceeds the connection range or the terminal is in an abnormal state, the preset wearable device does not send a connection response to the terminal, that is, the preset wearable device fails to establish connection with the terminal, so that the terminal can determine that the current input environment is an abnormal environment.
And if the terminal sends a connection request to the preset wearable device through the WI-FI, the terminal and the preset wearable device both need to be connected with the same WI-FI. After the terminal sends a connection request to the preset wearable device through the WI-FI, if the preset wearable device and the terminal are connected with the same WI-FI, the preset wearable device receives the connection request and sends a connection response to the terminal, so that the terminal can determine that the current input environment is a normal environment; if at least one of the preset wearable device or the terminal is not connected with the same WI-FI, the preset wearable device does not receive the connection request sent by the terminal and does not send a connection response to the terminal, so that the terminal can determine that the current input environment is an abnormal environment.
The terminal determines current geographical position information, and if the current geographical position information is displayed as a private position, the current input environment is determined to be a normal environment; and if the current geographical position information is displayed as a public position, determining that the current input environment is an abnormal environment.
In the embodiment of the present disclosure, the terminal may determine the current geographic location information based on a GPS (Global Positioning System), WI-FI, or the like. For the method of determining the current geographical location information based on the GPS, the terminal provides a location setting page for the user, on which the user can use the geographical location information such as a home, a company, etc. as a private location, use other locations except the private location as public locations, and store the private location set by the user by the terminal. When an input method in a system carried by the terminal is called, the terminal can carry out positioning through a GPS (global positioning system), acquire current geographical position information, simultaneously acquire a stored private position set by a user, and compare the private position set by the user with the current geographical position information; if the private position set by the user is consistent with the current geographical position information, determining the current input environment as a normal environment; and if the private position set by the user is inconsistent with the current geographical position information, determining that the current input environment is an abnormal environment.
For the mode of determining the current geographic position information based on the WI-FI, the terminal provides a WI-FI setting page for the user, the user can add the WI-FI identification of the WI-FI provided by a family, a company and the like to a private position on the WI-FI setting page, namely, the family, the company and the like are taken as the private position, and the terminal stores the WI-FI identification set by the user. When an input method in a system carried by the terminal is called, the terminal searches for the WI-FI identification of at least one WI-FI at the current position, acquires the stored WI-FI identification set by a user, and compares the WI-FI identification of at least one WI-FI with the WI-FI identification set by the user; if the WI-FI identification set by the user is consistent with one WI-FI identification in the at least one WI-FI identification, determining that the current input environment is a normal environment; and if the WI-FI identification set by the user is inconsistent with all WI-FI identifications in the at least one WI-FI identification, determining that the current input environment is an abnormal environment.
When the terminal detects the current input environment, the terminal only needs to detect the current input environment according to a detection method preset by the user. If the detection method preset by the user is a plurality of methods in the three methods, the plurality of methods do not have execution sequence.
In step 203, the terminal hides the target candidate word in the at least one second candidate word, displays the at least one first candidate word, and ends.
In an embodiment of the present disclosure, the target candidate word is a partial candidate word or a full candidate word in the at least one second candidate word.
And if the target candidate word is all the candidate words in the at least one second candidate word, the terminal directly hides all the candidate words in the second candidate word. Since directly hiding all the candidate words in the second candidate words may not be convenient enough for the user to input words in the input box and display of the candidate words is not intelligent enough, the disclosure may also hide part of the candidate words in the at least one second candidate word, that is, the target candidate word is part of the candidate words in the at least one second candidate word, thereby providing convenience for the user and avoiding disclosure of privacy of the user. If the target candidate word is a partial candidate word in the at least one second candidate word, the terminal needs to set an input box level for the input box first, and determine the target candidate word in the at least one second candidate word according to the input box level of the current input box, which includes the following specific steps:
step one, the terminal determines the input box grade of the input box based on the input box identification of the input box.
When the user performs an input, in order to store a word or the like input by the user in association with an input box rank, the input box rank of the input box may be determined based on the input box identification of the input box. In the embodiment of the disclosure, each input box corresponds to one input box identifier, so that when the terminal acquires the input box identifier of an input box, the terminal may acquire the input box identifier of the input box by calling an interface of an operating system carried by the terminal, and determine the input box level of the input box from a preset corresponding relationship between the input box identifier and the input box level based on the input box identifier. The input box levels may include a dangerous secret level, a serious secret level, a general secret level and a normal level.
The preset corresponding relation between the input box identifier and the input box grade can be obtained by the terminal from the server after the server is set, and can also be set by the user on the terminal.
In one possible implementation, the server may set the following according to a default input box level of user privacy settings to which the input box may relate:
for input boxes related to user privacy such as user identification numbers, account passwords and the like, the server can default the input box level to a danger-related level;
for input boxes related to user privacy such as user name, mobile phone number, etc., the server may default its input box level to a severe privacy level;
for input boxes that involve user privacy, such as a user's login account in an application, the server may default its input box level to a general privacy level;
for input boxes that do not involve user privacy, the server may default its input box level to a normal level.
In another possible implementation manner, if the input box level of the input box is the input box level set by the user for the input box through the terminal, the terminal may provide the user with an input box level setting entry. When a user clicks the input box grade setting entry, the terminal provides an input box grade setting page for the user, a pull-down menu comprising a dangerous secret-related grade, a serious secret-related grade, a general secret-related grade and a normal grade is provided for each input box in the terminal, the user sets the input box grade of the input box in the pull-down menu corresponding to the input box, and the input box identification of the input box set by the user is correspondingly stored with the input box grade by the terminal.
Wherein the terminal may maintain in a local storage a list of input box levels, such as table 1, for storing correspondences between input box identifications and input box levels.
TABLE 1
Figure BDA0001183364920000141
And secondly, recording words input by the user in the input box by the terminal, taking the words as second candidate words, and correspondingly storing the second candidate words and the preset input box into a grade list.
In the embodiment of the disclosure, when the terminal detects that the user inputs a word in the input box, the terminal records the word input by the user in the input box, uses the word as a second candidate word, acquires an input box identifier of the input box, and stores the input box identifier and the second candidate word in the rank list in a corresponding manner.
And the second candidate word is a word recorded by the terminal and input by the user in the history input process. For example, if the user inputs the complete identification number "5201401987 xxxxxxxx" in the input box, the terminal records the identification number "5201401987 xxxxxxxx", and uses the identification number as the second candidate.
And after the terminal takes the words recorded in the input box as a second candidate word, storing the second candidate word in a second word bank, determining the input box grade of the input box in the mentioned input box grade list based on the input box identification of the input box, and storing the second candidate word and the input box into the grade list in a corresponding grade mode.
For example, if the user inputs the complete identification number "5201401987 xxxxxxxx" in the input box with the input box identification "ID Card No", the terminal stores "5201401987 xxxxxxxx" as the second candidate word in the second thesaurus, and determines that the input box rank of the input box is "dangerous classified rank" in the aforementioned input box rank list based on the input box identification "ID Card No", the terminal stores the "dangerous classified rank" and "5201401987 xxxxxxxx" in the rank list in association with each other.
The terminal may maintain a rank list as shown in table 2, and store the input box rank of the input box and the second candidate word in the rank list.
TABLE 2
Figure BDA0001183364920000151
After the input box grade of the input box is determined, the terminal can provide a candidate word display mode setting entrance for the user. When the user clicks the candidate word display mode setting entry, the terminal provides a candidate word display mode setting page for the user, and provides a pull-down menu for setting the candidate word display mode when the input environment is abnormal. Wherein, the pull-down menu can comprise a whole display and a part of display. The user can set the display mode of the candidate words by selecting the whole display or partial display, and the terminal stores the setting of the user.
After the first step and the second step are executed, when the terminal calls an input box in the operating system according to the requirements of the user, the target candidate word can be determined in at least one second candidate word by executing the following third step and fourth step.
And step three, the terminal determines the input box grade corresponding to the input box identification based on the input box identification of the input box.
In the embodiment of the present disclosure, the specific process of step three is the same as that of step one, and details are not repeated here.
And fourthly, the terminal acquires at least one input box grade higher than the input box grade from the grade list based on the input box grade, and takes a second candidate word corresponding to the at least one input box grade as a target candidate word.
In the embodiment of the disclosure, the terminal compares the input frame level of the input frame with other input frame levels in the level list, obtains at least one input frame level higher than the input frame level, obtains the level list, obtains second candidate words corresponding to the at least one input frame level in the level list based on the at least one input frame level, and takes the second candidate words as target candidate words.
For example, if the input box level is "general classified level", see table 1, the input box levels higher than the "general classified level" are "dangerous classified level" and "serious classified level", respectively; then, the terminal acquires a rank list, referring to table 2, acquires "5201401987 xxxxxxxxxx", "5201431993 xxxxxxxx", "zhang" and "1884267 xxxx" corresponding to the "dangerous classified rank" and the "serious classified rank" in the rank list, and takes the candidate words as target candidate words.
And after the target candidate word is determined, the terminal displays a second candidate word according to the display mode of the candidate word set by the user when the input environment is abnormal. If the display mode of the candidate words set by the user is partial display, the terminal displays the target candidate words determined in the second candidate words through the fourth step; and if the display modes of the candidate words set by the user are all displayed, the terminal displays all the second candidate words.
In step 204, if the current input environment is a normal environment, determining the application program type of the application program; if the application program type of the application program is a private application program, execute step 203; if the application type of the application is a normal application, the following step 205 is executed.
The inventor has realized that in case of a current input environment being a normal environment, the security and privacy requirements may be different for different applications, and the user may also wish to display different candidate words. For applications involving personal privacy of bank accounts, payment accounts, etc., the user may not need to display the second candidate word; for some applications that do not involve personal privacy, the user may need to display the second candidate word for convenience, so that in the case where the current input environment is a normal environment, the terminal may continue to determine the application type of the application, and thus how to display the candidate word.
In the embodiment of the present disclosure, if the terminal determines that the current input environment is a normal environment, the terminal may continue to determine the application type of the application, where the application type at least includes a common application and a private application.
When determining the application type of the application, the terminal can determine the application as a private application based on the function or name of the application, and for the application which may relate to a bank account, a payment account and the like, the terminal can determine the application as the private application; for applications that do not involve user privacy, such as forums, video applications, etc., the terminal may determine the application as a generic application.
If the application program type of the application program is the private application program, the terminal executes step 203 to hide the target candidate words and display at least one first candidate word.
Optionally, after determining that the current input environment is a normal environment, step 204 may be omitted, and step 205 described below may be directly performed, or after completing performing step 204, step 205 described below may be continuously performed, which is not specifically limited in this disclosure.
In step 205, if the application program type of the application program is a common application program, the terminal determines the input box type of the input box in the application program; if the input box type of the input box is the private input box, execute step 203; if the input box type of the input box is a normal input box, the following step 206 is performed.
The inventors have recognized that for some common applications, where multiple input boxes may be involved, and where the security and privacy requirements of each of the multiple input boxes may be different, the user may also wish to display different candidate words. For an input box requiring input of personal privacy such as a password, an identification number and the like, the user may not need to display a second candidate word; for some input boxes that do not require personal privacy to be entered, the user may need to display the second candidate word for convenience, so the terminal may determine how to display the candidate word by determining the input box type of the input box.
In the embodiment of the disclosure, after determining that the application program type of the application program is a common application program, the terminal acquires an input box type list, and determines an input box type corresponding to an input box identifier in the input box type list based on the input box identifier of the current input box. The input box type list is used for storing the corresponding relation between the input box identification and the input box type. The correspondence relationship may be manually set by the user or may be preset by an operating system installed in the terminal. In an implementation mode of manual setting by a user, the terminal can provide an input box type setting entry, when the terminal detects that the user clicks to enter the input box type setting entry, the terminal can obtain an input box identifier of the input box, and provide a pull-down menu comprising a private input box and a common input box for the user, and after the user completes setting of the input box type, the terminal can correspondingly store the input box identifier and the input box type set by the user into a local memory of the terminal. The terminal may maintain a list of input box types as shown in table 3, for storing the correspondence between the input box identifier and the input box type.
TABLE 3
Input box identification Type of input box
ID Card No Private input box
Name Private input box
Account Common input box
Search Common input box
If the input box type is the private input box, the terminal executes the step 203 to hide the target candidate words and display at least one first candidate word.
Optionally, after determining that the current input environment is a normal environment, the step 204 may be omitted, the step 205 may be directly executed, or the step 205 may be executed after the step 204 is executed, or the step 204 may not be executed again, and the candidate word is directly displayed according to the determined candidate word display manner, which is not specifically limited in this embodiment of the disclosure.
In step 206, the terminal displays at least one first candidate word and at least one second candidate word.
In the embodiment of the disclosure, if the terminal determines that the input box is a normal input box based on the input box identifier of the input box in the input box type list, the terminal displays all the first candidate words and all the second candidate words.
The method provided by the embodiment of the disclosure queries a first word stock and a second word stock respectively based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, and detects a current input environment; if the input environment is an abnormal environment, hiding part of candidate words or all candidate words in the at least one second candidate word, and displaying the at least one first candidate word. According to the method and the device, whether some candidate words which are accumulated in the historical input process of the user and possibly relate to the personal privacy of the user are displayed or not is determined by detecting the current input environment, so that the safety of the terminal is improved, and the risk of revealing the personal privacy of the user is reduced.
In another embodiment, the purpose of detecting the current input environment is achieved by determining the account type of the current login account in the application program, sending a connection request to the preset wearable device and determining the current geographic position information, so that the obtained detection result is more accurate when the current input environment is detected.
In another embodiment, in the case that the current input environment is the normal environment, by determining the program type and the input box type of the application program, it is determined whether to display some candidate words that are accumulated by the user in the history input process and may relate to the personal privacy of the user, so that in the case that the current input environment is the normal environment, the personal privacy of the user may be leaked, and the security of the terminal is improved.
In another embodiment, the result obtained by determining the input box type is more accurate by obtaining the list of input box types and determining the input box type of the input box based on the input box identification of the current input box.
In another embodiment, the purpose of storing at least one second candidate word and the input box corresponding to the input box in a corresponding manner is achieved by determining the input box grades of the input boxes, recording words and phrases input by the user in the input boxes with different grades, and taking the words and phrases as the second candidate word, so that the candidate words can be displayed according to the input box grades, convenience is provided for the user, and the privacy of the user is prevented from being revealed.
In another embodiment, based on the input box level of the input box in the application program, at least one input box level higher than the input box level of the input box is determined, the candidate word corresponding to the at least one input box level is used as the target candidate word, and the target candidate word is hidden, so that the purpose of displaying part of the candidate words in the second candidate word is achieved, and the mode of displaying the candidate words is more intelligent.
Fig. 3A is a block diagram illustrating a candidate word display apparatus according to an example embodiment. Referring to fig. 3A, the apparatus includes an inquiry module 301, a detection module 302, and a display module 303.
The query module 301 is configured to query a first word bank and a second word bank respectively based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, where the first word bank is used to store a core word bank, and the second word bank is used to store words accumulated by a user of the application program in a historical input process;
the detection module 302 configured to detect a current input environment;
the display module 303 is configured to hide a target candidate word in the at least one second candidate word and display the at least one first candidate word if the input environment is an abnormal environment, where the target candidate word is a part of or all candidate words in the at least one second candidate word.
The device provided by the embodiment of the disclosure queries a first word stock and a second word stock respectively based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, and detects a current input environment; if the input environment is an abnormal environment, hiding part of candidate words or all candidate words in the at least one second candidate word, and displaying the at least one first candidate word. According to the method and the device, whether the candidate words which are accumulated in the historical input process of the user and possibly relate to the personal privacy of the user are displayed or not is determined by detecting the current input environment, so that the safety of the terminal is improved, and the risk of revealing the personal privacy of the user is reduced.
In another embodiment, referring to fig. 3B, the detecting module 302 includes a first detecting unit 3021, a second detecting unit 3022 and a third detecting unit 3023.
The first detection unit 3021 is configured to determine an account type of a currently logged-in account in an application program, where the account type includes at least a normal account and a private account; if the current login account is a common account, determining that the current input environment is a normal environment; if the current login account is a private account, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
the second detecting unit 3022 is configured to connect to the wearable device, and if the wearable device is successfully connected, it is determined that the current input environment is a normal environment; if the connection of the wearable equipment fails, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
the third detecting unit 3023 is configured to determine current geographical location information, and if the current geographical location information is displayed as a private location, determine that the current input environment is a normal environment; and if the current geographical position information is displayed as a public position, determining that the current input environment is an abnormal environment.
In another embodiment, referring to fig. 3C, the apparatus further comprises a type determination module 304.
The type determining module 304 is configured to determine an application program type of the application program if the current input environment is a normal environment, where the application program type at least includes a common application program and a private application program;
the display module 303 is further configured to hide the target candidate word and display at least one first candidate word if the application program type of the application program is a private application program;
the type determining module 304 is further configured to determine an input box type of the input box based on the input box identifier of the input box if the application type of the application program is a normal application program, where the input box type at least includes a private input box and a normal input box;
the display module 303 is further configured to hide the target candidate word and display at least one first candidate word if the input box type is the private input box;
the display module 303 is further configured to display at least one first candidate word and at least one second candidate word if the input box type is a normal input box.
In another embodiment, the type determining module 304 is further configured to obtain an input box type list, where the input box type list is used to store a corresponding relationship between an input box identifier and an input box type; and determining the input box type corresponding to the input box identification in the input box type list based on the input box identification of the current input box.
In another embodiment, referring to fig. 3D, the apparatus further comprises a grade determination module 305, a recording module 306 and a storage module 307.
The level determination module 305 is further configured to determine a preset input box level of the input box based on the input box identifier of the input box;
the recording module 306 is configured to record the word input by the user in the input box, and take the word as a second candidate word;
the storage module 307 is configured to store the second candidate word in the rank list corresponding to the preset input box rank.
In another embodiment, the level determining module 305 is further configured to determine a preset input box level corresponding to the input box identifier based on the input box identifier of the input box; acquiring at least one input frame grade higher than the preset input frame grade in the grade list based on the preset input frame grade;
correspondingly, the display module 303 is configured to take the second candidate word corresponding to the at least one input box level as the target candidate word; hiding the target candidate words, and displaying the second candidate words except the target candidate words in the at least one first candidate word and the at least one second candidate word.
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. 4 is a block diagram illustrating a candidate word display apparatus 400 according to an example embodiment. For example, the apparatus 400 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. 4, the apparatus 400 may include one or more of the following components: processing component 402, memory 404, power component 406, multimedia component 408, audio component 410, interface to I/O (Input/Output) 412, sensor component 414, and communication component 416.
The processing component 402 generally controls overall operation of the apparatus 400, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 402 may include one or more processors 420 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 402 can include one or more modules that facilitate interaction between the processing component 402 and other components. For example, the processing component 402 can include a multimedia module to facilitate interaction between the multimedia component 408 and the processing component 402.
The memory 404 is configured to store various types of data to support operations at the apparatus 400. Examples of such data include instructions for any application or method operating on the device 400, contact data, phonebook data, messages, pictures, videos, and so forth. The Memory 404 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as an SRAM (Static Random Access Memory), an EEPROM (Electrically-Erasable Programmable Read-Only Memory), an EPROM (Erasable Programmable Read-Only Memory), a PROM (Programmable Read-Only Memory), a ROM (Read-Only Memory), a magnetic Memory, a flash Memory, a magnetic disk, or an optical disk.
Power supply components 406 provide power to the various components of device 400. The power components 406 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 400.
The multimedia component 408 includes a screen that provides an output interface between the device 400 and the user. In some embodiments, the screen may include an LCD (Liquid Crystal Display) and a TP (touch panel). 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 408 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the apparatus 400 is in an operation mode, such as a photographing 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 410 is configured to output and/or input audio signals. For example, the audio component 410 may include a Microphone (MIC) configured to receive external audio signals when the device 400 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 404 or transmitted via the communication component 416. In some embodiments, audio component 410 also includes a speaker for outputting audio signals.
The I/O interface 412 provides an interface between the processing component 402 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 component 414 includes one or more sensors for providing various aspects of status assessment for the apparatus 400. For example, the sensor component 414 can detect the open/closed state of the device 400, the relative positioning of components, such as a display and keypad of the apparatus 400, the sensor component 414 can also detect a change in the position of the apparatus 400 or a component of the apparatus 400, the presence or absence of user contact with the apparatus 400, orientation or acceleration/deceleration of the apparatus 400, and a change in the temperature of the apparatus 400. The sensor assembly 414 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 414 may also include a light sensor, such as a CMOS (Complementary Metal oxide semiconductor) or CCD (Charge-coupled Device) image sensor, for use in imaging applications. In some embodiments, the sensor assembly 414 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 416 is configured to facilitate wired or wireless communication between the apparatus 400 and other devices. The apparatus 400 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 416 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the Communication component 416 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on an RFID (Radio frequency identification) technology, an IrDA (infrared-Data Association) technology, an UWB (Ultra Wideband) technology, a BT (Bluetooth) technology, and other technologies.
In an exemplary embodiment, the apparatus 400 may be implemented by one or more ASICs (Application specific integrated circuits), DSPs (Digital signal processors), DSPDs (Digital signal processing devices), PLDs (Programmable logic devices), FPGAs (Field Programmable Gate arrays), controllers, microcontrollers, microprocessors or other candidate electronic components for performing the above-described word display method.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 404 comprising instructions, executable by the processor 420 of the apparatus 400 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a RAM (Random Access Memory), a CD-ROM (Compact Disc Read-Only Memory), a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium, wherein instructions, when executed by a processor of a candidate word display apparatus, enable the candidate word display apparatus to perform the above candidate word display method.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It will be understood that the present disclosure 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 present disclosure is limited only by the appended claims.

Claims (11)

1. A candidate word display method, comprising:
respectively querying a first word bank and a second word bank based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, wherein the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated in a historical input process of a user in the application program;
detecting a current input environment; if the input environment is an abnormal environment, hiding a target candidate word in the at least one second candidate word, and displaying the at least one first candidate word, wherein the target candidate word is a part of or all candidate words in the at least one second candidate word;
if the current input environment is a normal environment, determining the application program type of the application program, wherein the application program type at least comprises a common application program and a private application program; if the application program type of the application program is a private application program, hiding the target candidate word and displaying the at least one first candidate word; if the application type of the application program is a common application program, determining the input box type of the input box based on the input box identification of the input box, wherein the input box type at least comprises a private input box and a common input box; if the input box type is a private input box, hiding the target candidate word and displaying the at least one first candidate word; if the input box type is a common input box, displaying the at least one first candidate word and the at least one second candidate word;
the method further comprises the following steps:
when the clicking operation of a candidate word display mode setting inlet is detected, displaying a mode setting page, wherein the mode setting page is used for setting the candidate word display mode by a user, and the candidate word display mode comprises full display and partial display.
2. The method of claim 1, wherein the detecting a current input environment comprises:
determining the account type of a current login account in the application program, wherein the account type at least comprises a common account and a private account; if the current login account is a common account, determining that the current input environment is a normal environment; if the current login account is a private account, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
sending a connection request to a preset wearable device, and if a connection response of the preset wearable device is received, determining that the current input environment is a normal environment; if the connection response of the preset wearable device is not received, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
determining current geographical position information, and if the current geographical position information is displayed as a private position, determining that the current input environment is a normal environment; and if the current geographical position information is displayed as a public position, determining that the current input environment is an abnormal environment.
3. The method of claim 1, wherein determining the input box type of the input box based on the input box identification of the input box comprises:
acquiring an input box type list, wherein the input box type list is used for storing the corresponding relation between the input box identification and the input box type;
and determining the input box type corresponding to the input box identification in the input box type list based on the input box identification of the current input box.
4. The method of claim 1, wherein before querying the first thesaurus and the second thesaurus respectively for the at least one first candidate word and the at least one second candidate word based on the input character in the input box of the application, the method further comprises:
determining an input box grade of the input box based on the input box identification of the input box;
recording the words input by the user in the input box, and taking the words as second candidate words;
and storing the second candidate word and the input box in a hierarchical correspondence mode to a hierarchical list.
5. The method of claim 4, wherein after detecting the current input environment, the method further comprises:
determining an input box grade corresponding to the input box identification based on the input box identification of the input box;
obtaining at least one input box grade higher than the input box grade in the grade list based on the input box grade;
correspondingly, the hiding the target candidate word in the at least one second candidate word and the displaying the at least one first candidate word comprise:
taking a second candidate word corresponding to the at least one input box grade as a target candidate word;
hiding the target candidate word, and displaying a second candidate word except the target candidate word in the at least one first candidate word and the at least one second candidate word.
6. A candidate word display apparatus, comprising:
the query module is configured to query a first word bank and a second word bank respectively based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, wherein the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated by a user of the application program in a historical input process;
a detection module configured to detect a current input environment;
a display module configured to hide a target candidate word in the at least one second candidate word and display the at least one first candidate word if the input environment is an abnormal environment, where the target candidate word is a part of or all candidate words in the at least one second candidate word;
the type determining module is configured to determine the application program type of the application program if the current input environment is a normal environment, wherein the application program type at least comprises a common application program and a private application program;
the display module is further configured to hide the target candidate word and display the at least one first candidate word if the application program type of the application program is a private application program;
the type determination module is further configured to determine an input box type of the input box based on the input box identifier of the input box if the application type of the application program is a common application program, where the input box type at least includes a private input box and a common input box;
the display module is further configured to hide the target candidate word and display the at least one first candidate word if the input box type is a private input box;
the display module is further configured to display the at least one first candidate word and the at least one second candidate word if the input box type is a normal input box;
the device further comprises a module for displaying a mode setting page when a click operation for setting an entrance for the candidate word display mode is detected, wherein the mode setting page is used for setting the candidate word display mode by a user, and the candidate word display mode comprises full display and partial display.
7. The apparatus of claim 6, wherein the detection module comprises:
the first detection unit is configured to determine the account type of a current login account in the application program, wherein the account type at least comprises a common account and a private account; if the current login account is a common account, determining that the current input environment is a normal environment; if the current login account is a private account, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
the second detection unit is configured to send a connection request to a preset wearable device, and if a connection response of the preset wearable device is received, the current input environment is determined to be a normal environment; if the connection response of the wearable device is not received, determining that the current input environment is an abnormal environment; or the like, or, alternatively,
a third detection unit configured to determine current geographical location information, and if the current geographical location information is displayed as a private location, determine that the current input environment is a normal environment; and if the current geographical position information is displayed as a public position, determining that the current input environment is an abnormal environment.
8. The apparatus according to claim 6, wherein the type determining module is further configured to obtain an input box type list, and the input box type list is used for storing the correspondence between the input box identifier and the input box type; and determining the input box type corresponding to the input box identification in the input box type list based on the input box identification of the current input box.
9. The apparatus of claim 6, further comprising:
a ranking determination module configured to determine an input box ranking for the input box based on an input box identification for the input box;
the recording module is configured to record the words input in the input box by the user, and the words are used as second candidate words;
the storage module is configured to store the second candidate word and the input box in a hierarchical correspondence to a hierarchical list.
10. The apparatus of claim 9, wherein the level determination module is further configured to determine, based on an input box identifier of the input box, an input box level corresponding to the input box identifier; obtaining at least one input box grade higher than the input box grade in the grade list based on the input box grade;
correspondingly, the display module is configured to take the second candidate word corresponding to the at least one input box grade as the target candidate word; hiding the target candidate word, and displaying a second candidate word except the target candidate word in the at least one first candidate word and the at least one second candidate word.
11. A candidate word display apparatus, comprising:
a processor;
a memory for storing processor-executable instructions;
wherein the processor is configured to: respectively querying a first word bank and a second word bank based on input characters in an input box of an application program to obtain at least one first candidate word and at least one second candidate word, wherein the first word bank is used for storing a core word bank, and the second word bank is used for storing words accumulated by a user of the application program in a historical input process; detecting a current input environment; if the input environment is an abnormal environment, hiding a target candidate word in the at least one second candidate word, and displaying the at least one first candidate word, wherein the target candidate word is a part of or all candidate words in the at least one second candidate word;
if the current input environment is a normal environment, determining the application program type of the application program, wherein the application program type at least comprises a common application program and a private application program; if the application program type of the application program is a private application program, hiding the target candidate word and displaying the at least one first candidate word; if the application type of the application program is a common application program, determining the input box type of the input box based on the input box identification of the input box, wherein the input box type at least comprises a private input box and a common input box; if the input box type is a private input box, hiding the target candidate word and displaying the at least one first candidate word; if the input box type is a common input box, displaying the at least one first candidate word and the at least one second candidate word;
the processor is further configured to:
when the clicking operation of a candidate word display mode setting inlet is detected, displaying a mode setting page, wherein the mode setting page is used for setting the candidate word display mode by a user, and the candidate word display mode comprises full display and partial display.
CN201611170483.5A 2016-12-16 2016-12-16 Candidate word display method and device Active CN106445189B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611170483.5A CN106445189B (en) 2016-12-16 2016-12-16 Candidate word display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611170483.5A CN106445189B (en) 2016-12-16 2016-12-16 Candidate word display method and device

Publications (2)

Publication Number Publication Date
CN106445189A CN106445189A (en) 2017-02-22
CN106445189B true CN106445189B (en) 2020-03-17

Family

ID=58216860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611170483.5A Active CN106445189B (en) 2016-12-16 2016-12-16 Candidate word display method and device

Country Status (1)

Country Link
CN (1) CN106445189B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107179838B (en) * 2017-05-25 2019-07-26 维沃移动通信有限公司 A kind of display methods and mobile terminal of candidate word
CN108563965B (en) * 2018-03-29 2020-06-12 Oppo广东移动通信有限公司 Character input method and device, computer readable storage medium and terminal
CN110598489B (en) * 2018-06-13 2024-05-28 北京搜狗科技发展有限公司 Privacy protection method and related device for input prompt information
CN113260996A (en) * 2018-12-29 2021-08-13 华为技术有限公司 Data display method
CN110399046A (en) * 2019-05-31 2019-11-01 平安科技(深圳)有限公司 The processing method of candidate item, device, equipment and storage medium in input method
CN110750162B (en) * 2019-09-17 2024-04-05 上海掌门科技有限公司 Input method and device
CN110825475A (en) * 2019-10-31 2020-02-21 维沃移动通信有限公司 Input method and electronic equipment
CN112631437A (en) * 2020-12-25 2021-04-09 维沃移动通信有限公司 Information recommendation method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963844A (en) * 2010-09-26 2011-02-02 百度在线网络技术(北京)有限公司 Method and device for inputting form
CN103853993A (en) * 2014-03-26 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105373237A (en) * 2015-10-28 2016-03-02 魅族科技(中国)有限公司 Data input method and terminal
CN105389021A (en) * 2015-11-09 2016-03-09 百度在线网络技术(北京)有限公司 Input box information display method and display apparatus
CN105511638A (en) * 2015-12-03 2016-04-20 魅族科技(中国)有限公司 Application method and device for input method
CN105653054A (en) * 2015-05-28 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Code processing method and apparatus
CN105844180A (en) * 2016-03-15 2016-08-10 青岛海信移动通信技术股份有限公司 Starting method and device of input method keyboard

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5921527B2 (en) * 2010-04-12 2016-05-24 グーグル インコーポレイテッド Extended framework for input method editor
CN102426591A (en) * 2011-10-31 2012-04-25 北京百度网讯科技有限公司 Method and device for operating corpus used for inputting contents
US8930813B2 (en) * 2012-04-03 2015-01-06 Orlando McMaster Dynamic text entry/input system
US20150089435A1 (en) * 2013-09-25 2015-03-26 Microth, Inc. System and method for prediction and recognition of input sequences
JP6018123B2 (en) * 2014-05-29 2016-11-02 レノボ・シンガポール・プライベート・リミテッド Password input device, password input method, and computer-executable program
CN105204661B (en) * 2015-10-20 2018-01-26 广东欧珀移动通信有限公司 The filter method and device of the shielding word of input method
CN105760796B (en) * 2016-02-18 2021-11-30 北京小米移动软件有限公司 Application security processing method and device
CN105760521A (en) * 2016-02-29 2016-07-13 百度在线网络技术(北京)有限公司 Information input method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101963844A (en) * 2010-09-26 2011-02-02 百度在线网络技术(北京)有限公司 Method and device for inputting form
CN103853993A (en) * 2014-03-26 2014-06-11 联想(北京)有限公司 Information processing method and electronic equipment
CN105653054A (en) * 2015-05-28 2016-06-08 宇龙计算机通信科技(深圳)有限公司 Code processing method and apparatus
CN105373237A (en) * 2015-10-28 2016-03-02 魅族科技(中国)有限公司 Data input method and terminal
CN105389021A (en) * 2015-11-09 2016-03-09 百度在线网络技术(北京)有限公司 Input box information display method and display apparatus
CN105511638A (en) * 2015-12-03 2016-04-20 魅族科技(中国)有限公司 Application method and device for input method
CN105844180A (en) * 2016-03-15 2016-08-10 青岛海信移动通信技术股份有限公司 Starting method and device of input method keyboard

Also Published As

Publication number Publication date
CN106445189A (en) 2017-02-22

Similar Documents

Publication Publication Date Title
CN106445189B (en) Candidate word display method and device
CN108304475B (en) Data query method and device and electronic equipment
CN104834559B (en) Notification message display method and device
EP2978265A1 (en) Method and apparatus for automatically connecting wireless network
US10242678B2 (en) Friend addition using voiceprint analysis method, device and medium
CN107315487B (en) Input processing method and device and electronic equipment
US10083346B2 (en) Method and apparatus for providing contact card
CN111339744A (en) Ticket information display method, device and storage medium
US20170004212A1 (en) Method and apparatus for acquiring search results
US10764418B2 (en) Method, device and medium for application switching
CN112131466A (en) Group display method, device, system and storage medium
CN108614848B (en) Application program recommendation method, device and equipment
CN104951522B (en) Method and device for searching
US20160349947A1 (en) Method and device for sending message
CN107656616B (en) Input interface display method and device and electronic equipment
CN106506808B (en) Method and device for prompting communication message
CN110213062B (en) Method and device for processing message
CN109842688B (en) Content recommendation method and device, electronic equipment and storage medium
CN110147426B (en) Method for determining classification label of query text and related device
CN107203279B (en) Keyword prompting method and device
CN106790584B (en) Information synchronization method and device
CN106790953B (en) Information interception method and device
CN107515853B (en) Cell word bank pushing method and device
CN109992937B (en) Identity authentication method and identity authentication device
CN110489155B (en) Data file management method, device, electronic equipment and medium

Legal Events

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