CN106681598A - Information input method and device - Google Patents
Information input method and device Download PDFInfo
- Publication number
- CN106681598A CN106681598A CN201710024731.3A CN201710024731A CN106681598A CN 106681598 A CN106681598 A CN 106681598A CN 201710024731 A CN201710024731 A CN 201710024731A CN 106681598 A CN106681598 A CN 106681598A
- Authority
- CN
- China
- Prior art keywords
- search
- key word
- user
- demand
- described information
- 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
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/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/10—File systems; File servers
- G06F16/14—Details of searching files based on file metadata
- G06F16/148—File search processing
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/30—Semantic analysis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Human Computer Interaction (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Library & Information Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- User Interface Of Digital Computer (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses an information input method and device. An embodiment of the method includes: responding to detect information input by a user by using an input method, and determining whether the user has a search need or not according to the information; responding to determine that the user has the search need, and determining a search intention keyword corresponding to the information; displaying a search interface element which includes the search intention keyword; responding to detect preset operation of the user to the search interface element, and searching according to the search intention keyword to acquire a search result; displaying the search result. According to the embodiment, the search interface element is displayed only when the user has the search need, interference to the input process of the user is reduced, and information input efficiency of the user is improved.
Description
Technical field
The application is related to field of computer technology, and in particular to Internet technical field, more particularly to data inputting method
And device.
Background technology
Information input is one of important means that user interacts with electronic equipment.From initial input through keyboard intelligence up till now
Energy terminal screen input, people become increasingly dependent on information input method and interact with electronic equipment.And information search is electronic equipment
By the information search of the user input Search Results related to the information of user input, and Search Results are presented to into user's
Process.
In order to shorten the path of user's search, by user input mostly during user input information in prior art
Information present to user as search word, detect user to search perform predetermined registration operation in the case of, according to search
Word is scanned for.
However, user is not accounted in prior art with the presence or absence of search need, and directly by the information of user input
User is presented to as search word, the normal input to user causes interference, reduce the efficiency of user profile input.
The content of the invention
The purpose of the application is to propose a kind of improved data inputting method and device to solve background above technology department
Divide the technical problem mentioned.
In a first aspect, this application provides a kind of data inputting method, the method includes:Use in response to detecting user
Input method application input information, according to above- mentioned information, determines that above-mentioned user whether there is search need;In response to determining above-mentioned use
There is search need in family, it is determined that search intention key word corresponding with above- mentioned information;Show search interface element, above-mentioned search circle
Surface element includes above-mentioned search intention key word;In response to detecting default behaviour of the above-mentioned user to above-mentioned search interface element
Make, scanned for according to above-mentioned search intention key word, and obtain Search Results;Show mentioned above searching results.
In certain embodiments, it is above-mentioned according to above- mentioned information, determine that above-mentioned user whether there is search need, including:
Determine the determination demand key word that lookup is matched with above- mentioned information in demand keyword set;In response to finding and above- mentioned information
The determination demand key word of matching, determines that above-mentioned user has search need.
In certain embodiments, it is above-mentioned in response to determining that above-mentioned user has search need, it is determined that corresponding with above- mentioned information
Search intention key word, including:It is determined that the determination demand key word matched with above- mentioned information for finding as with above-mentioned letter
Cease corresponding search intention key word.
In certain embodiments, it is above-mentioned according to above- mentioned information, determine that above-mentioned user, with the presence or absence of search need, also includes:
In response to not finding the determination demand key word matched with above- mentioned information, search in general demand keyword set and above-mentioned letter
The general demand key word of breath matching;In response to finding the general demand key word matched with above- mentioned information, will find with it is upper
The general demand key word of information matches is stated as target general demand key word, it is crucial according to above- mentioned information and above-mentioned target general demand
Word, determines that above-mentioned user whether there is search need.
In certain embodiments, it is above-mentioned according to above- mentioned information and above-mentioned target general demand key word, determine that above-mentioned user is
It is no to there is search need, including:In the mapping table for the corresponding relation for characterizing general demand key word and search-type
At least one search-type corresponding with above-mentioned target general demand key word is searched, candidate search type set is formed;To above-mentioned
Information carries out semantic analysis, and is determined in above-mentioned candidate search type set according to semantic analysis result and whether there is and above-mentioned letter
The search-type of breath matching;There is the searching class matched with above- mentioned information in response to determining above-mentioned candidate search type set
Type, determines that above-mentioned user has search need.
In certain embodiments, it is above-mentioned in response to determining that above-mentioned user has search need, it is determined that corresponding with above- mentioned information
Search intention key word, including:According to above-mentioned target general demand key word and the search-type matched with above- mentioned information, it is determined that
Search intention key word corresponding with above- mentioned information.
In certain embodiments, above-mentioned display search interface element, including:Show in the candidate word of above-mentioned input method application
Region beyond region shows above-mentioned search interface element.
In certain embodiments, before above-mentioned display mentioned above searching results, said method also includes:Stop showing above-mentioned searching
Rope interface element.
In certain embodiments, above-mentioned display mentioned above searching results, including:Show in the candidate word of above-mentioned input method application
Region beyond region shows mentioned above searching results.
In certain embodiments, said method also includes:In response to determining that above-mentioned user does not have search need, it is determined that on
Search interface element is stated whether in dispaly state;In response to determining that above-mentioned search interface element is in dispaly state, stop aobvious
Show above-mentioned search interface element.
Second aspect, this application provides a kind of message input device, the device includes:Demand determining unit, configuration is used
In input method application input information is used in response to detecting user, according to above- mentioned information, determine that above-mentioned user whether there is and search
Rope demand;Key word determining unit, is configured in response to determining that above-mentioned user has search need, it is determined that with above- mentioned information pair
The search intention key word answered;Interface element display unit, is configured to show search interface element, above-mentioned search interface element
Including above-mentioned search intention key word;Search unit, is configured in response to detecting above-mentioned user to above-mentioned search interface unit
The predetermined registration operation of element, scans for according to above-mentioned search intention key word, and obtains Search Results;Search result display unit,
It is configured to show mentioned above searching results.
In certain embodiments, the demand determining unit includes:First searching modul, is configured to it is determined that demand is closed
The determination demand key word matched with above- mentioned information is searched in keyword set;First demand determining module, be configured in response to
The determination demand key word matched with above- mentioned information is found, determines that above-mentioned user has search need.
In certain embodiments, above-mentioned key word determining unit is further configured to:It is determined that finding with above-mentioned letter
The determination demand key word of breath matching is used as search intention key word corresponding with above- mentioned information.
In certain embodiments, the demand determining unit also includes:Second searching modul, is configured in response to not looking into
Find the determination demand key word matched with above- mentioned information, in general demand keyword set search match with above- mentioned information it is general
Demand key word;Second demand determining module, is configured in response to finding the general demand key word matched with above- mentioned information,
Using the general demand key word matched with above- mentioned information for finding as target general demand key word, according to above- mentioned information and above-mentioned
Target general demand key word, determines that above-mentioned user whether there is search need.
In certain embodiments, above-mentioned second demand determining module includes:Submodule is searched, is configured to for characterizing
Search in the mapping table of the corresponding relation of general demand key word and search-type corresponding with above-mentioned target general demand key word
At least one search-type, formed candidate search type set;First determination sub-module, is configured to carry out above- mentioned information
Semantic analysis, and determined in above-mentioned candidate search type set with the presence or absence of matching with above- mentioned information according to semantic analysis result
Search-type;Second determination sub-module, is configured in response to existing and above-mentioned letter in the above-mentioned candidate search type set of determination
The search-type of breath matching, determines that above-mentioned user has search need.
In certain embodiments, above-mentioned key word determining unit is further configured to:Closed according to above-mentioned target general demand
Keyword and the search-type matched with above- mentioned information, it is determined that search intention key word corresponding with above- mentioned information.
In certain embodiments, above-mentioned interface element display unit is further configured to:In above-mentioned input method application
Region beyond candidate word viewing area shows above-mentioned search interface element.
In certain embodiments, said apparatus also include:First stops display unit, is configured to stop showing above-mentioned searching
Rope interface element.
In certain embodiments, mentioned above searching results display unit is further configured to:In above-mentioned input method application
Region beyond candidate word viewing area shows mentioned above searching results.
In certain embodiments, said apparatus also include:Dispaly state determining unit, is configured to above-mentioned in response to determining
Whether there is no search need in user, determine above-mentioned search interface element in dispaly state;Second stops display unit, response
In it is determined that above-mentioned search interface element is in dispaly state, the above-mentioned search interface element of stopping display.
The third aspect, this application provides a kind of equipment/terminal/server, the equipment/terminal/server includes:One
Or multiple processors;Storage device, for storing one or more programs, when said one or multiple programs by said one or
Multiple computing devices so that said one or multiple processors realize the side as described in arbitrary implementation in first aspect
Method.
Fourth aspect, this application provides a kind of computer-readable recording medium, is stored thereon with computer program, it is special
Levy and be, the computer program is when executed by realizing the method as described in arbitrary implementation in first aspect.
Data inputting method and device that the application is provided, in the information according to user input, determine that user has search
In the case of demand, then determine search intention key word corresponding with user input information, and show search interface element, then
Search Results are scanned for and obtained according to search intention key word, finally show Search Results.Rather than do not do search need
Analysis directly the information of user input is presented to into user as search keyword and by search keyword, so as to reduce to
The interference of family input process, improves the efficiency of user profile input.
Description of the drawings
By reading the detailed description made to non-limiting example made with reference to the following drawings, the application other
Feature, objects and advantages will become more apparent upon:
Fig. 1 is that the application can apply to exemplary system architecture figure therein;
Fig. 2 is the flow chart of one embodiment of the data inputting method according to the application;
Fig. 3 a-3d are the schematic diagrams of an application scenarios of the data inputting method according to the application;
Fig. 3 e are the schematic diagrams of another application scenarios of the data inputting method according to the application;
Fig. 4 is the flow chart of another embodiment of the data inputting method according to the application;
Fig. 5 is the structural representation of one embodiment of the message input device according to the application;
Fig. 6 is adapted for the structural representation of the computer system of the terminal unit for realizing the embodiment of the present application.
Specific embodiment
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
Be easy to description, illustrate only in accompanying drawing to about the related part of invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the application can phase
Mutually combination.Below with reference to the accompanying drawings and in conjunction with the embodiments describing the application in detail.
Fig. 1 shows the exemplary system of the embodiment of the data inputting method or message input device that can apply the application
System framework 100.
As shown in figure 1, system architecture 100 can include terminal unit 101,102,103, network 104 and server 105.
Network 104 between terminal unit 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 using terminal equipment 101,102,103 with server 105, to receive or send out
Send message etc..Various client applications can be installed, such as input method application, webpage are clear on terminal unit 101,102,103
Look at device application, shopping class application, searching class application, JICQ, mailbox client, social platform software, documents editing
Software etc..
Terminal unit 101,102,103 can be with display screen and message input device (for example, keyboard, writing pencil or
Touch screen) various electronic equipments, including but not limited to smart mobile phone, panel computer, E-book reader, portable meter on knee
Calculation machine and desk computer etc..
Server 105 can be to provide the server of various services, such as to being installed on terminal unit 101,102,103
Input method application provide support background server.Background server can be to receiving the information of user input carry out point
Analysis etc. is processed, and result (such as search intention key word) is fed back to into terminal unit.
It should be noted that the data inputting method that provided of the embodiment of the present application typically by terminal unit 101,102,
103 perform, and some steps can also be performed by server 105, and correspondingly, message input device is generally positioned at terminal unit
101st, in 102,103, some units can also be arranged in server 105.
It should be understood that the number of the terminal unit, network and server in Fig. 1 is only schematic.According to realizing need
Will, can have any number of terminal unit, network and server.
With continued reference to Fig. 2, the flow process 200 of one embodiment of data inputting method according to the application is it illustrates.Should
Data inputting method, comprises the following steps:
Step 201, uses input method application input information, according to the information of user input, really in response to detecting user
User is determined with the presence or absence of search need.
In the present embodiment, data inputting method operation electronic equipment (such as terminal unit shown in Fig. 1 thereon
101st, 102,103) on multiple client application can be installed, can should comprising input method in above-mentioned multiple client application
With.In practice, user can utilize above-mentioned input method apply perform in the inputting interface of other each client application it is defeated
Enter operation.When above-mentioned electronic equipment detects user and have input information using input method application, user input is obtained first
Information, then further according to the information of user input, determines that user whether there is search need.
Can be above-mentioned electronic equipment (such as terminal shown in Fig. 1 in some optional implementations of the present embodiment
Equipment 101,102,103) first locally obtain user input information, then above-mentioned electronic equipment is locally according to user input
Information, determines that user whether there is search need.
In some optional implementations of the present embodiment, or above-mentioned electronic equipment (such as end shown in Fig. 1
End equipment 101,102,103) locally obtain the information of user input first, then above-mentioned electronic equipment is by the information of user input
It is sent to the input method application to installing in above-mentioned electronic equipment and server (such as server shown in Fig. 1 supported is provided
105), by above-mentioned server according to the information of user input, user is determined with the presence or absence of search need, then by the knot obtained by determination
Really (user whether there is search need) returns above-mentioned electronic equipment.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can obtain the coded word of user input
Information of the symbol string as user input.For example, in the English alphabet beyond user input Chinese, numeral or symbol, obtain
The information of the English alphabet of user input, digital or symbol as user input.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also in user input coded word
After symbol string, show that corresponding with the coded string of user input at least one waits in the candidate word viewing area of input method application
Word is selected, then a candidate word is confirmed in above-mentioned at least one candidate word detecting user, obtains what above-mentioned user confirmed
Information of the candidate word as user input.For example, in user input Chinese, obtain user and confirm at least one candidate word
Candidate word as user input information.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also be by obtaining current cursor institute
Position before upper screen words as user input information.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also pass through to obtain the words for shielding
In with current cursor be located row in a line words as user input information.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also pass through to obtain the words for shielding
In with current cursor be located section in same section words as user input information.
In some optional implementations of the present embodiment, step 201 can include following sub-step 2011 and sub-step
Rapid 2012:
Sub-step 2011, is closing it is determined that searching in demand keyword set with the determination demand of the information matches of user input
Keyword.
In this implementation, determine that demand key word can be to characterize the key that user has the search need for determining
Word.Determine that demand key word can be determined by manual type, or by carrying out machine learning to searching for daily record
Or after data mining it is resulting.For example, determine that demand key word can be " Beijing air quality index ", " today is double-colored
Chou fruit ", " following weather forecast in a week " etc. can clearly indicate that user has the key word of search need.
Optionally it is determined that demand keyword set can be stored in, above-mentioned electronic equipment is local, and such sub-step 2012 can
Locally to be completed by above-mentioned electronic equipment.
Optionally it is determined that demand keyword set can also be stored in the input method application to installing in above-mentioned electronic equipment
In providing the server (such as the server 105 shown in Fig. 1) supported, such sub-step 2012 can be complete by above-mentioned server
Into.
It is alternatively possible to determine that user is defeated in the case where the information of user input is identical with demand key word is determined
The information for entering and determination Keywords matching.
Alternatively it is also possible to:First, using cosine similarity (Cosine Similarity) algorithm, Jaccard coefficients
Etc Text similarity computing method, calculate user input information with determine demand keyword set in each determine demand
The text similarity of key word.Then, determine demand key word according to the text similarity with the information of user input each
Order sequence from big to small, and determine the maximum text similarity in each text similarity.Finally, above-mentioned maximum text is judged
Whether this similarity is more than the first pre-set text similarity threshold (such as 0.9), will determine that demand is crucial if it is greater, then determining
The determination demand key word maximum with the text similarity of the information of user input is defeated with user as finding in set of words
The determination demand key word of the information matches for entering;Do not find with the information matches of user input really if it is not greater, then determining
Determine demand key word.
Alternatively, above-mentioned electronic equipment can be with:First, using full cutting method, in being syncopated as the information of user input
The all possible word matched with default language dictionary;Then, optimum cutting result is determined using statistical language model, from
And obtain at least one segmenting word;Finally, then to each segmenting word in above-mentioned at least one segmenting word, it is determined that demand is crucial
The determination demand key word matched with above-mentioned each segmenting word is searched in set of words.It will be appreciated by persons skilled in the art that
Here, it would however also be possible to employ the above-mentioned identical just method of matching or the method for calculating text similarity is come to each cutting
Word, it is determined that searching the determination demand key word that matches with above-mentioned each segmenting word in demand keyword set.
If only exist at least one segmenting word a segmenting word can it is determined that find in demand keyword set with
The determination demand key word of the segmenting word matching, then will determine that the determination demand matched with segmenting word in demand keyword set is closed
Keyword is used as the determination demand key word with the information matches of user input.
Can be it is determined that finding and this in demand keyword set if there are multiple segmenting words at least one segmenting word
The determination demand key word of segmenting word matching, then can take and a segmenting word is randomly selected in above-mentioned multiple segmenting words, will
Determine the determination demand key word that matches with the segmenting word that this is randomly selected in demand keyword set as with user input
The determination demand key word of information matches;Each segmenting word in above-mentioned multiple segmenting words can also be calculated determination demand and be closed
The text similarity of the determination demand key word that matches with the segmenting word in keyword set and the information of user input, and will with
The text similarity highest of the information of family input determines that demand key word is needed as the determination with the information matches of user input
Seek key word.
Sub-step 2012, in response to finding the determination demand key word with the information matches of user input, determines user
There is search need.
In this implementation, above-mentioned electronic equipment can find the information matches with user input in step 2011
Determination demand key word in the case of, determine that user has search need.
Step 202, in response to determining that user has search need, it is determined that search intention corresponding with the information of user input
Key word.
In the present embodiment, in the case that above-mentioned electronic equipment can in step 201 determine that user has search need,
Determine search intention key word corresponding with the information of user input using various methods.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be by the sub-step in step 201
It is determined that the determination demand key word conduct of the information matches with user input found in demand keyword set in 2011
Search intention key word corresponding with the information of user input.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also first to the letter of user input
The frequency of occurrences of each word present in breath is counted and sorted, and afterwards, then chooses one word of frequency of occurrences highest
As the search intention key word with the information matches of user input.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also enter to the information of user input
Row word segmentation processing, obtains at least one participle;The weight of the participle is calculated each participle at least one resulting participle again
The property wanted value is (for example with word frequency-reverse document frequency method (Term Frequency-Inverse Document
Frequency, TF-IDF));Finally, the maximum participle conduct of the importance values obtained by calculating is chosen at least one participle
Search intention key word.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also in step 201 determine use
In the case that family does not have search need, following steps 202 ' are gone to:
Step 202 ', in response to determining that user does not have search need, determine search interface element whether in display shape
State.
In this implementation, above-mentioned electronic equipment can in step 201 determine that user does not have the feelings of search need
Under condition, whether search interface element is determined in dispaly state, if it is, going to step 203 '.
Step 203 ', in response to determining that search interface element is in dispaly state, stop showing search interface element.
In this implementation, above-mentioned electronic equipment can be in step 202 ' in determine search interface element in showing shape
In the case of state, stop showing search interface element.
Step 203, shows search interface element.
In the present embodiment, above-mentioned electronic equipment can determine in step 202. corresponding with the information of user input
After search intention key word, search interface element is shown, wherein, above-mentioned search interface element includes that what is determined in step 202 searches
Suo Yitu key words.
In the present embodiment, search interface element can be certain interface element in input method application, the interface element
Can be such as icon (icon), picture, button, text box, menu, dialog box, label, status bar etc..
As an example, if search interface element is icon, what is can determined in step display 202 on the icon searches
Suo Yitu key words.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be in the candidate word of input method application
Region beyond viewing area shows search interface element.So, will not be normal to user while display search interface element
Cause to interrupt and interference using input method application, improve the input efficiency of user.
Step 204, in response to detecting predetermined registration operation of the user to search interface element, enters according to search intention key word
Line search, and obtain Search Results.
In the present embodiment, above-mentioned electronic equipment can after predetermined registration operation of the user to search interface element is detected,
Scanned for according to search intention key word, and obtain Search Results.Wherein, predetermined registration operation can be including but not limited to:Click on,
Drag, hover, input through keyboard specifies shortcut (such as Ctrl+S keys).
In some optional implementations of the present embodiment, above-mentioned electronic equipment can detect user to searching for boundary
After the predetermined registration operation of surface element, searching request is sent to the server being supported to above-mentioned input method application, wherein, search please
Above-mentioned search intention key word can be included in asking.Then, above-mentioned server is in response to receiving above-mentioned searching request, according to upper
The search keyword stated in searching request is scanned for, and Search Results are returned to into above-mentioned electronic equipment.Here, above-mentioned service
Device can provide various resources, such as webpage, picture, video, sound, file etc..Here, resource can be by a unified money
Source identifier (URI, Uniform Resource Identifier) is positioned.URI is typically made up of three parts:Host name,
Identifier and relative URI.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also detect user to search
After the predetermined registration operation of interface element, the search operation specified is locally executed, search the sheet related to above-mentioned search intention key word
Ground resource, and obtain Search Results.As an example, local resource can be the locally stored various files of above-mentioned electronic equipment with
And the file content of various files.
Step 205, shows Search Results.
In the present embodiment, above-mentioned electronic equipment can be obtained in step 204 after Search Results, show above-mentioned search knot
Really.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can be in the candidate word of input method application
Region beyond viewing area shows Search Results.For example, Search Results are shown in the top of the default interface of input method application.
So, will not the normal use input method application of user be caused to interrupt and interference while showing Search Results, improves user
Input efficiency.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can show Search Results before,
Perform following steps 204 ':
Step 204 ', stop showing above-mentioned search interface element.
So, search interface element will no longer be shown when Search Results are shown, so as to reduce the interference to user.
With continued reference to Fig. 3 a- Fig. 3 d, Fig. 3 a- Fig. 3 d are the one of the application scenarios of the data inputting method according to the present embodiment
Individual schematic diagram.In the application scenarios of Fig. 3 a- Fig. 3 d, first, the input method application input information in user's using terminal is such as schemed
In 3a shown in icon 301;Afterwards, the information of user input is sent to terminal the server being supported to input method application;
Server, according to the information of user input, determines that user has search need after the information for receiving user input, and will be right
The search intention key word answered returns to terminal;Then, in terminal such as Fig. 3 b shown in icon 302, under candidate word viewing area
Side is shown originally in the search interface element of non-display state, and the search intention key word received from server is shown
In search interface element;Then, search interface element is clicked in user such as Fig. 3 c shown in icon 303, so as to terminal is to above-mentioned
Server sends searching request, and server performs search and Search Results are returned to into end after above-mentioned searching request is received
End;Finally, as shown in icon 304 in Fig. 3 d, terminal includes the Search Results received from server in input method application
Candidate word viewing area top, while stopping showing search interface element.
With continued reference to Fig. 3 e, Fig. 3 e are another signals of the application scenarios of the data inputting method according to the present embodiment
Figure.In the application scenarios of Fig. 3 e, first, the input method application input information in user's using terminal, icon 305 in such as Fig. 3 e
It is shown;Afterwards, the information of user input is sent to terminal the server being supported to input method application;Server is being received
To after the information of user input, according to the information of user input, determine that user does not have search need, search so as to terminal does not show
Rope interface element, any interference is not resulted in user, and user can be normally carried out input operation.
The method that above-described embodiment of the application is provided is searched by determining that user whether there is according to the information of user input
Rope demand, and search interface element is shown in the case where user has search need, there are no the feelings of search need in user
Search interface element is not shown under condition, so as to reduce the interference to user, the efficiency of user input is improve.
With further reference to Fig. 4, the flow process 400 of another embodiment of data inputting method is it illustrates.The information input
The flow process 400 of method, comprises the following steps:
Step 401, uses input method application input information, it is determined that in demand keyword set in response to detecting user
The determination demand key word with the information matches of user input is searched, if it is found, going to step 402, if do not found, is gone to
Step 404.
In the present embodiment, in the present embodiment, data inputting method operation electronic equipment (such as Fig. 1 institutes thereon
The terminal unit 101 that shows, 102,103) on multiple client application can be installed, can wrap in above-mentioned multiple client application
Application containing input method.In practice, user can utilize above-mentioned input method to apply input circle in other each client application
Input operation is performed in face.When above-mentioned electronic equipment detects user and have input information using input method application, obtain first
The information of user input, is then closing it is determined that searching in demand keyword set with the determination demand of the information matches of user input
Keyword, if it is found, going to step 402, if do not found, goes to step 404.Wherein, it is determined that in demand keyword set
Search the concrete operations with the determination demand key word of the information matches of user input and step 2011 in the embodiment shown in Fig. 2
Operation it is essentially identical.Will not be described here.
Step 402, determines that user has search need.
In the present embodiment, above-mentioned electronic equipment can find in step 401 and the information matches of user input
In the case of determining demand key word, determine that user has search need, and go to step 403.
Step 403, it is determined that find with the determination demand key word of the information matches of user input as defeated with user
The corresponding search intention key word of information for entering.
In the present embodiment, above-mentioned electronic equipment can in step 402 determine that user is present after search need, it is determined that step
It is finding in rapid 401 with user input information matches determination demand key words as corresponding with the information of user input
Search intention key word, then goes to step 408.
Step 404, searches the general demand key word with the information matches of user input, such as in general demand keyword set
Fruit is found, and goes to step 405, if do not found, goes to step 405 '.
In the present embodiment, above-mentioned electronic equipment can not find in step 401 and the information matches of user input
In the case of determining demand key word, search in general demand keyword set and closed with the general demand of the information matches of user input
Keyword, if it is found, going to step 405, if do not found, goes to step 405 '.
In the present embodiment, general demand key word is can not clearly to determine that user has search need but can be true for characterizing
Determine the key word that user has potential search need.For example, use can not clearly be determined from general demand key word " XX chafing dish restaurants "
There is search need in family, because possibly user wants the geographical position for searching for " XX chafing dish restaurants ", it is also possible to which user wants to search for " XX
The Consumer's Experience of chafing dish restaurant ", it is also possible to which user thinks photo etc. in the shop of search " XX chafing dish restaurants ";Again for example, from general demand
Can not clearly determine that user has search need in key word " Great Wall ", because possibly user wants the geography for searching for " Great Wall "
Position, it is also possible to which user wants the photo for searching for " Great Wall ", it is also possible to which user wants to search for " Great Wall " this film etc.;Example again
Such as, can not clearly determine that user has search need from general demand key word " depurator ", because possibly user wants to search
The operation principle of rope " depurator ", it is also possible to which user wants the brand for searching for " depurator ", it is also possible to which user thinks search " purification
Picture of device " etc..
Alternatively, general demand keyword set can be determined by manual type.For example, selected by manual type
At least one crucial phrase is into general demand keyword set.
Alternatively, general demand keyword set can also be by carrying out machine learning or data mining to searching for daily record
It is resulting afterwards.Wherein, the log recording search behavior of at least one user is searched for, including at least one user makes when searching for
At least one key word.Following at least one can be adopted by way of searching for daily record and determining general demand key word:
First kind of way:The key word using the word in preset mode vocabulary as prefix is extracted from search daily record as general need
Seek key word.Wherein, preset mode vocabulary can manually word chosen or data mining by way of obtain.It is default
Word in pattern vocabulary has included the adjective of modification, for example " amusing ", " nice ", " good-looking " etc..Cause
This, by preset mode vocabulary, can extract at least one with the word in preset mode vocabulary as prefix from search daily record
Key word, for example can extract key word with " amusing " in preset mode vocabulary as prefix from search daily record
" delightful place " is used as general demand key word, it is also possible to " nice in extracting with preset mode vocabulary from search daily record
" for prefix key word " nice chaffy dish " as general demand key word, can with from search daily record in extract with preset mould
" good-looking " key word " good-looking film " for prefix in formula vocabulary is used as general demand key word.
The second way:The key word with the word in preset mode vocabulary as prefix is extracted from search daily record, and will be carried
The key word for taking removes the remainder after prefix as general demand key word.For example, preset mode vocabulary includes " amusing
", " nice " and " good-looking ", extract from search daily record respectively with preset mode vocabulary in " amusing ", " nice
" and " good-looking " key word for prefix, obtain key word " delightful place ", " nice chaffy dish " and " good-looking electricity
Shadow ", after the key word " delightful place ", " nice chaffy dish " and " good-looking film " that will be extracted removes prefix respectively
Remainder " place ", " chaffy dish " and " film " is used as general demand key word.
The third mode:It is determined that searching for the follow-up word of each key word in daily record, and the follow-up of same entity class will be belonged to
Word proportion more than preset ratio threshold value key word as general demand key word, the follow-up word of one of key word be with
The word that the key word is occurred in a session (Session) and occurred after the key word jointly.Here it is possible to will search
Suo Zhi is cut at least one cutting fragment, the wherein record of each cutting fragment one session of correspondence by unit of session.
In each cutting fragment, operation behavior of the user within a period of time is have recorded, it is suitable according to the time including user
The key word that sequence was searched for.For example, there is following cutting fragment:
Cutting fragment 1:" good-looking film ", " Great Wall ", " ferry-boat people "
Cutting fragment 2:" film ", " good-looking film ", " sanguinary battle hacksaw ridge ", " ferry-boat people "
Cutting fragment 3:" good-looking film ", " feelings are holy ", " happiness for agreeing "
Then according to three cutting fragments above, can obtain the follow-up word of key word " good-looking film " has " Great Wall ", " pendulum
Cross people ", " sanguinary battle hacksaw ridge ", " feelings holy " and " happiness for agreeing " totally five follow-up words.
It is " long that in due to the follow-up word of key word " good-looking film ", belonging to the follow-up word of " film " class entity class has
City ", " ferry-boat people ", " sanguinary battle hacksaw ridge " and " feelings are holy " 4, that is, the quantity for belonging to the follow-up word of same entity class is 4,
The follow-up word proportion for belonging to same entity class in the follow-up word of " good-looking film " is 4 ÷ 5=0.8, if default ratio
Example threshold value is 0.75, then according to the third mode, it may be determined that " good-looking film " is general demand key word.
Step 405, closes the general demand key word of the information matches with user input for finding as target general demand
Keyword.
In the present embodiment, above-mentioned electronic equipment can find in step 404 general with the information matches of user input
In the case of demand key word, using the general demand key word of the information matches with user input found in step 404 as
Target general demand key word, then goes to step 406.
Step 406, according to the information and target general demand key word of user input, determines that user needs with the presence or absence of search
Ask, if it is, step 407 is gone to, if not, going to step 406 '.
In the present embodiment, above-mentioned electronic equipment can be according to the target obtained in the information of user input and step 405
General demand key word, adopts in various manners, determines that user whether there is search need.
In some optional implementations of the present embodiment, step 406 can include following sub-step 4061- sub-step
4063:
Sub-step 4061, looks in the mapping table for the corresponding relation for characterizing general demand key word and search-type
At least one search-type corresponding with target general demand key word is looked for, candidate search type set is formed.
In this implementation, for each the general demand key word in general demand keyword set, general for characterizing
At least one corresponding searching class can be inquired in the mapping table of the corresponding relation of demand key word and search-type
Type.Search-type represents the type that the search corresponding to general demand key word is oriented to.Wherein, search-type both can be various
Vertical search type, for example, map class search, the search of music class, picture category search, video class search, the search of weather class, house property
Class search, automotive-type search, news category search, the search of microblogging class, game class search etc..Search-type can also be various making by oneself
The search-type of justice, for example, the search of cuisines class, shopping class search, travelling route search, the search of animation class etc..
Sub-step 4062, to the information of user input semantic analysis are carried out, and determine that candidate searches according to semantic analysis result
With the presence or absence of the search-type with the information matches of user input in rope type set.
In this implementation, first semantic analysis can be carried out to the information of user input, further according to semantic analysis knot
Fruit is determined in candidate search type set with the presence or absence of the search-type with the information matches of user input.
Alternatively, sub-step 4062 can be carried out as follows:
First, word segmentation processing is done to the information of user input, to obtain at least one segmenting word.
Then, candidate's cutting set of words of a newly-built sky;
Then, to each segmenting word in above-mentioned at least one segmenting word, judge whether deposited in candidate search type set
In the search-type matched with the segmenting word, if it does, the segmenting word is added into above-mentioned candidate's cutting set of words.
Then, if above-mentioned candidate's cutting set of words is not sky, it is determined that exist and user in candidate search type set
The search-type of the information matches of input.
Finally, choose candidate's segmenting word in candidate's cutting set of words, and by candidate search type set with it is selected
The candidate search type of the candidate's segmenting word matching for taking is used as the candidate search type with the information matches of user input.
It is alternatively possible to randomly select candidate's segmenting word in candidate's cutting set of words.
Alternatively, candidate's segmenting word and candidate can also be calculated to each candidate's segmenting word in candidate's cutting set of words
Text similarity between the candidate search type matched with candidate's segmenting word in search-type set, then will calculate gained
The maximum candidate's segmenting word of text similarity as selected candidate's segmenting word.
Alternatively, sub-step 4062 may be carried out as follows:
First, using the Text similarity computing method of cosine similarity algorithm, Jaccard coefficients etc, user is calculated
The text similarity of each candidate search type in the information of input and candidate search type set.
Then, by each candidate search type according to the order with the text similarity of the information of user input from big to small
Sequence, and determine the maximum text similarity in each text similarity.Finally, judge whether above-mentioned maximum text similarity is big
In the second pre-set text similarity threshold (such as 0.85), if it is greater, then determine by candidate search type set with user
The maximum candidate search type of the text similarity of the information of input is used as the candidate search class with the information matches of user input
Type;If it is not greater, then determining the candidate search class not existed in candidate search type set with the information matches of user input
Type.
Sub-step 4063, in response to there is the search with the information matches of user input in determination candidate search type set
Type, determines that user has search need.
In this implementation, above-mentioned electronic equipment can determine in sub-step 4062 to be deposited in candidate search type set
In the case of with the search-type of the information matches of user input, determine that user has search need.
Step 407, it is determined that search intention key word corresponding with the information of user input.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can in a step 406 determine user
After there is search need, determine the target general demand key word determined in step 405 as corresponding with the information of user input
Search intention key word, then goes to step 408.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also determine based in step 405
Target general demand key word and step 406 optional implementation in the information with user input that determines in sub-step 4062
The search-type of matching, generates search intention key word corresponding with the information of user input.For example, based on general demand key word
" XX sushis shop " and search-type " map ", can generate search intention key word " XX sushis shop address nearby ";Based on general
Demand key word " Great Wall " and search-type " film ", can generate the search intention key word " film of Zhang Yimou director《It is long
City》Broadcast arrangement ";Based on general demand key word " depurator " and search-type " picture ", search intention can be generated crucial
Word " picture of air purifier " etc..
Step 408, shows search interface element.
In the present embodiment, the concrete operations of step 408 are essentially identical with the operation of step 203 in embodiment illustrated in fig. 2,
Will not be described here.
Step 409, in response to detecting predetermined registration operation of the user to search interface element, enters according to search intention key word
Line search, and obtain Search Results.
In some optional implementations of the present embodiment, step 409 operation can with the embodiment shown in Fig. 2 in
The operation of step 204 is identical, will not be described here.
In some optional implementations of the present embodiment, above-mentioned electronic equipment can also determine according in step 407
Search intention key word and step 406 optional implementation in sub-step 4062 determine the information with user input
The search-type matched somebody with somebody, scans for, and obtains Search Results.For example, for search intention key word " Great Wall " and search-type
" film ", then initiate searching with search intention key word " Great Wall " by the server being supported to the search to " film " class
Rope is asked, and the server that the above-mentioned search to " film " class is supported carries out the search with regard to " Great Wall ", and will be with " Great Wall "
The relevant Search Results of this film return above-mentioned electronic equipment;For search intention key word " depurator " and search-type
" picture ", then will initiate with search intention key word " depurator " to the server that the search to " picture " class is supported
Searching request, the server that the above-mentioned search to " picture " class is supported carries out the search with regard to " depurator ", and will with it is " net
The relevant picture of change device " returns above-mentioned electronic equipment.
Step 410, stops showing above-mentioned search interface element.
In the present embodiment, the concrete operations of step 410 and step 204 in embodiment illustrated in fig. 2 ' the basic phase of operation
Together, will not be described here.
Step 411, shows Search Results.
In the present embodiment, the concrete operations of step 411 are essentially identical with the operation of step 205 in embodiment illustrated in fig. 2,
Will not be described here.
Step 405 ', determine that user does not have search need.
In the present embodiment, above-mentioned electronic equipment can not find in step 404 and the information matches of user input
In the case of general demand key word, determine that user does not have search need, then go to step 406 '.
Step 406 ', determine that search interface element, whether in dispaly state, then goes to step 407 '.
In the present embodiment, the basic phase of operation of step 406 ' concrete operations and step 202 in embodiment illustrated in fig. 2 '
Together, will not be described here.
Step 407 ', in response to determining that search interface element is in dispaly state, stop showing search interface element.
In the present embodiment, the basic phase of operation of step 407 ' concrete operations and step 203 in embodiment illustrated in fig. 2 '
Together, will not be described here.
Figure 4, it is seen that compared with the corresponding embodiments of Fig. 2, the flow process of the data inputting method in the present embodiment
400 have had more in the case where the information of user input is not matched with determination demand keyword set, by general demand key word
The step of set is to determine user with the presence or absence of search need and determine search intention key word.Thus, the present embodiment description
Scheme can in the case where can not directly determine that user has search need, introduce general demand keyword set, more enter one
The semanteme of the analysis user input information of step, so as to reach the search need and search intention of deep digging user, improves
Accuracy rate of the user with the presence or absence of search need is judged, so as to further increase the efficiency of user input.
With further reference to Fig. 5, as the realization to method shown in above-mentioned each figure, this application provides a kind of information input dress
The one embodiment put, the device embodiment is corresponding with the embodiment of the method shown in Fig. 2, and the device specifically can apply to respectively
In planting electronic equipment.
As shown in figure 5, the message input device 500 in the present embodiment includes:Demand determining unit 501, key word determines
Unit 502, interface element display unit 503, search unit 504 and search result display unit 505.Wherein, demand determines single
Unit 501, is configured to use input method application input information in response to detecting user, according to above- mentioned information, determines above-mentioned use
Family whether there is search need;Key word determining unit 502, is configured in response to determining that above-mentioned user has search need,
It is determined that search intention key word corresponding with above- mentioned information;Interface element display unit 503, is configured to show search interface unit
Element, above-mentioned search interface element includes above-mentioned search intention key word;Search unit 504, is configured in response to detecting
Predetermined registration operation of the user to above-mentioned search interface element is stated, is scanned for according to above-mentioned search intention key word, and searched for
As a result;Search result display unit 505, is configured to show mentioned above searching results.
In the present embodiment, the demand determining unit 501 of message input device 500, key word determining unit 502, interface
The concrete process of element display unit 503, search unit 504 and search result display unit 505 and its technology effect brought
Fruit can mutually speak on somebody's behalf respectively with reference to step 201, step 202, step 203, step 204 in Fig. 2 correspondence embodiments with step 205
It is bright, will not be described here.
In some optional implementations of the present embodiment, the demand determining unit 501 can include:First searches
Module 5011, is configured to it is determined that the determination demand key word that lookup is matched with above- mentioned information in demand keyword set;The
One demand determining module 5012, is configured in response to finding the determination demand key word matched with above- mentioned information, it is determined that on
State user and there is search need.The concrete process of the first searching modul 5011 and the first demand determining module 5012 and its brought
Technique effect can respectively with reference to Fig. 2 correspondence embodiment in step 2011 and step 2012 related description, will not be described here.
In some optional implementations of the present embodiment, above-mentioned key word determining unit 502 can be configured further
For:It is determined that what is found closes with the determination demand key word of above- mentioned information matching as search intention corresponding with above- mentioned information
Keyword.The concrete process of key word determining unit 502 and its technique effect for being brought refer to step in Fig. 2 correspondence embodiments
202 related description, will not be described here.
In some optional implementations of the present embodiment, the demand determining unit 501 can also include:Second looks into
Module 5013 is looked for, is configured in response to not finding the determination demand key word matched with above- mentioned information, it is crucial in general demand
The general demand key word matched with above- mentioned information is searched in set of words;Second demand determining module 5014, be configured in response to
Find the general demand key word matched with above- mentioned information, using the general demand key word matched with above- mentioned information for finding as
Target general demand key word, according to above- mentioned information and above-mentioned target general demand key word, determines above-mentioned user with the presence or absence of search
Demand.The concrete process of the second searching modul 5013 and the second demand determining module 5014 and its technique effect for being brought can divide
Not Can Kao Fig. 4 correspondence embodiment in step 404 and step 405- step 406 related description, will not be described here.
In some optional implementations of the present embodiment, above-mentioned second demand determining module 5014 can include:Look into
Submodule 50141 is looked for, is configured to be used for the mapping table of the corresponding relation for characterizing general demand key word and search-type
It is middle to search at least one search-type corresponding with above-mentioned target general demand key word, form candidate search type set;First
Determination sub-module 50142, is configured to carry out above- mentioned information semantic analysis, and determines above-mentioned candidate according to semantic analysis result
With the presence or absence of the search-type matched with above- mentioned information in search-type set;Second determination sub-module 50143, is configured to ring
Should be in it is determined that the search-type that presence is matched with above- mentioned information in above-mentioned candidate search type set, determines that above-mentioned user is present and searches
Rope demand.Search submodule 50141, the concrete process of the first determination sub-module 50142 and the second determination sub-module 50143 and its
The technique effect for being brought can respectively with reference to sub-step 4061, sub-step 4062 and sub-step 4063 in Fig. 4 correspondence embodiments
Related description, will not be described here.
In some optional implementations of the present embodiment, above-mentioned key word determining unit 502 can be configured further
For:According to above-mentioned target general demand key word and the search-type matched with above- mentioned information, it is determined that corresponding with above- mentioned information
Search intention key word.
In some optional implementations of the present embodiment, above-mentioned interface element display unit 503 can further match somebody with somebody
Put for:Region beyond the candidate word viewing area of above-mentioned input method application shows above-mentioned search interface element.Interface Element
The concrete process of plain display unit 503 and its technique effect for being brought refer to the correlation of step 203 in Fig. 2 correspondence embodiments
Illustrate, will not be described here.
In some optional implementations of the present embodiment, above- mentioned information display device 500 can also include:First stops
Only display unit 506, are configured to stop showing above-mentioned search interface element.The first concrete process for stopping display unit 506
And its technique effect for being brought refer to Fig. 2 correspondence embodiment in step 204 ' related description, will not be described here.
In some optional implementations of the present embodiment, mentioned above searching results display unit 505 can further match somebody with somebody
Put for:Region beyond the candidate word viewing area of above-mentioned input method application shows mentioned above searching results.Search Results show
The concrete process for showing unit 505 and its technique effect for being brought refer to step 205 in Fig. 2 correspondence embodiments and mutually speak on somebody's behalf
It is bright, will not be described here.
In some optional implementations of the present embodiment, above- mentioned information display device 500 can also include:Show shape
State determining unit 507, is configured to, in response to determining that above-mentioned user does not have search need, determine that above-mentioned search interface element is
It is no in dispaly state;Second stops display unit 508, in response to determining that above-mentioned search interface element is in dispaly state, stops
Only show above-mentioned search interface element.Dispaly state determining unit 507 and second stop display unit 508 concrete process and its
The technique effect for being brought refers to the related description of step 202 ' and step 203 ' in Fig. 2 correspondence embodiments, and here is no longer gone to live in the household of one's in-laws on getting married
State.
Below with reference to Fig. 6, the computer system 600 for being suitable to the terminal unit for realizing the embodiment of the present application is it illustrates
Structural representation.
As shown in fig. 6, computer system 600 includes CPU (CPU, Central Processing Unit)
601, it can be according to the program being stored in read only memory (ROM, Read Only Memory) 602 or from storage part
608 programs being loaded in random access storage device (RAM, Random Access Memory) 603 and perform it is various appropriate
Action and process.In RAM 603, the system that is also stored with 600 operates required various programs and data.CPU 601、ROM602
And RAM 603 is connected with each other by bus 604.Input/output (I/O) interface 605 is also connected to bus 604.
I/O interfaces 605 are connected to lower component:Including the importation 606 of keyboard, mouse, touch screen, writing pencil etc.;
Including such as cathode ray tube (CRT, Cathode Ray Tube) display, liquid crystal display (LCD, Liquid Crystal
) etc. Display and speaker etc. output par, c 607;Storage part 608 including hard disk etc.;And including such as local
The communications portion 609 of the NIC of net (LAN, Local Area Network) card, modem (Modem) etc..It is logical
Letter part 609 performs communication process via the network of such as the Internet.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., as needed installed in driver
On 610, the computer program in order to read from it is mounted into as needed storage part 608.
Especially, in accordance with an embodiment of the present disclosure, 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, and it includes being carried on computer-readable medium
On computer program, the computer program includes the program code for the method shown in execution flow chart.In such reality
In applying example, the computer program can be downloaded and installed by communications portion 609 from network, and/or from detachable media
611 are mounted.When the computer program is performed by CPU (CPU) 601, perform what is limited in the present processes
Above-mentioned functions.It should be noted that computer-readable medium described herein can be computer-readable signal media or
Computer-readable recording medium or the two combination in any.Computer-readable recording medium for example can be --- but
Be not limited to --- the system of electricity, magnetic, optical, electromagnetic, infrared ray or quasiconductor, device or device, or arbitrarily more than combination.
The more specifically example of computer-readable recording medium can be including but not limited to:Electrical connection with one or more wires,
Portable computer diskette, hard disk, random access storage device (RAM), read only memory (ROM), erasable type may be programmed read-only depositing
Reservoir (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory
Part or above-mentioned any appropriate combination.In this application, computer-readable recording medium can be it is any comprising or storage
The tangible medium of program, the program can be commanded execution system, device, and either device is used or in connection.And
In the application, computer-readable signal media can include the data letter propagated in a base band or as a carrier wave part
Number, wherein carrying computer-readable program code.The data signal of this propagation can take various forms, including but not
It is limited to electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be computer
Any computer-readable medium beyond readable storage medium storing program for executing, the computer-readable medium can send, propagate or transmit use
In by instruction execution system, device, either device is used or program in connection.Include on computer-readable medium
Program code can be with any appropriate medium transmission, including but not limited to:Wirelessly, electric wire, optical cable, RF etc., Huo Zheshang
Any appropriate combination stated.
Flow chart and block diagram in accompanying drawing, it is illustrated that according to the system of the various embodiments of the application, method and computer journey
The architectural framework in the cards of sequence product, function and operation.At this point, each square frame in flow chart or block diagram can generation
A part for table one module, program segment or code a, part for above-mentioned module, program segment or code includes one or more
For realizing the executable instruction of the logic function of regulation.It should also be noted that in some realizations as replacement, institute in square frame
The function of mark can also be with different from the order marked in accompanying drawing generation.For example, the two square frame reality for succeedingly representing
On can perform substantially in parallel, they can also be performed in the opposite order sometimes, and this is depending on involved function.Also
It is noted that the combination of block diagram and/or each square frame in flow chart and block diagram and/or the square frame in flow chart, Ke Yiyong
Perform the function of regulation or the special hardware based system of operation to realize, or can be referred to computer with specialized hardware
The combination of order is realizing.
Being described in unit involved in the embodiment of the present application can be realized by way of software, it is also possible to by hard
The mode of part is realizing.Described unit can also be arranged within a processor, for example, can be described as:A kind of processor bag
Include demand determining unit, key word determining unit, interface element display unit, search unit and search result display unit.Its
In, the title of these units is not constituted under certain conditions to the unit restriction of itself, and for example, demand determining unit may be used also
To be described as " determining the unit of search need ".
On the other hand used as, present invention also provides a kind of computer-readable medium, the computer-readable medium can be
Included in device described in above-described embodiment;Can also be individualism, and without allocating in the device.Above-mentioned calculating
Machine computer-readable recording medium carries one or more program, when said one or multiple programs are performed by the device so that should
Device:Input method application input information is used in response to detecting user, according to the information, determines the user with the presence or absence of search
Demand;In response to determining that the user has search need, it is determined that search intention key word corresponding with the information;Show search circle
Surface element, the search interface element includes the search intention key word;In response to detecting the user to the search interface element
Predetermined registration operation, scanned for according to the search intention key word, and obtain Search Results;Show the Search Results.
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 the technology of the particular combination of above-mentioned technical characteristic
Scheme, while also should cover in the case where conceiving without departing from foregoing invention, is carried out by above-mentioned technical characteristic or its equivalent feature
Combination in any and other technical schemes for being formed.Such as features described above has similar work(with (but not limited to) disclosed herein
The technical scheme that the technical characteristic of energy is replaced mutually and formed.
Claims (18)
1. a kind of data inputting method, methods described includes:
Input method application input information is used in response to detecting user, according to described information, determines that the user whether there is
Search need;
In response to determining that the user has search need, it is determined that search intention key word corresponding with described information;
Search interface element is shown, the search interface element includes the search intention key word;
In response to detecting predetermined registration operation of the user to the search interface element, entered according to the search intention key word
Line search, and obtain Search Results;
Show the Search Results.
2. method according to claim 1, it is characterised in that described according to described information, determines whether the user deposits
In search need, including:
It is determined that the determination demand key word that lookup is matched with described information in demand keyword set;
In response to finding the determination demand key word matched with described information, determine that the user has search need.
3. method according to claim 2, it is characterised in that described in response to determining that the user has search need,
It is determined that search intention key word corresponding with described information, including:
It is determined that what is found closes with the determination demand key word of described information matching as search intention corresponding with described information
Keyword.
4. method according to claim 2, it is characterised in that described according to described information, determines whether the user deposits
In search need, also include:
In response to not finding the determination demand key word matched with described information, search and institute in general demand keyword set
State the general demand key word of information matches;
In response to finding the general demand key word matched with described information, by the general demand matched with described information for finding
Key word, according to described information and the target general demand key word, determines that the user is as target general demand key word
It is no to there is search need.
5. method according to claim 4, it is characterised in that described crucial according to described information and the target general demand
Word, determines that the user whether there is search need, including:
Search in the mapping table for the corresponding relation for characterizing general demand key word and search-type general with the target
Corresponding at least one search-type of demand key word, forms candidate search type set;
Semantic analysis are carried out to described information, and determines whether deposited in the candidate search type set according to semantic analysis result
In the search-type matched with described information;
There is the search-type matched with described information in response to determining the candidate search type set, determine the user
There is search need.
6. method according to claim 5, it is characterised in that described in response to determining that the user has search need,
It is determined that search intention key word corresponding with described information, including:
According to the target general demand key word and the search-type matched with described information, it is determined that corresponding with described information search
Suo Yitu key words.
7. according to arbitrary described method in claim 1-6, it is characterised in that the display search interface element, including:
Region beyond the candidate word viewing area of the input method application shows the search interface element.
8. according to arbitrary described method in claim 1-7, it is characterised in that before the display Search Results, institute
Stating method also includes:
Stop showing the search interface element.
9. according to arbitrary described method in claim 1-8, it is characterised in that the display Search Results, including:
Region beyond the candidate word viewing area of the input method application shows the Search Results.
10. according to arbitrary described method in claim 1-9, it is characterised in that methods described also includes:
In response to determining that the user does not have search need, determine the search interface element whether in dispaly state;
In response to determining that the search interface element is in dispaly state, stop showing the search interface element.
A kind of 11. message input devices, described device includes:
Demand determining unit, is configured to use input method application input information in response to detecting user, according to described information,
Determine that the user whether there is search need;
Key word determining unit, is configured in response to determining that the user has search need, it is determined that corresponding with described information
Search intention key word;
Interface element display unit, is configured to show search interface element, the search interface element includes the search meaning
Graph key word;
Search unit, is configured to the predetermined registration operation in response to detecting the user to the search interface element, according to institute
State search intention key word to scan for, and obtain Search Results;
Search result display unit, is configured to show the Search Results.
12. devices according to claim 11, it is characterised in that the demand determining unit includes:
First searching modul, is configured to it is determined that the determination demand that lookup is matched with described information in demand keyword set is closed
Keyword;
First demand determining module, is configured in response to finding the determination demand key word matched with described information, it is determined that
There is search need in the user.
13. devices according to claim 12, it is characterised in that the key word determining unit is further configured to:
It is determined that what is found closes with the determination demand key word of described information matching as search intention corresponding with described information
Keyword.
14. devices according to claim 12, it is characterised in that the demand determining unit also includes:
Second searching modul, is configured in response to not finding the determination demand key word matched with described information, in general need
Seek the general demand key word that lookup is matched with described information in keyword set;
Second demand determining module, is configured to, in response to finding the general demand key word matched with described information, to search
The general demand key word matched with described information for arriving is general according to described information and the target as target general demand key word
Demand key word, determines that the user whether there is search need.
15. devices according to claim 14, it is characterised in that the second demand determining module includes:
Submodule is searched, is configured to be used for the mapping table of the corresponding relation for characterizing general demand key word and search-type
It is middle to search at least one search-type corresponding with the target general demand key word, form candidate search type set;
First determination sub-module, is configured to carry out described information semantic analysis, and according to semantic analysis result determines
With the presence or absence of the search-type matched with described information in candidate search type set;
Second determination sub-module, is configured to be matched with described information in response to existing in the determination candidate search type set
Search-type, determine that the user has search need.
16. devices according to claim 15, it is characterised in that the key word determining unit is further configured to:
According to the target general demand key word and the search-type matched with described information, it is determined that corresponding with described information search
Suo Yitu key words.
A kind of 17. terminals, including:
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are by one or more of computing devices so that one or more of processor realities
The existing method as described in arbitrary in claim 1-10.
A kind of 18. computer-readable recording mediums, are stored thereon with computer program, it is characterised in that the computer program quilt
The method as described in arbitrary in claim 1-10 is realized during computing device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710024731.3A CN106681598B (en) | 2017-01-13 | 2017-01-13 | Information input method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710024731.3A CN106681598B (en) | 2017-01-13 | 2017-01-13 | Information input method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106681598A true CN106681598A (en) | 2017-05-17 |
CN106681598B CN106681598B (en) | 2020-12-15 |
Family
ID=58858887
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710024731.3A Active CN106681598B (en) | 2017-01-13 | 2017-01-13 | Information input method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106681598B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304434A (en) * | 2017-09-04 | 2018-07-20 | 腾讯科技(深圳)有限公司 | Information feedback method and terminal device |
CN108647349A (en) * | 2018-05-15 | 2018-10-12 | 优视科技有限公司 | A kind of content recommendation method, device and terminal device |
CN109684357A (en) * | 2018-12-21 | 2019-04-26 | 上海智臻智能网络科技股份有限公司 | Information processing method and device, storage medium, terminal |
CN111090762A (en) * | 2019-12-19 | 2020-05-01 | 京东方科技集团股份有限公司 | Image acquisition method and device, electronic equipment and storage medium |
CN112905079A (en) * | 2019-11-19 | 2021-06-04 | 北京搜狗科技发展有限公司 | Data processing method, device and medium |
CN114063795A (en) * | 2021-11-18 | 2022-02-18 | 北京字跳网络技术有限公司 | Interaction method, interaction device, electronic equipment and storage medium |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102184230A (en) * | 2011-05-11 | 2011-09-14 | 北京百度网讯科技有限公司 | Method and device for displaying search results |
CN102467541A (en) * | 2010-11-11 | 2012-05-23 | 腾讯科技(深圳)有限公司 | Situational searching method and system |
CN102855251A (en) * | 2011-06-30 | 2013-01-02 | 北京百度网讯科技有限公司 | Method and device for requirement identification |
CN103885947A (en) * | 2012-12-19 | 2014-06-25 | 北京百度网讯科技有限公司 | Mining method for searching demands, intelligent searching method and device thereof |
CN103914548A (en) * | 2014-04-10 | 2014-07-09 | 北京百度网讯科技有限公司 | Information searching method and information searching device |
CN103995870A (en) * | 2014-05-21 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Interactive searching method and device |
CN103995880A (en) * | 2014-05-27 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Interactive searching method and device |
CN104156391A (en) * | 2014-07-09 | 2014-11-19 | 北京奇虎科技有限公司 | Device and method for displaying menus in mobile search results |
CN104462272A (en) * | 2014-11-25 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Search requirement analysis method and device |
CN104765791A (en) * | 2015-03-24 | 2015-07-08 | 北京搜狗科技发展有限公司 | Information inputting method and device |
WO2015196907A1 (en) * | 2014-06-24 | 2015-12-30 | 北京奇虎科技有限公司 | Search pushing method and device which mine user requirements |
US20160004774A1 (en) * | 2013-03-27 | 2016-01-07 | Tencent Technology (Shenzhen) Company Limited | Information recommendation method and apparatus and information recommendation system |
US20160103847A1 (en) * | 2014-10-14 | 2016-04-14 | Samsung Electronics Co., Ltd. | Method for providing search keyword and electronic device supporting the same |
CN106156262A (en) * | 2015-04-28 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of search information processing method and system |
-
2017
- 2017-01-13 CN CN201710024731.3A patent/CN106681598B/en active Active
Patent Citations (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102467541A (en) * | 2010-11-11 | 2012-05-23 | 腾讯科技(深圳)有限公司 | Situational searching method and system |
CN102184230A (en) * | 2011-05-11 | 2011-09-14 | 北京百度网讯科技有限公司 | Method and device for displaying search results |
CN102855251A (en) * | 2011-06-30 | 2013-01-02 | 北京百度网讯科技有限公司 | Method and device for requirement identification |
CN103885947A (en) * | 2012-12-19 | 2014-06-25 | 北京百度网讯科技有限公司 | Mining method for searching demands, intelligent searching method and device thereof |
US20160004774A1 (en) * | 2013-03-27 | 2016-01-07 | Tencent Technology (Shenzhen) Company Limited | Information recommendation method and apparatus and information recommendation system |
CN103914548A (en) * | 2014-04-10 | 2014-07-09 | 北京百度网讯科技有限公司 | Information searching method and information searching device |
CN103995870A (en) * | 2014-05-21 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Interactive searching method and device |
CN103995880A (en) * | 2014-05-27 | 2014-08-20 | 百度在线网络技术(北京)有限公司 | Interactive searching method and device |
WO2015196907A1 (en) * | 2014-06-24 | 2015-12-30 | 北京奇虎科技有限公司 | Search pushing method and device which mine user requirements |
CN104156391A (en) * | 2014-07-09 | 2014-11-19 | 北京奇虎科技有限公司 | Device and method for displaying menus in mobile search results |
US20160103847A1 (en) * | 2014-10-14 | 2016-04-14 | Samsung Electronics Co., Ltd. | Method for providing search keyword and electronic device supporting the same |
CN104462272A (en) * | 2014-11-25 | 2015-03-25 | 百度在线网络技术(北京)有限公司 | Search requirement analysis method and device |
CN104765791A (en) * | 2015-03-24 | 2015-07-08 | 北京搜狗科技发展有限公司 | Information inputting method and device |
CN105183787A (en) * | 2015-03-24 | 2015-12-23 | 北京搜狗科技发展有限公司 | Information input method and apparatus |
CN106156262A (en) * | 2015-04-28 | 2016-11-23 | 天脉聚源(北京)科技有限公司 | A kind of search information processing method and system |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108304434A (en) * | 2017-09-04 | 2018-07-20 | 腾讯科技(深圳)有限公司 | Information feedback method and terminal device |
CN108647349A (en) * | 2018-05-15 | 2018-10-12 | 优视科技有限公司 | A kind of content recommendation method, device and terminal device |
CN109684357A (en) * | 2018-12-21 | 2019-04-26 | 上海智臻智能网络科技股份有限公司 | Information processing method and device, storage medium, terminal |
CN112905079A (en) * | 2019-11-19 | 2021-06-04 | 北京搜狗科技发展有限公司 | Data processing method, device and medium |
CN111090762A (en) * | 2019-12-19 | 2020-05-01 | 京东方科技集团股份有限公司 | Image acquisition method and device, electronic equipment and storage medium |
CN114063795A (en) * | 2021-11-18 | 2022-02-18 | 北京字跳网络技术有限公司 | Interaction method, interaction device, electronic equipment and storage medium |
WO2023088172A1 (en) * | 2021-11-18 | 2023-05-25 | 北京字跳网络技术有限公司 | Interaction method and apparatus, and electronic device and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN106681598B (en) | 2020-12-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107679211B (en) | Method and device for pushing information | |
US20190370305A1 (en) | Method and apparatus for providing search results | |
CN106681598A (en) | Information input method and device | |
CN109543058B (en) | Method, electronic device, and computer-readable medium for detecting image | |
US9483462B2 (en) | Generating training data for disambiguation | |
US20170052946A1 (en) | Semantic understanding based emoji input method and device | |
CN108268573B (en) | Method and device for pushing information | |
WO2021135319A1 (en) | Deep learning based text generation method and apparatus and electronic device | |
CN109189938A (en) | Method and apparatus for updating knowledge mapping | |
KR20140038463A (en) | Identifying matching applications based on browsing activity | |
CN113657113B (en) | Text processing method and device and electronic equipment | |
US20210279297A1 (en) | Linking to a search result | |
CN110059172B (en) | Method and device for recommending answers based on natural language understanding | |
CN105929979B (en) | Long sentence input method and device | |
CN110069698A (en) | Information-pushing method and device | |
CN109255036A (en) | Method and apparatus for output information | |
CN108304067A (en) | System, method and apparatus for showing information | |
CN107526718A (en) | Method and apparatus for generating text | |
CN113971243A (en) | Data processing method, system, equipment and storage medium applied to questionnaire survey | |
CN114282524A (en) | Method, system and device for processing structured data of questionnaire information | |
CN107729573A (en) | Information-pushing method and device | |
US20210294969A1 (en) | Generation and population of new application document utilizing historical application documents | |
US10073900B2 (en) | Presenting a trusted tag cloud | |
CN110019948A (en) | Method and apparatus for output information | |
US20180165277A1 (en) | Dynamic Translation of Idioms |
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 |