Input method, input device and input device

文档序号:1888553 发布日期:2021-11-26 浏览:9次 中文

阅读说明:本技术 一种输入方法、装置和用于输入的装置 (Input method, input device and input device ) 是由 赵义涛 翟雨佳 于 2021-08-13 设计创作,主要内容包括:本发明实施例提供了一种输入方法、装置和用于输入的装置。所述方法包括:根据用户连续输入的至少两个分词构建候选词库,所述候选词库中的候选词条包括所述至少两个分词组成的多元关系词条;将所述候选词库中满足预设条件的候选词条作为用户词条加入用户词库;在接收到输入指令的情况下,从所述用户词库中查询所述输入指令对应的用户词条并显示。本发明实施例可以有效减少用户词库中无意义的垃圾词,降低了用户词库的重码率;并且,无需用户依次输入所述用户词条包含的分词,提高了输入效率;本发明实施例中的输入指令可以是五笔输入指令,本发明可以解决五笔输入无法组词的问题,提高了五笔输入效率。(The embodiment of the invention provides an input method, an input device and a device for inputting. The method comprises the following steps: constructing a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise a multivariate relation entry consisting of the at least two participles; taking the candidate entries meeting preset conditions in the candidate word bank as user entries to be added into the user word bank; and under the condition of receiving an input instruction, inquiring and displaying a user entry corresponding to the input instruction from the user word bank. The embodiment of the invention can effectively reduce meaningless junk words in the user word bank and reduce the coincident code rate of the user word bank; moreover, the user does not need to input the participles contained in the user entry in sequence, so that the input efficiency is improved; the input instruction in the embodiment of the invention can be a five-stroke input instruction, the invention can solve the problem that the five-stroke input can not be used for word composition, and the five-stroke input efficiency is improved.)

1. An input method, characterized in that the method comprises:

constructing a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise a multivariate relation entry consisting of the at least two participles;

taking the candidate entries meeting preset conditions in the candidate word bank as user entries to be added into the user word bank;

and under the condition of receiving an input instruction, inquiring and displaying a user entry corresponding to the input instruction from the user word bank.

2. The method of claim 1, wherein the constructing a candidate word bank according to at least two word segmentations continuously input by a user comprises:

initializing a candidate word bank;

acquiring at least two word segmentations continuously input by a user;

arranging and combining the at least two participles according to the input sequence of the at least two participles to obtain a multivariate relation entry;

and taking the multivariate relational terms as candidate terms and adding the candidate terms into the candidate word bank.

3. The method of claim 1, wherein the candidate entries satisfying the preset condition comprise: and inputting candidate entries with the times exceeding a first preset value, and/or inputting candidate entries which are already displayed.

4. The method of claim 1, further comprising:

if the number of the entries of the candidate entries in the candidate entry library exceeds a second preset value, deleting the target candidate entries in the candidate entry library; the target candidate entry comprises any one or more of the following items: and using the candidate entries with the frequency less than the preset frequency, updating the candidate entries with the time not conforming to the preset time period, and arranging the candidate entries with the sequence not conforming to the preset sequence.

5. The method of claim 1, wherein the adding the candidate entry meeting the preset condition in the candidate word library as the user entry into the user word library comprises:

determining a first input environment corresponding to each candidate entry in the candidate word library;

taking the candidate entry meeting the preset condition in the candidate word bank as a user entry and adding the user entry into the user word bank corresponding to the first input environment;

under the condition that an input instruction is received, inquiring and displaying a user entry corresponding to the input instruction from the user word stock, wherein the method comprises the following steps:

under the condition that an input instruction is received, determining a second input environment corresponding to the input instruction;

determining a target user lexicon of which the first input environment is matched with the second input environment;

and inquiring and displaying the user entry corresponding to the input instruction from the target user word bank.

6. The method of claim 5, wherein the input environment comprises at least one of a related application, an interactive object, an input time period, and a content tag.

7. The method according to any one of claims 1 to 6, wherein, when receiving an input instruction, querying and displaying a user entry corresponding to the input instruction from the user thesaurus, comprises:

under the condition that five input instructions are received, identifying a five-stroke coding sequence corresponding to the five input instructions;

and querying the user entries corresponding to the five-stroke coding sequence from the user word stock and displaying the user entries.

8. An input device, the device comprising:

the candidate word bank building module is used for building a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise multivariate relation entries formed by the at least two participles;

the user word bank determining module is used for adding the candidate entry meeting the preset conditions in the candidate word bank as a user entry into the user word bank;

and the user entry input module is used for inquiring and displaying the user entry corresponding to the input instruction from the user word bank under the condition of receiving the input instruction.

9. The apparatus of claim 8, wherein the candidate thesaurus construction module comprises:

