CN105867652B - A kind of strategy-generating method and device based on input method - Google Patents
A kind of strategy-generating method and device based on input method Download PDFInfo
- Publication number
- CN105867652B CN105867652B CN201610285291.2A CN201610285291A CN105867652B CN 105867652 B CN105867652 B CN 105867652B CN 201610285291 A CN201610285291 A CN 201610285291A CN 105867652 B CN105867652 B CN 105867652B
- Authority
- CN
- China
- Prior art keywords
- input method
- strategy
- skin
- information
- factor
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/02—Input arrangements using manually operated switches, e.g. using keyboards or dials
- G06F3/023—Arrangements 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/0233—Character input methods
Abstract
This application discloses strategy-generating methods and device based on input method.One specific implementation mode of the method includes:Receive the request that user obtains input method skin;Input method skin information is parsed, extraction and the matched factor set of the input method skin information;Based on the matching relationship between the factor set and each input method strategy being preset in input method application, the strategy set that at least one input method strategy generates input method is chosen;Based on the strategy set, new input method strategy is generated.The embodiment enriches the policy content of input method.
Description
Technical field
This application involves field of computer technology, and in particular to the strategy of Internet technical field more particularly to input method
Generation method and device.
Background technology
Input method strategy is that input method applies the individual character and demand for being directed to user, formulation to change with the hobby of user
Various input patterns and input method dictionary, such as with spelling, simplicity, hand-written related sequencing model, input error correction mode, use
The individual character dictionary at family, dictionary related with dialect and dictionary related with industry etc., user can exist according to the hobby of oneself
These strategies are configured in input method application, demand is inputted to meet the individual character of oneself.
However, existing strategy is typically the fancy setting according to most users, while user being needed to pass through oneself
Manually mode is set, and tactful content is relatively simple, cannot be satisfied the comprehensive hobby of user.
Invention content
The purpose of the application is to propose a kind of strategy-generating method and device based on input method, to solve background above
The technical issues of technology segment is mentioned.
In a first aspect, this application provides a kind of strategy-generating method of input method, the method includes:User is received to obtain
Take the request of input method skin;Input method skin information is parsed, extraction with the input method skin information it is matched because
Subclass;Based on the matching relationship between the factor set and each input method strategy being preset in input method application, choosing
At least one input method strategy is taken to generate the strategy set of input method;Based on the strategy set, new input method strategy is generated.
In some embodiments, described that input method skin information is parsed, extraction and the input method skin information
Matched factor set, including:Content analysis is carried out to the input method skin information, extracts at least one factor, wherein institute
It includes at least one of following to state strategy:Input method skin background color, input method skin theme word, input method skin picture;
Based at least one factor, generator subset closes.
In some embodiments, described that content analysis is carried out to the input method skin information, at least one factor is extracted,
Including:Based on the input method skin information, and it is preset at the second input method skin of at least one of input method skin information library
The information of skin carries out similarity calculation, wherein the second input method skin has the matched factor;Based on similarity meter
It calculates as a result, determine similarity threshold, and extracts the factor of the second input method skin of the similarity threshold or more, as
The factor of the input method skin.
In some embodiments, described that input method skin information is parsed, extraction and the input method skin information
Matched factor set, including:Obtain user's input information of input method application record;User's input information is divided
Keyword is extracted in analysis, and the label word preset with input method matches, and generates the label information list of user;Believe from the label
At least one label information is chosen in breath list to match with the input method skin information, generation is matched with input method skin information
Factor set.
In some embodiments, described based on the factor set and each input method plan being preset in input method application
Matching relationship between slightly chooses the strategy set that at least one input method strategy generates input method, including:To the factor set
At least one strategy of each factor matching in conjunction, wherein described tactful from the input method strategy being preset in input method application
It is obtained in library;Based at least one strategy, the strategy set of input method is generated.
In some embodiments, described to be based on the strategy set, new input method strategy is generated, including:Based on described
The factor of input method skin and every tactful matching relationship in the strategy set, are every strategy setting weighted value;According to
Every tactful weighted value in the strategy set, the content tactful to described every are ranked up, and generate new input method plan
Slightly.
In some embodiments, the input method strategy includes:Ordering strategy related with input mode and territorial dialect
Related dictionary strategy, dictionary strategy related with input error correction, specific dictionary strategy.
Second aspect, this application provides a kind of strategy generating device of input method, described device includes:Receiving unit,
It is configured to receive the request that user obtains input method skin;Resolution unit is configured to solve input method skin information
Analysis, extraction and the matched factor set of the input method skin information;Tactful selection unit is configured to be based on the factor set
The matching relationship between each input method strategy in input method application is closed and be preset at, the life of at least one input method strategy is chosen
At the strategy set of input method;Generation unit is configured to be based on the strategy set, generates new input method strategy.
In some embodiments, the resolution unit, including:Analysis module is configured to believe the input method skin
Breath carries out content analysis, extracts at least one factor, wherein the strategy includes at least one of following:Input method skin background
Color, input method skin theme word, input method skin picture;Generation module is configured to be based at least one factor,
Generator subset closes.
In some embodiments, the analysis module configuration is further used for:It is and pre- based on the input method skin information
The information set in the second input method skin of at least one of input method skin information library carries out similarity calculation, wherein described
Second input method skin has the matched factor;Based on similarity calculation as a result, determining similarity threshold, and described in extraction
The factor of the second input method skin more than similarity threshold, the factor as the input method skin.
In some embodiments, the resolution unit, including:Data obtaining module is configured to obtain input method application
User's input information of record;Extraction module is configured to analyze user's input information, extracts keyword, and
The label word preset with input method matches, and generates the label information list of user;Module is chosen, is configured to believe from the label
At least one label information is chosen in breath list to match with the input method skin information, generation is matched with input method skin information
Factor set.
In some embodiments, the tactful selection unit is further configured to:To each in the factor set
A at least one strategy of factor matching, wherein the strategy is obtained from the input method strategy library being preset in input method application;
Based at least one strategy, the strategy set of input method is generated.
In some embodiments, the generation unit is further configured to:The factor based on the input method skin with
Every tactful matching relationship in the strategy set is every strategy setting weighted value;According to every in the strategy set
The weighted value of strategy, the content tactful to described every are ranked up, and generate new input method strategy.
In some embodiments, the input method strategy includes:Ordering strategy related with input mode and territorial dialect
Related dictionary strategy, dictionary strategy related with input error correction, specific dictionary strategy.
Strategy-generating method and device provided by the present application based on input method, pass through the skin to user's acquisition request
Information is parsed so as to extraction factor set, each input method for being then based on factor set and being preset in input method application
Matching relationship between strategy chooses at least one strategy, is finally based on the weighted value that every tactful in strategy set and determines input
The new strategy of method enriches the content of input method to efficiently utilize the data of input method.
Description of the drawings
By reading a detailed description of non-restrictive embodiments in the light of the attached drawings below, the application's is other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that this application can be applied to exemplary system architecture figures therein;
Fig. 2 is the flow chart according to one embodiment of the strategy-generating method based on input method of the application;
Fig. 3 is the schematic diagram according to an application scenarios of the strategy-generating method based on input method of the application;
Fig. 4 is the flow chart according to another embodiment of the strategy-generating method based on input method of the application;
Fig. 5 is the structural schematic diagram according to one embodiment of the strategy generating device based on input method of the application;
Fig. 6 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present application
Figure.
Specific implementation mode
The application is described in further detail with reference to the accompanying drawings and examples.It is understood that this place is retouched
The specific embodiment stated is used only for explaining related invention, rather than the restriction to the invention.It also should be noted that in order to
Convenient for description, is illustrated only in attached drawing and invent relevant part with related.
It should be noted that in the absence of conflict, the features in the embodiments and the embodiments of the present application can phase
Mutually combination.The application is described in detail below with reference to the accompanying drawings and in conjunction with the embodiments.
Fig. 1 shows the implementation that can apply the strategy-generating method or strategy generating device based on input method of the application
The exemplary system architecture 100 of example.
As shown in Figure 1, system architecture 100 may include terminal device 101,102,103, network 104 and server 105.
Network 104 between terminal device 101,102,103 and server 105 provide communication link medium.Network 104 can be with
Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be interacted by network 104 with server 105 with using terminal equipment 101,102,103, to receive or send out
Send message etc..Various telecommunication customer end applications, such as input method application, text can be installed on terminal device 101,102,103
Shelves management-type application, searching class application, instant messaging tools, mailbox client, social platform software etc., are answered by means of input method
With user can carry out the various applications on terminal device tactful input.
Terminal device 101,102,103 can be the various electronic equipments with support input method application, including but unlimited
In smart mobile phone, tablet computer, E-book reader, MP3 player (Moving Picture Experts Group Audio
Layer III, dynamic image expert's compression standard audio level 3), MP4 (Moving Picture Experts Group
Audio Layer IV, dynamic image expert's compression standard audio level 4) player, pocket computer on knee and desk-top meter
Calculation machine etc..
Server 105 can be to provide the server of various services, such as to the input on terminal device 101,102,103
The database server or Cloud Server that the offers such as method application, the application of file management class are supported.Server can be to receiving
Data such as are stored, are analyzed at the processing, and handling result is fed back to terminal device.
It should be noted that the strategy-generating method based on input method that the embodiment of the present application is provided is generally by server
105 execute, and correspondingly, the strategy generating device based on input method is generally positioned in server 105.
It should be understood that the number of the terminal device, network and server in Fig. 1 is only schematical.According to realization need
It wants, can have any number of terminal device, network and server.
With continued reference to Fig. 2, one embodiment of the strategy-generating method based on input method according to the application is shown
Flow 200.The strategy-generating method based on input method, includes the following steps:
Step 201, the request that user obtains input method skin is received.
In the present embodiment, the electronic equipment of strategy-generating method operation thereon based on input method is (such as shown in Fig. 1
Server) input of information input can be carried out using it to user by wired connection mode or radio connection
Method terminal receives the request for obtaining input method skin, wherein above-mentioned input method skin is user according to hobby, the style etc. of oneself
The background patterns based on information input of setting.It should be pointed out that above-mentioned radio connection can include but is not limited to 3G/
4G connections, WiFi connections, bluetooth connection, WiMAX connections, Zigbee connections, UWB (ultra wideband) connections, Yi Jiqi
The radio connection that he develops currently known or future.
In general, user obtains input method skin using the input method application installed in terminal, at this moment, user can utilize
Preset input method skin initiates to obtain to input method application server the request of input method skin in input method application, simultaneously
Picture, animation that user can also be collected using local device etc. is initiated as input method skin to input method application server
Obtain the request of input method skin.May include bmp formats, jpg formats, tiff lattice in the picture of above-mentioned local device collection
Formula, gif formats, pcx formats, tga formats, exif formats, fpx formats, the picture of svg formats, animation or other futures will
Picture, animation of the format of exploitation etc., as long as the file of this format obtains the service of input method application as input method skin
The support of device.
Step 202, input method skin information is parsed, extraction and the matched factor set of input method skin information.
In the present embodiment, based on the input method skin obtained in step 201, above-mentioned electronic equipment (such as it is shown in FIG. 1
Server) the corresponding information content of above-mentioned input method skin can be obtained first;Recycle various analysis means to above-mentioned later
Input method skin information content is analyzed, to extract one or more factors, wherein the above-mentioned factor is to influence input method
The elements such as related with individual subscriber the attribute information each element, such as the interest of user, age, occupation of skin information.
In some optional realization methods of the present embodiment, input method skin information includes but not limited to the back of the body of input method
Scape color, theme word, picture, animation can also be the analysis mode of above-mentioned input method skin information the side of content analysis
Formula is extracted the information such as color, theme word, picture that above-mentioned input method skin includes by content analysis, and with it is pre-
The skin set in input method skin information library carries out similarity calculation, based on similarity calculation as a result, defeated to be preset at
Enter the skin in method skin information library the factor extraction be placed in above-mentioned input method skin, as above-mentioned input method skin because
Son, wherein prestore multiple skins in input method application, and at least one factor is matched to each skin.As an example,
User issues the request for obtaining the input method skin that one has pink cartoon pattern, based on the information of the input method skin,
Similarity calculation, institute of the extraction similarity 80% or more are carried out with the multiple input method skin being preset in input method skin library
The factor of some input method skin, for example, the factor of extraction is " women ", " after 90s ", " lovely ", so that it is determined that should have pink
The factor of the input method skin of color cartoon pattern is " women ", " after 90s ", " lovely ".
It should be noted that the various methods of the above analysis mode are the known skills studied and applied extensively at present
Art, details are not described herein.
Step 203, it is closed based on the matching between factor set and each input method strategy being preset in input method application
System chooses the strategy set that at least one input method strategy generates input method.
In the present embodiment, it can be deposited in advance on the electronic equipment of strategy-generating method operation thereon based on input method
A plurality of strategy is stored up, these strategies can be used for matching with the factor of above-mentioned input method skin, generate above-mentioned input method application
Strategy set.
In some optional realization methods of the present embodiment, above-mentioned electronic equipment can by above-mentioned factor set with it is each defeated
Enter strategy to be matched one by one respectively, and the number of the factor included by the policy content of every input method determines this
The matching relationship of input method strategy and the factor.For example, if in the content of certain input method strategy including above-mentioned factor set
In all factors, then can determine that this input method strategy and factor set have the relationship exactly matched;And if certain
Include the partial factors in above-mentioned input method factor set in the content of input method strategy, then can determine this input method plan
Slightly there are part matching relationships with factor set;If the content of certain input method strategy does not include appointing in above-mentioned factor set
What factor, then can determining this input method strategy, there are mismatch relationships with factor set.
Step 204, it is based on strategy set, generates new input method strategy.
In the present embodiment, the content of each item strategy in above-mentioned strategy set can be combined by above-mentioned electronic equipment,
Generate new input method strategy.
In some optional realization methods of the present embodiment, above-mentioned electronic equipment can be by each in above-mentioned strategy set
Strategy and the matching relationship of the factor carry out weight setting, and generate new policy content.As an example, for including the above-mentioned factor
The strategy setting weighted value of all factors is 10 in set, and content all in the strategy is participated in the new input method plan of generation
Slightly content;It is 6 for the strategy setting weighted value comprising the factor of more than half in above-mentioned factor set, and by institute in the strategy
Some contents participate in generating new input method strategy content;For including the strategy of the less than half of factor in above-mentioned factor set
It is 3 that weighted value, which is arranged, and will participate in generating new input method strategy content with the factor-related content.Then, according to weight
Value is ranked up the content of above-mentioned strategy, and generates a new input method strategy.
It is one according to the application scenarios of the strategy-generating method based on input method of the present embodiment with continued reference to Fig. 3, Fig. 3
A schematic diagram.As shown in the label 301 in Fig. 3, user initiates to obtain the request of an input method skin first, for example, this is defeated
It is the skin with pink colour cartoon pattern background to enter method skin, and the server of input method application is supported to receive the request.It connects
It, as shown in label 302, server parses above-mentioned skin information, and it is " pink " and " card to extract above-mentioned skin information
Logical pattern ".By being preset at there is the skin of similar " pink " and " cartoon pattern " information to choose in input method skin library,
And similarity calculation is carried out with the input method skin obtained before, setting similarity threshold is 80%, and extracts similarity and exist
The factor of 80% or more preset skin, such as the factor are determined as " women " and " after 90s ", are carried from the preset policy library of input method
Matched strategy is taken, as shown in label 303, for example, the factor " women " matches spelling input policing, the factor " after 90s "
With individual character dictionary strategy after 90s.Finally, as shown in label 304, above-mentioned spelling input policing and individual character dictionary plan after 90s are based on
Content slightly generates a new input method strategy, while new input method strategy and above-mentioned input method skin being sent together
To user.
The method that above-described embodiment of the application provides is preset by applying the content of input method skin and input method
Strategy is associated, and the data of input method are effectively utilized, enrich the content of input method.
With further reference to Fig. 4, it illustrates the flows of another embodiment of the strategy-generating method based on input method
400.The flow 400 of the strategy-generating method, includes the following steps:
Step 401 receives the request that user obtains input method skin.
In the present embodiment, the electronic equipment of strategy-generating method operation thereon based on input method is (such as shown in Fig. 1
Server) input of information input can be carried out using it to user by wired connection mode or radio connection
Method terminal receives the request for obtaining input method skin.
Step 402, user's input information of input method application record is obtained.
In the present embodiment, electronic equipment (such as terminal device shown in FIG. 1 or server) used by a user can be with
From the user's input information for locally or remotely obtaining input method application record used by a user.Specifically, when above-mentioned
When electronic equipment is exactly the terminal device that input method application is mounted thereon, directly above-mentioned user's input can be obtained from local
Information;It, can be by wired connection mode or radio connection from installation and when above-mentioned electronic equipment is server
The terminal device of input method application obtains above-mentioned user input information.Above-mentioned radio connection includes but not limited to 3G/4G
Connection, WiFi connections, bluetooth connection, WiMAX connections, Zigbee connections, UWB (ultra wideband) connections and other
Currently known or exploitation in the future radio connection.
At least one of herein, above-mentioned user's input information can include but is not limited to, below:Text information, such as with
How family " removes KTV using the word content of input method application input”;Pictorial information, such as can include but is not limited to, user
Use the various icons (smiling face's icon, icon of shaking hands etc.) of input method application input, various images (such as personage, landscape
Photo etc.);The voice/audio segment etc. of input method application input is used with voice strategy, such as user.
Step 403, user's input information is analyzed, extracts keyword, and the label word preset with input method matches,
Generate the label information list of user;
In the present embodiment, semantic analysis is carried out to above-mentioned information input by user, extracts keyword, such as the text of input
This strategy is " how going happy paddy ", and the keyword of extraction is " happy paddy ";If input is language message, language is believed
Breath carries out semantic analysis, is converted to text message, and extract keyword;If input is pictorial information, to pictorial information
It is analyzed, extracts keyword related with picture, such as the picture of input is the picture of a pet dog, then extraction and picture
Information-related keyword is " pet dog ".Based on the keyword extracted, with the label word that is preset in input method application into
Row comparison, and keyword is assigned with tag attributes, such as the tag attributes of " happy paddy " are " after 80s ", the label category of " pet dog "
Property be " pet fan ".Label word with tag attributes is generated to the label information list of user.
Step 404, at least one label information is chosen from label information list to match with input method skin information, generate
With the matched factor set of input method skin information.
In the present embodiment, be based on step 403, to above-mentioned input method skin extraction label word, and with above-mentioned label information
Label information matching in list.As an example, user initiates to obtain the input method skin azury with pet dog,
The label word of the skin is " pet dog " and " light blue ", based on the label information in the label word, with label information list
Match, wherein " pet dog " matching label information " pet fan ", " light blue " matching label information " women " will " pet love
Good person " and " women " factor of two label words as the input method skin, the factor set of generation input method skin.
Step 405, it is closed based on the matching between factor set and each input method strategy being preset in input method application
System chooses the strategy set that at least one input method strategy generates input method.
In the present embodiment, the specific processing of step 405 can be with step 203 in 2 corresponding embodiment of reference chart, here no longer
It repeats.
Step 406, it is based on strategy set, generates new input method strategy..
In the present embodiment, the content of each item strategy in above-mentioned strategy set can be combined by above-mentioned electronic equipment,
Generate new input method strategy..
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, the flow of the strategy-generating method in the present embodiment
After 400 highlight the input information analysis to user, user tag information list is established, and extract by searching for the mode of list
The step of going out factor set matched with input method skin.The scheme of the present embodiment description can be more accurately directed to as a result,
The hobby of user determines the strategy of corresponding input method.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides one kind being based on input method
Strategy generating device one embodiment, the device embodiment is corresponding with embodiment of the method shown in Fig. 2, and the device is specific
It can be applied in various electronic equipments.
As shown in figure 5, the strategy generating device 500 based on input method described in the present embodiment includes:Receiving unit 501,
Resolution unit 502, tactful selection unit 503 and generation unit 504.Wherein, receiving unit 501 is configured to receive user's acquisition
The request of input method skin;Resolution unit 502 is configured to parse input method skin information, extraction and input method skin
The factor set of information matches;Tactful selection unit 503 is configured to based on factor set and is preset in input method application
Matching relationship between each input method strategy chooses the strategy set that at least one input method strategy generates input method;It generates
Unit 504 is configured to be based on input method skin information and strategy set, generates new input method strategy.
In the present embodiment, the receiving unit 501 of strategy generating device 500 can be by wired connection mode or wireless
Connection type carries out the request that the input method terminal of information input receives acquisition input method skin to user using it.
In the present embodiment, the input method skin information obtained based on receiving unit 501, above-mentioned resolution unit 502 can be with
The information content of above-mentioned input method skin is obtained first;Content of the various analysis means to above-mentioned input method skin is recycled later
It is analyzed, to extract one or more factors.
In the present embodiment, a plurality of strategy can be prestored on strategy generating device 500, these strategies can be used for
The factor of above-mentioned input method skin matches, and generates the strategy set of above-mentioned input method application.Strategy generating device 500 as a result,
Tactful selection unit 503 above-mentioned factor set can be matched one by one respectively with each input policing, and it is defeated according to every
Enter the number of the factor included by the policy content of method to determine the matching relationship of this input method strategy and the factor.According to matching
Relationship, above-mentioned strategy selection unit 503 can choose at least one input method strategy from a plurality of input method strategy, and thus give birth to
The strategy set applied at input method.
In the present embodiment, every strategy in above-mentioned strategy set can be combined by above-mentioned generation unit 504, raw
The input method strategy of Cheng Xin.
In some optional realization methods of the present embodiment, the resolution unit 502 into one of above-mentioned strategy generating device 500
Step includes analysis module (not shown), is configured to the progress such as the background color to input method skin, theme word, skin picture
Analysis, extract input method skin the factor, can be also used for above-mentioned input method skin with it is defeated in input method skin information library
Enter method skin and carry out similarity calculation, is based on result of calculation, the factor in extraction input method skin information library is as above-mentioned input
The factor of method skin;Generation module (not shown) is configured to the factor of the input method skin for extraction, generator subset
It closes.
In some optional realization methods of the present embodiment, the tactful selection unit of above-mentioned strategy generating device 500
502 configuration be further used for in above-mentioned factor set each factor matching at least one strategy, wherein it is above-mentioned strategy from
It is obtained in the input method strategy library being preset in input method application;Based on above-mentioned at least one strategy, the strategy of input method is generated
Set.Wherein strategy includes at least one of following:Ordering strategy related with input mode, dictionary plan related with territorial dialect
Slightly, dictionary strategy related with input error correction, specific dictionary strategy.
Below with reference to Fig. 6, it illustrates the calculating suitable for terminal device or server for realizing the embodiment of the present application
The structural schematic diagram of machine system 600.
As shown in fig. 6, computer system 600 includes central processing unit (CPU) 601, it can be read-only according to being stored in
Program in memory (ROM) 602 or be loaded into the program in random access storage device (RAM) 603 from storage section 608 and
Execute various actions appropriate and processing.In RAM 603, also it is stored with system 600 and operates required various programs and data.
CPU 601, ROM 602 and RAM 603 are connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to always
Line 604.
It is connected to I/O interfaces 605 with lower component:Importation 606 including keyboard, mouse etc.;It is penetrated including such as cathode
The output par, c 606 of spool (CRT), liquid crystal display (LCD) etc. and loud speaker etc.;Storage section 608 including hard disk etc.;
And the communications portion 609 of the network interface card including LAN card, modem etc..Communications portion 609 via such as because
The network of spy's net executes communication process.Driver 610 is also according to needing to be connected to I/O interfaces 605.Detachable media 611, such as
Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on driver 610, as needed in order to be read from thereon
Computer program be mounted into storage section 608 as needed.
Particularly, in accordance with an embodiment of the present disclosure, it may be implemented as computer above with reference to the process of flow chart description
Software program.For example, embodiment of the disclosure includes a kind of computer program product comprising be tangibly embodied in machine readable
Computer program on medium, the computer program include the program code for method shown in execution flow chart.At this
In the embodiment of sample, which can be downloaded and installed by communications portion 609 from network, and/or from removable
Medium 611 is unloaded to be mounted.
Flow chart in attached drawing and block diagram, it is illustrated that according to the system of the various embodiments of the application, method and computer journey
The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation
A part for a part for one module, program segment, or code of table, the module, program segment, or code includes one or more
Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box
The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical
On can be basically executed in parallel, they can also be executed in the opposite order sometimes, this is depended on the functions involved.Also it wants
It is noted that the combination of each box in block diagram and or flow chart and the box in block diagram and or flow chart, Ke Yiyong
The dedicated hardware based system of defined functions or operations is executed to realize, or can be referred to specialized hardware and computer
The combination of order is realized.
Being described in unit involved in the embodiment of the present application can be realized by way of software, can also be by hard
The mode of part is realized.Described unit can also be arranged in the processor, for example, can be described as:A kind of processor packet
Include receiving unit, resolution unit, tactful selection unit and generation unit.Wherein, the title of these units is under certain conditions simultaneously
The restriction to the unit itself is not constituted, for example, receiving unit is also described as " receiving user and obtaining input method skin
The unit of request ".
As on the other hand, present invention also provides a kind of nonvolatile computer storage media, the non-volatile calculating
Machine storage medium can be nonvolatile computer storage media included in device described in above-described embodiment;Can also be
Individualism, without the nonvolatile computer storage media in supplying terminal.Above-mentioned nonvolatile computer storage media is deposited
One or more program is contained, when one or more of programs are executed by an equipment so that the equipment:It receives
User obtains the request of input method skin;Input method skin information is parsed, extraction and the input method skin information
The factor set matched;It is closed based on the matching between the factor set and each input method strategy being preset in input method application
System chooses the strategy set that at least one input method strategy generates input method;Based on the strategy set, new input method is generated
Strategy.
Above description is only the preferred embodiment of the application and the explanation to institute's application technology principle.People in the art
Member should be appreciated that invention scope involved in the application, however it is not limited to technology made of the specific combination of above-mentioned technical characteristic
Scheme, while should also cover in the case where not departing from the inventive concept, it is carried out by above-mentioned technical characteristic or its equivalent feature
Other technical solutions of arbitrary combination and formation.Such as features described above has similar work(with (but not limited to) disclosed herein
Can technical characteristic replaced mutually and the technical solution that is formed.
Claims (14)
1. a kind of strategy-generating method based on input method, which is characterized in that the method includes:
Receive the request that user obtains input method skin;
Input method skin information is parsed, extraction and the matched factor set of the input method skin information;
Based on the matching relationship between the factor set and each input method strategy being preset in input method application, choose extremely
A few input method strategy generates the strategy set of input method;
Based on the strategy set, new input method strategy is generated.
2. according to the method described in claim 1, it is characterized in that, described parse input method skin information, extraction with
The matched factor set of input method skin information, including:
Content analysis is carried out to the input method skin information, extracts at least one factor, wherein the input method skin information
Including at least one of following:Input method skin background color, input method skin theme word, input method skin picture;
Based at least one factor, generator subset closes.
3. according to the method described in claim 2, it is characterized in that, described carry out content point to the input method skin information
Analysis, extracts at least one factor, including:
Based on the input method skin information, and it is preset at the second input method skin of at least one of input method skin information library
Information carry out similarity calculation, wherein the second input method skin have the matched factor;
Based on similarity calculation as a result, determining similarity threshold, and extract second input of the similarity threshold or more
The factor of method skin, the factor as the input method skin.
4. method according to claim 1 or 2, which is characterized in that described to be parsed to input method skin information, extraction
With the matched factor set of the input method skin information, including:
Obtain user's input information of input method application record;
User's input information is analyzed, extracts keyword, and the label word preset with input method matches, generates user
Label information list;
At least one label information is chosen from the label information list to match with the input method skin information, generate with it is defeated
Enter the matched factor set of method skin information.
5. according to the method described in claim 1, it is characterized in that, described answered based on the factor set with input method is preset at
The matching relationship between each input method strategy in chooses the set of strategies that at least one input method strategy generates input method
It closes, including:
To at least one strategy of each factor matching in the factor set, wherein the strategy is answered from being preset at input method
It is obtained in input method strategy library in;
Based at least one strategy, the strategy set of input method is generated.
6. according to the method described in claim 1, it is characterized in that, it is described be based on the strategy set, generate new input method
Strategy, including:
The factor based on the input method skin and every tactful matching relationship in the strategy set, are every strategy setting
Weighted value;
According to every tactful weighted value in the strategy set, the content tactful to described every is ranked up, and is generated new
Input method strategy.
7. according to the method described in claim 5, it is characterized in that, the input method strategy includes:
Ordering strategy related with input mode, dictionary strategy related with territorial dialect, dictionary plan related with input error correction
Slightly, specific dictionary strategy.
8. a kind of strategy generating device based on input method, which is characterized in that described device includes:
Receiving unit is configured to receive the request that user obtains input method skin;
Resolution unit is configured to parse input method skin information, and extraction is matched with the input method skin information
Factor set;
Tactful selection unit is configured to based on the factor set and each input method strategy being preset in input method application
Between matching relationship, choose at least one input method strategy generate input method strategy set;
Generation unit is configured to be based on the strategy set, generates new input method strategy.
9. device according to claim 8, which is characterized in that the resolution unit, including:
Analysis module is configured to carry out content analysis to the input method skin information, extracts at least one factor, wherein
The input method skin information includes at least one of following:Input method skin background color, input method skin theme word, input
Method skin picture;
Generation module is configured to be based at least one factor, and generator subset closes.
10. device according to claim 9, which is characterized in that the analysis module configuration is further used for:
Based on the input method skin information, and it is preset at the second input method skin of at least one of input method skin information library
Information carry out similarity calculation, wherein the second input method skin have the matched factor;
Based on similarity calculation as a result, determining similarity threshold, and extract second input of the similarity threshold or more
The factor of method skin, the factor as the input method skin.
11. device according to claim 8 or claim 9, which is characterized in that the resolution unit, including:
Data obtaining module is configured to obtain user's input information of input method application record;
Extraction module is configured to analyze user's input information, extracts keyword, and the mark preset with input method
Word matching is signed, the label information list of user is generated;
Module is chosen, is configured to choose at least one label information and the input method skin from the label information list
Information matches generate and the matched factor set of input method skin information.
12. device according to claim 8, which is characterized in that the strategy selection unit is further configured to:
To at least one strategy of each factor matching in the factor set, wherein the strategy is answered from being preset at input method
It is obtained in input method strategy library in;
Based at least one strategy, the strategy set of input method is generated.
13. device according to claim 8, which is characterized in that the generation unit is further configured to:
The factor based on the input method skin and every tactful matching relationship in the strategy set, are every strategy setting
Weighted value;
According to every tactful weighted value in the strategy set, the content tactful to described every is ranked up, and is generated new
Input method strategy.
14. device according to claim 12, which is characterized in that the input method strategy includes:
Ordering strategy related with input mode, dictionary strategy related with territorial dialect, dictionary plan related with input error correction
Slightly, specific dictionary strategy.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610285291.2A CN105867652B (en) | 2016-04-29 | 2016-04-29 | A kind of strategy-generating method and device based on input method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610285291.2A CN105867652B (en) | 2016-04-29 | 2016-04-29 | A kind of strategy-generating method and device based on input method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105867652A CN105867652A (en) | 2016-08-17 |
CN105867652B true CN105867652B (en) | 2018-10-19 |
Family
ID=56628991
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610285291.2A Active CN105867652B (en) | 2016-04-29 | 2016-04-29 | A kind of strategy-generating method and device based on input method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105867652B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112243144B (en) * | 2020-10-15 | 2023-02-17 | 科大讯飞股份有限公司 | Input method barrage display method, device, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101866282A (en) * | 2009-04-20 | 2010-10-20 | 北京搜狗科技发展有限公司 | Method and device for realizing dynamic skin of input method |
CN102375746A (en) * | 2010-08-11 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Method and device for enabling input method to self-adapt to application program |
CN103473036A (en) * | 2012-06-08 | 2013-12-25 | 深圳市世纪光速信息技术有限公司 | Input method skin push method and system |
CN103870553A (en) * | 2014-03-03 | 2014-06-18 | 百度在线网络技术(北京)有限公司 | Input resource pushing method and system |
-
2016
- 2016-04-29 CN CN201610285291.2A patent/CN105867652B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101866282A (en) * | 2009-04-20 | 2010-10-20 | 北京搜狗科技发展有限公司 | Method and device for realizing dynamic skin of input method |
CN102375746A (en) * | 2010-08-11 | 2012-03-14 | 腾讯科技(深圳)有限公司 | Method and device for enabling input method to self-adapt to application program |
CN103473036A (en) * | 2012-06-08 | 2013-12-25 | 深圳市世纪光速信息技术有限公司 | Input method skin push method and system |
CN103870553A (en) * | 2014-03-03 | 2014-06-18 | 百度在线网络技术(北京)有限公司 | Input resource pushing method and system |
Also Published As
Publication number | Publication date |
---|---|
CN105867652A (en) | 2016-08-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105654950B (en) | Adaptive voice feedback method and device | |
CN106227786B (en) | Method and apparatus for pushed information | |
CN105426508B (en) | Webpage generating method and device | |
CN109145204A (en) | The generation of portrait label and application method and system | |
CN105721629B (en) | User identifier matching process and device | |
CN108932220A (en) | article generation method and device | |
CN106845999A (en) | Risk subscribers recognition methods, device and server | |
CN105117491B (en) | Page push method and apparatus | |
CN108228906B (en) | Method and apparatus for generating information | |
CN107818143A (en) | A kind of page configuration, generation method and device | |
WO2019114333A1 (en) | Advertisement delivery method and platform | |
CN104281656B (en) | The method and apparatus of label information are added in the application | |
CN109299477A (en) | Method and apparatus for generating text header | |
CN107169002A (en) | A kind of personalized interface method for pushing and device recognized based on face | |
CN109325121A (en) | Method and apparatus for determining the keyword of text | |
CN110084658A (en) | The matched method and apparatus of article | |
CN109862100A (en) | Method and apparatus for pushed information | |
CN106326486B (en) | The method and apparatus of pushed information based on artificial intelligence | |
WO2019061997A1 (en) | Method for enriching wechat customer tags, electronic device and storage medium | |
CN110059309A (en) | The generation method and device of information object title | |
CN108268450A (en) | For generating the method and apparatus of information | |
CN109214501A (en) | The method and apparatus of information for identification | |
US11442980B2 (en) | System and method for photo scene searching | |
CN108573054A (en) | Method and apparatus for pushed information | |
CN105929979B (en) | Long sentence input method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |