CN110244860B - Input method and device and electronic equipment - Google Patents

Input method and device and electronic equipment Download PDF

Info

Publication number
CN110244860B
CN110244860B CN201810191406.0A CN201810191406A CN110244860B CN 110244860 B CN110244860 B CN 110244860B CN 201810191406 A CN201810191406 A CN 201810191406A CN 110244860 B CN110244860 B CN 110244860B
Authority
CN
China
Prior art keywords
sentence pattern
sentence
association
occurrence
input sequence
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
CN201810191406.0A
Other languages
Chinese (zh)
Other versions
CN110244860A (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 CN201810191406.0A priority Critical patent/CN110244860B/en
Publication of CN110244860A publication Critical patent/CN110244860A/en
Application granted granted Critical
Publication of CN110244860B publication Critical patent/CN110244860B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

The embodiment of the invention provides an input method, an input device and electronic equipment, wherein the method comprises the following steps: when an input sequence is converted, a corresponding association sentence pattern is obtained according to the input sequence; adding the association sentence pattern into candidate information corresponding to the input sequence; displaying the candidate information; that is, after the user inputs, candidate information containing the association sentence pattern can be provided for the user, and the user can select the association sentence pattern from the candidate information without inputting each part in the association sentence pattern one by one, so that the input efficiency is improved.

Description

Input method and device and electronic equipment
Technical Field
The present invention relates to the field of input methods, and in particular, to an input method, an input device, and an electronic device.
Background
With the development of computer technology, electronic devices such as mobile phones and tablet computers are becoming more popular, and great convenience is brought to life, study and work of people. These electronic devices are typically installed with an input method application (input method for short) so that a user can input information using the input method.
Currently, the input method can only conceive of a word to be input next according to the above input by the user, for example, the user inputs: search for dog science and technology, associate: development limited; however, association of the sentence pattern cannot be performed, for example, the user inputs "because" and the input method cannot be said to be "… … because … …", and when the user wants to input a certain sentence pattern, it is very cumbersome to manually input each component of the sentence pattern.
Disclosure of Invention
The embodiment of the invention provides an input method for improving input efficiency.
Correspondingly, the embodiment of the invention also provides an input device and electronic equipment, which are used for ensuring the realization and application of the method.
In order to solve the above problems, an embodiment of the present invention discloses an input method, which specifically includes: when an input sequence is converted, a corresponding association sentence pattern is obtained according to the input sequence; adding the association sentence pattern into candidate information corresponding to the input sequence; and displaying the candidate information.
Optionally, the sentence pattern association according to the input sequence obtains a corresponding association sentence pattern, including: converting the input sequence to obtain a candidate item corresponding to the input sequence; and inquiring the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
Optionally, the querying, according to the candidate term obtained by converting the input sequence, an association sentence pattern corresponding to the input sequence includes: matching the candidate items obtained by converting the input sequence with sentence pattern composition words in the associated sentence patterns; and using the association sentence patterns corresponding to the candidate item matching sentence pattern composition words as the association sentence patterns corresponding to the input sequence.
Optionally, the adding the association sentence pattern to the candidate information corresponding to the input sequence includes: determining candidate scores corresponding to the association sentence patterns and candidate scores of other candidate items of the input sequence; and sequencing the other candidate items and the association sentence patterns according to the candidate scores, and determining candidate information corresponding to the input sequence.
Optionally, the displaying the candidate information includes: and adding separators among all sentence pattern composition words in the associated sentence patterns, and displaying the associated sentence patterns containing the separators.
Optionally, the method further comprises: receiving an on-screen instruction for selecting an association sentence pattern; and displaying the association sentence pattern corresponding to the display instruction, and positioning a cursor between two sentence pattern composition words in the association sentence pattern.
Optionally, the association sentence pattern of the upper screen includes a separator.
Optionally, the method further comprises the step of collecting the association sentence pattern at least one of the following: collecting a relation sentence pattern, wherein the relation sentence pattern comprises at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern; collecting hot spot sentences in each platform, and analyzing the hot spot sentences to determine corresponding hot spot sentence patterns; analyzing the historical editing information of the user, and determining the personalized sentence pattern corresponding to the user and the corresponding use frequency; the top N sexual sentence patterns with highest use frequency are selected, and N is a positive integer.
The embodiment of the invention also discloses an input device, which specifically comprises: the association module is used for obtaining a corresponding association sentence pattern according to the input sequence when the input sequence is converted; the adding module is used for adding the association sentence pattern into candidate information corresponding to the input sequence; and the display module is used for displaying the candidate information.
Optionally, the association module includes: the conversion sub-module is used for converting the input sequence to obtain a candidate item corresponding to the input sequence; and the inquiring sub-module is used for inquiring the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
Optionally, the query submodule is specifically configured to match a candidate term obtained by converting the input sequence with a sentence pattern composition word in an associated sentence pattern; and using the association sentence patterns corresponding to the candidate item matching sentence pattern composition words as the association sentence patterns corresponding to the input sequence.
Optionally, the adding module is specifically configured to determine candidate scores corresponding to the association sentence pattern, and candidate scores of other candidates of the input sequence; and sequencing the other candidate items and the association sentence patterns according to the candidate scores, and determining candidate information corresponding to the input sequence.
Optionally, the display module is specifically configured to add separators between the sentence pattern constituent words in the associated sentence patterns, and display the associated sentence patterns including the separators.
Optionally, the method further comprises: the receiving module is used for receiving an on-screen instruction for selecting the association sentence pattern; and the positioning module is used for displaying the association sentence pattern corresponding to the screen displaying instruction and positioning a cursor between two sentence pattern composition words in the association sentence pattern.
Optionally, the association sentence pattern of the upper screen includes a separator.
Optionally, the method further comprises: the relation sentence collection module is used for collecting relation sentences, and the relation sentences comprise at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern; the hot sentence pattern collecting module is used for collecting hot sentences in each platform and analyzing the hot sentences to determine corresponding hot sentence patterns; the personalized sentence pattern collecting module is used for analyzing the historical editing information of the user and determining the personalized sentence patterns corresponding to the user and the corresponding use frequency; the top N sexual sentence patterns with highest use frequency are selected, and N is a positive integer.
The embodiment of the invention also discloses a readable storage medium, which enables the electronic device to execute any input method according to the embodiment of the invention when the instructions in the storage medium are executed by the processor of the electronic device.
The embodiment of the invention also discloses an electronic device, which comprises 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, and the one or more programs comprise instructions for: when an input sequence is converted, a corresponding association sentence pattern is obtained according to the input sequence; adding the association sentence pattern into candidate information corresponding to the input sequence; and displaying the candidate information.
Optionally, the sentence pattern association according to the input sequence obtains a corresponding association sentence pattern, including: converting the input sequence to obtain a candidate item corresponding to the input sequence; and inquiring the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
Optionally, the querying, according to the candidate term obtained by converting the input sequence, an association sentence pattern corresponding to the input sequence includes: matching the candidate items obtained by converting the input sequence with sentence pattern composition words in the associated sentence patterns; and using the association sentence patterns corresponding to the candidate item matching sentence pattern composition words as the association sentence patterns corresponding to the input sequence.
Optionally, the adding the association sentence pattern to the candidate information corresponding to the input sequence includes: determining candidate scores corresponding to the association sentence patterns and candidate scores of other candidate items of the input sequence; and sequencing the other candidate items and the association sentence patterns according to the candidate scores, and determining candidate information corresponding to the input sequence.
Optionally, the displaying the candidate information includes: and adding separators among all sentence pattern composition words in the associated sentence patterns, and displaying the associated sentence patterns containing the separators.
Optionally, further comprising instructions for: receiving an on-screen instruction for selecting an association sentence pattern; and displaying the association sentence pattern corresponding to the display instruction, and positioning a cursor between two sentence pattern composition words in the association sentence pattern.
Optionally, the association sentence pattern of the upper screen includes a separator.
Optionally, further comprising instructions for performing at least one of the following collect association sentence pattern operations: collecting a relation sentence pattern, wherein the relation sentence pattern comprises at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern; collecting hot spot sentences in each platform, and analyzing the hot spot sentences to determine corresponding hot spot sentence patterns; analyzing the historical editing information of the user, and determining the personalized sentence pattern corresponding to the user and the corresponding use frequency; the top N sexual sentence patterns with highest use frequency are selected, and N is a positive integer.
The embodiment of the invention has the following advantages:
when the input sequence is converted, sentence pattern association can be carried out on the input sequence, and an associated sentence pattern corresponding to the input sequence is obtained; then adding the association sentence pattern into candidate information corresponding to the input sequence, and displaying the candidate information, namely after the user inputs, providing the candidate information containing the association sentence pattern for the user; and the user can select the association sentence pattern from the candidate information without inputting each part in the association sentence pattern one by one, so that the input efficiency is improved.
Drawings
FIG. 1 is a flow chart of the steps of an embodiment of an input method of the present invention;
FIG. 2 is a flow chart of the steps of an alternative embodiment of an input method of the present invention;
FIG. 3 is a block diagram of an embodiment of an input device of the present invention;
FIG. 4 is a block diagram of an alternative embodiment of an input device of the present invention;
FIG. 5 is a block diagram of an electronic device for input, shown in accordance with an exemplary embodiment;
fig. 6 is a schematic structural view of an electronic device for input according to another exemplary embodiment of the present invention.
Detailed Description
In order that the above-recited objects, features and advantages of the present invention will become more readily apparent, a more particular description of the invention will be rendered by reference to the appended drawings and appended detailed description.
One of the core ideas of the embodiment of the invention is that when an input sequence is converted, an associated sentence pattern corresponding to the input sequence is associated and displayed; the user can select the corresponding association sentence pattern from the candidate items, and the operation of inputting the sentence pattern by the user is simplified.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of an input method of the present invention may specifically include the following steps:
step 102, when converting the input sequence, obtaining a corresponding association sentence pattern according to the input sequence.
The embodiment of the invention can collect the association sentence patterns in advance, and then adopts the collected association sentence patterns to form the association sentence pattern word stock, thereby being convenient for inquiring the corresponding association sentence patterns from the association sentence pattern word stock through an input sequence. The association patterns may include multiple types of patterns, such as general patterns "… … for … …", "… … even … …", and network hotspot patterns "and … … and" at a premium ", and so on.
When the user inputs, the input sequence formed by the input characters can be received, and then the input sequence is converted by the input method so as to obtain candidate information and provide the candidate information for the user. In the process of converting the input sequence, besides obtaining the conventional word candidate corresponding to the input sequence, the conventional word candidate is in a non-association sentence form, sentence-form association can be carried out on the input sequence, and the association sentence form corresponding to the input sequence is matched.
The input sequence is user input content directly received by the input method system, and the input method system can convert the input content into word candidates of the input text according to the current input mode of the user, and provide the word candidates for the user to select. In the actual processing, the input modes that the user can use are various, for example, pinyin input, stroke input, five-stroke input, voice input and handwriting input, or editing operation input of copy-paste, etc. The user can complete the input of the input sequence through any input mode. For input modes such as pinyin input, stroke input, five-stroke input and the like, the input sequence is usually a coded character string input by a user through a keyboard, a touch screen and the like; for handwriting input, the input sequence may be a movement track input by the user through a handwriting pad, a touch screen, or the like. The present application is not limited to the input method of the user, and the user may use any input method.
And 104, adding the association sentence pattern into candidate information corresponding to the input sequence.
And 106, displaying the candidate information.
After determining an association sentence pattern corresponding to the input sequence, adding the association sentence pattern serving as a candidate item of the input sequence into candidate information corresponding to the input sequence; of course, the candidate information may also include conventional word candidates obtained by converting the input sequence; the candidate information is then displayed, and the user may select a conventional word candidate or an associative sentence pattern from the displayed candidate information.
In one example of the invention, the input sequence "yinwei" can be converted into corresponding conventional candidates of "because", "phonemes", "Yin Wei", and the like, and can also query the contact sentence word stock to match the corresponding association sentence "because", so "; then, "because", "phonemes", "Yin Wei", and "because" may be used as candidate information, and the candidate information may be displayed, wherein for the association sentence pattern, the candidate information may be displayed in a region of the candidate region, the association region, or the like.
Subsequently, if the user selects 'because', the 'because' is displayed on the screen; if the user selects "because, so", then "because, so" is on screen.
In summary, when the embodiment of the invention converts the input sequence, sentence pattern association can be carried out on the input sequence to obtain an associated sentence pattern corresponding to the input sequence; then adding the association sentence pattern into candidate information corresponding to the input sequence, and displaying the candidate information, namely after the user inputs, providing the candidate information containing the association sentence pattern for the user; and the user can select the association sentence pattern from the candidate information without inputting each part in the association sentence pattern one by one, so that the input efficiency is improved.
In an alternative embodiment of the present invention, the association sentence patterns may be collected, and then the collected association sentence patterns may be formed into an association sentence pattern word library, for example, collected from information edited by the user, for example, collected from a network, and so on; and further, candidate information containing the associated sentence pattern can be obtained in the user input process, so that the candidate information can be displayed on the screen after the user selects the candidate information, the sentence pattern can be conveniently and rapidly input, and the sentence pattern input efficiency is improved.
A user can adopt a relation sentence pattern in many times, and two or more sentences with association relations form a complex sentence to express the meaning; the relation sentence pattern is composed of association words, and the association words can comprise two or more words with association relation. For example, the association word "because-so" with causal relationship, the corresponding relationship sentence is "… …" because of … …; then the relation sentence can be used to form a complex sentence with causal relation, such as: "because weather forecast says that there is rain today, I cannot go home"; for another example, if the association word "yes" or "yes" with a selection relationship and the corresponding relationship sentence "… …" or "… …" are adopted, a complex sentence with a selection relationship may be formed by adopting the relationship sentence: "today is eating a Hunan of dishes or a Guangdong dish? "and the like. Therefore, in one manner of collecting the association sentence pattern in the embodiment of the present invention, the relationship sentence pattern is collected, where the relationship sentence pattern may include at least one of the following: turning relation sentence pattern, progressive relation sentence pattern, parallel relation sentence pattern, assumption relation sentence pattern, causal relation sentence pattern, receiving relation sentence pattern and conditional relation sentence pattern. Wherein,
Turning relation expressions such as "although … … may be … …", "although … … but … …", etc.;
progressive relational expressions such as "not only … … but also … …", "not only … … but also … …", and the like;
parallel relation expressions such as "one side … … side … …", "sometimes … … sometimes … …";
assume that the relationship sentence is as "… … if … …", "… … if … …";
causal expressions such as "… … because of … …", "… … (in the case of … …)";
the bearing relation expressions are as follows, namely, first … … and then … …, and first … … is … …;
conditional expressions are as "… … whenever … …", "… …" whenever … … ".
With the advent of the network age, the use of relational sentence patterns to organize sentences has not completely satisfied the needs of people, and thus, many new sentence patterns have emerged, for example, the television drama "people's name" big fire, "the sentence patterns" in … … "are used in large quantities by net friends, such as" in price, "in flow," and so on; for another example, the "screening" of a television show is a popular use of the sentence "if … … wants to be excellent" or the like by a net friend, such as "just to see a leather bag on the net, the pattern color is very beautiful, the private mind wants to line the skin color if you are to be used, want to be excellent" or the like. Therefore, another mode of collecting association sentence patterns in the embodiment of the present invention is to collect hot spot sentences in each platform, and analyze the hot spot sentences to determine corresponding hot spot sentence patterns; the hot spot sentences refer to sentences which are attractive and focused in a certain period, specifically, whether the sentences are hot spot sentences can be determined according to the use frequency of each sentence in a certain period, if the use frequency in a certain period is greater than a set threshold value, the sentences are determined to be hot spot sentences, and the set threshold value can be set according to requirements.
Therefore, hot spot sentences of the corresponding platforms can be obtained from each platform such as a social platform, a question-answering platform and the like, for each hot spot sentence, the hot spot sentences can be segmented to obtain corresponding word sequence segments, and then any two or more word sequence segments are combined to obtain co-occurrence segments; counting the occurrence times of the co-occurrence fragments in each hot spot statement according to the co-occurrence fragments corresponding to each hot spot statement; if the occurrence times of the co-occurrence segments are larger than the co-occurrence threshold, adopting the co-occurrence segments to form a hot spot sentence pattern; if the occurrence number of the co-occurrence segments is smaller than the co-occurrence threshold, ignoring the co-occurrence segments; wherein the co-occurrence threshold may be set as desired.
For example, hot spot sentences "girls that we have followed up in those years", "DOTA that we have played in those years", "lessons that we have taken in those years", "campuses that we have walked in those years" and "instant noodles that we have eaten in those years", etc., and these hot spot sentences are then segmented, for example: "girls that we have followed together in those years" can be obtained with word sequence segments "those years", "we", "together", "chase", "over", "girls", wherein "those years" can constitute co-occurrence segments with any one or more word sequence segments later, such as "those years" - "we", "those years" - "together", etc., and "we" can also constitute co-occurrence segments with any one or more word sequence segments later, such as "we" - "together", "chase", etc.; and then determining the occurrence times of the co-occurrence fragments, wherein the occurrence times of the co-occurrence fragments of 'those years', 'we', 'together', 'over', 'are counted as 5 times, and the hot spot sentence is' … … 'which is passed by' those years 'together … …'.
In the embodiment of the invention, the speaking habits of different users are different, and each user has an own personalized sentence pattern; therefore, in order to better adapt to the personalized input requirements of different users, the method for collecting the associative sentence patterns in the embodiment of the invention is to analyze the historical editing information of the users and determine the personalized sentence patterns and the corresponding use frequencies corresponding to the users; the top N sexual sentence patterns with highest use frequency are selected, and N is a positive integer. The analysis of the historical editing information, that is, the analysis of each sentence in the historical editing information, is similar to the analysis method of the hot-spot sentence, and will not be repeated here. For example, the personalized statement "i do not want … … because … …", "i like … … because … …", etc. is selected.
Then at least one sentence pattern of the relation sentence pattern, the hot sentence pattern and the personalized sentence pattern can be used as an association sentence pattern, and then the collected association sentence patterns are adopted to form an association sentence pattern word stock. Wherein the contact sentence may be composed of at least two sentence-forming words, such as the association sentence "… … for … …", may include two sentence-forming words "because" and "so", such as the association sentence "whether … … is … … or …", and may include three sentence-forming words "whether", "is" and "or"; and then when the associated sentence pattern corresponding to the input sequence is inquired, the matching can be carried out according to the sentence pattern composition words of the associated sentence pattern.
In another embodiment of the present invention, when a corresponding association sentence is obtained by sentence pattern association according to the input sequence, the corresponding association sentence is searched from an association sentence word library according to the candidate converted from the input sequence, which is specifically as follows:
referring to FIG. 2, a flowchart of the steps of an alternate embodiment of an input method of the present invention is shown; the method specifically comprises the following steps:
step 202, receiving an input sequence.
Step 204, converting the input sequence to obtain a candidate item corresponding to the input sequence.
Step 206, inquiring the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
The embodiment of the invention can receive the input content of the user, namely input characters, and adopts the input characters to form an input sequence, and then the input sequence is converted. When an input sequence is converted, conventional conversion is carried out on the input sequence on one side, so that conventional word candidate items corresponding to the input sequence are obtained; and carrying out sentence pattern association on the input sequence, wherein when the sentence pattern association is carried out on the input sequence, the associated sentence pattern corresponding to the input sequence can be determined according to the candidate obtained by converting the input sequence. Therefore, after receiving an input sequence, the invention can convert the input sequence to obtain the candidate item corresponding to the input sequence, wherein the candidate item obtained by conversion is the conventional candidate item corresponding to the input sequence; on one hand, the conventional candidate item can be added into candidate information corresponding to the input sequence, and on the other hand, the conventional candidate item can be matched with an associated sentence pattern in the associated sentence pattern word stock according to the conventional candidate item, and the associated sentence pattern corresponding to the input sequence is queried.
The association sentence pattern is composed of at least two sentence pattern composition words, so that candidate items obtained by converting the input sequence can be matched with the sentence pattern composition words in the association sentence pattern, and then the candidate items are matched with the association sentence patterns corresponding to the sentence pattern composition words to be used as the association sentence patterns corresponding to the input sequence; the method comprises the steps of matching a conventional candidate item with sentence pattern composition words of all the associated sentence patterns, and determining an associated sentence pattern corresponding to the sentence pattern composition word as an associated sentence pattern corresponding to the input sequence when the sentence pattern composition word matched with the conventional candidate item exists. Most users input complex sentences according to a normal logic sequence, so in an alternative embodiment of the invention, the conventional candidate item and a first sentence forming word in each associated sentence form can be matched, the first sentence forming word matched with the conventional candidate item is determined, and then the associated sentence corresponding to the first sentence forming word is determined as the associated sentence form of the input sequence.
And step 208, adding the association sentence pattern into candidate information corresponding to the input sequence.
In the embodiment of the invention, after the association sentence pattern corresponding to the input sequence is queried, the association sentence pattern can be added into the candidate information corresponding to the input sequence, so that the candidate information selected by a user comprises the association sentence pattern corresponding to the input sequence, and the method comprises the following specific steps:
In the embodiment of the invention, the conventional word candidate item and the association sentence pattern corresponding to the input sequence obtained when the input sequence is converted can be used as candidate information of the input sequence, wherein the conventional candidate item can be called as other candidate items. Specifically, candidate scores corresponding to the association sentence patterns and candidate scores of other candidate items of the input sequence can be determined; and sequencing the other candidate items and the character phonetic notation mixed words according to the candidate scores, and determining candidate information corresponding to the input sequence.
The frequency corresponding to each associated sentence pattern recorded when the associated sentence patterns are collected can be used as candidate scores corresponding to each associated sentence pattern; before the association sentence pattern corresponding to the input sequence is used as candidate information, judging whether the association sentence pattern corresponding to the input sequence is more than one or not, if so, determining candidate scores corresponding to the association sentence patterns, then selecting the first M association sentence patterns with the highest candidate scores, and taking the first M association sentence patterns as candidate information; wherein M is a positive integer. If the association sentence pattern corresponding to the input sequence is one, the association sentence pattern can be directly used as candidate information.
In another embodiment of the present invention, in order to enable a user to quickly select an association sentence pattern corresponding to an input sequence, the association sentence pattern may be used as a first screen candidate item and added to first screen candidate information corresponding to the input sequence; and when the candidate information is displayed, the association sentence pattern corresponding to the input sequence can be displayed on the first screen.
Step 210, displaying the candidate information.
And displaying candidate information corresponding to the input sequence. Wherein, because the association sentence pattern can be composed of at least two sentence pattern composition words, if the association sentence pattern is displayed, each sentence pattern composition word is displayed continuously in sequence, the candidate item can not be well reminded to the user; therefore, in order to show that the candidate is an association sentence pattern, after the association sentence pattern corresponding to the input sequence is determined, separators are added among sentence pattern composition words in the association sentence pattern, and the association sentence pattern containing the separators is displayed. Wherein, the separator can be set as required, such as space, comma, semicolon and the like, different types of association sentence can be set as different separators, such as relationship sentence "… … because … …", comma can be added as separator, namely "because so" is displayed; as another example, the hot-spot sentence "nominal … …", a space may be added as a separator, i.e., the display "nominal", etc.
Of course, in an alternative embodiment of the present invention, the association sentence pattern may further include a separator in addition to the sentence-forming words; furthermore, when the association sentence pattern is displayed, the association sentence pattern can be directly displayed without adding separators.
Step 212, receiving an on-screen instruction for selecting the association sentence pattern.
Step 214, the association sentence pattern corresponding to the screen-on instruction is screen-on, and the cursor is positioned between two sentence pattern composition words in the association sentence pattern.
After displaying candidate information corresponding to the input sequence, the user can select any candidate item from the displayed candidate information, and after receiving a screen-on instruction of the user, the input method can determine the candidate item corresponding to the screen-on instruction and screen the candidate item. When the candidate corresponding to the screen-on instruction is determined to be an association sentence pattern, after the association sentence pattern is screen-on, a cursor can be positioned between two sentence pattern composition words in the association sentence pattern.
In another embodiment of the present invention, the on-screen associative sentence pattern may include separators such as "because, therefore", "although, and" may not include separators such as "nominal", "those years we have passed together". Thus, in determining the position of the cursor, if the associated sentence on the screen includes a separator, the cursor may be positioned between the sentence component word and the separator behind it, e.g. "because, so", the cursor may be positioned between "because" and "," because; if the association sentence pattern on the upper screen does not comprise the separator, the cursor is positioned between the sentence pattern composition words of the association sentence pattern, and if the association sentence pattern is "nominal", the cursor can be positioned between the "nominal" and the "name".
In another embodiment of the present invention, if the associated sentence pattern includes more than two sentence-forming words, the cursor may be positioned between the first sentence-forming word and the second sentence-forming word in the associated sentence pattern according to the habit of inputting words by the user. For example, the association sentence "yes, or" on screen "may be followed by the cursor after the association sentence" yes "and" first "," between ", and for example, the association sentence" that we have passed together for the last screen "may be followed by positioning the cursor" after we have passed together for those years "and before" passed.
Of course, an alternative embodiment of the present invention may also provide a cursor switching function, that is, a function of switching a cursor between positions where content needs to be filled in association with each other, for example, if the association on the screen is "yes, or" if the cursor is between the first "yes" and the first "," after receiving the cursor switching command, the cursor may be positioned to be between the second "yes" and the second "," and to be positioned to be after "yes"; thereby facilitating the user to input the information of each part of the association sentence pattern.
Of course, an optional embodiment of the present invention may also provide a one-key deleting function, that is, after receiving an instruction for deleting an association sentence pattern, the association sentence pattern on the screen last time may be deleted, so that the user may delete the association sentence pattern entirely, and user operation is facilitated.
In summary, when the embodiment of the invention converts the input sequence, sentence pattern association can be carried out on the input sequence to obtain an associated sentence pattern corresponding to the input sequence; then adding the association sentence pattern into candidate information corresponding to the input sequence, and displaying the candidate information, namely after the user inputs, providing the candidate information containing the association sentence pattern for the user; and the candidate information containing the associated sentence pattern can be obtained in the user input process, so that the candidate information can be displayed on the screen after the user selects the candidate information, the sentence pattern can be conveniently and rapidly input, and the input efficiency is improved.
And secondly, when the association sentence pattern is added to the candidate information corresponding to the input sequence, the association sentence pattern can be used as a first screen candidate and added to the first screen candidate information corresponding to the input sequence, so that the association sentence pattern corresponding to the input sequence can be displayed on the first screen, the selection of a user is facilitated, and the user experience is improved.
Thirdly, the embodiment of the invention can collect the relation sentence pattern; collecting hot spot sentences in each platform, and analyzing the hot spot sentences to determine corresponding hot spot sentence patterns; analyzing the historical editing information of the user, and determining the personalized sentence pattern corresponding to the user and the corresponding use frequency; selecting the top N sexual sentence patterns with highest use frequency; and then, at least one sentence pattern of the relation sentence pattern, the hot sentence pattern and the personalized sentence pattern is used as an association sentence pattern, so that an association sentence pattern word stock is enriched, and a richer association sentence pattern is provided for a user.
Further, after displaying the candidate information corresponding to the input sequence, the embodiment of the invention can receive the on-screen instruction for selecting the association sentence pattern; the association sentence pattern corresponding to the screen-on instruction is screen-on, and a cursor is positioned between two sentence pattern composition words in the association sentence pattern; thereby facilitating the user to input the content at the position where the user needs to input the content in the association sentence.
It should be noted that, for simplicity of description, the method embodiments are shown as a series of acts, but it should be understood by those skilled in the art that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred embodiments, and that the acts are not necessarily required by the embodiments of the invention.
Referring to fig. 3, a block diagram of an embodiment of a positioning and navigation device of the present invention is shown, and may specifically include the following modules: an association module 302, an addition module 304, and a display module 306, wherein,
the association module 302 is configured to obtain a corresponding association sentence pattern according to an input sequence when converting the input sequence;
An adding module 304, configured to add the association sentence pattern to candidate information corresponding to the input sequence;
and a display module 306, configured to display the candidate information.
Referring to FIG. 4, a block diagram of an alternate positioning navigation device embodiment of the present invention is shown; in an alternative embodiment of the invention, the apparatus further comprises the following modules: a receiving module 308, a locating module 310, a relationship pattern collection module 312, a hotspot pattern collection module 314, and a personalized pattern collection module 316, wherein,
a receiving module 308, configured to receive an on-screen instruction for selecting an association sentence pattern;
and a positioning module 310, configured to screen the association sentence pattern corresponding to the screen-on instruction, and position the cursor between two sentence pattern component words in the association sentence pattern.
A relationship sentence collection module 312, configured to collect a relationship sentence, where the relationship sentence includes at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern;
the hotspot sentence pattern collecting module 314 collects the hotspot sentences in each platform, and analyzes the hotspot sentences to determine the corresponding hotspot sentence patterns;
The personalized sentence pattern collection module 316 analyzes the historical editing information of the user and determines the personalized sentence patterns and the corresponding use frequencies corresponding to the user; the top N sexual sentence patterns with highest use frequency are selected, and N is a positive integer.
In an alternative embodiment of the present invention, the association module 302 includes: a conversion submodule 3022 and a query submodule 3024, wherein,
a conversion submodule 3022, configured to convert the input sequence to obtain a candidate item corresponding to the input sequence;
and the query submodule 3024 is used for querying the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
The query submodule 3024 is specifically configured to match a candidate term obtained by converting the input sequence with a sentence pattern composition word in an associated sentence pattern; and using the association sentence patterns corresponding to the candidate item matching sentence pattern composition words as the association sentence patterns corresponding to the input sequence.
In an optional embodiment of the present invention, the adding module 304 is specifically configured to determine candidate scores corresponding to the association sentence pattern, and candidate scores of other candidates of the input sequence; and sequencing the other candidate items and the association sentence patterns according to the candidate scores, and determining candidate information corresponding to the input sequence.
In an alternative embodiment of the present invention, the display module 306 is specifically configured to add separators between the sentence-forming words in the associated sentence patterns, and display the associated sentence patterns including the separators.
In an alternative embodiment of the present invention, the on-screen associative sentence pattern includes a separator.
When the input sequence is converted, sentence pattern association can be carried out on the input sequence, and an associated sentence pattern corresponding to the input sequence is obtained; then adding the association sentence pattern into candidate information corresponding to the input sequence, and displaying the candidate information, namely providing the candidate information containing the association sentence pattern for a user after the user inputs the candidate information; and the user can select the association sentence pattern from the candidate information without inputting each part in the association sentence pattern one by one, so that the input efficiency is improved.
For the device embodiments, since they are substantially similar to the method embodiments, the description is relatively simple, and reference is made to the description of the method embodiments for relevant points.
Fig. 5 illustrates a block diagram of an electronic device 500 for input, according to an example embodiment. For example, electronic device 500 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like. In the embodiment of the invention, the electronic equipment is various equipment with a positioning navigation function.
Referring to fig. 5, an electronic device 500 may include one or more of the following components: a processing component 502, a memory 504, a power component 506, a multimedia component 508, an audio component 510, an input/output (I/O) interface 512, a sensor component 514, and a communication component 516.
The processing component 502 generally controls overall operation of the electronic device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing element 502 may include one or more processors 520 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 502 can include one or more modules that facilitate interactions between the processing component 502 and other components. For example, the processing component 502 may include a multimedia module to facilitate interaction between the multimedia component 508 and the processing component 502.
Memory 504 is configured to store various types of data to support operations at device 500. Examples of such data include instructions for any application or method operating on the electronic device 500, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 504 may be implemented by any type or combination of volatile or nonvolatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 506 provides power to the various components of the electronic device 500. The power components 506 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the electronic device 500.
The multimedia component 508 includes a screen between the electronic device 500 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front-facing camera and/or a rear-facing camera. When the electronic device 500 is in an operational mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 510 is configured to output and/or input audio signals. For example, the audio component 510 includes a Microphone (MIC) configured to receive external audio signals when the electronic device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 504 or transmitted via the communication component 516. In some embodiments, the audio component 510 further comprises a speaker for outputting audio signals.
The I/O interface 512 provides an interface between the processing component 502 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: homepage button, volume button, start button, and lock button.
The sensor assembly 514 includes one or more sensors for providing status assessment of various aspects of the electronic device 500. For example, the sensor assembly 514 may detect the on/off state of the device 500, the relative positioning of components, such as a display and keypad of the electronic device 500, the sensor assembly 514 may also detect a change in position of the electronic device 500 or a component of the electronic device 500, the presence or absence of a user's contact with the electronic device 500, the orientation or acceleration/deceleration of the electronic device 500, and a change in temperature of the electronic device 500. The sensor assembly 514 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 514 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 514 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 516 is configured to facilitate communication between the electronic device 500 and other devices, either wired or wireless. The electronic device 500 may access a wireless network based on a communication standard, such as WiFi,2G, or 3G, or a combination thereof. In one exemplary embodiment, the communication part 514 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 514 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the electronic device 500 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as memory 504, including instructions executable by processor 520 of electronic device 500 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of an electronic device, causes the electronic device to perform an input method, the method comprising: when an input sequence is converted, a corresponding association sentence pattern is obtained according to the input sequence; adding the association sentence pattern into candidate information corresponding to the input sequence; and displaying the candidate information.
Optionally, the sentence pattern association according to the input sequence obtains a corresponding association sentence pattern, including: converting the input sequence to obtain a candidate item corresponding to the input sequence; and inquiring the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
Optionally, the querying, according to the candidate term obtained by converting the input sequence, an association sentence pattern corresponding to the input sequence includes: matching the candidate items obtained by converting the input sequence with sentence pattern composition words in the associated sentence patterns; and using the association sentence patterns corresponding to the candidate item matching sentence pattern composition words as the association sentence patterns corresponding to the input sequence.
Optionally, the adding the association sentence pattern to the candidate information corresponding to the input sequence includes: determining candidate scores corresponding to the association sentence patterns and candidate scores of other candidate items of the input sequence; and sequencing the other candidate items and the association sentence patterns according to the candidate scores, and determining candidate information corresponding to the input sequence.
Optionally, the displaying the candidate information includes: and adding separators among all sentence pattern composition words in the associated sentence patterns, and displaying the associated sentence patterns containing the separators.
Optionally, the method further comprises: receiving an on-screen instruction for selecting an association sentence pattern; and displaying the association sentence pattern corresponding to the display instruction, and positioning a cursor between two sentence pattern composition words in the association sentence pattern.
Optionally, the association sentence pattern of the upper screen includes a separator.
Optionally, the method further comprises the step of collecting the association sentence pattern at least one of the following: collecting a relation sentence pattern, wherein the relation sentence pattern comprises at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern; collecting hot spot sentences in each platform, and analyzing the hot spot sentences to determine corresponding hot spot sentence patterns; analyzing the historical editing information of the user, and determining the personalized sentence pattern corresponding to the user and the corresponding use frequency; the top N sexual sentence patterns with highest use frequency are selected, and N is a positive integer.
Fig. 6 is a schematic structural diagram of an electronic device 600 for input according to another exemplary embodiment of the present invention. The electronic device 600 may be a server that may vary widely in configuration or performance and may include one or more central processing units (central processing units, CPU) 622 (e.g., one or more processors) and memory 632, one or more storage media 630 (e.g., one or more mass storage devices) that store applications 642 or data 644. Wherein memory 632 and storage medium 630 may be transitory or persistent storage. The program stored on the storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations on a server. Still further, the central processor 622 may be configured to communicate with the storage medium 630 and execute a series of instruction operations in the storage medium 630 on a server.
The server(s) may also include one or more power supplies 626, one or more wired or wireless network interfaces 650, one or more input/output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641 such as Windows ServerTM, mac OS XTM, unixTM, linuxTM, freeBSDTM, and the like.
An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for: when an input sequence is converted, a corresponding association sentence pattern is obtained according to the input sequence; adding the association sentence pattern into candidate information corresponding to the input sequence; and displaying the candidate information.
Optionally, the sentence pattern association according to the input sequence obtains a corresponding association sentence pattern, including: converting the input sequence to obtain a candidate item corresponding to the input sequence; and inquiring the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
Optionally, the querying, according to the candidate term obtained by converting the input sequence, an association sentence pattern corresponding to the input sequence includes: matching the candidate items obtained by converting the input sequence with sentence pattern composition words in the associated sentence patterns; and using the association sentence patterns corresponding to the candidate item matching sentence pattern composition words as the association sentence patterns corresponding to the input sequence.
Optionally, the adding the association sentence pattern to the candidate information corresponding to the input sequence includes: determining candidate scores corresponding to the association sentence patterns and candidate scores of other candidate items of the input sequence; and sequencing the other candidate items and the association sentence patterns according to the candidate scores, and determining candidate information corresponding to the input sequence.
Optionally, the displaying the candidate information includes: and adding separators among all sentence pattern composition words in the associated sentence patterns, and displaying the associated sentence patterns containing the separators.
Optionally, further comprising instructions for: receiving an on-screen instruction for selecting an association sentence pattern; and displaying the association sentence pattern corresponding to the display instruction, and positioning a cursor between two sentence pattern composition words in the association sentence pattern.
Optionally, the association sentence pattern of the upper screen includes a separator.
Optionally, further comprising instructions for performing at least one of the following collect association sentence pattern operations: collecting a relation sentence pattern, wherein the relation sentence pattern comprises at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern; collecting hot spot sentences in each platform, and analyzing the hot spot sentences to determine corresponding hot spot sentence patterns; analyzing the historical editing information of the user, and determining the personalized sentence pattern corresponding to the user and the corresponding use frequency; the top N sexual sentence patterns with highest use frequency are selected, and N is a positive integer.
In this specification, each embodiment is described in a progressive manner, and each embodiment is mainly described by differences from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
It will be apparent to those skilled in the art that embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the invention may take the form of a computer program product on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiment and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it is further noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article or terminal device comprising the element.
The above description of an input method, an input device and an electronic device provided by the present invention applies specific examples to illustrate the principles and embodiments of the present invention, and the above examples are only used to help understand the method and core ideas of the present invention; meanwhile, as those skilled in the art will have variations in the specific embodiments and application scope in accordance with the ideas of the present invention, the present description should not be construed as limiting the present invention in view of the above.

Claims (10)

1. An input method, comprising:
when an input sequence is converted, a corresponding association sentence pattern is obtained according to the input sequence;
adding the association sentence pattern into candidate information corresponding to the input sequence;
displaying the candidate information;
the input method further comprises the step of collecting the association sentence patterns:
collecting a relation sentence pattern, wherein the relation sentence pattern comprises at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern;
collecting hot spot sentences in each platform, and analyzing the hot spot sentences to determine corresponding hot spot sentence patterns;
Analyzing the historical editing information of the user, and determining the personalized sentence pattern corresponding to the user and the corresponding use frequency; selecting the top N sexual sentence patterns with highest use frequency, wherein N is a positive integer;
the collecting the hot spot sentences in each platform, analyzing the hot spot sentences to determine corresponding hot spot sentence patterns, including:
for each hot spot sentence, word segmentation is carried out on the hot spot sentence to obtain a corresponding word sequence segment, and any two or more word sequence segments are combined to obtain a co-occurrence segment; counting the occurrence times of the co-occurrence fragments in the hot spot sentences according to the co-occurrence fragments; if the occurrence times of the co-occurrence fragments are larger than a co-occurrence threshold, adopting the co-occurrence fragments to form the hot sentence pattern; and if the occurrence number of the co-occurrence fragments is smaller than the co-occurrence threshold value, ignoring the co-occurrence fragments.
2. The method of claim 1, wherein performing sentence pattern association according to the input sequence to obtain a corresponding association sentence pattern comprises:
converting the input sequence to obtain a candidate item corresponding to the input sequence;
and inquiring the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence.
3. The method according to claim 2, wherein the querying the association sentence pattern corresponding to the input sequence according to the candidate item obtained by converting the input sequence includes:
matching the candidate items obtained by converting the input sequence with sentence pattern composition words in the associated sentence patterns;
and using the association sentence patterns corresponding to the candidate item matching sentence pattern composition words as the association sentence patterns corresponding to the input sequence.
4. The method according to claim 1, wherein the adding the association sentence pattern to the candidate information corresponding to the input sequence includes:
determining candidate scores corresponding to the association sentence patterns and candidate scores of other candidate items of the input sequence;
and sequencing the other candidate items and the association sentence patterns according to the candidate scores, and determining candidate information corresponding to the input sequence.
5. The method of claim 1, wherein the displaying the candidate information comprises:
and adding separators among all sentence pattern composition words in the associated sentence patterns, and displaying the associated sentence patterns containing the separators.
6. The method as recited in claim 1, further comprising:
Receiving an on-screen instruction for selecting an association sentence pattern;
and displaying the association sentence pattern corresponding to the display instruction, and positioning a cursor between two sentence pattern composition words in the association sentence pattern.
7. The method of claim 6, wherein the onscreen association sentence pattern comprises a separator.
8. An input device, comprising:
the association module is used for obtaining a corresponding association sentence pattern according to the input sequence when the input sequence is converted;
the adding module is used for adding the association sentence pattern into candidate information corresponding to the input sequence;
the display module is used for displaying the candidate information;
the input device further includes:
the relation sentence collection module is used for collecting relation sentences, and the relation sentences comprise at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern;
the hot sentence pattern collecting module is used for collecting hot sentences in each platform and analyzing the hot sentences to determine corresponding hot sentence patterns;
the personalized sentence pattern collecting module is used for analyzing the historical editing information of the user and determining the personalized sentence patterns corresponding to the user and the corresponding use frequency; selecting the top N sexual sentence patterns with highest use frequency, wherein N is a positive integer;
The collecting the hot spot sentences in each platform, analyzing the hot spot sentences to determine corresponding hot spot sentence patterns, including:
for each hot spot sentence, word segmentation is carried out on the hot spot sentence to obtain a corresponding word sequence segment, and any two or more word sequence segments are combined to obtain a co-occurrence segment; counting the occurrence times of the co-occurrence fragments in the hot spot sentences according to the co-occurrence fragments; if the occurrence times of the co-occurrence fragments are larger than a co-occurrence threshold, adopting the co-occurrence fragments to form the hot sentence pattern; and if the occurrence number of the co-occurrence fragments is smaller than the co-occurrence threshold value, ignoring the co-occurrence fragments.
9. A readable storage medium, characterized in that instructions in said storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the input method according to any one of the method claims 1-7.
10. An electronic device comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by one or more processors, the one or more programs comprising instructions for:
When an input sequence is converted, a corresponding association sentence pattern is obtained according to the input sequence;
adding the association sentence pattern into candidate information corresponding to the input sequence;
displaying the candidate information;
the input method further comprises the step of collecting the association sentence patterns:
collecting a relation sentence pattern, wherein the relation sentence pattern comprises at least one of the following: turning a relationship sentence pattern, a progressive relationship sentence pattern, a parallel relationship sentence pattern, a hypothetical relationship sentence pattern, a causal relationship sentence pattern, a bearing relationship sentence pattern and a conditional relationship sentence pattern;
collecting hot spot sentences in each platform, and analyzing the hot spot sentences to determine corresponding hot spot sentence patterns;
analyzing the historical editing information of the user, and determining the personalized sentence pattern corresponding to the user and the corresponding use frequency; selecting the top N sexual sentence patterns with highest use frequency, wherein N is a positive integer;
the collecting the hot spot sentences in each platform, analyzing the hot spot sentences to determine corresponding hot spot sentence patterns, including:
for each hot spot sentence, word segmentation is carried out on the hot spot sentence to obtain a corresponding word sequence segment, and any two or more word sequence segments are combined to obtain a co-occurrence segment; counting the occurrence times of the co-occurrence fragments in the hot spot sentences according to the co-occurrence fragments; if the occurrence times of the co-occurrence fragments are larger than a co-occurrence threshold, adopting the co-occurrence fragments to form the hot sentence pattern; and if the occurrence number of the co-occurrence fragments is smaller than the co-occurrence threshold value, ignoring the co-occurrence fragments.
CN201810191406.0A 2018-03-08 2018-03-08 Input method and device and electronic equipment Active CN110244860B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810191406.0A CN110244860B (en) 2018-03-08 2018-03-08 Input method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810191406.0A CN110244860B (en) 2018-03-08 2018-03-08 Input method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN110244860A CN110244860A (en) 2019-09-17
CN110244860B true CN110244860B (en) 2024-02-02

Family

ID=67882638

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810191406.0A Active CN110244860B (en) 2018-03-08 2018-03-08 Input method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN110244860B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113589954A (en) * 2020-04-30 2021-11-02 北京搜狗科技发展有限公司 Data processing method and device and electronic equipment

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1304077A (en) * 1999-11-30 2001-07-18 黄安蓉 Statement prompt in chinese character input and its input method
CN1716244A (en) * 2003-12-29 2006-01-04 西安迪戈科技有限责任公司 Intelligent search, intelligent files system and automatic intelligent assistant
JP2012150759A (en) * 2011-01-21 2012-08-09 Fuji Xerox Co Ltd Sentence input support system, sentence input support apparatus, reference information creation device and program
CN102866990A (en) * 2012-08-20 2013-01-09 北京搜狗信息服务有限公司 Thematic conversation method and device
JP2013219638A (en) * 2012-04-11 2013-10-24 Hiromichi Okabe Character input method and apparatus
CN103777775A (en) * 2014-01-16 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Display processing device of input method and display processing method of input method
CN104166700A (en) * 2014-08-01 2014-11-26 百度在线网络技术(北京)有限公司 Search term recommendation method and device
CN104917669A (en) * 2015-05-29 2015-09-16 北京搜狗科技发展有限公司 Information processing method and device
WO2016107344A1 (en) * 2014-12-30 2016-07-07 北京奇虎科技有限公司 Method and device for screening on-screen candidate items of input method
CN106055537A (en) * 2016-05-23 2016-10-26 王立山 Natural language machine recognition method and system
CN106648134A (en) * 2016-10-14 2017-05-10 北京搜狗科技发展有限公司 Input method and device
CN106844326A (en) * 2015-12-04 2017-06-13 北京国双科技有限公司 A kind of method and device for obtaining word
CN106855748A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of data inputting method, device and intelligent terminal
CN107291260A (en) * 2016-04-13 2017-10-24 北京搜狗科技发展有限公司 A kind of data inputting method and device and the device inputted for information
CN107621886A (en) * 2016-07-15 2018-01-23 北京搜狗科技发展有限公司 Method, apparatus and electronic equipment are recommended in one kind input

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1304077A (en) * 1999-11-30 2001-07-18 黄安蓉 Statement prompt in chinese character input and its input method
CN1716244A (en) * 2003-12-29 2006-01-04 西安迪戈科技有限责任公司 Intelligent search, intelligent files system and automatic intelligent assistant
JP2012150759A (en) * 2011-01-21 2012-08-09 Fuji Xerox Co Ltd Sentence input support system, sentence input support apparatus, reference information creation device and program
JP2013219638A (en) * 2012-04-11 2013-10-24 Hiromichi Okabe Character input method and apparatus
CN102866990A (en) * 2012-08-20 2013-01-09 北京搜狗信息服务有限公司 Thematic conversation method and device
CN103777775A (en) * 2014-01-16 2014-05-07 宇龙计算机通信科技(深圳)有限公司 Display processing device of input method and display processing method of input method
CN104166700A (en) * 2014-08-01 2014-11-26 百度在线网络技术(北京)有限公司 Search term recommendation method and device
WO2016107344A1 (en) * 2014-12-30 2016-07-07 北京奇虎科技有限公司 Method and device for screening on-screen candidate items of input method
CN104917669A (en) * 2015-05-29 2015-09-16 北京搜狗科技发展有限公司 Information processing method and device
CN106844326A (en) * 2015-12-04 2017-06-13 北京国双科技有限公司 A kind of method and device for obtaining word
CN106855748A (en) * 2015-12-08 2017-06-16 阿里巴巴集团控股有限公司 A kind of data inputting method, device and intelligent terminal
CN107291260A (en) * 2016-04-13 2017-10-24 北京搜狗科技发展有限公司 A kind of data inputting method and device and the device inputted for information
CN106055537A (en) * 2016-05-23 2016-10-26 王立山 Natural language machine recognition method and system
CN107621886A (en) * 2016-07-15 2018-01-23 北京搜狗科技发展有限公司 Method, apparatus and electronic equipment are recommended in one kind input
CN106648134A (en) * 2016-10-14 2017-05-10 北京搜狗科技发展有限公司 Input method and device

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Six-digit stroke-based Chinese input method;Lai-Man Po等;2009 IEEE International Conference on Systems, Man and Cybernetics;第834-839页 *
Windows Mobile平台下智能手机输入法研究;殷芳刚;吴建国;吴海辉;李炜;;计算机技术与发展(第05期);全文 *
藏文输入法联想功能的研究;万玛尖措;张有谊;;计算机产品与流通(第11期);全文 *
面向写作辅助的中文智能输入法系统;代贤俊;中国优秀硕士学位论文全文数据库信息科技辑;第 I138-1512页 *

Also Published As

Publication number Publication date
CN110244860A (en) 2019-09-17

Similar Documents

Publication Publication Date Title
US10923118B2 (en) Speech recognition based audio input and editing method and terminal device
CN109144285B (en) Input method and device
CN107291772B (en) Search access method and device and electronic equipment
CN107291260B (en) Information input method and device for inputting information
CN110764627B (en) Input method and device and electronic equipment
CN110244860B (en) Input method and device and electronic equipment
CN108073291B (en) Input method and device and input device
CN111240497A (en) Method and device for inputting through input method and electronic equipment
CN110795014B (en) Data processing method and device and data processing device
CN111831132A (en) Information recommendation method and device and electronic equipment
CN109558017B (en) Input method and device and electronic equipment
CN110096163A (en) A kind of expression input method and device
CN109144286B (en) Input method and device
CN112214114A (en) Input method and device and electronic equipment
CN113589949A (en) Input method and device and electronic equipment
CN113589954A (en) Data processing method and device and electronic equipment
CN107765884B (en) Sliding input method and device and electronic equipment
CN111339263A (en) Information recommendation method and device and electronic equipment
CN111597431A (en) Recommendation method and device and electronic equipment
CN111580683A (en) Input method and device
CN110765338A (en) Data processing method and device and data processing device
CN110929122A (en) Data processing method and device and data processing device
CN110413133B (en) Input method and device
CN114594861A (en) Recommendation method and device and electronic equipment
CN109933213A (en) Input method and device

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