the candidate word bank initialization submodule is used for initializing a candidate word bank;

the word segmentation acquisition sub-module is used for acquiring at least two words which are continuously input by a user;

the multivariate relation entry determining submodule is used for arranging and combining the at least two participles according to the input sequence of the at least two participles to obtain a multivariate relation entry;

and the candidate word bank construction submodule is used for adding the multivariate relation entry serving as a candidate entry into the candidate word bank.

10. The apparatus of claim 8, wherein the candidate entries satisfying the preset condition comprise: and inputting candidate entries with the times exceeding a first preset value, and/or inputting candidate entries which are already displayed.

11. The apparatus of claim 8, further comprising:

the candidate entry deleting module is used for deleting the target candidate entries in the candidate word library if the number of the entries of the candidate entries in the candidate word library exceeds a second preset value; the target candidate entry comprises any one or more of the following items: and using the candidate entries with the frequency less than the preset frequency, updating the candidate entries with the time not conforming to the preset time period, and arranging the candidate entries with the sequence not conforming to the preset sequence.

12. The apparatus of claim 8, wherein the user lexicon determination module comprises:

the first input environment determining submodule is used for determining a first input environment corresponding to each candidate entry in the candidate word library;

the user word bank determining submodule is used for adding the candidate word entries meeting the preset conditions in the candidate word bank as the user word entries into the user word bank corresponding to the first input environment;

the user entry input module comprises:

the second input environment determining submodule is used for determining a second input environment corresponding to the input instruction under the condition that the input instruction is received;

the input environment matching submodule is used for determining a target user word bank matched with the first input environment and the second input environment;

and the first user entry query sub-module is used for querying and displaying the user entry corresponding to the input instruction from the target user word bank.

13. The apparatus of claim 12, wherein the input environment comprises at least one of an associated application, an interactive object, an input time period, and a content tag.

14. An apparatus for speech processing, comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs configured to be executed by the one or more processors comprise instructions for performing the input method of any of claims 1-7.

15. A machine-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the input method of any one of claims 1 to 7.

Technical Field

The invention relates to the technical field of computers, in particular to an input method, an input device and an input device.

Background

The input method is a coding method used for inputting characters to electronic devices such as computers and mobile phones. The electronic equipment is provided with an input method program, a corresponding basic word list library is added, so that the input text can be inquired from the stored basic word list library through the input method program. However, the words and phrases contained in the basic vocabulary library of the input method program are configured before the input method program is released, and are difficult to match with the input habit of the user, and when the user inputs a text, the user needs to browse more words in the basic vocabulary library to find the text to be input, so that the input efficiency is low.

The processing logic of the existing intelligent word learning method is to connect the words input by the user appropriately to combine new words. However, while providing a large amount of new words, the current intelligent word learning method also introduces repeated words or meaningless junk words, which results in more meaningless entries in the input word stock and higher duplication rate, and when searching words based on the input instruction of the user, the query data amount is increased, which results in lower input efficiency.

Disclosure of Invention

The embodiment of the invention provides an input method, an input device and an input device, which can reduce the coincident code rate of a user lexicon and improve the input efficiency.

In order to solve the above problem, an embodiment of the present invention discloses an input method, where the method includes:

constructing a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise a multivariate relation entry consisting of the at least two participles;

taking the candidate entries meeting preset conditions in the candidate word bank as user entries to be added into the user word bank;

and under the condition of receiving an input instruction, inquiring and displaying a user entry corresponding to the input instruction from the user word bank.

Optionally, the constructing a candidate word bank according to at least two word segments continuously input by a user includes:

initializing a candidate word bank;

acquiring at least two word segmentations continuously input by a user;

arranging and combining the at least two participles according to the input sequence of the at least two participles to obtain a multivariate relation entry;

and taking the multivariate relational terms as candidate terms and adding the candidate terms into the candidate word bank.

Optionally, the candidate entries meeting the preset condition include: and inputting candidate entries with the times exceeding a first preset value, and/or inputting candidate entries which are already displayed.

Optionally, the method further comprises:

if the number of the entries of the candidate entries in the candidate entry library exceeds a second preset value, deleting the target candidate entries in the candidate entry library; the target candidate entry comprises any one or more of the following items: and using the candidate entries with the frequency less than the preset frequency, updating the candidate entries with the time not conforming to the preset time period, and arranging the candidate entries with the sequence not conforming to the preset sequence.

Optionally, the adding the candidate entry meeting the preset condition in the candidate word library as the user entry into the user word library includes:

determining a first input environment corresponding to each candidate entry in the candidate word library;

taking the candidate entry meeting the preset condition in the candidate word bank as a user entry and adding the user entry into the user word bank corresponding to the first input environment;

