CN109002521A - Error correction method, device and the storage medium of search key - Google Patents
Error correction method, device and the storage medium of search key Download PDFInfo
- Publication number
- CN109002521A CN109002521A CN201810766338.6A CN201810766338A CN109002521A CN 109002521 A CN109002521 A CN 109002521A CN 201810766338 A CN201810766338 A CN 201810766338A CN 109002521 A CN109002521 A CN 109002521A
- Authority
- CN
- China
- Prior art keywords
- error correction
- keyword
- search
- confidence level
- search result
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/232—Orthographic correction, e.g. spell checking or vowelisation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/20—Natural language analysis
- G06F40/279—Recognition of textual entities
- G06F40/289—Phrasal analysis, e.g. finite state techniques or chunking
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Audiology, Speech & Language Pathology (AREA)
- Computational Linguistics (AREA)
- General Health & Medical Sciences (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The embodiment of the invention provides a kind of error correction method of search key, device and storage mediums, which comprises upon receiving a search request, obtains the search key in described search request;It whether determines in preset error correction dictionary comprising error correction keyword corresponding with described search keyword;If so, determining the confidence level of the error correction keyword;It is scanned for based on the confidence level and returns to corresponding search result.The present embodiment determines the need for carrying out correction process to the search key that user inputs by confidence level, different confidence levels can embody the credibility of error correction keyword, so that search engine can farthest match the actual search need of user according to confidence level.
Description
Technical field
The present invention relates to information search technique fields, search more particularly to a kind of error correction method of search key, one kind
The error correction device of rope keyword and a kind of storage medium.
Background technique
Search engine has become a kind of major way that people obtain information.By inputting key in a search engine
Word simultaneously clicks search, and user can obtain various information relevant to the keyword.
User when being scanned for using search engine, a correct search key for search result to close weight
It wants.Due to various reasons, the case where search key of user's input is likely to occur input error.For example, using Pinyin Input
The user of method may be wrong defeated at pinyin character by the Chinese character of some in keyword, and " keyboard " is such as entered as to " key pan ";It uses
The user of stroke input method may be wrong defeated at another similar Chinese character by some Chinese character, such as will " " be entered as " oneself warp "
Etc..At this point, search engine just needs to carry out error correction to the keyword that user inputs, corresponding search result is then returned again to.
Search engine is when the error-critical word that inputs to user carries out error correction in the prior art, mainly by obtain with
The smallest word of error-critical word editing distance or word of input is to realizing.But keyword is carried out using editing distance
The covered situation of error correction institute is less, can not carry out error correction to keyword according to the actual demand of user.For example, when user inputs
Keyword there are when multiple error correction terms, if only according to editing distance to correct the keyword of input for editing distance
The smallest error correction term may and not meet the actual search need of user.
Summary of the invention
In view of the above problems, it proposes the embodiment of the present invention and overcomes the above problem or at least partly in order to provide one kind
A kind of error correction method of the search key to solve the above problems, a kind of error correction device of search key and corresponding one kind are deposited
Storage media.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of error correction methods of search key, comprising:
Upon receiving a search request, the search key in described search request is obtained;
It whether determines in preset error correction dictionary comprising error correction keyword corresponding with described search keyword;
If so, determining the confidence level of the error correction keyword;
It is scanned for based on the confidence level and returns to corresponding search result.
Optionally, the preset error correction dictionary generates in the following way:
The user conversation window of equipment is obtained, the user conversation window is scanned for by record user using keyword
And the information clicked to search result generates, the keyword includes search key and error correction keyword;
Counting user clicks the number of corresponding with described search keyword initial search result respectively, and, click and
The number of the corresponding error correction search result of the error correction keyword;
The number of initial search result and the number of error correction search result are clicked according to the user, determine that the error correction is closed
The confidence level of keyword;
Error correction dictionary is generated based on described search keyword and corresponding error correction keyword and its confidence level.
Optionally, the number of the number and error correction search result that initial search result is clicked according to the user, really
The step of confidence level of the error correction keyword includes: calmly
Determine the search key of user's input;
If the corresponding initial search result of described search keyword is sky, closed alternatively, the user clicks with described search
The number of the corresponding initial search result of keyword then clicks error correction search result according to the user less than the first preset threshold
Number, determines the confidence level of the error correction keyword, and the number that the confidence level and the user click error correction search result has
There is proportional relationship.
Optionally, described to scan for based on the confidence level and include: the step of returning to corresponding search result
If the confidence level less than the second preset threshold, is scanned for using described search keyword, and is showed and institute
State the corresponding search result of search key and the Correcting Suggestion information for the error correction keyword;
If the confidence level is more than or equal to second preset threshold, scanned for using the error correction keyword, and
Show search result corresponding with the error correction keyword.
Optionally, the error correction keyword includes multiple, described to be scanned for using the error correction keyword, and show with
The step of error correction keyword corresponding search result includes:
Determine the corresponding target error correction term of the maximum value of the confidence level;
It is scanned for using the target error correction term, and shows search result corresponding with the target error correction term.
Optionally, further includes:
According to the confidence level of the error correction keyword, the error correction dictionary is modified.
Optionally, the confidence level according to the error correction keyword, the step of error correction dictionary is modified packet
It includes:
After showing search result corresponding with the error correction keyword, if the user using described search keyword into
Row search, then reduce the confidence level of the error correction keyword;
When the confidence level of the error correction keyword is less than third predetermined threshold value, by the error correction keyword from the error correction
It is deleted in dictionary.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of error correction devices of search key, comprising:
Search key obtains module, closes for upon receiving a search request, obtaining the search in described search request
Keyword;
Error correction keyword determining module, for determine in preset error correction dictionary whether include and described search keyword pair
The error correction keyword answered;
Confidence determination module, for if so, determining the confidence level of the error correction keyword;
Search module, for being scanned for based on the confidence level and returning to corresponding search result.
Optionally, the preset error correction dictionary is by calling following module to generate:
User conversation window obtains module, and for obtaining the user conversation window of equipment, the user conversation window passes through
Record user is scanned for using keyword and the information clicked to search result generates, and the keyword includes that search is closed
Keyword and error correction keyword;
Number of clicks statistical module clicks initial ranging knot corresponding with described search keyword for distinguishing counting user
The number of fruit, and, click the number of error correction search result corresponding with the error correction keyword;
Error correction keyword confidence determination module, for clicking number and the error correction of initial search result according to the user
The number of search result determines the confidence level of the error correction keyword;
Error correction dictionary generation module, for raw based on described search keyword and corresponding error correction keyword and its confidence level
At error correction dictionary.
Optionally, the error correction keyword confidence determination module includes:
Search key determines submodule, for determining the search key of user's input;
Error correction keyword confidence level determines submodule, if being for the corresponding initial search result of described search keyword
Sky, alternatively, the user clicks the number of corresponding with described search keyword initial search result less than the first preset threshold,
The number that error correction search result is then clicked according to the user, determines the confidence level of the error correction keyword, the confidence level with
The number that the user clicks error correction search result has proportional relationship.
Optionally, described search module includes:
First search submodule, if using described search keyword less than the second preset threshold for the confidence level
It scans for, and shows search result corresponding with described search keyword and believe for the Correcting Suggestion of the error correction keyword
Breath;
Second search submodule entangles described in use if being more than or equal to second preset threshold for the confidence level
Wrong keyword scans for, and shows search result corresponding with the error correction keyword.
Optionally, the error correction keyword includes multiple, and the second search submodule includes:
Target error correction term determination unit, the corresponding target error correction term of maximum value for determining the confidence level;
Search unit for being scanned for using the target error correction term, and is showed corresponding with the target error correction term
Search result.
Optionally, described device further include:
Error correction dictionary correction module repairs the error correction dictionary for the confidence level according to the error correction keyword
Just.
Optionally, the error correction dictionary correction module includes:
Error correction keyword confidence level reduces submodule, for showing search result corresponding with the error correction keyword
Afterwards, if the user is scanned for using described search keyword, the confidence level of the error correction keyword is reduced;
Error correction keyword delete submodule, for when the confidence level of the error correction keyword be less than third predetermined threshold value when,
The error correction keyword is deleted from the error correction dictionary.
To solve the above-mentioned problems, the embodiment of the invention discloses a kind of error correction devices of search key, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute entangling for above-mentioned search key via the executable instruction is executed
Wrong method.
To solve the above-mentioned problems, it the embodiment of the invention discloses a kind of computer readable storage medium, is stored thereon with
Computer program, the computer program realize the error correction method of above-mentioned search key when being executed by processor.
Compared with the background art, the embodiment of the present invention includes following advantages:
The embodiment of the present invention, upon receiving a search request, the search key in available searching request, and determine
It whether include error correction keyword corresponding with the search key in preset error correction dictionary, if comprising corresponding in error correction dictionary
Error correction keyword then may further determine that the confidence level of the error correction keyword, be then based on the confidence level of error correction keyword into
Row is searched for and returns to corresponding search result.The present embodiment determines the need for the search key inputted to user by confidence level
Word carries out correction process, and different confidence levels can embody the credibility of error correction keyword, so that search engine can be with
The actual search need of user is farthest matched according to confidence level, is solved and is relied solely on editing distance in the prior art
The problem of error correction can not match user's actual search need is carried out, the efficiency and accuracy rate of search are improved.
Detailed description of the invention
Fig. 1 is a kind of step flow diagram of the error correction method of search key of one embodiment of the invention;
Fig. 2 is the step flow diagram of the error correction method of another search key of one embodiment of the invention;
Fig. 3 is a kind of system architecture schematic diagram of the error correction method of search key of one embodiment of the invention;
Fig. 4 is a kind of schematic block diagram of the error correction device of search key of one embodiment of the invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real
Applying mode, the present invention is described in further detail.
Referring to Fig.1, the step process for showing a kind of error correction method of search key of one embodiment of the invention is shown
It is intended to, can specifically include following steps:
Step 101, upon receiving a search request, the search key in described search request is obtained;
In embodiments of the present invention, searching request can be triggered by operation of the user in terminal device.Above-mentioned end
End equipment can be the mobile terminal devices such as mobile phone, tablet computer, be also possible to the equipment such as desktop computer, the present embodiment is to terminal
The type of equipment is not construed as limiting.
By taking operation of the user on mobile phone as an example.User can input corresponding search key, and point in search box
Beginning search button is hit, to trigger searching request.Certainly, the triggering of searching request can also by other means, such as when
User summarizes input search key and by cursor after removing in search box in search box, and terminal device automatic trigger is above-mentioned to search
Rope request, the present embodiment are also not construed as limiting the triggering mode of searching request.
Search key can be the word or word pair for embodying user's current search demand.It is searched when user inputs in search box
It after rope keyword, can indicate that user wishes that search engine is scanned for according to the keyword, and return to relevant search to user
Hitch fruit.
For example, search result may include introduction to keyboard, key when the search key of user's input is " keyboard "
The purchasing channel of disk, and how to choose a good keyboard etc..
Step 102, it whether determines in preset error correction dictionary comprising error correction keyword corresponding with described search keyword;
In embodiments of the present invention, error correction dictionary can be record user input error-critical word with after corresponding error correction
Keyword between corresponding relationship database.The database can be passing by statistic mass user search history next life
At.
For example, can recorde in error correction dictionary and its phase for some search key " key pan " in error correction dictionary
Corresponding error correction keyword " keyboard ".Above-mentioned corresponding relationship can indicate, when user is when inputting search key " key pan ",
Its true search need may be " keyboard ".Certainly, for different keywords, the error correction term recorded in error correction dictionary can
To include more than one, the present embodiment is not construed as limiting the quantity of the corresponding error correction term of search key of mistake.
In embodiments of the present invention, after getting the search key of user's input, above-mentioned error correction can be inquired first
Dictionary, confirms whether the keyword has corresponding error correction keyword in error correction dictionary.
If not including error correction term corresponding with the search key in error correction dictionary, it can be said that bright user is currently defeated
The search key entered is correct search term, without carrying out correction process to the keyword.For example, " keyboard ".
If including error correction term corresponding with the search key in error correction dictionary, it can be said that bright user is currently entered
Search key may be the search term of mistake, and the keyword is needed to carry out correction process.For example, " key pan ".
Include in error correction dictionary and when searching the corresponding error correction keyword of keyword, step currently can be executed when confirming
103, confirm the confidence level of the error correction keyword.
Step 103, the confidence level of the error correction keyword is determined;
In statistics, the confidence interval (Confidence interval) of a probability sample is to this sample
The interval estimation of some population parameter.What confidence interval showed is that the true value of this parameter has certain probability to fall in measurement result
Around degree.What confidence interval provided is the credibility for being measured the measured value of parameter, i.e., " certain required by front
Probability ".This probability is referred to as confidence level.Therefore, the confidence level of error correction keyword can be used for illustrating the error correction keyword
Credibility.In general, confidence level is higher, the confidence level of the error correction keyword is also higher;Conversely, confidence level is lower, then illustrate
The confidence level of the error correction keyword is also lower.
In embodiments of the present invention, the confidence level of error correction keyword can generate error correction dictionary, or some error correction is closed
Keyword is added to generation when in error correction dictionary, and is recorded in error correction dictionary.Therefore, when determining that some or certain several error correction close
When keyword, the confidence level of each error correction keyword can be directly extracted from error correction dictionary.
It should be noted that certain search keys may include multiple error correction keywords, each error correction keyword
To have a confidence level, which, which can embody, carries out the general of error correction to original search key using the error correction keyword
Rate.
Step 104, it is scanned for based on the confidence level and returns to corresponding search result.
In embodiments of the present invention, the confidence level of an error correction keyword can be simply divided into high confidence level and low
Different ways of search is respectively adopted then according to the difference of confidence level height in two kinds of situations of confidence level.
For the error correction keyword of high confidence level, can indicate that current search key has biggish probability is that user is defeated
Enter wrong, needs to carry out correction process to it using error correction keyword.At this point it is possible to directly adopt the progress of the keyword after error correction
It searches for and returns to search result.For example, " self ", corresponding error correction keyword " oneself " can have one in error correction dictionary
Higher confidence level can directly carry out error correction, and using after error correction when user is when input " self " scans for it
" oneself " scans for.
And for the error correction keyword of low confidence, it can indicate user's search key input mistake currently entered
Probability is smaller, and it is not absolutely required to carry out correction process to it using error correction keyword.At this point it is possible to according to former search key
Scan for and show in result of page searching error correcting prompt, with prompt the user whether to need to current search key into
Row correction process.For example, in error correction dictionary, " ten " corresponding error correction keyword " world " can have one and lower set
Reliability, when user is when input " ten " scans for, search engine can be carried out according to original search key " ten "
It searches for and returns to corresponding search result, and show error correcting prompt information in results page simultaneously, to prompt the user whether to need
Search is re-started according to " world " after error correction.
Certainly, the above confidence level by error correction keyword is divided into two kinds of situations of high confidence level and low confidence and carries out respectively
Search is a kind of example of the present embodiment, and those skilled in the art can according to actual needs, according to setting for error correction keyword
Reliability is scanned for using other modes, and the present embodiment is not construed as limiting this.
In embodiments of the present invention, upon receiving a search request, the search key in available searching request, and
It determines whether comprising error correction keyword corresponding with the search key in preset error correction dictionary, if including pair in error correction dictionary
The error correction keyword answered, then may further determine that the confidence level of the error correction keyword, be then based on the confidence of error correction keyword
Degree scans for and returns to corresponding search result.The present embodiment determines the need for the search inputted to user by confidence level
Keyword carries out correction process, and different confidence levels can embody the credibility of error correction keyword, so that search engine
The actual search need of user can be farthest matched according to confidence level, solve rely solely in the prior art editor away from
From the problem of error correction can not match user's actual search need is carried out, the efficiency and accuracy rate of search are improved.
Referring to Fig. 2, the step process of the error correction method of another search key of one embodiment of the invention is shown
Schematic diagram can specifically include following steps:
Step 201, error correction dictionary is generated;
In embodiments of the present invention, error correction dictionary can be record user input error-critical word with after corresponding error correction
Keyword between corresponding relationship database.The database can be passing by statistic mass user search history next life
At.
In embodiments of the present invention, the user conversation window of equipment can be obtained first.Above-mentioned user conversation window can be with
It is scanned for by record user using keyword and the information clicked to search result generates, above-mentioned keyword can wrap
Include search key and error correction keyword.
In general, user, when being scanned for using search engine, if the keyword of input is wrong, user can be actively right
It carries out correction process, then changes an other keyword and scans for, until obtaining satisfied search result.Therefore, it uses
Family session window can be used for recording the operation information of user in above process.
In the concrete realization, can by the UUID of equipment (Universally Unique Identifier, it is general only
One identification code) obtain above-mentioned user conversation window.UUID can uniquely determine an equipment, by obtaining on multiple devices
User conversation window, can determine user in search initially used in keyword after keyword and error correction, and be directed to
The click condition of the search result of different keywords.
It is then possible to be based on each UUID, counting user clicks initial search result corresponding with search key respectively
Number, and, click the number of corresponding with error correction keyword error correction search result, and initially search according to above-mentioned user click
The number of hitch fruit and the number of error correction search result, determine the confidence level of each error correction keyword.
In the concrete realization, it can determine the search key that user inputs in each user conversation window, count this and search
Whether rope keyword has corresponding search result to return, if the corresponding initial search result of the search key is sky, alternatively, with
The number of initial search result corresponding with the search key is clicked less than the first preset threshold in family, then can further count
User is after more preferable keyword scans for, and to the number of clicks of the search result of acquisition, searches to click error correction according to user
The number of hitch fruit determines the confidence level of above-mentioned error correction keyword.Generally, the confidence level of error correction keyword is clicked with user and is entangled
The number of wrong search result can have proportional relationship.
For example, can determine that the keyword is first after user inputs some keyword in search box and scans for
It is no that there is corresponding search result.If not with the search result of the Keywords matching, it may be considered that the keyword be mistake
Keyword accidentally.It, then can be further according to user to the search result if there is the search result with the Keywords matching
Click condition, determine whether the keyword correct.Specifically, if group of subscribers clicks the corresponding search result of the keyword
Number be less than certain numerical value, it is believed that the keyword may be mistake.It is closed at this point it is possible to continue counting user in replacement
After keyword scans for and obtains search result, to the click condition of search result.Then, according to user to the key after replacement
The click condition of the corresponding search result of word, determines the confidence level of the keyword.In general, click of the group of subscribers to search result
Number is more, then the confidence level of the corresponding error correction keyword of the search result is higher.
In embodiments of the present invention, after the confidence level for obtaining error correction keyword, original search key can be based on
Error correction dictionary is generated with corresponding error correction keyword and its confidence level.
Step 202, upon receiving a search request, the search key in described search request is obtained;
Step 203, it whether determines in preset error correction dictionary comprising error correction keyword corresponding with described search keyword;
Step 204, if so, determining the confidence level of the error correction keyword;
Step 205, if the confidence level is scanned for less than the second preset threshold using described search keyword, and
Show search result corresponding with described search keyword and the Correcting Suggestion information for the error correction keyword;
Step 206, it if the confidence level is more than or equal to second preset threshold, is carried out using the error correction keyword
Search, and show search result corresponding with the error correction keyword;
Since step 202 to step 206 is similar to step 104 with step 101 in above-described embodiment, can mutually refering to,
Therefore the present embodiment repeats no more step 202 to step 206, and concrete implementation mode may refer to step 101 to step 104
In record.
It should be noted that the corresponding error correction keyword of a search key may include multiple in error correction dictionary.
Therefore, when scanning for using error correction keyword, the corresponding target error correction term of the maximum value of confidence level can be determined first, so
It is scanned for afterwards using above-mentioned target error correction term, and shows search result corresponding with the target error correction term.
Step 207, according to the confidence level of the error correction keyword, the error correction dictionary is modified.
It in embodiments of the present invention, not only can searching according to user by obtaining the user conversation window of every equipment
Rope click condition determines error correction keyword and its confidence level, so that error correction dictionary is generated, it can also be according to each error correction keyword
Confidence level and its situation of change, above-mentioned error correction dictionary is modified, guarantee error correction dictionary accuracy.
In the concrete realization, after showing search result corresponding with error correction keyword, if user continues using original
Search key scans for, then can reduce the confidence level of the error correction keyword;When the confidence level of error correction keyword is less than
When three preset thresholds, for example, third predetermined threshold value can be 0, at this point it is possible to which above-mentioned error correction keyword is deleted from error correction dictionary
It removes.
For example, user is scanned for using some keyword, if system according to the suggestion of error correction dictionary, to the keyword
Correction process has been carried out, and has returned the search result scanned for according to error correction keyword to user.But if user does not have
Have and clicks the search result, but selection continues to scan for using original keyword, it may be considered that in error correction dictionary
The error correction keyword may be mistake, at this point it is possible to reduce the confidence level of the error correction keyword.When the confidence of error correction keyword
When degree is reduced to certain numerical value, such as the numerical value can be 0, then can delete the error correction keyword from error correction dictionary.
In embodiments of the present invention, by obtaining user conversation window, error correction dictionary can be generated, to carry out in user
When search, correction process can be carried out according to the error correction keyword recorded in the error correction dictionary.Since user conversation window can
Search history of the user under different search scenes is recorded, the correction process carried out according to error correction dictionary is obtained
The error correction keyword for meeting current search scene meets the actual search demand of user, improves the efficiency and accuracy rate of search.
In addition, can also be adjusted to the confidence level of each error correction keyword according to user conversation window, to realize to error correction term
The amendment in library further improves the accuracy of error correction dictionary.
It is situated between in order to make it easy to understand, making one below with error correction method of the complete example to search key of the invention
It continues.
As shown in figure 3, being a kind of system architecture signal of the error correction method of search key of one embodiment of the invention
Figure.It may include that the parts such as service, error correction dictionary and error correction online service are excavated in error correction in Fig. 3.Wherein, error correction is excavated
Service is responsible for excavating search key and corresponding error correction keyword as error correction term to addition error correction dictionary, error correction online service
It is responsible for the searching request access error correction dictionary based on user to judge whether to need to carry out search key error correction, and obtains and entangle
Correct word after mistake.
After error correction online service receives user search request, error correction online service can be based on searching in searching request
Rope keyword requests error correction dictionary, and whether inquiry has corresponding error correction term pair, entangle if so, then returning to the correct word after error correction
The confidence level of wrong keyword and the error correction keyword is to client.Client can be directly to export based on confidence level selection
Search result after error correction still only shows Correcting Suggestion.
Then, error correction online service can also be by the secondary request and the write-in search log of subsequent search click condition.
Service is excavated in error correction can read search log offline daily, obtain user conversation window, generation search key with it is corresponding
Error correction keyword is as error correction term to write-in error correction dictionary.In addition, error correction excavation service can be straight with what is occurred in audit log
After connecing error correction, but user clicks the log of former word.If there is above situation, then error correction dictionary can be requested to close the error correction
The confidence level of keyword reduces, if being 0 after reducing, can directly delete from error correction dictionary.
It should be noted that for simple description, therefore, it is stated as a series of action groups for embodiment of the method
It closes, but those skilled in the art should understand that, embodiment of that present invention are not limited by the describe sequence of actions, because according to
According to the embodiment of the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art also should
Know, the embodiments described in the specification are all preferred embodiments, and the related movement not necessarily present invention is implemented
Necessary to example.
Referring to Fig. 4, a kind of schematic structure of the error correction device of search key of one embodiment of the invention is shown
Block diagram can specifically include following module:
Search key obtains module 401, for upon receiving a search request, obtaining the search in described search request
Keyword;
Error correction keyword determining module 402, for whether determining in preset error correction dictionary comprising crucial with described search
The corresponding error correction keyword of word;
Confidence determination module 403, for if so, determining the confidence level of the error correction keyword;
Search module 404, for being scanned for based on the confidence level and returning to corresponding search result.
In embodiments of the present invention, the preset error correction dictionary can be by calling following module to generate:
User conversation window obtains module, and for obtaining the user conversation window of equipment, the user conversation window can be with
It is scanned for by record user using keyword and the information clicked to search result generates, the keyword can wrap
Include search key and error correction keyword;
Number of clicks statistical module clicks initial ranging knot corresponding with described search keyword for distinguishing counting user
The number of fruit, and, click the number of error correction search result corresponding with the error correction keyword;
Error correction keyword confidence determination module, for clicking number and the error correction of initial search result according to the user
The number of search result determines the confidence level of the error correction keyword;
Error correction dictionary generation module, for raw based on described search keyword and corresponding error correction keyword and its confidence level
At error correction dictionary.
In embodiments of the present invention, the error correction keyword confidence determination module can specifically include following submodule:
Search key determines submodule, for determining the search key of user's input;
Error correction keyword confidence level determines submodule, if being for the corresponding initial search result of described search keyword
Sky, alternatively, the user clicks the number of corresponding with described search keyword initial search result less than the first preset threshold,
The number that error correction search result is then clicked according to the user, determines the confidence level of the error correction keyword, the confidence level with
The number that the user clicks error correction search result can have proportional relationship.
In embodiments of the present invention, described search module 404 can specifically include following submodule:
First search submodule, if using described search keyword less than the second preset threshold for the confidence level
It scans for, and shows search result corresponding with described search keyword and believe for the Correcting Suggestion of the error correction keyword
Breath;
Second search submodule entangles described in use if being more than or equal to second preset threshold for the confidence level
Wrong keyword scans for, and shows search result corresponding with the error correction keyword.
In embodiments of the present invention, the error correction keyword may include multiple, and the second search submodule specifically may be used
To include such as lower unit:
Target error correction term determination unit, the corresponding target error correction term of maximum value for determining the confidence level;
Search unit for being scanned for using the target error correction term, and is showed corresponding with the target error correction term
Search result.
In embodiments of the present invention, described device can also include following module:
Error correction dictionary correction module repairs the error correction dictionary for the confidence level according to the error correction keyword
Just.
In embodiments of the present invention, the error correction dictionary correction module can specifically include following submodule:
Error correction keyword confidence level reduces submodule, for showing search result corresponding with the error correction keyword
Afterwards, if the user is scanned for using described search keyword, the confidence level of the error correction keyword is reduced;
Error correction keyword delete submodule, for when the confidence level of the error correction keyword be less than third predetermined threshold value when,
The error correction keyword is deleted from the error correction dictionary.
The embodiment of the invention discloses a kind of error correction devices of search key, comprising:
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute entangling for above-mentioned search key via the executable instruction is executed
Wrong method.
For device embodiment, since it is basically similar to the method embodiment, related so being described relatively simple
Place illustrates referring to the part of embodiment of the method.
The embodiment of the invention discloses a kind of computer readable storage mediums, are stored thereon with computer program, the meter
The error correction method such as above-mentioned search key is realized when calculation machine program is executed by processor.
All the embodiments in this specification are described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiments, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can provide as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be referring to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in process and/or box combination.It can provide these
Computer program instructions are set to general purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine, so that being held by the processor of computer or other programmable data processing terminal devices
Capable instruction generates for realizing in one or more flows of the flowchart and/or one or more blocks of the block diagram
The device of specified function.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing terminal devices
In computer-readable memory operate in a specific manner, so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one side of one or more flows of the flowchart and/or block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one or more flows of the flowchart
And/or in one or more blocks of the block diagram specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also including other elements that are not explicitly listed, or further includes for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device for including the element.
Above to a kind of error correction method of search key provided by the present invention, a kind of error correction device of search key
With a kind of storage medium, be described in detail, specific case used herein to the principle of the present invention and embodiment into
Elaboration is gone, the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;Meanwhile for this
The those skilled in the art in field, according to the thought of the present invention, there will be changes in the specific implementation manner and application range,
In conclusion the contents of this specification are not to be construed as limiting the invention.
Claims (10)
1. a kind of error correction method of search key characterized by comprising
Upon receiving a search request, the search key in described search request is obtained;
It whether determines in preset error correction dictionary comprising error correction keyword corresponding with described search keyword;
If so, determining the confidence level of the error correction keyword;
It is scanned for based on the confidence level and returns to corresponding search result.
2. the method according to claim 1, wherein the preset error correction dictionary generates in the following way:
The user conversation window of equipment is obtained, the user conversation window uses keyword to scan for and right by record user
The information that search result is clicked generates, and the keyword includes search key and error correction keyword;
Counting user clicks the number of corresponding with described search keyword initial search result respectively, and, click with it is described
The number of the corresponding error correction search result of error correction keyword;
The number of initial search result and the number of error correction search result are clicked according to the user, determine the error correction keyword
Confidence level;
Error correction dictionary is generated based on described search keyword and corresponding error correction keyword and its confidence level.
3. according to the method described in claim 2, it is characterized in that, time for clicking initial search result according to the user
Several and error correction search result numbers, the step of determining the confidence level of the error correction keyword include:
Determine the search key of user's input;
If the corresponding initial search result of described search keyword is sky, alternatively, the user clicks and described search keyword
The number of corresponding initial search result then clicks time of error correction search result less than the first preset threshold according to the user
Number, determines the confidence level of the error correction keyword, and the number that the confidence level clicks error correction search result with the user has
Proportional relationship.
4. the method according to claim 1, wherein described scanned for based on the confidence level and returned corresponding
Search result the step of include:
If the confidence level is scanned for less than the second preset threshold using described search keyword, and is showed and searched with described
The corresponding search result of rope keyword and Correcting Suggestion information for the error correction keyword;
If the confidence level is more than or equal to second preset threshold, scanned for using the error correction keyword, and show
Search result corresponding with the error correction keyword.
5. according to the method described in claim 4, it is characterized in that, the error correction keyword include it is multiple, described in the use
Error correction keyword scans for, and the step of showing search result corresponding with the error correction keyword includes:
Determine the corresponding target error correction term of the maximum value of the confidence level;
It is scanned for using the target error correction term, and shows search result corresponding with the target error correction term.
6. according to the method described in claim 4, it is characterized by further comprising:
According to the confidence level of the error correction keyword, the error correction dictionary is modified.
7. according to the method described in claim 6, it is characterized in that, the confidence level according to the error correction keyword, to institute
Stating the step of error correction dictionary is modified includes:
After showing search result corresponding with the error correction keyword, if the user is searched using described search keyword
Rope then reduces the confidence level of the error correction keyword;
When the confidence level of the error correction keyword is less than third predetermined threshold value, by the error correction keyword from the error correction dictionary
Middle deletion.
8. a kind of error correction device of search key characterized by comprising
Search key obtains module, for upon receiving a search request, obtaining the search key in described search request;
Error correction keyword determining module, for whether determining in preset error correction dictionary comprising corresponding with described search keyword
Error correction keyword;
Confidence determination module, for if so, determining the confidence level of the error correction keyword;
Search module, for being scanned for based on the confidence level and returning to corresponding search result.
9. a kind of error correction device of search key characterized by comprising
Processor;And
Memory, for storing the executable instruction of the processor;
Wherein, the processor is configured to execute via the executable instruction is executed such as any one of claim 1-7 institute
The error correction method for the search key stated.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program
The error correction method such as search key of any of claims 1-7 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810766338.6A CN109002521A (en) | 2018-07-12 | 2018-07-12 | Error correction method, device and the storage medium of search key |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810766338.6A CN109002521A (en) | 2018-07-12 | 2018-07-12 | Error correction method, device and the storage medium of search key |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109002521A true CN109002521A (en) | 2018-12-14 |
Family
ID=64599193
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810766338.6A Pending CN109002521A (en) | 2018-07-12 | 2018-07-12 | Error correction method, device and the storage medium of search key |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109002521A (en) |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110569441A (en) * | 2019-09-16 | 2019-12-13 | 腾讯科技(深圳)有限公司 | error correction method and device for search character string |
CN110609859A (en) * | 2019-09-19 | 2019-12-24 | 惠州市中心人民医院 | Intelligent accurate retrieval method based on phrase library |
CN111104582A (en) * | 2019-12-24 | 2020-05-05 | 上海众源网络有限公司 | Fault-tolerant method and device for search page and electronic equipment |
CN111581228A (en) * | 2019-02-15 | 2020-08-25 | 北京无限光场科技有限公司 | Search method and device for correcting search condition, storage medium and electronic equipment |
CN111694985A (en) * | 2020-06-17 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Search method, search device, electronic equipment and computer-readable storage medium |
CN112131461A (en) * | 2020-09-09 | 2020-12-25 | 重庆易宠科技有限公司 | Commodity searching method, system, terminal and computer readable storage medium |
CN112528980A (en) * | 2020-12-16 | 2021-03-19 | 北京华宇信息技术有限公司 | OCR recognition result correction method and terminal and system thereof |
CN113221558A (en) * | 2021-05-28 | 2021-08-06 | 中邮信息科技(北京)有限公司 | Express delivery address error correction method and device, storage medium and electronic equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100306229A1 (en) * | 2009-06-01 | 2010-12-02 | Aol Inc. | Systems and Methods for Improved Web Searching |
CN102915314A (en) * | 2011-08-05 | 2013-02-06 | 腾讯科技(深圳)有限公司 | Automatic error correction pair generation method and system |
CN103150362A (en) * | 2013-02-28 | 2013-06-12 | 北京奇虎科技有限公司 | Video search method and system |
CN103838739A (en) * | 2012-11-21 | 2014-06-04 | 百度在线网络技术(北京)有限公司 | Method and system for detecting error correction words in search engine |
CN105550171A (en) * | 2015-12-31 | 2016-05-04 | 北京奇艺世纪科技有限公司 | Error correction method and system for query information of vertical search engine |
-
2018
- 2018-07-12 CN CN201810766338.6A patent/CN109002521A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20100306229A1 (en) * | 2009-06-01 | 2010-12-02 | Aol Inc. | Systems and Methods for Improved Web Searching |
CN102915314A (en) * | 2011-08-05 | 2013-02-06 | 腾讯科技(深圳)有限公司 | Automatic error correction pair generation method and system |
CN103838739A (en) * | 2012-11-21 | 2014-06-04 | 百度在线网络技术(北京)有限公司 | Method and system for detecting error correction words in search engine |
CN103150362A (en) * | 2013-02-28 | 2013-06-12 | 北京奇虎科技有限公司 | Video search method and system |
CN105550171A (en) * | 2015-12-31 | 2016-05-04 | 北京奇艺世纪科技有限公司 | Error correction method and system for query information of vertical search engine |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111581228A (en) * | 2019-02-15 | 2020-08-25 | 北京无限光场科技有限公司 | Search method and device for correcting search condition, storage medium and electronic equipment |
CN110569441A (en) * | 2019-09-16 | 2019-12-13 | 腾讯科技(深圳)有限公司 | error correction method and device for search character string |
CN110569441B (en) * | 2019-09-16 | 2022-05-17 | 腾讯科技(深圳)有限公司 | Error correction method and device for search character string |
CN110609859A (en) * | 2019-09-19 | 2019-12-24 | 惠州市中心人民医院 | Intelligent accurate retrieval method based on phrase library |
CN111104582A (en) * | 2019-12-24 | 2020-05-05 | 上海众源网络有限公司 | Fault-tolerant method and device for search page and electronic equipment |
CN111104582B (en) * | 2019-12-24 | 2023-12-05 | 上海众源网络有限公司 | Fault tolerance method and device for search page and electronic equipment |
CN111694985B (en) * | 2020-06-17 | 2022-03-01 | 北京字节跳动网络技术有限公司 | Search method, search device, electronic equipment and computer-readable storage medium |
CN111694985A (en) * | 2020-06-17 | 2020-09-22 | 北京字节跳动网络技术有限公司 | Search method, search device, electronic equipment and computer-readable storage medium |
CN112131461A (en) * | 2020-09-09 | 2020-12-25 | 重庆易宠科技有限公司 | Commodity searching method, system, terminal and computer readable storage medium |
CN112528980B (en) * | 2020-12-16 | 2022-02-15 | 北京华宇信息技术有限公司 | OCR recognition result correction method and terminal and system thereof |
CN112528980A (en) * | 2020-12-16 | 2021-03-19 | 北京华宇信息技术有限公司 | OCR recognition result correction method and terminal and system thereof |
CN113221558A (en) * | 2021-05-28 | 2021-08-06 | 中邮信息科技(北京)有限公司 | Express delivery address error correction method and device, storage medium and electronic equipment |
CN113221558B (en) * | 2021-05-28 | 2023-09-19 | 中邮信息科技(北京)有限公司 | Express address error correction method and device, storage medium and electronic equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109002521A (en) | Error correction method, device and the storage medium of search key | |
CN105488151A (en) | Reference document recommendation method and apparatus | |
CN109791501B (en) | System and method for reducing download requirements | |
JP2014116026A (en) | Hierarchical tag having community-based rating | |
CN110531912B (en) | Page skipping method and device | |
KR102230433B1 (en) | Method and device for implementing service operations based on images | |
CN112783779B (en) | Method and device for generating test case, electronic equipment and storage medium | |
CN110096646A (en) | The generation of category related information and its video pushing method and relevant device | |
CN110457610A (en) | Information recommendation method, device, terminal, server and storage medium | |
CN115455280A (en) | Recommendation list determining method and server | |
CN113239183B (en) | Training method and device for ranking model, electronic equipment and storage medium | |
CN102915313B (en) | Error correction relation generation method and system in web search | |
CN114640868A (en) | Video drainage method and related equipment | |
US9781232B2 (en) | Server apparatus and information processing apparatus | |
KR101175194B1 (en) | Method, apparatus, server, and computer-readable recording medium for searching image | |
CN110020309A (en) | A kind of page processing method and device | |
CN113127720A (en) | Hot word searching determination method and device | |
CN116029607A (en) | Account screening method, account screening device, electronic equipment and storage medium | |
CN113590605B (en) | Data processing method, device, electronic equipment and storage medium | |
CN106469166A (en) | A kind of information processing method and device | |
KR101295899B1 (en) | System and method for recommend keyword | |
KR101138822B1 (en) | Method and system for managing annoted names of people appearing in digital photos | |
CN112100294A (en) | User relationship analysis method and device for network platform and related equipment | |
CN113923481A (en) | Multimedia content playing method and device, electronic equipment and storage medium | |
CN109829112B (en) | Fissile topic tracking method and device based on big data and computer equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181214 |