[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109634436A - Association method, device, equipment and the readable storage medium storing program for executing of input method - Google Patents

Association method, device, equipment and the readable storage medium storing program for executing of input method Download PDF

Info

Publication number
CN109634436A
CN109634436A CN201811249709.XA CN201811249709A CN109634436A CN 109634436 A CN109634436 A CN 109634436A CN 201811249709 A CN201811249709 A CN 201811249709A CN 109634436 A CN109634436 A CN 109634436A
Authority
CN
China
Prior art keywords
association
input method
character
input
content
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.)
Granted
Application number
CN201811249709.XA
Other languages
Chinese (zh)
Other versions
CN109634436B (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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811249709.XA priority Critical patent/CN109634436B/en
Publication of CN109634436A publication Critical patent/CN109634436A/en
Priority to PCT/CN2019/092464 priority patent/WO2020082766A1/en
Application granted granted Critical
Publication of CN109634436B publication Critical patent/CN109634436B/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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The present invention is based on semantemes to parse, and provides a kind of association method of input method, comprising: the input instruction for receiving user determines that the input instructs corresponding input method type;The character quantity of user inputs character is obtained, and determines whether the character quantity is greater than preset threshold;If the character quantity is greater than preset threshold, obtains the input and instruct corresponding character content;The corresponding association's word of the character content is searched in the corresponding association storeroom of the input method type, and association's word is sent to interface of input method.The present invention also provides association's device, equipment and the readable storage medium storing program for executing of a kind of input method.The present invention, which is realized, just carries out association greater than preset threshold in the character quantity for inputting character, so as to avoid meaningless association, reduces the pressure of processor.

Description

Association method, device, equipment and the readable storage medium storing program for executing of input method
Technical field
The present invention relates to information technology field more particularly to a kind of association method of input method, device, equipment and readable deposit Storage media.
Background technique
With the continuous development of mobile Internet, portable electronic device has obtained quick development and universal, man-machine friendship Mutually also become more and more frequently, human-computer interaction can be carried out by physical keyboard, dummy keyboard, handwriting pad, sound collection equipment Input, is then converted by input method and is shielded in candidate item with providing, wherein most basic, most frequent one of mode is It is inputted by keyboard and carries out human-computer interaction, however association function is according to the real-time change for monitoring input frame intermediate value, constantly at present From foreground, platform initiates request backward, and still, this association function will generate many meaningless associations, causes processor pressure Greatly.
Summary of the invention
The main purpose of the present invention is to provide a kind of association method of input method, device, equipment and readable storage medium storing program for executing, Aim to solve the problem that existing association function can generate many meaningless associations, the technical problem for causing processor pressure big.
To achieve the above object, the present invention provides a kind of association method of input method, the association method packet of the input method Include following steps:
The input instruction for receiving user, determines that the input instructs corresponding input method type;
The character quantity of user inputs character is obtained, and determines whether the character quantity is greater than preset threshold;
If the character quantity is greater than preset threshold, obtains the input and instruct corresponding character content;
The corresponding association's word of the character content is searched in the corresponding association storeroom of the input method type, and will be described Association's word is sent to interface of input method.
Optionally, it if the character quantity is greater than preset threshold, obtains the input and instructs in corresponding character The step of appearance includes:
If the character quantity is greater than preset threshold, detect whether user presses preset key;
If detecting, user presses preset key, obtains the input and instructs corresponding character content.
Optionally, described to search the corresponding associational word of the character content in the corresponding association storeroom of the input method type Language, and the step of association's word is sent to interface of input method includes:
The input content that user has inputted in text editor is obtained, and semantic analysis is carried out to the input content, To obtain the semantic content after semantic analysis;
Word segmentation processing and part-of-speech tagging processing are carried out to the semantic content, to extract the key in the semantic content Word, and determine the keyword whether only one;
If the keyword only one, search the corresponding tag along sort of the keyword, and according to the tag along sort The semantic environment for determining the semantic content is searched in the corresponding association storeroom of the input method type according to the semantic environment The corresponding association's word of the character content, and association's word is sent to interface of input method.
Optionally, described that word segmentation processing and part-of-speech tagging processing are carried out to the semantic content, to extract in the semanteme Keyword in appearance, and determine the keyword whether only one the step of after, the association method of the input method also wraps It includes:
If the keyword be it is multiple, it is corresponding that the keyword is searched in the corresponding association storeroom of the input method type Target dictionary;
The corresponding association's word of the character content is searched in the target dictionary.
It optionally, include multiple dictionaries in the association storeroom, which is characterized in that described corresponding in the input method type The step of step of the corresponding target dictionary of the keyword is searched in association storeroom include:
It determines the corresponding each dictionary of each keyword, and is calculated respectively according to the keyword in the number that each dictionary occurs The weight of dictionary comprising keyword it is more the corresponding weight of dictionary it is bigger;
Using the corresponding dictionary of weight maximum in the weight as the target dictionary.
Optionally, described to search the corresponding associational word of the character content in the corresponding association storeroom of the input method type The step of language includes:
The browsing content in the user preset period in browser interface is obtained, semantic analysis is carried out to the browsing content, The browsing type of the browsing content is determined based on the analysis results, and is searched in the corresponding association storeroom of the input method described clear The corresponding dictionary of type of looking at;
The corresponding association's word of the character content is searched in the corresponding dictionary of the browsing type.
Optionally, the character quantity for obtaining user inputs character, and it is default to determine whether the character quantity is greater than The step of threshold value includes:
Obtain the character quantity of the corresponding preset threshold of the input method type and user inputs character;
The character quantity is compared with the preset threshold, determines whether the character quantity is greater than default threshold Value.
In addition, to achieve the above object, the present invention also provides a kind of association's device of input method, the associations of the input method Device includes:
Receiving module, the input for receiving user instruct, and determine that the input instructs corresponding input method type;
First obtains module, for obtaining the character quantity of user inputs character, and determines whether the character quantity is big In preset threshold;
Second obtains module, if being greater than preset threshold for the character quantity, it is corresponding to obtain the input instruction Character content;
Association module, for searching the corresponding association of the character content in the corresponding association storeroom of the input method type Word, and association's word is sent to interface of input method.
In addition, to achieve the above object, the present invention also provides a kind of association's equipment of input method, the associations of the input method Equipment includes processor, memory and the connection for being stored in the input method that can be executed on the memory and by the processor Program is thought, wherein realizing the association side such as above-mentioned input method when the association program of the input method is executed by the processor The step of method.
In addition, to achieve the above object, the present invention also provides a kind of readable storage medium storing program for executing, being deposited on the readable storage medium storing program for executing The association program of input method is contained, wherein realizing such as above-mentioned input when the association program of the input method is executed by processor The step of association method of method.
The present invention provides association method, device, equipment and the readable storage medium storing program for executing of a kind of input method, and the present invention passes through reception The input of user instructs, and determines that the input instructs corresponding input method type, then obtains the number of characters of user inputs character Amount, and determine whether the character quantity is greater than preset threshold, if then the character quantity is greater than preset threshold, obtain institute It states input and instructs corresponding character content, finally search the character content pair in the corresponding association storeroom of the input method type The association's word answered, and association's word is sent to interface of input method;The character quantity realized in input character is greater than Preset threshold just carries out association, so as to avoid meaningless association, reduces the pressure of processor.
Detailed description of the invention
Fig. 1 is the hardware structural diagram of the association's equipment for the input method that various embodiments of the present invention are related to;
Fig. 2 is the flow diagram of the association method first embodiment of input method of the present invention;
Fig. 3 is the flow diagram of the association method second embodiment of input method of the present invention;
Fig. 4 is the flow diagram of the association method 3rd embodiment of input method of the present invention;
Fig. 5 is the flow diagram of the association method fourth embodiment of input method of the present invention;
Fig. 6 is the flow diagram of the 5th embodiment of association method of input method of the present invention;
Fig. 7 is the flow diagram of the association method sixth embodiment of input method of the present invention;
Fig. 8 is the functional block diagram of association's device first embodiment of input method of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The present embodiments relate to the association method of input method be mainly used in association's equipment of input method, the input method Association's equipment can be PC (personal computer personal computer), portable computer, mobile terminal etc. have display With the equipment of processing function.
Referring to Fig.1, Fig. 1 is the hardware configuration signal of association's equipment of input method involved in the embodiment of the present invention Figure.In the embodiment of the present invention, association's equipment of input method may include (such as the central processing unit Central of processor 1001 Processing Unit, CPU), communication bus 1002, user interface 1003, network interface 1004, memory 1005.Wherein, Communication bus 1002 is for realizing the connection communication between these components;User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard);Network interface 1004 optionally may include that the wired of standard connects Mouth, wireless interface (such as WI-FI interface);Memory 1005 can be high speed RAM memory, be also possible to stable memory (non-volatile memory), such as magnetic disk storage, memory 1005 optionally can also be independently of aforementioned processor 1001 storage device.It will be understood by those skilled in the art that hardware configuration shown in Fig. 1 is not constituted to limit of the invention It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
With continued reference to Fig. 1, the memory 1005 in Fig. 1 as a kind of readable storage medium storing program for executing may include operating system, net The association program of network communication module and input method.In Fig. 1, network communication module is mainly used for connecting server, with service Device carries out data communication;And processor 1001 can call the association program of the input method stored in memory 1005, and execute The association method of input method provided in an embodiment of the present invention.
The embodiment of the invention provides a kind of association methods of input method.
It is the flow diagram of the association method first embodiment of input method of the present invention referring to Fig. 2, Fig. 2.
In the present embodiment, the executing subject of the association method of the input method is association's equipment of input method, the input method Association's equipment can be PC (personal computer personal computer), portable computer, mobile terminal etc. have display With the equipment of processing function.The association method of the input method the following steps are included:
Step S10 receives the input instruction of user, determines that the input instructs corresponding input method type;
In the present embodiment, in general, input method can be set in user, after the complete input method of user setting, Yong Hukai Begin to input the content for needing to input, so, the input instruction for receiving user is first detected whether, if receiving the input of user Instruction, it is determined that active user uses the input method type of input method, which includes English input, input in Chinese Deng, wherein when user presses lower keyboard, triggering input instruction, then association's equipment of input method will listen to keydown event, Receive input instruction.
Step S20 obtains the character quantity of user inputs character, and determines whether the character quantity is greater than default threshold Value;
In the present embodiment, which is configured by technical staff, in the input instruction for receiving user, prison The keydown event received in input frame is listened, the character quantity of user's input is calculated, real-time detection user input Whether character is greater than preset threshold.
It is it is possible to further which different character quantity restriction rules is arranged according to different input method types, i.e., different defeated Entering the corresponding preset threshold of method type can be different, so, in the input instruction for receiving user, determine that the input instructs The input method type of corresponding input method obtains the corresponding preset threshold of current input method type, and detects the word of user's input When whether symbol quantity is greater than preset threshold, for example, if the preset threshold of character is when current input method type is input in Chinese 4, if detect that current input method type inputs for English, the preset threshold of character is 5.
Step S30 obtains the input and instructs corresponding character content if the character quantity is greater than preset threshold;
In the present embodiment, it if the character quantity of detection user's input is greater than preset threshold, obtains input instruction and corresponds to Character content, character can be character string, is also possible to single character, which includes phonetic, English.When user is defeated When the character quantity entered is greater than preset threshold, association is just carried out, when the character quantity of user's input is less than or equal to preset threshold When, without association, the character inputted user's next time is detected, for example, for example, the limit of character quantity can be set in Chinese character coding input method System rule is 4 characters, and the restriction rule that character rule is arranged in English input method is 5 characters, if during input method type is Just start association when text inputs and Chinese character reaches four characters, if input method type is English input method and English character reaches To 5 characters, just start to carry out association, for example, when user's pre-input " king " word, then it is defeated for Chinese to listen to input method type Enter, detects that the character recognized in input frame is " wang ", and the character quantity of character content has reached 4 characters, then may be used Content to be inputted according to user carries out fuzzy query to backstage transmission pattern inquiry request.
Step S40 searches the corresponding association's word of the character content in the corresponding association storeroom of the input method type, And association's word is sent to interface of input method.
In the present embodiment, the corresponding association storeroom of different input methods is different, for example, it is middle Federation of Literary and Art Circles that Chinese character coding input method is corresponding Think library, English input method is corresponding for English association storeroom.When the character quantity for detecting user's input is greater than preset threshold, then Fuzzy query request is sent to backstage, inquiry and the matched association's word of character content from word library, and will be matched Think that word is sent to interface of input method, selected for user, specifically, is preset when the character quantity for detecting user's input is greater than When threshold value, semantic analysis can be carried out to the input content that user has inputted in text editor, text editing machine includes Input frame, notepad, documents editing interface etc..By carrying out semantic analysis to the input content inputted, semantic analysis is obtained Semantic content afterwards determines the corresponding semantic environment of the semantic content according to semantic content.User has inputted in text editor Input content be user perpetual object, user passes through the character semantic environment corresponding with the semantic content that input method inputs The most closely, therefore demand when user inputs can be estimated according to the semantic environment of input method, which refers to that user is defeated Context environmental locating for the character content entered, for example, the input content that user has inputted is to introduce a literature article, then Semantic environment locating for the character content of user's input may be considered the relevant content of literature.According to the semantic environment with character Content searches corresponding association's word in association storeroom, and association's word is sent to interface of input method.
The association method for the input method that the present embodiment proposes, the input by receiving user instruct, and determine that the input refers to Corresponding input method type is enabled, then obtains the character quantity of user inputs character, and determine whether the character quantity is greater than Preset threshold obtains the input and instructs corresponding character content, finally if then the character quantity is greater than preset threshold Search the corresponding association's word of the character content in the corresponding association storeroom of the input method type, and by association's word It is sent to interface of input method;The character quantity realized in input character just carries out association greater than preset threshold, so as to avoid Meaningless association reduces the pressure of processor.
Based on first embodiment, the second embodiment of the association method of input method of the present invention is proposed, referring to Fig. 3, this implementation In example, step S30 includes:
Step S31 detects whether user presses preset key if the character quantity is greater than preset threshold;
It in the present embodiment, then can basis when the character quantity for detecting user inputs character is greater than preset threshold The character content of user's input searches association's word in association storeroom and carries out association, still, sometimes when character quantity is greater than in advance If when threshold value, the word of association is not required for user, i.e., when can not accurately be associated according to the character content of preset quantity, Association's instruction can be triggered by way of preset key, user can use by pressing preset key triggering association instruction, detection Whether family presses preset key.
Step S32, if detecting, user presses preset key, obtains the input and instructs corresponding character content.
In the present embodiment, which can be space bar, enter key etc., which can be by user according to itself Habit is configured.Whether the character quantity for detecting user inputs character first is greater than preset threshold, if user inputs character Character quantity is greater than preset threshold, then detects whether user presses preset key, if detecting, user presses preset key, obtains use Family inputs the character content of character, and inquires corresponding association's word in association storeroom according to character content, and will associate word It is sent to interface of input method, for example, user wants to obtain " king " son, preset threshold is 2 characters, the character content of user's input When for " wan ", detect that character quantity is greater than preset threshold, then detect whether user presses preset key, if detect user by Preset key is pressed, then " object for appreciation, complete, late, ball, king, Wang " etc. can be associated word and be sent to input interface, selected for user, certainly, if User does not press preset key when inputting the character content of three characters, then foreground will not send fuzzy request to looking into from the background Association's word is ask, whether detection user presses preset key when inputting the 4th character, and user is inputting four words if detecting Preset key is pressed when according with " wang ", then automatic trigger inquiry instruction, " wang " corresponding association's word is searched in association storeroom, The association such as " Wang, net, forgets king " word is sent to input interface, for selection by the user.
In other embodiments, it is also not necessary to detect with whether the character quantity of input character is greater than preset threshold, Directly whether detection user presses preset key, as long as detect that user presses preset key, according to the character content of input Association's word is searched in association storeroom carries out association.
The association method for the input method that the present embodiment proposes detects if being greater than preset threshold by the character quantity Whether user presses preset key, if then detecting, user presses preset key, obtains the input and instructs in corresponding character Hold;It realizes by way of detecting user and whether pressing preset key and carries out association, meet use to more can accurately find out Association's word of family regard, improves user experience, also avoids meaningless association simultaneously, improves the efficiency of association, subtract The small pressure of processor.
Based on second embodiment, the 3rd embodiment of the association method of input method of the present invention is proposed, referring to Fig. 4, this implementation In example, step S40 includes:
Step S41 obtains the input content that user has inputted in text editor, and carries out language to the input content Justice analysis, to obtain the semantic content after semantic analysis;
In the present embodiment, the corresponding association storeroom of different input methods is different, for example, it is middle Federation of Literary and Art Circles that Chinese character coding input method is corresponding Think library, English input method is corresponding for English association storeroom.When the character quantity for detecting user's input is greater than preset threshold, then Fuzzy query request is sent to backstage, inquiry and the matched association's word of character content from word library, wherein when detection To user input character quantity be greater than preset threshold when, can to the input content that user has inputted in text editor into Row semantic analysis, text editing machine include input frame, notepad, documents editing interface etc..By in the input inputted Hold and carries out semantic analysis, the semantic content after obtaining semantic analysis.
Step S42 carries out word segmentation processing to the semantic content and part-of-speech tagging is handled, to extract in the semantic content Keyword, and determine the keyword whether only one;
In the present embodiment, the corresponding semantic environment of the semantic content is determined according to semantic content.User is in text editing The input content that device has inputted is the perpetual object of user, and user is corresponding with the semantic content by the character that input method inputs Semantic environment is the closest, therefore demand when user's input can be estimated according to the semantic environment of input method, which is Refer to context environmental locating for the character content of user's input.Specifically, a Chinese sentence, be all between word it is continuous, And the minimum unit granularity of data analysis is word, so needing to carry out word segmentation processing, including needs to be labeled part of speech, example Such as, noun, from word, adjective, numeral-classifier compound etc., the purpose of part-of-speech tagging is to allow sentence to incorporate in processing below more Useful language message certainly for some text-processing tasks, part-of-speech tagging can not had to, stop words is then removed, stop Word is exactly the word for not appointing contribution function to text feature, for example, eh, punctuation mark etc., when carrying out text analyzing It needs to get rid of these stop words, then obtains the target word after removal stop word, then analyzed according to part of speech, it can be with The word of the inessential part of speech such as adjective, numeral-classifier compound is removed, keyword is obtained, and determines whether keyword is to have one.
Step S43, if the keyword only one, search the corresponding tag along sort of the keyword, and according to described Tag along sort determines the semantic environment of the semantic content, according to the semantic environment in the corresponding association of the input method type The corresponding association's word of the character content is searched in library, and association's word is sent to interface of input method.
In the present embodiment, if keyword only one, corresponding point of the keyword is directly being searched in dictionary Class label, wherein tag along sort refers to the corresponding classification of each word, can determine semanteme according to the corresponding classification of each word The corresponding semantic environment of content, for example, for example, the input content that user has inputted is to introduce a literature article, in input Holding is " being " in the A Dream of Red Mansions that Cao Xueqin writes, and after analyzing removal stop words and the word of inessential part of speech by part of speech, obtains and closes Keyword " A Dream of Red Mansions ", then it is " books " that the corresponding tag along sort of A Dream of Red Mansions is searched directly in dictionary, can also further be classified For " literature books ", then it is relevant interior to judge that semantic environment locating for the character content of user's input may be considered literature books Hold.It searches corresponding association's word in association storeroom with character content according to the semantic environment, and association's word is sent to defeated Enter method interface, wherein association storeroom includes multiple dictionaries, and corresponding association's word, example are searched in the corresponding dictionary of semantic environment Such as, corresponding association's word is searched in the dictionary of literature.
The association method for the input method that the present embodiment proposes, by carrying out word segmentation processing and part of speech mark to the semantic content Note processing, to extract the keyword in the semantic content, and determine the keyword whether only one, if the then pass Keyword only one, search the corresponding tag along sort of the keyword, and the semantic content is determined according to the tag along sort Semantic environment, it is corresponding that the character content is searched in the corresponding association storeroom of the input method type according to the semantic environment Association's word, and association's word is sent to interface of input method;It realizes when keyword is one, according to contingency table It signs and determines semantic environment, and search association's word in association storeroom according to semantic environment, meet semanteme to more can accurately search Association's word, and then improve the accuracy of association.
Based on 3rd embodiment, the fourth embodiment of the association method of input method of the present invention is proposed, referring to Fig. 5, this implementation In example, after step S42, further includes:
Step S44, if the keyword be it is multiple, search the pass in the corresponding association storeroom of the input method type The corresponding target dictionary of keyword;
In the present embodiment, when carrying out word segmentation processing, that is, part-of-speech tagging processing to semantic content, multiple keywords are obtained, It then determines the corresponding each dictionary of multiple keywords, and calculates the weight in lyrics library in the number that each dictionary occurs according to keyword, Wherein, bigger comprising the corresponding weight of the more dictionary of keyword, using weight maximum in weight as target dictionary.
Step S45 searches the corresponding association's word of the character content in the target dictionary.
In the present embodiment, the corresponding association's word of character content is searched in target dictionary, is obtained for example, calculating weight The dictionary maximum weight of literature searches corresponding association then using literature dictionary as target dictionary in literature dictionary Word.
Wherein, the keyword corresponding target dictionary searched in the corresponding association storeroom of the input method type Step includes:
Step S441 determines the corresponding each dictionary of each keyword, and occurred according to the keyword in each dictionary Number calculate the weight of each dictionary comprising keyword it is more the corresponding weight of dictionary it is bigger;
In the present embodiment, keyword can be single word, is also possible to the word of multiple word compositions, wraps in the association storeroom Multiple dictionaries are included, a word of Chinese may express a variety of meanings, some keyword can have multiple words in association storeroom In library, when the keyword for including in some dictionary is more, then it is assumed that the dictionary priority is higher, specifically, it is first determined each Dictionary where a keyword, and determine include in each dictionary keyword number, wherein can according in dictionary comprising closing The number of keyword determines the weight of dictionary, for example, keyword has a, b, c, d, two keywords of a, b exist in A dictionary, a, c Two keywords are present in B dictionary, and tri- keywords of a, c, d exist with C dictionary, then the weight of A dictionary is 2, B dictionary Weight is that the weight of 2, C dictionary is 3.
Step S442, using the corresponding dictionary of weight maximum in the weight as the target dictionary.
In the present embodiment, when the keyword for including in some dictionary is more, then it is assumed that the weight of the dictionary is bigger, the word Library priority is higher, and using the corresponding dictionary of weight maximum in weight as target dictionary, which is highest priority Dictionary searches associational word from the dictionary of highest priority.
The present embodiment propose input method association method, if by the keyword be it is multiple, in the input method The corresponding target dictionary of the keyword is searched in the corresponding association storeroom of type, then searches the word in the target dictionary Accord with the corresponding association's word of content;The accuracy for more accurately improving and searching association's word is realized, to improve association Efficiency.
Based on above embodiments, the 5th embodiment of the association method of input method of the present invention is proposed, referring to Fig. 6, this implementation In example, step S40 includes:
Step S46 obtains the browsing content in the user preset period in browser interface, carries out language to the browsing content Justice analysis, determines the browsing type of the browsing content, and look into the corresponding association storeroom of the input method based on the analysis results Look for the corresponding dictionary of the browsing type;
In the present embodiment, user may input browsing content correlation within a preset period of time after browser interface browsing Content, for example, some users exist run through after a book can thoughts after write-read immediately, alternatively, user is running through some news When message, search site search related news information being arrived immediately, so, association storeroom can be classified, for example, being divided into general The dictionaries such as class, chemical classes, computer, literature are high in the selection priority of the browsing content of browser interface according to user Dictionary carries out semantic analysis to the content of user's browsing, and determines the browsing type of browsing content based on the analysis results, for example, User obtains the browsing content of user when browsing certain military news website, carries out semantic analysis to browsing content, analysis obtains The browsing content is military relevant news, then the corresponding dictionary of military class is searched in association storeroom.
Step S47 searches the corresponding association's word of the character content in the corresponding dictionary of the browsing type.
In the present embodiment, it is obscured in the high dictionary of the priority according to user in the content that browser interface browses Inquiry, to carry out association's word recommendation, for example, if user is detected when browsing the webpage in terms of computer, by climbing Worm grabs web data, and carries out semantic analysis to the data grabbed, determines that browsing content is corresponding clear based on the analysis results Type of looking at be it is computer, then preferentially from computer dictionary obtain association word, then from other dictionaries search association word, And show the association's word found in interface of input method, it is selected for user.
The association method for the input method that the present embodiment proposes, by obtaining in the user preset period in the clear of browser interface It lookes at content, semantic analysis is carried out to the browsing content, determine the browsing type of the browsing content based on the analysis results, and The corresponding dictionary of the browsing type is searched in the corresponding association storeroom of the input method, then in the corresponding word of the browsing type The corresponding association's word of the character content is searched in library;It realizes and searches connection in related dictionary according to the browsing content of user Word is thought, to improve the efficiency of lookup.
Based on first embodiment, the sixth embodiment of the association method of input method of the present invention is proposed, referring to Fig. 7, this implementation In example, step S20 includes:
Step S21 obtains the character quantity of the corresponding preset threshold of the input method type and user inputs character;
In the present embodiment, different character quantity restriction rules can be set according to different input method types, i.e., not Can be different with the corresponding preset threshold of input method type, so, in the input instruction for receiving user, determine the input The input method type for instructing corresponding input method obtains the corresponding preset threshold of current input method type, and obtains user and input word The character quantity of symbol, for example, if the preset threshold of character is 4, if detecting when current input method type is input in Chinese When current input method type is English input, then the preset threshold of character is 5.
The character quantity is compared with the preset threshold, determines whether the character quantity is greater than by step S22 Preset threshold.
In the present embodiment, the character quantity that real-time detection is inputted to user, determines whether character quantity is greater than default threshold Value searches corresponding association's word according to the character content of input if character quantity is greater than preset threshold in association storeroom, and Association's word is sent to interface of input method, is selected for user.
The association method for the input method that the present embodiment proposes, by obtain the corresponding preset threshold of the input method type and Then the character quantity is compared with the preset threshold, determines the character by the character quantity of user inputs character Whether quantity is greater than preset threshold;It realizes and determines different preset thresholds according to different input method types, so as to be to answer For the association of different input method types, the efficiency of association is further increased.
In addition, the embodiment of the present invention also provides a kind of association's device of input method.
Referring to the functional block diagram for association's device first embodiment that Fig. 8, Fig. 8 are input method of the present invention.
Association's device of input method of the present invention is virtual bench, is stored in the storage of association's equipment of input method shown in Fig. 1 In device 1005, for realizing input method association program it is functional: receive user input instruction, determine it is described output refer to Enable corresponding input method type;The character quantity of user inputs character is obtained, and determines whether the character quantity is greater than default threshold Value;If the character quantity is greater than preset threshold, obtains the input and instruct corresponding character content;In the input method class The corresponding association's word of the character content is searched in the corresponding association storeroom of type, and association's word is sent to input method circle Face.
Specifically, in the present embodiment, association's device of the input method includes:
Receiving module 101, the input for receiving user instruct, and determine that the input instructs corresponding input method type;
First obtains module 102, obtains the character quantity of user inputs character, and determine whether the character quantity is greater than Preset threshold;
Second obtains module 103, if the character quantity is greater than preset threshold, obtains the input and instructs corresponding word Accord with content;
Association module 104 searches the corresponding association of the character content in the corresponding association storeroom of the input method type Word, and association's word is sent to interface of input method.
Further, the second acquisition module 103 is also used to:
If the character quantity is greater than preset threshold, detect whether user presses preset key;
If detecting, user presses preset key, obtains the input and instructs corresponding character content.
Further, the association module 104 is also used to:
The input content that user has inputted in text editor is obtained, and semantic analysis is carried out to the input content, To obtain the semantic content after semantic analysis;
Word segmentation processing and part-of-speech tagging processing are carried out to the semantic content, to extract the key in the semantic content Word, and determine the keyword whether only one;
If the keyword only one, search the corresponding tag along sort of the keyword, and according to the tag along sort The semantic environment for determining the semantic content is searched in the corresponding association storeroom of the input method type according to the semantic environment The corresponding association's word of the character content, and association's word is sent to interface of input method.
Further, the association module 104 is also used to:
If the keyword be it is multiple, it is corresponding that the keyword is searched in the corresponding association storeroom of the input method type Target dictionary;
The corresponding association's word of the character content is searched in the target dictionary.
Further, the association module 104 is also used to:
It determines the corresponding each dictionary of each keyword, and is calculated respectively according to the keyword in the number that each dictionary occurs The weight of dictionary comprising keyword it is more the corresponding weight of dictionary it is bigger;
Using the corresponding dictionary of weight maximum in the weight as the target dictionary.
Further, the association module 104 is also used to:
The browsing content in the user preset period in browser interface is obtained, semantic analysis is carried out to the browsing content, The browsing type of the browsing content is determined based on the analysis results, and is searched in the corresponding association storeroom of the input method described clear The corresponding dictionary of type of looking at;
The corresponding association's word of the character content is searched in the corresponding dictionary of the browsing type.
Further, the first acquisition module 102 is also used to:
Obtain the character quantity of the corresponding preset threshold of the input method type and user inputs character;
The character quantity is compared with the preset threshold, determines whether the character quantity is greater than default threshold Value.
Wherein, the function of modules is realized and the association method of above-mentioned input method reality in association's device of above-mentioned input method It is corresponding to apply each step in example, function and realization process no longer repeat one by one here.
In addition, the embodiment of the present invention also provides a kind of readable storage medium storing program for executing.
The association program of input method is stored on readable storage medium storing program for executing of the present invention, wherein the association program quilt of the input method Processor execute when, realize as above-mentioned input method association method the step of.
Wherein, the association program of input method, which is performed realized method, can refer to the association method of input method of the present invention Each embodiment, details are not described herein again.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art The part contributed out can be embodied in the form of software products, which is stored in one as described above In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone, Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of association method of input method, which is characterized in that the association method of the input method the following steps are included:
The input instruction for receiving user, determines that the input instructs corresponding input method type;
The character quantity of user inputs character is obtained, and determines whether the character quantity is greater than preset threshold;
If the character quantity is greater than preset threshold, obtains the input and instruct corresponding character content;
Search the corresponding association's word of the character content in the corresponding association storeroom of the input method type, and by the association Word is sent to interface of input method.
2. the association method of input method as described in claim 1, which is characterized in that preset if the character quantity is greater than Threshold value, then obtaining the step of input instructs corresponding character content includes:
If the character quantity is greater than preset threshold, detect whether user presses preset key;
If detecting, user presses preset key, obtains the input and instructs corresponding character content.
3. the association method of input method as claimed in claim 2, which is characterized in that described corresponding in the input method type The corresponding association's word of the character content, and the step of association's word is sent to interface of input method are searched in association storeroom Include:
The input content that user has inputted in text editor is obtained, and semantic analysis is carried out to the input content, with Semantic content after to semantic analysis;
Word segmentation processing and part-of-speech tagging processing are carried out to the semantic content, to extract the keyword in the semantic content, and Determine the keyword whether only one;
If the keyword only one, search the corresponding tag along sort of the keyword, and determine according to the tag along sort The semantic environment of the semantic content, searched in the corresponding association storeroom of the input method type according to the semantic environment described in The corresponding association's word of character content, and association's word is sent to interface of input method.
4. the association method of input method as claimed in claim 3, which is characterized in that described to be segmented to the semantic content Processing and part-of-speech tagging processing, to extract the keyword in the semantic content, and determine the keyword whether only one The step of after, the association method of the input method further include:
If the keyword be it is multiple, search the corresponding mesh of the keyword in the corresponding association storeroom of the input method type Mark dictionary;
The corresponding association's word of the character content is searched in the target dictionary.
5. the association method of input method as claimed in claim 4, which is characterized in that it include multiple dictionaries in the association storeroom, The described the step of corresponding target dictionary of the keyword is searched in the corresponding association storeroom of the input method type includes:
It determines the corresponding each dictionary of each keyword, and each dictionary is calculated in the number that each dictionary occurs according to the keyword Weight comprising keyword it is more the corresponding weight of dictionary it is bigger;
Using the corresponding dictionary of weight maximum in the weight as the target dictionary.
6. the association method of input method a method as claimed in any one of claims 1 to 5, which is characterized in that described in the input method type The step of corresponding association's word of the character content is searched in corresponding association storeroom include:
The browsing content in the user preset period in browser interface is obtained, semantic analysis is carried out to the browsing content, according to Analysis result determines the browsing type of the browsing content, and the browsing class is searched in the corresponding association storeroom of the input method The corresponding dictionary of type;
The corresponding association's word of the character content is searched in the corresponding dictionary of the browsing type.
7. the association method of input method as described in claim 1, which is characterized in that the character for obtaining user inputs character Quantity, and determine that the step of whether character quantity is greater than preset threshold includes:
Obtain the character quantity of the corresponding preset threshold of the input method type and user inputs character;
The character quantity is compared with the preset threshold, determines whether the character quantity is greater than preset threshold.
8. a kind of association's device of input method, which is characterized in that association's device of the input method includes:
Receiving module, the input for receiving user instruct, and determine that the input instructs corresponding input method type;
First obtains module, and for obtaining the character quantity of user inputs character, and it is pre- to determine whether the character quantity is greater than If threshold value;
Second obtains module, if being greater than preset threshold for the character quantity, obtains the input and instructs corresponding character Content;
Association module, for searching the corresponding associational word of the character content in the corresponding association storeroom of the input method type Language, and association's word is sent to interface of input method.
9. a kind of association's equipment of input method, which is characterized in that association's equipment of the input method include processor, memory, And it is stored in the association program for the input method that can be executed on the memory and by the processor, wherein the input method When association program is executed by the processor, the association method for realizing the input method as described in any one of claims 1 to 7 Step.
10. a kind of readable storage medium storing program for executing, which is characterized in that the association program of input method is stored on the readable storage medium storing program for executing, When wherein the association program of the input method is executed by processor, the input method as described in any one of claims 1 to 7 is realized Association method the step of.
CN201811249709.XA 2018-10-25 2018-10-25 Method, device, equipment and readable storage medium for associating input method Active CN109634436B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201811249709.XA CN109634436B (en) 2018-10-25 2018-10-25 Method, device, equipment and readable storage medium for associating input method
PCT/CN2019/092464 WO2020082766A1 (en) 2018-10-25 2019-06-24 Association method and apparatus for input method, device and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811249709.XA CN109634436B (en) 2018-10-25 2018-10-25 Method, device, equipment and readable storage medium for associating input method