under the condition that an input instruction is received, inquiring and displaying a user entry corresponding to the input instruction from the user word stock, wherein the method comprises the following steps:

under the condition that an input instruction is received, determining a second input environment corresponding to the input instruction;

determining a target user lexicon of which the first input environment is matched with the second input environment;

and inquiring and displaying the user entry corresponding to the input instruction from the target user word bank.

Optionally, the input environment comprises at least one of a related application, an interactive object, an input time period, a content tag.

Optionally, in the case that an input instruction is received, querying and displaying a user entry corresponding to the input instruction from the user thesaurus, where the querying and displaying includes:

under the condition that five input instructions are received, identifying a five-stroke coding sequence corresponding to the five input instructions;

and querying the user entries corresponding to the five-stroke coding sequence from the user word stock and displaying the user entries.

In another aspect, an embodiment of the present invention discloses an input device, including:

the candidate word bank building module is used for building a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise multivariate relation entries formed by the at least two participles;

the user word bank determining module is used for adding the candidate entry meeting the preset conditions in the candidate word bank as a user entry into the user word bank;

and the user entry input module is used for inquiring and displaying the user entry corresponding to the input instruction from the user word bank under the condition of receiving the input instruction.

Optionally, the candidate word bank building module includes:

the candidate word bank initialization submodule is used for initializing a candidate word bank;

the word segmentation acquisition sub-module is used for acquiring at least two words which are continuously input by a user;

the multivariate relation entry determining submodule is used for arranging and combining the at least two participles according to the input sequence of the at least two participles to obtain a multivariate relation entry;

and the candidate word bank construction submodule is used for adding the multivariate relation entry serving as a candidate entry into the candidate word bank.

Optionally, the candidate entries meeting the preset condition include: and inputting candidate entries with the times exceeding a first preset value, and/or inputting candidate entries which are already displayed.

Optionally, the apparatus further comprises:

the candidate entry deleting module is used for deleting the target candidate entries in the candidate word library if the number of the entries of the candidate entries in the candidate word library exceeds a second preset value; the target candidate entry comprises any one or more of the following items: and using the candidate entries with the frequency less than the preset frequency, updating the candidate entries with the time not conforming to the preset time period, and arranging the candidate entries with the sequence not conforming to the preset sequence.

Optionally, the user lexicon determination module includes:

the first input environment determining submodule is used for determining a first input environment corresponding to each candidate entry in the candidate word library;

the user word bank determining submodule is used for adding the candidate word entries meeting the preset conditions in the candidate word bank as the user word entries into the user word bank corresponding to the first input environment;

the user entry input module comprises:

the second input environment determining submodule is used for determining a second input environment corresponding to the input instruction under the condition that the input instruction is received;

the input environment matching submodule is used for determining a target user word bank matched with the first input environment and the second input environment;

and the first user entry query sub-module is used for querying and displaying the user entry corresponding to the input instruction from the target user word bank.

Optionally, the input environment comprises at least one of a related application, an interactive object, an input time period, a content tag.

Optionally, the user entry input module includes:

the coding sequence query submodule is used for identifying a five-stroke coding sequence corresponding to the five-stroke input instruction under the condition of receiving the five-stroke input instruction;

and the second user entry query submodule is used for querying and displaying the user entries corresponding to the five-stroke coding sequence from the user word bank.

In yet another aspect, the present invention discloses a device for inputting, the device 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 comprise instructions for performing one or more of the input methods described above.

In yet another aspect, embodiments of the invention disclose a machine-readable medium having instructions stored thereon, which when executed by one or more processors, cause an apparatus to perform an input method as described in one or more of the preceding.

The embodiment of the invention has the following advantages:

according to the embodiment of the invention, a candidate word bank is constructed according to at least two participles continuously input by a user, and candidate entries in the candidate word bank comprise multivariate relation entries formed by the at least two participles; then, taking the candidate entries meeting preset conditions in the candidate word library as user entries to be added into the user word library; and under the condition of receiving an input instruction, inquiring and displaying a user entry corresponding to the input instruction from the user word bank.

According to the embodiment of the invention, the candidate word bank is constructed according to the multivariate relation entry formed by at least two segmented words continuously input by the user, and then the candidate entries in the candidate word bank are further screened according to the preset conditions to obtain the user word bank, so that the meaningless junk words in the user word bank can be effectively reduced, and the repetition rate of the user word bank is reduced; in addition, under the condition of receiving an input instruction, the embodiment of the invention can directly inquire and display the corresponding user entry from the user word bank without sequentially inputting the participles contained in the user entry by the user, thereby improving the input efficiency; in addition, the input instruction in the embodiment of the invention can be a five-stroke input instruction, and as the user entry in the embodiment of the invention is a multi-element relation entry formed by at least two participles, the multi-element relation entry which the user wants to input can be directly found in the user word bank and displayed for the user to select according to the five-stroke input instruction, the problem that the five-stroke input can not form words can be solved, the limitation of four-code unique input of the five-stroke input method can be overcome, and the five-stroke input efficiency is improved.

