CN109783244B - Processing method and device for processing - Google Patents

Processing method and device for processing Download PDF

Info

Publication number
CN109783244B
CN109783244B CN201711107336.8A CN201711107336A CN109783244B CN 109783244 B CN109783244 B CN 109783244B CN 201711107336 A CN201711107336 A CN 201711107336A CN 109783244 B CN109783244 B CN 109783244B
Authority
CN
China
Prior art keywords
input
user
entry
environment characteristics
self
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
CN201711107336.8A
Other languages
Chinese (zh)
Other versions
CN109783244A (en
Inventor
费腾
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN201711107336.8A priority Critical patent/CN109783244B/en
Publication of CN109783244A publication Critical patent/CN109783244A/en
Application granted granted Critical
Publication of CN109783244B publication Critical patent/CN109783244B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention provides a processing method, a processing device and a processing device, wherein the method specifically comprises the following steps: acquiring an input string of a user and input environment characteristics corresponding to the input string; determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics; and displaying the target self-defined entry as a candidate item corresponding to the input string. The embodiment of the invention can reduce the interference of the self-defined vocabulary entry which is not matched with the input environment characteristics corresponding to the input string on the input of the user and can improve the input experience of the user.

Description

Processing method and device for processing
Technical Field
The present invention relates to the field of information input technologies, and in particular, to a processing method and apparatus, and an apparatus for processing.
Background
The device is used as a bridge for the communication between the computer system and the user or other devices, is one of main devices for information interaction between the user and the computer system, and can facilitate the user to input information in various occasions. For example, a user may input a keyword in a search engine to search for a web page, may input a text in an instant messaging APP (Application) to communicate with other users, may input a text in a document APP to edit a document, and so on.
The user-defined entry is an important function of the input method program, a user can set mapping from a character string to the user-defined entry according to self requirements, under general conditions, the character string is short, the user-defined entry is long and high-frequency, and the user-defined entry is usually set in a candidate position (such as a first selection position, a second selection position and the like) in front of the input method program by the user; thus, the input efficiency of the user can be greatly improved. Examples of mappings of strings to custom terms may include: "zg" → "the people's republic of China", "yx" → "abc.163. com", "sjh" → "138 xxxxxxxxxx", "nh" → "you good, the merchandise being inexpensive and being a bag for post! "and the like.
In practical application, the input requirements of some custom terms are often associated with scenes corresponding to certain specific APPs, and the input requirements of the custom terms do not exist in other scenes except the specific APPs; in this way, in other scenarios, these custom entries will cause a waste of candidate positions of the input method program, and thus cause a large interference to the input of the user.
Disclosure of Invention
In view of the foregoing, embodiments of the present invention are provided to provide a processing method, a processing apparatus, and a processing apparatus for processing, which overcome or at least partially solve the foregoing problems, and may reduce interference of a custom entry that does not match with an input environment characteristic corresponding to an input string on a user input and may improve an input experience of the user.
In order to solve the above problem, an embodiment of the present invention discloses a processing method, including:
acquiring an input string of a user and input environment characteristics corresponding to the input string;
determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics;
and displaying the target self-defined entry as a candidate item corresponding to the input string.
Optionally, the determining a target custom entry matched with the input string and the corresponding input environment feature includes:
determining target input environment characteristics corresponding to the self-defined entries matched with the input strings according to the mapping relation between the self-defined entries matched with the input strings and the input environment characteristics;
and if the input environment characteristics corresponding to the input string are matched with the target input environment characteristics, taking the self-defined entry matched with the input string as a target self-defined entry matched with the input string and the input environment characteristics corresponding to the input string.
Optionally, the determining a target custom entry matched with the input string and the corresponding input environment feature includes:
according to the input string of the user and the corresponding input environment characteristics, the mapping relation among the character string, the user-defined entry and the input environment characteristics is searched, so that the target user-defined entry matched with the input string and the corresponding input environment characteristics is obtained.
Optionally, the method further comprises:
determining the screen-on probability of a user for a user-defined entry under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
and determining the updating prompt information corresponding to the self-defined entry according to the screen-loading probability, and outputting the updating prompt information.
Optionally, the input behavior data corresponding to the input environmental characteristics includes: and the user inputs the information of the user-defined entry on the screen under the condition of the input environment characteristics and/or the information of the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
Optionally, the determining the on-screen probability of the user for the custom entry under the condition of the input environment feature includes:
and obtaining the screen-up probability of the user for the user-defined entry under the condition of the input environment characteristics according to the screen-up times of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
Optionally, the screen-up probability does not exceed a first threshold, and the updating the prompt information includes: deleting information of the self-defined entry; and/or
The screen-up probability exceeds a first threshold and does not exceed a second threshold, and the updating prompt information comprises: and self-defining the modification information of the character strings corresponding to the entries.
Optionally, the method further comprises:
determining a corresponding requirement entry of a user under the condition of the input environment characteristics according to input behavior data corresponding to the input environment characteristics;
and outputting addition prompt information corresponding to the required entry so that the user sets the required entry into a self-defined entry through the addition prompt information.
In another aspect, an embodiment of the present invention discloses a processing apparatus, including:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring an input string of a user and input environment characteristics corresponding to the input string;
the target self-defined entry determining module is used for determining a target self-defined entry matched with the input string and the corresponding input environment characteristic according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristic;
and the candidate item display module is used for displaying the target user-defined vocabulary entry as the candidate item corresponding to the input string.
Optionally, the target custom entry determining module includes:
the first determining submodule is used for determining target input environment characteristics corresponding to the self-defined vocabulary entries matched with the input string according to the mapping relation between the self-defined vocabulary entries matched with the input string and the input environment characteristics; and
and the second determining submodule is used for taking the self-defined entry matched with the input string as the target self-defined entry matched with the input string and the input environment characteristic corresponding to the input string if the input environment characteristic corresponding to the input string is matched with the target input environment characteristic.
Optionally, the target custom entry determining module includes:
and the searching submodule is used for searching in the mapping relation among the character string, the user-defined entry and the input environment characteristics according to the input string of the user and the corresponding input environment characteristics so as to obtain the target user-defined entry matched with the input string and the corresponding input environment characteristics.
Optionally, the apparatus further comprises:
the screen-up probability determining module is used for determining the screen-up probability of the user for the user-defined vocabulary entry under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
the first prompt information determining module is used for determining the update prompt information corresponding to the self-defined entry according to the screen-up probability; and
and the first prompt information output module is used for outputting the updating prompt information.
Optionally, the input behavior data corresponding to the input environmental characteristics includes: the user inputs the information of the user-defined entry on the screen under the condition of the input environment characteristic and/or the information of the user input to the character string corresponding to the user-defined entry under the condition of the input environment characteristic.
Optionally, the on-screen probability determination module includes:
and the third determining submodule is used for obtaining the screen-up probability of the user for the user-defined entry under the condition of the input environment characteristics according to the screen-up times of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
Optionally, the screen-up probability does not exceed a first threshold, and the updating the prompt information includes: deleting information of the self-defined entry; and/or
The screen-up probability exceeds a first threshold and does not exceed a second threshold, and the updating prompt information comprises: and self-defining the modification information of the character strings corresponding to the entries.
Optionally, the apparatus further comprises:
the requirement entry determining module is used for determining a requirement entry corresponding to the user under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
and the second prompt information determining module is used for outputting addition prompt information corresponding to the required entry so that a user sets the required entry as a self-defined entry through the addition prompt information.
In yet another aspect, an embodiment of the present invention discloses an apparatus for processing, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors includes instructions for:
acquiring an input string of a user and input environment characteristics corresponding to the input string;
determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics;
and displaying the target self-defined entry as a candidate item corresponding to the input string.
Embodiments of the invention also disclose one or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform one or more of the processing methods described above.
The embodiment of the invention has the following advantages:
the input environment characteristics in the mapping relation between the custom entry and the input environment characteristics of the embodiment of the invention can be used for representing the input environment of an application program such as the application program to which the custom entry is applicable, and taking the input environment characteristics as the application program environment characteristics as an example, the custom entry is effective in the application program corresponding to the application program environment characteristics in the mapping relation, and the custom entry is ineffective in the application program corresponding to the application program environment characteristics which do not appear in the mapping relation; according to the embodiment of the invention, the target self-defined entry is determined according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics, so that the target self-defined entry can be matched with the input environment characteristics corresponding to the input string, and thus, the self-defined entry unmatched with the input environment characteristics corresponding to the input string can be eliminated, therefore, the candidate positions occupied by the self-defined entry unmatched with the input environment characteristics corresponding to the input string can be saved, the interference of the self-defined entry unmatched with the input environment characteristics corresponding to the input string on the user input can be reduced, and the input experience of the user can be improved.
Drawings
FIG. 1 is a schematic illustration of an environment in which a processing method of an embodiment of the invention may be applied;
FIG. 2 is a flow chart of the steps of one embodiment of a processing method of the present invention;
FIG. 3 is a flow chart of the steps of one embodiment of a processing method of the present invention;
FIG. 4 is a flow chart of the steps of one embodiment of a processing method of the present invention;
FIG. 5 is a block diagram of a processing device according to an embodiment of the present invention;
FIG. 6 is a block diagram of an apparatus 900 for processing of the present invention; and
fig. 7 is a schematic diagram of a server in some embodiments of the invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
In practical applications, the input requirements of some custom terms are often associated with the first scenario corresponding to some specific APP. For example, the user's profession is a commercial customer service that requires high frequency input during work, "you are, the commercial is inexpensive and is packaged and posted! "so the following mapping of strings to custom terms can be set by adding custom terms: "nh" → "you good, the item is inexpensive and good, and the package is mailed! ". However, the custom entry is often frequently applied in a first scenario corresponding to an instant messaging APP, but is hardly used in a second scenario corresponding to other APPs (e.g., a search APP, a web page APP, a document APP, etc.); the user-defined entries are usually set in the front candidate positions (such as the first-choice position, the second-choice position, and the like) of the input method program by the user, and thus the user-defined entries will cause waste of the candidate positions of the input method program in the second scenario.
The embodiment of the invention provides an input scheme, which can acquire an input string of a user and input environment characteristics corresponding to the input string; determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics; and displaying the target self-defined vocabulary entry as a candidate item corresponding to the input string.
In the embodiment of the present invention, the input environment characteristics in the mapping relationship between the custom entry and the input environment characteristics can be used to represent the input environment of the application program, for example, to which the custom entry is applicable, that is, the custom entry is valid in the application program corresponding to the input environment characteristics in the mapping relationship, and the custom entry is invalid in the application program corresponding to the input environment characteristics that do not appear in the mapping relationship; according to the embodiment of the invention, the target self-defined entry is determined according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics, so that the target self-defined entry can be matched with the input environment characteristics corresponding to the input string, and thus, the self-defined entry unmatched with the input environment characteristics corresponding to the input string can be eliminated, so that the candidate positions occupied by the self-defined entry unmatched with the input environment characteristics corresponding to the input string can be saved, the interference of the self-defined entry unmatched with the input environment characteristics corresponding to the input string on the user input can be reduced, and the input experience of the user can be improved.
In an application example of the embodiment of the present invention, it is assumed that a user sets the following mapping from a character string to a custom entry by adding the custom entry: "nh" → "you good, the item is inexpensive and good, and the package is mailed! ", and assume that the custom entry" hello, the item is good, inexpensive, and is packaged by a package! "the corresponding input environment features include: the instant messaging APP can use the self-defined entry as a candidate item corresponding to the input string "nh" when the input environment characteristic corresponding to the input string "nh" is the instant messaging APP. In the embodiment of the present invention, the mapping relationship between the custom entry and the input environment features can exclude the custom entry that does not match the input environment features corresponding to the input string, for example, suppose that the custom entry "hello, the good and cheap goods, and package mail! "the corresponding input environmental characteristics do not include: and in the case of the document APP, the user-defined entry may not appear in the candidate item corresponding to the input string "nh" when the input environment characteristic corresponding to the input string "nh" is the document APP, so that the candidate position occupied by the user-defined entry not matching the input environment characteristic corresponding to the input string can be saved.
It should be noted that, in the embodiment of the present invention, one character string may correspond to one custom entry, where the custom entry may correspond to an input environment characteristic. Alternatively, a string may correspond to multiple custom terms, where different custom terms matching the string may correspond to different input environment characteristics, such as string "nh," which may correspond to "good, inexpensive, and package! "hello," kernel, "etc., where" hello, the item is good quality, inexpensive, and is packaged by a file! The corresponding input environment features are instant messaging APPs, the corresponding input environment features of the user's your' are mail APPs, and the corresponding input environment features of the kernel are document APPs and the like.
The processing method provided by the embodiment of the present invention can be applied to the application environment shown in fig. 1, as shown in fig. 1, the client 100 and the server 200 are located in a wired or wireless network, and the client 100 and the server 200 perform data interaction through the wired or wireless network.
Optionally, the client 100 may run on a terminal, and the terminal specifically includes but is not limited to: smart phones, tablet computers, electronic book readers, MP3 (Moving Picture Experts Group Audio Layer III) players, MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop portable computers, car-mounted computers, desktop computers, set-top boxes, smart televisions, wearable devices, and the like.
The client 100 is a program corresponding to a server and providing a local service to a user. The client 100 in the embodiment of the present invention may be a program providing a local input service, such as an input method program, and the specific client is not limited in the embodiment of the present invention.
Method embodiment
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a processing method according to the present invention is shown, which may specifically include the following steps:
step 201, acquiring an input string of a user and input environment characteristics corresponding to the input string;
step 202, determining a target self-defined entry matched with the input string and the corresponding input environment characteristic according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristic;
and 203, showing the target custom entry as a candidate item corresponding to the input string.
The embodiment of the invention can be applied to input method programs of input modes such as keyboard symbol input, handwriting input and the like. The keyboard symbol input mode refers to inputting through keys on a keyboard, the handwriting input mode refers to handwriting on a screen through a built-in touch pen, and the voice input mode refers to converting voice signals input by a user into texts.
For convenience of description, the embodiment of the present invention refers to the encoded character string input by the user in the above input mode as an input string. In the field of input methods, for input method programs in, for example, chinese, japanese, korean, or other languages, an input string input by a user may be generally converted into a candidate for a corresponding language. The input process of the embodiment of the invention is mainly explained by taking Chinese as an example, and other languages can be referred to each other. It is to be understood that the chinese input method may include, but is not limited to, a full pinyin, a simple pinyin, a stroke, a five-stroke, etc., and the embodiment of the present invention is not limited to a specific input method program corresponding to a certain language.
According to some embodiments, the input string may include, but is not limited to: a key symbol or a combination of a plurality of key symbols input by a user through a key. The key symbol may specifically include: pinyin, strokes, kana, etc.
In the embodiment of the invention, the input environment characteristics can be used for representing the environment information of the terminal when the user inputs the information. The input environment characteristics can reflect the input intention of the user to a certain extent, so that the relation is established between the input environment characteristics and the input intention of the user, the input intention of the user can be indirectly identified, and the input efficiency of the user is improved.
In practical applications, the input environment features may include various types of features. Optionally, the input environment feature may include: at least one of a temporal environment feature, a location environment feature, a climate environment feature, an application environment feature, and a page environment feature.
Even if the same terminal is in the environment information which is likely to change, the time environment characteristic is a typical example. Therefore, the input environment characteristics of the embodiment of the invention can have real-time performance, and the input environment characteristics corresponding to the input string can be acquired in real time in the input process.
For an input string, its reception time may be taken as a corresponding temporal environment characteristic.
Location information obtained according to an IP (Internet Protocol) address thereof, a GPS (Global Positioning System) of the terminal, or a mobile communication network may be used as a corresponding location environment characteristic.
The input method program as a hosted program can be hosted by any host program and can be invoked by the host program to realize input in the host program, for example, a user can type an input string in the host program and select a candidate item corresponding to the input string to be displayed on a screen. In the embodiment of the present invention, the application program environment characteristic corresponding to the input string may be information of a host program corresponding to the input method program.
Optionally, the application environment characteristic corresponding to the input string may be determined according to the identification characteristic of the current object being served by the input method program, for example, when the input method program is in operation, the GetModuleFilename finds a program path name "C: programfiless microsoft office 1winword.
In this embodiment of the present invention, the application environment features may include: an application identification and/or an application category. For example, "word" is an application identifier, "word" corresponds to an application category that is an office category, and so on. It is understood that one skilled in the art can classify the application programs into corresponding application program categories according to the actual application requirements, for example, examples of the application program categories may include but are not limited to: an instant messaging category, a document category, a search category, a web page category, a shopping category, a travel category, and the like.
The page environment features may be used to characterize the page environment provided by the application or website, and optionally, the page environment may include, but is not limited to: an instant messaging page environment, a document page environment, a mail page environment, a password entry page environment, a game page environment, a search page environment, a travel page environment, a shopping page environment, a social page environment, a movie page environment, a reading page environment, and the like.
Of course, the input environment features of the embodiment of the present invention may include other environment features, such as physical environment features of barometric pressure, altitude, temperature, humidity, etc., in addition to the time environment feature, the location environment feature, the application environment feature, and the page environment feature. Wherein, it is understood that the embodiment of the present invention does not impose limitation on the specific input environment features.
In the embodiment of the present invention, in the mapping relationship between the custom entry and the input environment feature, the input environment feature may be used to represent an input environment of an application program to which the custom entry is applicable, for example, where the input environment feature is taken as an application program environment feature, the custom entry is valid in the application program corresponding to the input environment feature in the mapping relationship, and the custom entry is invalid in the application program corresponding to the input environment feature that does not appear in the mapping relationship.
In practical application, a setting interface corresponding to the mapping relation between the self-defined entry and the input environment characteristics can be provided for a user. According to an embodiment, the setting interface may be provided during the adding process of the custom entry, for example, the adding interface of the custom entry may include: the input environment feature option can be used for indicating the input environment of an application program, for example, to which the custom entry is applicable. According to another embodiment, the setting interface may be provided after the custom entry is added, for example, the setting interface may include: and input environment characteristic options corresponding to the added self-defined entries need to be set. It can be understood that, a setting interface corresponding to the mapping relationship between the user-defined entry and the input environment feature may be determined by a person skilled in the art according to the actual application requirement, and the specific setting interface is not limited in the embodiment of the present invention. For convenience of description, in the embodiment of the present invention, the customized entry is stored by using a customized thesaurus, and the addition of the customized entry may be used to add the customized entry in the customized thesaurus, and optionally, the customized thesaurus may be used to record a mapping relationship between the character string and the customized entry.
According to the embodiment of the invention, the target self-defined entry is determined according to the mapping relation between the self-defined entry and the input environment characteristics, so that the target self-defined entry can be matched with the input environment characteristics corresponding to the input string, and thus, the self-defined entry which is not matched with the input environment characteristics corresponding to the input string can be eliminated, candidate positions occupied by the self-defined entry which is not matched with the input environment characteristics corresponding to the input string can be saved, the interference of the self-defined entry which is not matched with the input environment characteristics corresponding to the input string on the user input can be reduced, and the input experience of the user can be improved.
Those skilled in the art can determine a corresponding storage manner for the mapping relationship between the user-defined entry and the input environment feature according to the actual application requirement, for example, the mapping relationship between the user-defined entry and the input environment feature may be separately stored, for example, the mapping relationship between the character string, the user-defined entry, and the input environment feature may be stored, and the mapping relationship between the character string, the user-defined entry, and the input environment feature may include: and defining the mapping relation between the entries and the input environment characteristics.
According to the storage mode corresponding to the mapping relation between the user-defined entry and the input environment characteristics, the embodiment of the invention can provide the following technical scheme for determining the target user-defined entry matched with the input string and the input environment characteristics corresponding to the input string according to the mapping relation between the user-defined entry and the input environment characteristics:
technical solution 1
In technical solution 1, the process of determining the target custom entry matched with the input string and the corresponding input environment feature in step 201 may include: determining target input environment characteristics corresponding to the self-defined entries matched with the input strings according to the mapping relation between the self-defined entries matched with the input strings and the input environment characteristics; and if the input environment characteristics corresponding to the input string are matched with the target input environment characteristics, taking the input string matched with the input string as a target self-defined entry matched with the input string and the input environment characteristics corresponding to the input string.
Wherein the determination of matching to the input string may be made using known techniques. For example, the user-defined entry matched with the input string may be determined according to a mapping relationship between the character string and the user-defined entry, and specifically, the mapping relationship between the character string and the user-defined entry may be searched according to the input string of the user to obtain the user-defined entry matched with the input string.
The process of determining the target input environment characteristics corresponding to the customized entry matched with the input string according to the mapping relationship between the customized entry matched with the input string and the input environment characteristics may specifically include: and matching the self-defined entry matched with the input string with the self-defined entry in the mapping relation between the self-defined entry and the input environment characteristics, and if the matching is successful, taking the input environment characteristics corresponding to the successfully matched self-defined entry as the target input environment characteristics corresponding to the self-defined entry matched with the input string.
After determining the target input environment characteristics corresponding to the custom entry matched with the input string, it may be determined whether the input environment characteristics corresponding to the input string match the target input environment characteristics, and if so, the custom entry matched with the input string may be used as the target custom entry matched with the input string and the input environment characteristics corresponding thereto. It can be understood that, if the input environment feature corresponding to the input string does not match the target input environment feature, the first custom entry may be discarded, that is, the first custom entry is excluded from appearing in the candidate item corresponding to the input string.
Technical solution 2
In technical solution 2, the process of determining the target custom entry matched with the input string and the corresponding input environment feature in step 201 may include: according to the input string of the user and the corresponding input environment characteristics, the mapping relation among the character string, the user-defined entry and the input environment characteristics is searched, so that the target user-defined entry matched with the input string and the corresponding input environment characteristics is obtained. Specifically, the character string, the custom entry and the data record corresponding to the mapping relationship between the input environment features may be obtained, the input string of the user is matched with the character string in the data record, the input environment features corresponding to the input string are matched with the input environment features in the data record, and if both matching succeeds, the custom entry in the data record may be used as the target custom entry matched with the input string and the input environment features corresponding thereto. It can be understood that the embodiment of the present invention does not impose any limitation on the specific process of searching in the mapping relationship between the character string, the custom entry, and the input environment feature.
The process of determining the target self-defined vocabulary entry matched with the input string and the corresponding input environment feature is described in detail in the above technical scheme 1 and technical scheme 2, and it can be understood that a person skilled in the art can adopt any one of the technical scheme 1 and the technical scheme 2 according to the actual application requirement, or can also adopt other technical schemes to determine the target self-defined vocabulary entry matched with the input string and the corresponding input environment feature.
Step 203 may represent the target custom entry obtained in step 202 as a candidate corresponding to the input string. According to an embodiment, the target custom entry may be displayed in a preset candidate location, where the preset candidate location may be a candidate location specified by a user, for example, the adding interface of the foregoing custom entry may further include: the candidate position option can be used for representing the position of the self-defined entry in the candidate, and the candidate position option can be represented by numbers of 1, 2, 3 … and the like, wherein 1, 2 and 3 respectively represent the positions of one selection, two selection, three selection and the like.
In an application example of the embodiment of the present invention, it is assumed that a user sets the following mapping from a character string to a custom entry by adding the custom entry: "wdk" → "i am at the five crossing", and the location environment characteristics corresponding to the assumption that the custom entry "i am at the five crossing" include: in the five-crossing area, if the position environment characteristic corresponding to the input string "wdk" is the five-crossing area, the self-defined term "i am at the five-crossing" may be used as a candidate corresponding to the input string "wdk". The position environment characteristics corresponding to the self-defined entry 'i at the five road junctions' are assumed to be excluded: in the beijing area, when the location environment characteristics corresponding to the input string "wdk" are the beijing area, the huilongguan area, and the like, the custom entry may not appear in the candidate item corresponding to the input string "wdk", so that the candidate location occupied by the custom entry not matching the input environment characteristics corresponding to the input string can be saved.
In an application example of the embodiment of the present invention, it is assumed that a user sets the following mapping from a character string to a custom entry by adding the custom entry: "cm" → "i am high xxxCM body weight 60Kg, asking for how large size to wear? "and the user-defined term" i height xxxCM weight 60Kg, how large size to ask for? "the corresponding page environment features include: in the shopping page environment, under the condition that the page environment characteristic corresponding to the input string "cm" is the shopping page environment, the self-defined entry "i height xxxCM weight 60Kg, how large size to ask for question? "is used as a candidate corresponding to the input string" cm ". Suppose a custom entry of' I height xxxCM 60Kg in weight, how big size to ask for? "the corresponding page environment feature does not include: in the document page environment, under the condition that the page environment characteristic corresponding to the input string 'cm' is the document page environment, the self-defined entry can not appear in the candidate item corresponding to the input string 'cm', so that the candidate position occupied by the self-defined entry which is not matched with the input environment characteristic corresponding to the input string can be saved.
To sum up, in the processing method of the embodiment of the present invention, the input environment characteristics in the mapping relationship between the customized entry and the input environment characteristics can be used to represent the input environment of the application program to which the customized entry is applicable, for example, that is, the customized entry is valid in the application program corresponding to the input environment characteristics in the mapping relationship, and the customized entry is invalid in the application program corresponding to the input environment characteristics that do not appear in the mapping relationship; according to the embodiment of the invention, the target self-defined entry is determined according to the mapping relation between the self-defined entry and the input environment characteristics, so that the target self-defined entry can be matched with the input environment characteristics corresponding to the input string, and thus, the self-defined entry which is not matched with the input environment characteristics corresponding to the input string can be eliminated, candidate positions occupied by the self-defined entry which is not matched with the input environment characteristics corresponding to the input string can be saved, the interference of the self-defined entry which is not matched with the input environment characteristics corresponding to the input string on the user input can be reduced, and the input experience of the user can be improved.
Method embodiment two
Referring to fig. 3, a flowchart illustrating steps of an embodiment of a processing method according to the present invention is shown, which may specifically include the following steps:
step 301, determining the screen-up probability of a user for a user-defined entry under the condition of the input environment characteristics according to input behavior data corresponding to the input environment characteristics;
step 302, determining the updating prompt information corresponding to the self-defined entry according to the screen-up probability, and outputting the updating prompt information.
The embodiment of the invention can determine and output the updating prompt information corresponding to the self-defined entry according to the screen-on probability of the user to the self-defined entry under the condition of the input environmental characteristics, and the updating prompt information can lead the user to reasonably update the added self-defined entry, thereby improving the utilization rate of the self-defined entry.
In this embodiment of the present invention, the update prompting message may include: deleting information of the self-defined entry so that the user can delete the self-defined entry with low on-screen probability in the self-defined word bank. For example, if a user adds a certain custom entry and sets an input environment characteristic corresponding to the custom entry, but the user hardly uses the custom entry, so that the probability of being on the screen of the custom entry is very small (for example, less than 1%), the user may be prompted to delete the custom entry.
In this embodiment of the present invention, the update prompting message may include: and modifying information of the character strings corresponding to the self-defined entry is defined so as to reduce the interference of the self-defined entry to other entries under the condition of moderate on-screen probability. For example, if a user adds a certain custom entry, sets an input environment characteristic corresponding to the custom entry, and uses the custom entry, but the user hardly uses the custom entry and uses the custom phrase, but uses another candidate item more frequently than the custom entry, the user may be prompted to modify a character string corresponding to the custom entry. For example, assume that the user sets the following mapping of a string to a custom entry by adding the custom entry: "nh" → "you good, the item is inexpensive and good, and the package is mailed! ", and assume that the custom entry" hello, the item is good, inexpensive, and is packaged by a package! "the corresponding input environment features include: and the instant messaging APP assumes that the user inputs ' good through ' nh ' under the condition of the instant messaging APP, the commodity is cheap and is packaged and posted! However, other candidates such as "hello" and "hello" are also input through "nh", so that the user can be prompted to modify the character string corresponding to the custom entry (for example, to modify to "nhsp", etc.), and the interference of the custom entry to other entries can be reduced.
In practical applications, the steps 301 and 302 may be performed according to a preset period, which may be determined by those skilled in the art according to practical application requirements, for example, the preset period may be 24 hours, 48 hours, and the like.
The input behavior data corresponding to the input environmental characteristics can be used for characterizing the input behavior data generated by the user under the condition of the input environmental characteristics. In an optional embodiment of the present invention, the input behavior data corresponding to the input environment feature may include: and the user inputs the information of the user-defined entry on the screen under the condition of the input environment characteristics and/or the information of the character string corresponding to the user-defined entry under the condition of the input environment characteristics. For example, the user inputs information about the custom entry and/or the character string corresponding to the custom entry in a certain APP or a certain application program category.
In an optional embodiment of the present invention, the step 301 of determining the on-screen probability of the user for the custom entry under the condition of the input environment feature may include: and obtaining the screen-on probability of the user for the user-defined entry under the condition of the input environment characteristics according to the screen-on times a of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times b of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics, wherein a and b are integers exceeding 0.
For languages such as Chinese and Japanese, one input string usually corresponds to multiple candidate items, and in the case that a user inputs a character string corresponding to a custom entry, the required candidate items can be displayed on the screen; therefore, in practical applications, a is usually greater than b or a is equal to b. In the embodiment of the present invention, the screen-up probability may be obtained according to a and b, and optionally, the screen-up probability may be a ratio of b to a, and of course, a person skilled in the art may determine the screen-up probability in a statistical manner.
In an optional embodiment of the present invention, the on-screen probability does not exceed a first threshold, and the updating the prompt information may include: deleting information of the self-defined entry; and/or
The screen-up probability exceeds a first threshold and does not exceed a second threshold, and the updating the prompt information may include: and self-defining the modification information of the character strings corresponding to the entries.
Those skilled in the art can determine the first threshold and the second threshold according to the practical application requirement, wherein the range of the first threshold and the second threshold may be [0,1], alternatively, the range of the first threshold and the second threshold may be [0,0.5], for example, the first threshold is 0.1, the second threshold is 0.3, etc., and it is understood that the embodiment of the present invention does not limit the specific first threshold and the second threshold.
In practical application, the update prompt information may be output in a pop-up window mode, a voice prompt mode, or the like.
In summary, the processing method of the embodiment of the present invention can determine and output the update prompt information corresponding to the custom entry according to the on-screen probability of the user for the custom entry under the condition of the input environment characteristic, and the update prompt information can enable the user to reasonably update the added custom entry, thereby improving the utilization rate of the custom entry.
In this embodiment of the present invention, the update prompting message may include: deleting information of the self-defined entry so that the user can delete the self-defined entry with lower probability of being displayed on a screen. For example, if a user adds a certain custom entry and sets an input environment characteristic corresponding to the custom entry, but the user hardly uses the custom entry, so that the probability of being on the screen of the custom entry is very small (for example, less than 1%), the user may be prompted to delete the custom entry.
Method embodiment three
Referring to fig. 4, a flowchart illustrating steps of an embodiment of a processing method according to the present invention is shown, which may specifically include the following steps:
step 401, determining a corresponding requirement entry of a user under the condition of the input environment characteristics according to input behavior data corresponding to the input environment characteristics;
and 402, outputting adding prompt information corresponding to the required entry, so that a user sets the required entry as a self-defined entry through the adding prompt information.
According to the embodiment of the invention, the corresponding requirement entry of the user under the condition of the input environment characteristics can be determined according to the input behavior data corresponding to the input environment characteristics, so that the mining of the requirement entry can be realized, and the intelligence of an input method program can be improved.
In an alternative embodiment of the present invention, the input behavior data may include: and the user inputs the entries with the length exceeding the length threshold under the condition of the input environment characteristics. The length threshold may be determined by those skilled in the art according to the actual application requirements, for example, the length threshold may exceed 5, and the embodiment of the present invention does not limit the specific length threshold.
In another optional embodiment of the present invention, the step 401 of determining the requirement entry corresponding to the user under the condition of the input environment characteristic may include: determining the screen-on times of entries with the length exceeding a length threshold according to input behavior data corresponding to the input environment characteristics; and judging whether the entries with the lengths exceeding the length threshold are required entries or not according to the screen-on times of the entries with the lengths exceeding the length threshold. For example, when the number of times of screen-on of the entry whose length exceeds the length threshold exceeds the number threshold, the corresponding entry is determined as the required entry, and a person skilled in the art may determine the number threshold according to the actual application requirement, for example, when the preset period corresponding to step 401 is 24 hours, the number threshold exceeds 5, and the like. It can be understood that the above process of determining the required entry according to the number of times of screen display of the entry whose length exceeds the length threshold is only an example, and actually, a person skilled in the art may also determine the required entry according to the number of times of screen display of the entry whose length exceeds the length threshold in unit time or the number of times of screen display in an adjacent preset period.
In one example of the invention, assuming that a user often inputs a certain relatively long term in an APP (e.g., "welcome, i are intelligent assistants, and what can be used for your will"), the user may be prompted to use the term as a custom term under the APP to improve the input efficiency for the term.
In practical application, the adding prompt information may be output in a pop-up window mode, a voice prompt mode, or the like.
In summary, the processing method of the embodiment of the present invention can determine the required entry corresponding to the user under the condition of the input environment characteristic according to the input behavior data corresponding to the input environment characteristic, thereby mining the required entry and improving the intelligence of the input method program.
It should be noted that, for simplicity of description, the method embodiments are described as a series of motion combinations, but those skilled in the art should understand that the present invention is not limited by the described motion sequences, because some steps may be performed in other sequences or simultaneously according to the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no moving act is required as an embodiment of the invention.
Device embodiment
Referring to fig. 5, a block diagram of a terminal finding apparatus according to an embodiment of the present invention is shown, which may specifically include: an acquisition module 501, a target custom entry determination module 502 and a candidate item presentation module 503.
The acquiring module 501 is configured to acquire an input string of a user and input environment characteristics corresponding to the input string;
a target self-defined entry determining module 502, configured to determine, according to a mapping relationship between a self-defined entry matched with the input string and an input environment characteristic, a target self-defined entry matched with the input string and an input environment characteristic corresponding to the input string;
and a candidate item presentation module 503, configured to present the target custom entry as a candidate item corresponding to the input string.
Optionally, the target custom entry determining module 502 may include:
the first determining submodule is used for determining target input environment characteristics corresponding to the self-defined vocabulary entries matched with the input string according to the mapping relation between the self-defined vocabulary entries matched with the input string and the input environment characteristics; and
and the second determining submodule is used for taking the self-defined entry matched with the input string as the target self-defined entry matched with the input string and the input environment characteristic corresponding to the input string if the input environment characteristic corresponding to the input string is matched with the target input environment characteristic.
Optionally, the target custom entry determining module 502 may include:
and the searching submodule is used for searching in the mapping relation among the character string, the user-defined entry and the input environment characteristics according to the input string of the user and the corresponding input environment characteristics so as to obtain the target user-defined entry matched with the input string and the corresponding input environment characteristics.
Optionally, the apparatus may further include:
the screen-up probability determining module is used for determining the screen-up probability of the user for the user-defined vocabulary entry under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
the first prompt information determining module is used for determining the update prompt information corresponding to the self-defined entry according to the screen-up probability; and
and the first prompt information output module is used for outputting the updating prompt information.
Optionally, the input behavior data corresponding to the input environmental characteristics may include: the user inputs the number of times of screen-up for the user-defined entry under the condition of the input environment characteristic, and/or the user inputs the information of the character string corresponding to the user-defined entry under the condition of the input environment characteristic.
Optionally, the on-screen probability determination module may include:
and the fourth determining submodule is used for obtaining the screen-up probability of the user for the user-defined entry under the condition of the input environment characteristics according to the input times of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
Optionally, the on-screen probability does not exceed a first threshold, and the updating the prompt information may include: deleting information of the self-defined entry; and/or
The screen-up probability exceeds a first threshold and does not exceed a second threshold, and the updating the prompt information may include: and self-defining the modification information of the character strings corresponding to the entries.
Optionally, the apparatus may further include:
the requirement entry determining module is used for determining a requirement entry corresponding to the user under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
and the second prompt information determining module is used for outputting addition prompt information corresponding to the required entry so that a user sets the required entry as a self-defined entry through the addition prompt information.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
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.
Also provided in an embodiment of the present invention is an apparatus for processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and the one or more programs configured to be executed by the one or more processors include instructions for: acquiring an input string of a user and input environment characteristics corresponding to the input string; determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics; and displaying the target self-defined entry as a candidate item corresponding to the input string.
Optionally, the determining a target custom entry matched with the input string and the corresponding input environment feature includes:
determining target input environment characteristics corresponding to the self-defined entries matched with the input strings according to the mapping relation between the self-defined entries matched with the input strings and the input environment characteristics;
and if the input environment characteristics corresponding to the input string are matched with the target input environment characteristics, taking the self-defined entry matched with the input string as a target self-defined entry matched with the input string and the input environment characteristics corresponding to the input string.
Optionally, the determining a target custom entry matched with the input string and the corresponding input environment feature includes:
according to the input string of the user and the corresponding input environment characteristics, the mapping relation among the character string, the user-defined entry and the input environment characteristics is searched, so that the target user-defined entry matched with the input string and the corresponding input environment characteristics is obtained.
Optionally, the device is also configured to execute the one or more programs by the one or more processors including instructions for:
determining the screen-on probability of a user for a user-defined entry under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
and determining the updating prompt information corresponding to the self-defined entry according to the screen-loading probability, and outputting the updating prompt information.
Optionally, the input behavior data corresponding to the input environmental characteristics includes: and the user inputs the information of the user-defined entry on the screen under the condition of the input environment characteristics and/or the information of the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
Optionally, the determining the on-screen probability of the user for the custom entry under the condition of the input environment feature includes:
and obtaining the screen-up probability of the user for the user-defined entry under the condition of the input environment characteristics according to the screen-up times of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
Optionally, the screen-up probability does not exceed a first threshold, and the updating the prompt information includes: deleting information of the self-defined entry; and/or
The screen-up probability exceeds a first threshold and does not exceed a second threshold, and the updating prompt information comprises: and self-defining the modification information of the character strings corresponding to the entries.
Optionally, the one or more programs also configured to be executed by the one or more processors include instructions for:
determining a corresponding requirement entry of a user under the condition of the input environment characteristics according to input behavior data corresponding to the input environment characteristics;
and outputting addition prompt information corresponding to the required entry so that the user sets the required entry into a self-defined entry through the addition prompt information.
Fig. 6 is a block diagram illustrating an apparatus 900 for processing according to an example embodiment. For example, the apparatus 900 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. 6, apparatus 900 may include one or more of the following components: processing component 902, memory 904, power component 906, multimedia component 908, audio component 910, input/output (I/O) interface 912, sensor component 914, and communication component 916.
The processing component 902 generally controls overall operation of the device 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing element 902 may include one or more processors 920 to execute instructions to perform all or a portion of the steps of the methods described above. Further, processing component 902 can include one or more modules that facilitate interaction between processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operation at the apparatus 900. Examples of such data include instructions for any application or method operating on device 900, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 904 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power supply component 906 provides power to the various components of the device 900. The power components 906 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the device 900.
The multimedia component 908 comprises a screen providing an output interface between the device 900 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide motion action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 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 device 900 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 910 is configured to output and/or input audio signals. For example, audio component 910 includes a Microphone (MIC) configured to receive external audio signals when apparatus 900 is in an operating 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 904 or transmitted via the communication component 916. In some embodiments, audio component 910 also includes a speaker for outputting audio signals.
I/O interface 912 provides an interface between processing component 902 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 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, sensor assembly 914 may detect an open/closed state of device 900, the relative positioning of components, such as a display and keypad of device 900, the change in position of device 900 or a component of device 900, the presence or absence of user contact with device 900, the orientation or acceleration/deceleration of device 900, and the change in temperature of device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of a nearby object in the absence of any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communications between the apparatus 900 and other devices in a wired or wireless manner. The apparatus 900 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 916 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communications component 916 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer readable storage medium comprising instructions, such as the memory 904 comprising instructions, executable by the processor 920 of the apparatus 900 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Fig. 7 is a schematic diagram of a server in some embodiments of the invention. The server 1900 may vary widely by configuration or performance and may include one or more Central Processing Units (CPUs) 1922 (e.g., one or more processors) and memory 1932, one or more storage media 1930 (e.g., one or more mass storage devices) storing applications 1942 or data 1944. Memory 1932 and storage medium 1930 can be, among other things, transient or persistent storage. The program stored in the storage medium 1930 may include one or more modules (not shown), each of which may include a series of instructions operating on a server. Still further, a central processor 1922 may be provided in communication with the storage medium 1930 to execute a series of instruction operations in the storage medium 1930 on the server 1900.
The server 1900 may also include one or more power supplies 1926, one or more wired or wireless network interfaces 1950, one or more input-output interfaces 1958, one or more keyboards 1956, and/or one or more operating systems 1941, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus (terminal or server), enable the apparatus to perform a processing method, the method comprising: acquiring an input string of a user and input environment characteristics corresponding to the input string; determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics; and displaying the target self-defined entry as a candidate item corresponding to the input string.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.
The present invention provides a processing method, a processing apparatus and a processing apparatus, which have been described in detail above, and the principles and embodiments of the present invention are explained herein by using specific examples, and the descriptions of the above examples are only used to help understand the method and the core ideas of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (22)

1. A method of processing, comprising:
acquiring an input string of a user and input environment characteristics corresponding to the input string;
determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics;
displaying the target self-defined entry as a candidate item corresponding to the input string;
determining the screen-on probability of a user for a user-defined entry under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
determining updating prompt information corresponding to the self-defined entry according to the screen-up probability, and outputting the updating prompt information;
under the condition that the screen-up probability exceeds a first threshold value and does not exceed the screen-up probability of a preset candidate item, the updating prompt information comprises: self-defining modification information of character strings corresponding to the entries; and the preset candidate is a candidate which is corresponding to the input string and is different from the self-defined entry.
2. The method of claim 1, wherein determining the target custom entry that matches the input string and its corresponding input environment features comprises:
determining target input environment characteristics corresponding to the self-defined entries matched with the input strings according to the mapping relation between the self-defined entries matched with the input strings and the input environment characteristics;
and if the input environment characteristics corresponding to the input string are matched with the target input environment characteristics, taking the self-defined entry matched with the input string as a target self-defined entry matched with the input string and the input environment characteristics corresponding to the input string.
3. The method of claim 1, wherein determining the target custom entry that matches the input string and its corresponding input environment features comprises:
according to the input string of the user and the corresponding input environment characteristics, the mapping relation among the character string, the user-defined entry and the input environment characteristics is searched, so that the target user-defined entry matched with the input string and the corresponding input environment characteristics is obtained.
4. The method of claim 1, wherein inputting the input behavior data corresponding to the environmental characteristic comprises: and the user inputs the information of the user-defined entry on the screen under the condition of the input environment characteristics and/or the information of the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
5. The method of claim 1, wherein determining the user's on-screen probability for a custom entry based on the input environment characteristics comprises:
and obtaining the screen-up probability of the user for the user-defined entry under the condition of the input environment characteristics according to the screen-up times of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
6. The method of claim 1, wherein in the case that the on-screen probability does not exceed a first threshold, the updating the prompt message comprises: and self-defining the deleting information of the entries.
7. The method according to any one of claims 1 to 3, further comprising:
determining a corresponding requirement entry of a user under the condition of the input environment characteristics according to input behavior data corresponding to the input environment characteristics;
and outputting addition prompt information corresponding to the required entry so that a user sets the required entry into a self-defined entry through the addition prompt information.
8. A processing apparatus, comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring an input string of a user and input environment characteristics corresponding to the input string;
the target self-defined entry determining module is used for determining a target self-defined entry matched with the input string and the corresponding input environment characteristic according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristic;
the candidate item display module is used for displaying the target user-defined vocabulary entry as a candidate item corresponding to the input string;
the screen-up probability determining module is used for determining the screen-up probability of the user for the user-defined vocabulary entry under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
the first prompt information determining module is used for determining the update prompt information corresponding to the self-defined entry according to the screen-up probability; and
the first prompt information output module is used for outputting the updating prompt information;
under the condition that the screen-up probability exceeds a first threshold value and does not exceed the screen-up probability of a preset candidate item, the updating prompt information comprises: self-defining modification information of character strings corresponding to the entries; and the preset candidate is a candidate which is corresponding to the input string and is different from the self-defined entry.
9. The apparatus of claim 8, wherein the target custom entry determination module comprises:
the first determining submodule is used for determining target input environment characteristics corresponding to the self-defined vocabulary entries matched with the input string according to the mapping relation between the self-defined vocabulary entries matched with the input string and the input environment characteristics; and
and the second determining submodule is used for taking the self-defined entry matched with the input string as the target self-defined entry matched with the input string and the input environment characteristic corresponding to the input string if the input environment characteristic corresponding to the input string is matched with the target input environment characteristic.
10. The apparatus of claim 8, wherein the target custom entry determination module comprises:
and the searching submodule is used for searching in the mapping relation among the character string, the user-defined entry and the input environment characteristics according to the input string of the user and the corresponding input environment characteristics so as to obtain the target user-defined entry matched with the input string and the corresponding input environment characteristics.
11. The apparatus of claim 8, wherein the input behavior data corresponding to the input environmental characteristics comprises: the user inputs the information of the user-defined entry on the screen under the condition of the input environment characteristic and/or the information of the user input to the character string corresponding to the user-defined entry under the condition of the input environment characteristic.
12. The apparatus of claim 8, wherein the on-screen probability determination module comprises:
and the third determining submodule is used for obtaining the screen-up probability of the user for the user-defined entry under the condition of the input environment characteristics according to the screen-up times of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
13. The apparatus of claim 8, wherein the on-screen probability does not exceed a first threshold, and wherein updating the prompt comprises: deleting information of the self-defined entry; and/or
The screen-up probability exceeds a first threshold and does not exceed a second threshold, and the updating prompt information comprises: and self-defining the modification information of the character strings corresponding to the entries.
14. The apparatus of any one of claims 8 to 10, further comprising:
the requirement entry determining module is used for determining a requirement entry corresponding to the user under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
and the second prompt information determining module is used for outputting addition prompt information corresponding to the required entry so that a user sets the required entry into a self-defined entry through the addition prompt information.
15. An apparatus for processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein execution of the one or more programs by one or more processors comprises instructions for:
acquiring an input string of a user and input environment characteristics corresponding to the input string;
determining a target self-defined entry matched with the input string and the corresponding input environment characteristics according to the mapping relation between the self-defined entry matched with the input string and the input environment characteristics;
displaying the target self-defined entry as a candidate item corresponding to the input string;
determining the screen-on probability of a user for a user-defined entry under the condition of the input environment characteristics according to the input behavior data corresponding to the input environment characteristics;
determining updating prompt information corresponding to the self-defined entry according to the screen-up probability, and outputting the updating prompt information;
under the condition that the screen-up probability exceeds a first threshold value and does not exceed the screen-up probability of a preset candidate item, the updating prompt information comprises: self-defining modification information of character strings corresponding to the entries; and the preset candidate is a candidate which is corresponding to the input string and is different from the self-defined entry.
16. The apparatus of claim 15, wherein the determining the target custom entry that matches the input string and its corresponding input environment features comprises:
determining target input environment characteristics corresponding to the self-defined entries matched with the input strings according to the mapping relation between the self-defined entries matched with the input strings and the input environment characteristics;
and if the input environment characteristics corresponding to the input string are matched with the target input environment characteristics, taking the self-defined entry matched with the input string as a target self-defined entry matched with the input string and the input environment characteristics corresponding to the input string.
17. The apparatus of claim 15, wherein the determining the target custom entry that matches the input string and its corresponding input environment features comprises:
according to the input string of the user and the corresponding input environment characteristics, the mapping relation among the character string, the user-defined entry and the input environment characteristics is searched, so that the target user-defined entry matched with the input string and the corresponding input environment characteristics is obtained.
18. The apparatus of claim 15, wherein the input behavior data corresponding to the input environmental characteristics comprises: and the user inputs the information of the user-defined entry on the screen under the condition of the input environment characteristics and/or the information of the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
19. The apparatus of claim 15, wherein the determining the user's on-screen probability for the custom entry based on the input environment characteristics comprises:
and obtaining the screen-up probability of the user for the user-defined entry under the condition of the input environment characteristics according to the screen-up times of the user for the character string corresponding to the user-defined entry under the condition of the input environment characteristics and the input times of the user for the user-defined entry and the character string corresponding to the user-defined entry under the condition of the input environment characteristics.
20. The apparatus of claim 15, wherein the on-screen probability does not exceed a first threshold, and wherein updating the prompt comprises: deleting information of the self-defined entry; and/or
The screen-up probability exceeds a first threshold and does not exceed a second threshold, and the updating prompt information comprises: and self-defining the modification information of the character strings corresponding to the entries.
21. The apparatus of any of claims 15-17, wherein the apparatus is also configured to execute the one or more programs by one or more processors includes instructions for:
determining a corresponding requirement entry of a user under the condition of the input environment characteristics according to input behavior data corresponding to the input environment characteristics;
and outputting addition prompt information corresponding to the required entry so that a user sets the required entry into a self-defined entry through the addition prompt information.
22. One or more machine-readable media having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform a method of processing as recited in one or more of claims 1-7.
CN201711107336.8A 2017-11-10 2017-11-10 Processing method and device for processing Active CN109783244B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711107336.8A CN109783244B (en) 2017-11-10 2017-11-10 Processing method and device for processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711107336.8A CN109783244B (en) 2017-11-10 2017-11-10 Processing method and device for processing

Publications (2)

Publication Number Publication Date
CN109783244A CN109783244A (en) 2019-05-21
CN109783244B true CN109783244B (en) 2021-06-22

Family

ID=66484875

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711107336.8A Active CN109783244B (en) 2017-11-10 2017-11-10 Processing method and device for processing

Country Status (1)

Country Link
CN (1) CN109783244B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112818211A (en) * 2019-11-15 2021-05-18 北京搜狗科技发展有限公司 Data processing method, device and medium
CN113625885B (en) * 2020-05-08 2024-08-13 北京搜狗科技发展有限公司 Input method, device and device for inputting
CN112000766B (en) * 2020-07-15 2024-08-16 北京搜狗科技发展有限公司 Data processing method, device and medium
CN112000877B (en) * 2020-07-15 2024-10-01 北京搜狗科技发展有限公司 Data processing method, device and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615204A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 Add method, device and the Chinese character input device of custom words in the input method dictionary
CN103092826A (en) * 2012-12-31 2013-05-08 百度在线网络技术(北京)有限公司 Method and device for structuring input entry according to input information of user
CN103246703A (en) * 2013-04-03 2013-08-14 百度在线网络技术(北京)有限公司 Method and equipment for determining application word banks
CN106445915A (en) * 2016-09-14 2017-02-22 科大讯飞股份有限公司 New word discovery method and device
CN106873795A (en) * 2016-12-29 2017-06-20 北京五八信息技术有限公司 A kind of character input method, device and terminal
CN106873799A (en) * 2017-02-16 2017-06-20 北京百度网讯科技有限公司 Input method and device
CN107291260A (en) * 2016-04-13 2017-10-24 北京搜狗科技发展有限公司 A kind of data inputting method and device and the device inputted for information

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9275036B2 (en) * 2006-12-21 2016-03-01 International Business Machines Corporation System and method for adaptive spell checking

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101615204A (en) * 2009-07-24 2009-12-30 中兴通讯股份有限公司 Add method, device and the Chinese character input device of custom words in the input method dictionary
CN103092826A (en) * 2012-12-31 2013-05-08 百度在线网络技术(北京)有限公司 Method and device for structuring input entry according to input information of user
CN103246703A (en) * 2013-04-03 2013-08-14 百度在线网络技术(北京)有限公司 Method and equipment for determining application word banks
CN107291260A (en) * 2016-04-13 2017-10-24 北京搜狗科技发展有限公司 A kind of data inputting method and device and the device inputted for information
CN106445915A (en) * 2016-09-14 2017-02-22 科大讯飞股份有限公司 New word discovery method and device
CN106873795A (en) * 2016-12-29 2017-06-20 北京五八信息技术有限公司 A kind of character input method, device and terminal
CN106873799A (en) * 2017-02-16 2017-06-20 北京百度网讯科技有限公司 Input method and device

Also Published As

Publication number Publication date
CN109783244A (en) 2019-05-21

Similar Documents

Publication Publication Date Title
CN107102746B (en) Candidate word generation method and device and candidate word generation device
CN109783244B (en) Processing method and device for processing
CN108304412B (en) Cross-language search method and device for cross-language search
CN109799916B (en) Candidate item association method and device
WO2018090688A1 (en) Input method, device and electronic device
CN110391966B (en) Message processing method and device and message processing device
CN107291260B (en) Information input method and device for inputting information
CN109521888B (en) Input method, device and medium
CN110633017A (en) Input method, input device and input device
CN110929122B (en) Data processing method and device for data processing
CN109901726B (en) Candidate word generation method and device and candidate word generation device
CN111381685B (en) Sentence association method and sentence association device
CN109144286B (en) Input method and device
CN110020335B (en) Favorite processing method and device
CN113010768B (en) Data processing method and device for data processing
CN109388328B (en) Input method, device and medium
CN112306252A (en) Data processing method and device and data processing device
CN112000877A (en) Data processing method, device and medium
CN112181163A (en) Input method, input device and input device
CN113625885B (en) Input method, device and device for inputting
CN113589950A (en) Input method, input device and input device
CN113703588B (en) Input method, device and device for inputting
CN112905079B (en) Data processing method, device and medium
CN112507726B (en) Training method and device for artificial term embedded vector
CN114967939B (en) Input method, device and medium

Legal Events

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