Publications (2)

Publication Number Publication Date
CN109634436A true CN109634436A (en) 2019-04-16
CN109634436B CN109634436B (en) 2023-11-10

Family

ID=66066666

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811249709.XA Active CN109634436B (en) 2018-10-25 2018-10-25 Method, device, equipment and readable storage medium for associating input method

Country Status (2)

Country Link
CN (1) CN109634436B (en)
WO (1) WO2020082766A1 (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110262911A (en) * 2019-06-24 2019-09-20 北京向上一心科技有限公司 Optimization method, optimization device, controller and the storage medium of input frame
WO2020082766A1 (en) * 2018-10-25 2020-04-30 平安科技(深圳)有限公司 Association method and apparatus for input method, device and readable storage medium
CN112015281A (en) * 2019-05-29 2020-12-01 北京搜狗科技发展有限公司 Cloud association method and related device
CN112199215A (en) * 2020-10-13 2021-01-08 恒生电子股份有限公司 Message processing method, device, equipment and storage medium
CN113589950A (en) * 2020-04-30 2021-11-02 北京搜狗科技发展有限公司 Input method, input device and input device
CN114330305A (en) * 2020-09-29 2022-04-12 北京搜狗科技发展有限公司 Entry recalling method and device and entry recalling device
CN114442816A (en) * 2020-11-04 2022-05-06 北京搜狗科技发展有限公司 Association prefetching method and device for association prefetching

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113641254A (en) * 2021-08-16 2021-11-12 未鲲(上海)科技服务有限公司 Intelligent switching method, device and equipment of input method and storage medium
CN113703591A (en) * 2021-08-26 2021-11-26 京东方科技集团股份有限公司 Input control method and device, electronic whiteboard and readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060167872A1 (en) * 2005-01-21 2006-07-27 Prashant Parikh Automatic dynamic contextual data entry completion system
CN104133855A (en) * 2014-07-11 2014-11-05 中安消技术有限公司 Smart association method and device for input method
CN104298429A (en) * 2014-09-25 2015-01-21 北京搜狗科技发展有限公司 Information presentation method based on input and input method system
CN104391588A (en) * 2014-11-07 2015-03-04 腾讯科技(深圳)有限公司 Input prompting method and device
US20150293972A1 (en) * 2012-12-31 2015-10-15 Baidu Online Network Technology (Beijing) Co., Ltd. Method and device used for providing input candidate items corresponding to an input character string
CN105302332A (en) * 2014-07-25 2016-02-03 中国移动通信集团公司 Pinyin input method and realization apparatus thereof
CN106446186A (en) * 2016-09-28 2017-02-22 北京金山安全软件有限公司 Associative word searching method and device and terminal
CN107608532A (en) * 2016-07-11 2018-01-19 北京搜狗科技发展有限公司 A kind of association-feeding method, device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8185841B2 (en) * 2005-05-23 2012-05-22 Nokia Corporation Electronic text input involving a virtual keyboard and word completion functionality on a touch-sensitive display screen
CN101246396B (en) * 2008-03-10 2010-07-21 宇龙计算机通信科技(深圳)有限公司 Input controller and its recognizing association input method
CN101546228B (en) * 2009-05-07 2011-07-20 腾讯科技(深圳)有限公司 Input method and device for realizing English reminding
KR20130037484A (en) * 2011-10-06 2013-04-16 삼성전자주식회사 Method for inputting characters in a touch screen, and an electronic device having a touch screen
CN109634436B (en) * 2018-10-25 2023-11-10 平安科技(深圳)有限公司 Method, device, equipment and readable storage medium for associating input method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060167872A1 (en) * 2005-01-21 2006-07-27 Prashant Parikh Automatic dynamic contextual data entry completion system
US20150293972A1 (en) * 2012-12-31 2015-10-15 Baidu Online Network Technology (Beijing) Co., Ltd. Method and device used for providing input candidate items corresponding to an input character string
CN104133855A (en) * 2014-07-11 2014-11-05 中安消技术有限公司 Smart association method and device for input method
CN105302332A (en) * 2014-07-25 2016-02-03 中国移动通信集团公司 Pinyin input method and realization apparatus thereof
CN104298429A (en) * 2014-09-25 2015-01-21 北京搜狗科技发展有限公司 Information presentation method based on input and input method system
CN104391588A (en) * 2014-11-07 2015-03-04 腾讯科技(深圳)有限公司 Input prompting method and device
CN107608532A (en) * 2016-07-11 2018-01-19 北京搜狗科技发展有限公司 A kind of association-feeding method, device and electronic equipment
CN106446186A (en) * 2016-09-28 2017-02-22 北京金山安全软件有限公司 Associative word searching method and device and terminal

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020082766A1 (en) * 2018-10-25 2020-04-30 平安科技(深圳)有限公司 Association method and apparatus for input method, device and readable storage medium
CN112015281A (en) * 2019-05-29 2020-12-01 北京搜狗科技发展有限公司 Cloud association method and related device
CN110262911A (en) * 2019-06-24 2019-09-20 北京向上一心科技有限公司 Optimization method, optimization device, controller and the storage medium of input frame
CN113589950A (en) * 2020-04-30 2021-11-02 北京搜狗科技发展有限公司 Input method, input device and input device
CN114330305A (en) * 2020-09-29 2022-04-12 北京搜狗科技发展有限公司 Entry recalling method and device and entry recalling device
CN112199215A (en) * 2020-10-13 2021-01-08 恒生电子股份有限公司 Message processing method, device, equipment and storage medium
CN112199215B (en) * 2020-10-13 2024-01-19 恒生电子股份有限公司 Message processing method, device, equipment and storage medium
CN114442816A (en) * 2020-11-04 2022-05-06 北京搜狗科技发展有限公司 Association prefetching method and device for association prefetching
CN114442816B (en) * 2020-11-04 2024-08-30 北京搜狗科技发展有限公司 Association prefetching method and device for association prefetching

Also Published As

Publication number Publication date
WO2020082766A1 (en) 2020-04-30
CN109634436B (en) 2023-11-10

Similar Documents

Publication Publication Date Title
CN109634436A (en) Association method, device, equipment and the readable storage medium storing program for executing of input method
US10691766B2 (en) Analyzing concepts over time
CN113822067A (en) Key information extraction method and device, computer equipment and storage medium
CN110444198B (en) Retrieval method, retrieval device, computer equipment and storage medium
US8051080B2 (en) Contextual ranking of keywords using click data
US10282374B2 (en) System and method for feature recognition and document searching based on feature recognition
CN110888990A (en) Text recommendation method, device, equipment and medium
CN102609427A (en) Public opinion vertical search analysis system and method
CN112749328B (en) Searching method, searching device and computer equipment
CN102279890A (en) Sentiment word extracting and collecting method based on micro blog
CN111539212A (en) Text information processing method and device, storage medium and electronic equipment
CN110069724A (en) The quick jump method of application program, device, electronic equipment and storage medium
CN102456054A (en) Searching method and system
CN111160007B (en) Search method and device based on BERT language model, computer equipment and storage medium
CN112699295A (en) Webpage content recommendation method and device and computer readable storage medium
CN113392195B (en) Public opinion monitoring method and device, electronic equipment and storage medium
CN106897289B (en) Information search optimization method and device
US20220365956A1 (en) Method and apparatus for generating patent summary information, and electronic device and medium
CN113806483A (en) Data processing method and device, electronic equipment and computer program product
CN113822038A (en) Abstract generation method and related device
Cao et al. Extraction of informative blocks from web pages
CN116992010A (en) Content distribution and interaction method and system based on multi-mode large model
CN113220824B (en) Data retrieval method, device, equipment and storage medium
CN102375835B (en) A kind of information search system and method
CN112445907A (en) Text emotion classification method, device and equipment and storage medium

Legal Events

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