Drawings

In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive labor.

FIG. 1 is a flow chart of the steps of an input method embodiment of the present invention;

FIG. 2 is a schematic illustration of an environment in which the present invention may be used;

FIG. 3 is a block diagram of an input device according to an embodiment of the present invention;

FIG. 4 is a block diagram of an apparatus 800 for input of the present invention;

fig. 5 is a schematic diagram of a server in some embodiments of the invention.

Detailed Description

The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Method embodiment

Referring to fig. 1, a flowchart illustrating steps of an embodiment of an input method of the present invention is shown, where the method may specifically include the following steps:

step 101, constructing a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise multivariate relation entries formed by the at least two participles.

And 102, taking the candidate entries meeting the preset conditions in the candidate word library as user entries and adding the user entries into the user word library.

And 103, under the condition that an input instruction is received, inquiring and displaying a user entry corresponding to the input instruction from the user word bank.

The input method provided by the embodiment of the present invention can be applied to the application environment shown in fig. 2, as shown in fig. 2, the client 210 and the server 220 are located in a wired or wireless network, and the client 210 and the server 220 perform data interaction through the wired or wireless network.

Optionally, the client 210 may run on a terminal, where the terminal specifically includes but is not limited to: smart phones, computers, Personal Digital Assistants (PDAs), 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, in-vehicle devices, smart televisions, wearable devices, and the like. The client 210 may include a website, and APPs (applications), which may include applications such as an input method APP and an instant messaging APP.

The server 220 of the embodiment of the present invention may operate in a server, where the server may be an independent physical server, may also be a server cluster or a distributed system formed by a plurality of physical servers, and may also be a cloud server providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, cloud communication, a Network service, a middleware service, a Content Delivery Network (CDN), a big data and an artificial intelligence platform.

The embodiment of the invention can be applied to input method programs of various input modes such as keyboard symbols, handwriting, voice and the like. Taking the keyboard symbol input mode as an example, the user can input characters through the code sequence. In the field of input methods, for input method programs in, for example, chinese, english, japanese, korean, or other languages, it is common to convert a coded sequence input by a user into a text in the corresponding language. In the following, the description will be mainly given by taking chinese as an example, and english, japanese, korean or other languages may be referred to one another. It is to be understood that the above-mentioned chinese input methods may include, but are not limited to, full pinyin, simple pinyin, strokes, five strokes, etc., and the embodiment of the present invention is not limited to a specific input method program corresponding to a certain language.

In practical application, for the input mode of keyboard symbols, a user can perform input operation through a physical keyboard or a virtual keyboard. For example, for a terminal with a touch screen, a virtual keyboard can be set in an input interface to perform input operation by triggering a virtual case contained in the virtual keyboard. Alternatively, the virtual keyboard may secure a 9-key keyboard or a 26-key keyboard, etc. Moreover, it can be understood that, in addition to the virtual keys corresponding to the letters, the input interface may also be provided with symbol keys, numeric keys, and function keys such as a chinese-english switching key, or may also be provided with toolbar keys, and it can be understood that the specific keys included in the input interface are not limited in the embodiments of the present invention.

It should be noted that the participle in the embodiment of the present invention is a composition of words and phrases, including words (including words and compound words) and phrases (also referred to as phrases), and is a minimum word structural form unit for single input of the input method. If the user input is Chinese, the participles can be characters, words, phrases and the like, and if the user input is English, the participles can be English words and the like.

In addition, the corresponding participles of different input methods are different. For example, for a five-stroke input method, the word segmentation can be a first-level brevity code, a second-level brevity code, a third-level brevity code of a five-stroke character code, a single word, a word and the like corresponding to a fourth-level brevity code; for the Pinyin input method, the word segments can be words, phrases, etc.

The term of the multivariate relation comprises a term of a binary relation, a term of a ternary relation, a term of a quaternary relation and the like, and is a combination of the branch words. For example, if the user continuously inputs "king", "day", "dance", the birelationship term "wang day", "day dance" may be generated, and/or the ternary relationship term "wang day dance" may be generated. "Wangtian", "dancing in sky" and "dancing in sky" may be added to the candidate lexicon. If the user inputs "" and "dance" after inputting "king" and "day", it can be determined that the user has continuously input "king" and "day", only one binary relation entry "wang day" is generated, and "wang day" is added to the candidate thesaurus.

After the candidate word bank is constructed, the candidate entries in the candidate word bank are further screened according to the preset conditions, and the candidate entries meeting the preset conditions are added into the user word bank as user entries, so that meaningless junk words in the user word bank can be effectively reduced, and the repetition rate of the user word bank is reduced; in addition, under the condition of receiving the input instruction, the embodiment of the invention can directly inquire and display the corresponding user entry from the user word bank without sequentially inputting the participles contained in the user entry by the user, thereby improving the input efficiency.

In addition, the input instruction in the embodiment of the invention can be a five-stroke input instruction, and as the user entry in the embodiment of the invention is a multi-element relation entry formed by at least two participles, the multi-element relation entry which the user wants to input can be directly found in the user word bank and displayed for the user to select according to the five-stroke input instruction, the problem that the five-stroke input can not form words can be solved, the limitation of four-code unique input of the five-stroke input method can be overcome, and the five-stroke input efficiency is improved.

In an optional embodiment of the present invention, the candidate entries satisfying the preset condition include: and inputting candidate entries with the times exceeding a first preset value, and/or inputting candidate entries which are already displayed. The first preset value can be set according to actual requirements. For example, the first preset value may be set to 3, taking candidate terms "wang day", "dance of day" and "dance of wang day" in the candidate lexicon as examples, if the user continuously inputs "wang", "day" and "dance" twice after continuously inputting "wang", "day" and "dance" once, it may be determined that the user continuously inputs "wang" and "day" three times, the candidate term "wang day" satisfies the preset condition, and the candidate term "wang day" is added to the user lexicon as the user term; or, if the user does not input the candidate entries of "king", "sky", "dance" and the corresponding candidate entries after continuously inputting "king", "sky" and "dance" once, but selects the candidate entry of "king" to be displayed on the screen, it may be determined that the candidate entry of "king" satisfies the preset condition, and the candidate entry of "king" is added to the user lexicon as the user entry.

Of course, the preset conditions in the embodiment of the present invention may be set according to actual requirements, and may not be limited to the two cases listed above, and the embodiment of the present invention is not specifically limited.

In an optional embodiment of the present invention, the constructing a candidate word bank according to at least two word segmentations continuously input by a user in step 101 includes:

step S11, initializing a candidate word stock;

step S12, acquiring at least two participles continuously input by a user;

step S13, arranging and combining the at least two participles according to the input sequence of the at least two participles to obtain a multivariate relation entry;

and step S14, adding the multivariate relation entry serving as a candidate entry into the candidate word bank.

In the embodiment of the invention, when the multi-element relation entry is obtained according to at least two segmented words continuously input by a user, the segmented words need to be arranged and combined according to the input sequence of each segmented word, so that a large number of meaningless junk words are prevented from being generated. For example, the user continuously inputs "king", "sky" and "dance", and the entries are arranged and combined according to the input sequence to obtain the entry "wang tian", "sky dance" of the biguan relationship and/or generate the entry "wang tian dance" of the ternary relationship without generating the words such as "wang dance", "dance sky" and "Tianwang", so that the word quantity of the candidate lexicon is effectively controlled, the repetition rate of the candidate lexicon is reduced, the data processing quantity of the entry of the user which meets the preset condition in the candidate lexicon determined by the step 102 is reduced, and the generation efficiency of the user lexicon is improved.

In an optional embodiment of the invention, the method further comprises:

if the number of the entries of the candidate entries in the candidate entry library exceeds a second preset value, deleting the target candidate entries in the candidate entry library; the target candidate entry comprises any one or more of the following items: and using the candidate entries with the frequency less than the preset frequency, updating the candidate entries with the time not conforming to the preset time period, and arranging the candidate entries with the sequence not conforming to the preset sequence.

In the embodiment of the invention, the number of the entries of the candidate word bank can be limited, and the candidate word bank can be updated in real time. The second preset value may be set according to actual requirements, for example, the second preset value may be set to 1500, and so on.

When the number of the entries in the candidate word bank is equal to a second preset value, a new candidate entry needs to be added into the candidate word bank, and the target candidate entry in the candidate word bank needs to be deleted to control the data volume of the candidate word bank, so that the generation efficiency of the user word bank is prevented from being influenced by the overlarge candidate word bank.

In the process of constructing the candidate word stock, the information of the use frequency, the update time, the arrangement sequence in the candidate word stock and the like of each candidate entry can be synchronously recorded. Wherein the use frequency refers to the frequency of the candidate entry input by the user; and updating the time to be the time when the candidate entry is input by the user.

In addition, in the embodiment of the present invention, after the candidate entry meeting the preset condition in the candidate word library is added to the user word library as the user entry, the candidate entry meeting the preset condition may also be deleted synchronously in the candidate word library, so as to avoid data redundancy of the two word libraries.

Furthermore, the usage information such as the usage frequency and the update time of each user entry may be recorded for the user vocabulary library, so that the user vocabulary library is updated according to the usage information of each user entry, for example, the display position of the user entry is adjusted according to the usage frequency of the user entry, and the higher the usage frequency is, the farther the display position of the user entry is, and so on.

In an optional embodiment of the present invention, the adding, in step 102, the candidate entry meeting the preset condition in the candidate word library as the user entry into the user word library includes:

step S21, determining a first input environment corresponding to each candidate entry in the candidate word library;

step S22, taking the candidate entry meeting the preset condition in the candidate word library as a user entry and adding the user entry into the user word library corresponding to the first input environment;

step 103, in the case of receiving an input instruction, querying and displaying a user entry corresponding to the input instruction from the user thesaurus, including:

step S23, under the condition that an input instruction is received, determining a second input environment corresponding to the input instruction;

step S24, determining a target user word bank matched with the first input environment and the second input environment;

and step S25, inquiring and displaying the user entry corresponding to the input instruction from the target user word bank.

In the embodiment of the invention, when the user word stock is constructed, the user word stock can be further refined according to the first input environment corresponding to the candidate word meeting the preset conditions, and one user word stock is constructed aiming at each first input environment, so that under the condition of receiving an input instruction, the corresponding target user word stock is matched according to the second input environment corresponding to the input instruction, the user word stock corresponding to the input instruction is searched in the target user word stock and displayed, and the input efficiency and the input accuracy can be further improved.

Optionally, the input environment comprises at least one of a related application, an interactive object, an input time period, a content tag.

The relevant application refers to an application program interface in which a user performs input operation, for example, if the user sends an input instruction in a chat interface of an instant chat application, the relevant application of the input instruction is the instant chat application; or, the user performs an input operation in a search bar of a search engine to issue an input instruction, and the related application of the input instruction is the search engine, and so on.

The interactive object may include a chat object, a mail object, and the like of the user, and may be uniquely identified according to information such as a name, a user name, a nickname, a telephone number, a mailbox, and the like.

The input time period can be obtained by analyzing according to each time point of the user entry input by the user, for example, the user often inputs 'eating where' at noon around 12 pm, and the time period corresponding to the user entry 'eating where' can be determined to be 11:50-12: 10; the user often enters "go to a meeting room for a meeting" at 10 am on monday, and the term "go to a meeting room for a meeting" may be determined to correspond to a time period of 9:50-10:20, and so on. After the input time period corresponding to the user entry is determined, the user entry can be classified according to the input time period, and a user word bank corresponding to the specific input time period is constructed.

The content tag can be determined by performing semantic analysis on the input user entry, for example, for the user entries related to dining, such as "eat chafing dish", "eat rice noodles", "chicken with large dish", the content tag can be determined as "dining"; for user terms related to work such as "meeting", "work plan", "project progress", etc., the content tag may be determined to be "work", etc.

It should be noted that the input environment is only an exemplary illustration and does not constitute a limitation to the embodiment of the present invention, and in practical applications, the type corresponding to the input environment may be determined according to actual requirements and personalized preferences of the user, and a corresponding personalized user lexicon is constructed, so as to improve input efficiency and accuracy.

In an optional embodiment of the present invention, in the step 103, in a case that an input instruction is received, querying and displaying a user entry corresponding to the input instruction from the user thesaurus, includes:

step S31, under the condition that five input instructions are received, identifying a five-stroke coding sequence corresponding to the five input instructions;

and step S32, inquiring and displaying the user entries corresponding to the five-stroke coding sequence from the user word stock.

Wherein, the input instruction may include but is not limited to: the Chinese input instructions such as five-stroke input instructions, pinyin input instructions, pronunciation and shape combined input instructions and the like, and the input instructions of other languages such as English input instructions, Japanese input instructions and the like. The coding sequence is an input coding sequence corresponding to the input instruction of each language. For example, for a Chinese input method, a Pinyin input method, a Wubi input method, etc. may be included. Taking a pinyin input method of Chinese as an example, the input instruction may include a pinyin input instruction, and the coding sequence may include a pinyin short code sequence, a pinyin complete coding sequence, and the like. Taking a five-stroke input method of chinese as an example, the input instruction may include a five-stroke input instruction, and the code sequence may include a five-stroke brevity code sequence, a five-stroke standard phrase code sequence, and so on.

It should be noted that, in the embodiment of the present invention, a corresponding code sequence may also be set for each user entry in the user lexicon according to actual requirements, and when a user performs an input operation, the user may input and display the corresponding user entry by inputting a specific code sequence, so as to improve the input efficiency. Taking a five-stroke input instruction as an example, since the group words, short sentences and the like cannot be input in the five-stroke input, the user needs to print each participle in batches when inputting the name and the special phrases. For example, the user needs to input "dancing in the sky", since this entry is not common and is not included in the five-stroke input lexicon, and the entry of "dancing in the sky" cannot be continuously typed through the five-stroke input, the user needs to input five-stroke codes of three characters, namely "king", "sky" and "dancing", respectively: gggg, gdi, tglg, three characters of 'king', 'heaven' and 'dance' are displayed on a screen in a grading way, and when the 'wangtian dance' is input each time, the three coding sequences need to be input repeatedly, so that the input process is complicated and the efficiency is low. Based on the input method provided by the embodiment of the invention, after the entry of 'Wangtianwu' is added into the user lexicon, when the user subsequently inputs 'Wangtianwu', the user can only input the coding sequence 'ggtg' corresponding to the entry of 'Wangtianwu', and then the entry can be obtained and selected to be displayed on a screen, so that the input operation is simplified, and the input efficiency is improved.

To sum up, the embodiment of the invention constructs the candidate word bank according to the multivariate relation entry formed by at least two participles continuously input by the user, and then further screens the candidate entry in the candidate word bank according to the preset condition to obtain the user word bank, thereby effectively reducing the meaningless junk words in the user word bank and reducing the duplication rate of the user word bank; in addition, under the condition of receiving an input instruction, the embodiment of the invention can directly inquire and display the corresponding user entry from the user word bank without sequentially inputting the participles contained in the user entry by the user, thereby improving the input efficiency; in addition, the input instruction in the embodiment of the invention can be a five-stroke input instruction, and as the user entry in the embodiment of the invention is a multi-element relation entry formed by at least two participles, the multi-element relation entry which the user wants to input can be directly found in the user word bank and displayed for the user to select according to the five-stroke input instruction, the problem that the five-stroke input can not form words can be solved, the limitation of four-code unique input of the five-stroke input method can be overcome, and the five-stroke input efficiency is improved.

It should be noted that, for simplicity of description, the method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the illustrated order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments of the present invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.

Device embodiment

Referring to fig. 3, a block diagram of an embodiment of an input device of the present invention is shown, which may include:

a candidate word bank building module 301, configured to build a candidate word bank according to at least two participles continuously input by a user, where candidate entries in the candidate word bank include a multivariate relation entry composed of the at least two participles;

a user lexicon determining module 302, configured to add a candidate entry that meets a preset condition in the candidate lexicon as a user entry into the user lexicon;

and the user entry input module 303 is configured to, in a case that an input instruction is received, query and display a user entry corresponding to the input instruction from the user lexicon.

Optionally, the candidate word bank building module includes:

the candidate word bank initialization submodule is used for initializing a candidate word bank;

the word segmentation acquisition sub-module is used for acquiring at least two words which are continuously input by a user;

the multivariate relation entry determining submodule is used for arranging and combining the at least two participles according to the input sequence of the at least two participles to obtain a multivariate relation entry;

and the candidate word bank construction submodule is used for adding the multivariate relation entry serving as a candidate entry into the candidate word bank.

Optionally, the candidate entries meeting the preset condition include: and inputting candidate entries with the times exceeding a first preset value, and/or inputting candidate entries which are already displayed.

Optionally, the apparatus further comprises:

the candidate entry deleting module is used for deleting the target candidate entries in the candidate word library if the number of the entries of the candidate entries in the candidate word library exceeds a second preset value; the target candidate entry comprises any one or more of the following items: and using the candidate entries with the frequency less than the preset frequency, updating the candidate entries with the time not conforming to the preset time period, and arranging the candidate entries with the sequence not conforming to the preset sequence.

Optionally, the user lexicon determination module includes:

the first input environment determining submodule is used for determining a first input environment corresponding to each candidate entry in the candidate word library;

the user word bank determining submodule is used for adding the candidate word entries meeting the preset conditions in the candidate word bank as the user word entries into the user word bank corresponding to the first input environment;

the user entry input module comprises:

the second input environment determining submodule is used for determining a second input environment corresponding to the input instruction under the condition that the input instruction is received;

the input environment matching submodule is used for determining a target user word bank matched with the first input environment and the second input environment;

and the first user entry query sub-module is used for querying and displaying the user entry corresponding to the input instruction from the target user word bank.

Optionally, the input environment comprises at least one of a related application, an interactive object, an input time period, a content tag.

Optionally, the user entry input module includes:

the coding sequence query submodule is used for identifying a five-stroke coding sequence corresponding to the five-stroke input instruction under the condition of receiving the five-stroke input instruction;

and the second user entry query submodule is used for querying and displaying the user entries corresponding to the five-stroke coding sequence from the user word bank.

To sum up, the embodiment of the invention constructs the candidate word bank according to the multivariate relation entry formed by at least two participles continuously input by the user, and then further screens the candidate entry in the candidate word bank according to the preset condition to obtain the user word bank, thereby effectively reducing the meaningless junk words in the user word bank and reducing the duplication rate of the user word bank; in addition, under the condition of receiving an input instruction, the embodiment of the invention can directly inquire and display the corresponding user entry from the user word bank without sequentially inputting the participles contained in the user entry by the user, thereby improving the input efficiency; in addition, the input instruction in the embodiment of the invention can be a five-stroke input instruction, and as the user entry in the embodiment of the invention is a multi-element relation entry formed by at least two participles, the multi-element relation entry which the user wants to input can be directly found in the user word bank and displayed for the user to select according to the five-stroke input instruction, the problem that the five-stroke input can not form words can be solved, the limitation of four-code unique input of the five-stroke input method can be overcome, and the five-stroke input efficiency is improved.

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.

An embodiment of the present invention provides a device for input, the device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs including instructions for:

a11, constructing a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise a multivariate relation entry formed by the at least two participles;

a12, taking the candidate entries meeting the preset conditions in the candidate word library as user entries and adding the user entries into the user word library;

and A13, when receiving an input command, inquiring and displaying a user entry corresponding to the input command from the user word stock.

Optionally, the constructing a candidate word bank according to at least two word segments continuously input by a user includes:

initializing a candidate word bank;

acquiring at least two word segmentations continuously input by a user;

arranging and combining the at least two participles according to the input sequence of the at least two participles to obtain a multivariate relation entry;

and taking the multivariate relational terms as candidate terms and adding the candidate terms into the candidate word bank.

Optionally, the candidate entries meeting the preset condition include: and inputting candidate entries with the times exceeding a first preset value, and/or inputting candidate entries which are already displayed.

Optionally, the device is also configured to execute the one or more programs by the one or more processors including instructions for:

if the number of the entries of the candidate entries in the candidate entry library exceeds a second preset value, deleting the target candidate entries in the candidate entry library; the target candidate entry comprises any one or more of the following items: and using the candidate entries with the frequency less than the preset frequency, updating the candidate entries with the time not conforming to the preset time period, and arranging the candidate entries with the sequence not conforming to the preset sequence.

Optionally, the adding the candidate entry meeting the preset condition in the candidate word library as the user entry into the user word library includes:

determining a first input environment corresponding to each candidate entry in the candidate word library;

taking the candidate entry meeting the preset condition in the candidate word bank as a user entry and adding the user entry into the user word bank corresponding to the first input environment;

under the condition that an input instruction is received, inquiring and displaying a user entry corresponding to the input instruction from the user word stock, wherein the method comprises the following steps:

under the condition that an input instruction is received, determining a second input environment corresponding to the input instruction;

determining a target user lexicon of which the first input environment is matched with the second input environment;

and inquiring and displaying the user entry corresponding to the input instruction from the target user word bank.

Optionally, the input environment comprises at least one of a related application, an interactive object, an input time period, a content tag.

Optionally, in the case that an input instruction is received, querying and displaying a user entry corresponding to the input instruction from the user thesaurus, where the querying and displaying includes:

under the condition that five input instructions are received, identifying a five-stroke coding sequence corresponding to the five input instructions;

and querying the user entries corresponding to the five-stroke coding sequence from the user word stock and displaying the user entries.

FIG. 4 is a block diagram illustrating an apparatus 800 for input according to an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.

Referring to fig. 4, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.

The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.

The memory 804 is configured to store various types of data to support operation at the device 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.

Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.

The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice information processing mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.

The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.

The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the apparatus 800, the change in position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and the change in temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on radio frequency information processing (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.

In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.

Fig. 5 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 (server or terminal), enable the apparatus to perform the input method shown in fig. 1.

A non-transitory computer readable storage medium in which instructions, when executed by a processor of an apparatus (server or terminal), enable the apparatus to perform an input method, the method comprising: constructing a candidate word bank according to at least two participles continuously input by a user, wherein candidate entries in the candidate word bank comprise a multivariate relation entry consisting of the at least two participles; taking the candidate entries meeting preset conditions in the candidate word bank as user entries to be added into the user word bank; and under the condition of receiving an input instruction, inquiring and displaying a user entry corresponding to the input instruction from the user word bank.

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 limited only 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 an input method, an input device and a device for inputting, which are described in detail above, and the principle and the implementation of the present invention are explained herein by applying specific examples, and the description of the above examples is only used to help understand the method of the present invention and the core idea thereof; 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.

19页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:安全输入方法和装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类