CN113220860A - Searching method and device - Google Patents

Searching method and device Download PDF

Info

Publication number
CN113220860A
CN113220860A CN202110615980.6A CN202110615980A CN113220860A CN 113220860 A CN113220860 A CN 113220860A CN 202110615980 A CN202110615980 A CN 202110615980A CN 113220860 A CN113220860 A CN 113220860A
Authority
CN
China
Prior art keywords
vocabulary
database
analysis
search
vocabularies
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
Application number
CN202110615980.6A
Other languages
Chinese (zh)
Inventor
韩瑜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Agricultural Bank of China
Original Assignee
Agricultural Bank of China
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Agricultural Bank of China filed Critical Agricultural Bank of China
Priority to CN202110615980.6A priority Critical patent/CN113220860A/en
Publication of CN113220860A publication Critical patent/CN113220860A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/332Query formulation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/3331Query processing
    • G06F16/3332Query translation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/338Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Mathematical Physics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a searching method and a searching device. The method comprises the following steps: receiving a search word input by a user; analyzing the search words to obtain a plurality of analyzed words; according to the plurality of analysis vocabularies and the vocabulary database, determining a return result corresponding to each analysis vocabulary, wherein the vocabulary database comprises: the system comprises a general vocabulary database, a historical selection database and an abnormal vocabulary database, wherein the historical selection database comprises vocabularies selected by a user before, and the abnormal vocabulary database comprises vocabularies which do not exist in the general vocabulary database and the historical selection database; and outputting a return result corresponding to the plurality of analyzed vocabularies. The problem that the search result is not ideal when the search words cannot accurately describe the content which the user wants to search can be avoided.

Description

Searching method and device
Technical Field
The present application relates to the field of search, and in particular, to a search method and apparatus.
Background
When the user needs to look up the information, the user can input the search terms in the search tool, the search tool can carry out retrieval based on the search terms, and then the retrieval result is displayed for the user to check. However, the search terms input by the user may not accurately describe the content that the user really wants to search, and in this case, the presented search result is not wanted by the user, and the user experience is not high.
Disclosure of Invention
The embodiment of the application provides a searching method and a searching device, which are used for solving the problem that when a searching word cannot accurately describe contents which a user wants to search, a searching result is not ideal.
In a first aspect, the present application provides a search method, including: receiving a search word input by a user; analyzing the search words to obtain a plurality of analyzed words; according to the plurality of analysis vocabularies and the vocabulary database, determining a return result corresponding to each analysis vocabulary, wherein the vocabulary database comprises: the system comprises a general vocabulary database, a historical selection database and an abnormal vocabulary database, wherein the historical selection database comprises vocabularies selected by a user before, and the abnormal vocabulary database comprises vocabularies which do not exist in the general vocabulary database and the historical selection database; and outputting a return result corresponding to the plurality of analyzed vocabularies.
Optionally, the analyzing the search term to obtain a plurality of analyzed vocabularies includes: splitting each Chinese character in the search word according to the radicals to obtain a plurality of Chinese character elements corresponding to the search word; and combining the Chinese character elements to obtain the plurality of analysis vocabularies.
Optionally, the determining, according to the multiple analysis vocabularies and the vocabulary database, a return result corresponding to each analysis vocabulary includes: matching each analyzed vocabulary in the plurality of analyzed vocabularies with the vocabulary in each vocabulary database respectively; determining a vocabulary database to which the analysis vocabulary belongs according to the matching result; and determining a return result corresponding to the analysis vocabulary according to the vocabulary database to which the analysis vocabulary belongs.
Optionally, the determining, according to the vocabulary database to which the analysis vocabulary belongs, a return result corresponding to the analysis vocabulary includes: and if the analysis vocabulary belongs to the universal vocabulary database, determining that a return result corresponding to the analysis vocabulary comprises a search result of the analysis vocabulary and first indication information, wherein the first indication information is used for indicating that the analysis vocabulary belongs to the universal vocabulary database.
Optionally, the determining, according to the vocabulary database to which the analysis vocabulary belongs, a return result corresponding to the analysis vocabulary includes: and if the analysis vocabulary belongs to the history selection database, determining that a return result corresponding to the analysis vocabulary comprises a search result of the analysis vocabulary and second indication information, wherein the second indication information is used for indicating that the analysis vocabulary belongs to the history selection database.
Optionally, the returned result corresponding to the analysis vocabulary further includes third indication information, where the third indication information is used to indicate the number of times that the analysis vocabulary is selected.
Optionally, the determining, according to the vocabulary database to which the analysis vocabulary belongs, a return result corresponding to the analysis vocabulary includes: and if the analysis vocabulary belongs to the abnormal vocabulary database, determining that a return result corresponding to the analysis vocabulary comprises fourth indicating information, wherein the fourth indicating information is used for indicating that the analysis vocabulary belongs to the abnormal vocabulary database.
Optionally, the method further includes: and if the analyzed vocabulary does not belong to the vocabulary database, adding the analyzed vocabulary to the abnormal vocabulary database.
In a second aspect, the present application provides a search apparatus, comprising: the receiving module is used for receiving search terms input by a user; the analysis module is used for analyzing the search words to obtain a plurality of analysis words; a determining module, configured to determine a returned result corresponding to each analyzed vocabulary according to the multiple analyzed vocabularies and the vocabulary database, where the vocabulary database includes: the system comprises a general vocabulary database, a historical selection database and an abnormal vocabulary database, wherein the historical selection database comprises vocabularies selected by a user before, and the abnormal vocabulary database comprises vocabularies which do not exist in the general vocabulary database and the historical selection database; and the output module is used for outputting the return results corresponding to the plurality of analysis vocabularies.
In a third aspect, the present application provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the search method provided by the first aspect.
In a fourth aspect, the present application provides a terminal device, comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to implement the search method provided by the first aspect via execution of the executable instructions.
The application provides a searching method and device. After receiving a search word input by a user, analyzing the search word to obtain a plurality of analyzed words, then determining a return result corresponding to each analyzed word based on the plurality of analyzed words and a word database, and finally outputting the return results corresponding to the plurality of analyzed words.
Drawings
Fig. 1 is a schematic flowchart of a first embodiment of a search method provided in the present application;
FIG. 2 is a diagram of the correspondence between the components and Chinese characters provided in the present application;
FIG. 3 is a schematic diagram of the assembly process provided herein;
fig. 4 is a schematic flowchart of a second embodiment of a search method provided in the present application;
FIG. 5 is a first schematic view of a user interface provided herein;
FIG. 6 is a second schematic view of a user interface provided herein;
FIG. 7 is a third schematic view of a user interface provided herein;
FIG. 8 is a schematic structural diagram of a search apparatus provided in the present application;
fig. 9 is a schematic diagram of a hardware structure of a terminal device provided in the present application.
Detailed Description
To make the purpose, technical solutions and advantages of the present application clearer, the technical solutions in the present application will be clearly and completely described below with reference to the drawings in the present application, and it is obvious that the described embodiments are some, but not all embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In this application, it is to be construed that "at least one" means one or more and "a plurality" means two or more. "and/or" describes the association relationship of the associated objects, meaning that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. The character "is a relationship generally indicating that the former and latter associated objects are an" or ". "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a alone, b alone, c alone, a and b combination, a and c combination, b and c combination, or a, b and c combination, wherein a, b and c can be single or multiple.
The present application relates to searching scenarios. When a user wants to search for desired information on a network, a search term may be entered in a search tool. However, in some scenarios, such as: the user does not determine the accurate Chinese character composition of the search word, and the returned result of the existing search method may be far from the information desired by the user under the condition of subjectively guessing the search word, so that the user experience is not high.
For example, a user may want to search for an amino acid, but not determine its exact Chinese character composition, guessing it may be moonlight acid. After the user enters the mooncake in the input box, the returned result of the search tool may not be desired by the user, and the user search experience is not high.
In order to solve the technical problems, the search method is provided, after a user inputs a search word, the search word is firstly analyzed to obtain a plurality of words which the user may want to search, the search is carried out based on the words to obtain a search result, and the search result is displayed on a user interface for the user to check, so that the problem that the search result is not ideal when the search word cannot accurately describe the content which the user wants to search can be avoided.
The searching method provided by the application can be applied to terminal equipment. The terminal device can be a mobile phone, a tablet computer, a smart watch, a television, a wearable device and other electronic devices capable of providing search services. By way of example and not limitation, a wearable device may also be referred to as a wearable smart device, which is a generic term for intelligently designing daily wear and developing wearable devices, such as glasses, gloves, watches, clothing, shoes, and the like, by applying wearable technology. A wearable device is a portable device that is worn directly on the body or integrated into the clothing or accessories of the user.
Specific embodiments of the present application will be described in detail below with reference to specific examples. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Example one
Fig. 1 is a schematic flowchart of a first embodiment of a search method provided in the present application. As shown in fig. 1, the search method provided in this embodiment includes:
s101, receiving a search word input by a user.
In one possible implementation, the user may enter search terms in a keyword entry box of the search tool.
And S102, analyzing the search words to obtain a plurality of analyzed words.
Because Chinese characters form the concept of the radical, the radical is partially changed from the specific Chinese characters. Therefore, the common components and radicals can be converted into Chinese characters. Based on the thought, the application provides that after the search word is received, each Chinese character in the search word is firstly split according to the radicals to obtain a plurality of Chinese character elements corresponding to the search word, and then the plurality of Chinese character elements are combined to obtain a plurality of analysis vocabularies.
Specifically, as shown in FIG. 2, the three points of water are (to be) reduced to Chinese character water. The Chinese characters are restored to moon by moon. The "" radical "" at the bottom of the Chinese character is reduced to Chinese character as the walk. For the Chinese characters restored by various components, reference may be made to the prior art, and the detailed description of the embodiment is omitted.
The following illustrates the split chinese character process:
for example 1, suppose the search term is "flood", "the components of the flood" are at three points of water ", the" fire "is restored to Chinese character as water, and the" flood "can be divided into" water and water ".
Example 2, suppose the search word is "fat stick", "fat" has a radical of "month" and "month" is reduced to Chinese character "month", the radical of "stick" is "wood" and "wood" is reduced to Chinese character "wood", then "fat stick" can be divided into "half wood kun" in month.
Example 3, assuming that the search word is "" on the left side and "" on the right side are "" on the bottom of the word and "" on the bottom of the word is reduced to Chinese characters, the "" on the right side can be divided into two parts.
The following example of the assembly process, as shown in figure 3,
for example 1, assume that the search term is "mooncake acid", the above-mentioned splitting method is performed to obtain a plurality of chinese character elements as "mooncake aerobiotic ", and the plurality of chinese character elements are combined in sequence to obtain a plurality of analytic terms including "mooncake acid", "cystine", "mooncake aerobiotic acid", and "mooncake aminobiotic ".
Example 2, assuming that the search term is "rain Xiao Ye", the above-mentioned splitting method is used to obtain a plurality of Chinese character elements as "rain Xiao Ye", and the plurality of Chinese character elements are combined in sequence to obtain a plurality of analytic words, including "rain Xiao Ye" and "trumpet Ye".
Example 2, assuming that the search word is 'beam negative amino acid', obtaining a plurality of Chinese character elements as 'beam negative gas atmosphere unitary 22795' through the splitting method, and combining the plurality of Chinese character elements in sequence to obtain a plurality of analysis words comprising 'beam negative amino acid', 'lysine', 'beam negative gas atmosphere unitary acid' and 'beam negative ammonia unitary '.
It should be noted that: when a plurality of kanji elements are combined, the combination means that adjacent elements are combined and element combination cannot be skipped.
S103, determining a return result corresponding to each analyzed vocabulary according to the plurality of analyzed vocabularies and the vocabulary database.
And S104, outputting return results corresponding to the plurality of analyzed vocabularies.
In one possible implementation, the vocabulary database of this step may include a general vocabulary database, a historical selection database, and an abnormal vocabulary database, wherein the historical selection database includes vocabularies that have been previously selected by the user, and the abnormal vocabulary database includes vocabularies that are not present in the general vocabulary database and the historical selection database. Each analysis vocabulary in the plurality of analysis vocabularies can be matched with the vocabulary in each vocabulary database respectively, the vocabulary database to which the analysis vocabulary belongs is determined according to the matching result, and then the return result corresponding to the analysis vocabulary is determined according to the vocabulary database to which the analysis vocabulary belongs.
According to the searching method provided by the embodiment, after the searching words input by the user are received, the searching words are firstly analyzed to obtain a plurality of analyzed words, then the return result corresponding to each analyzed word is determined based on the analyzed words and the word database, and finally the return results corresponding to the analyzed words are output.
Example two
Fig. 4 is a flowchart illustrating a second embodiment of a search method provided in the present application. As shown in fig. 4, the search method provided in this embodiment includes:
s401, receiving a search word input by a user.
S402, analyzing the search words to obtain a plurality of analyzed words.
The implementation manners of S401 to S402 can refer to S101 to S102 in the above embodiments, and the description of this embodiment is omitted here.
And S403, matching each analysis vocabulary in the plurality of analysis vocabularies with the vocabulary in each vocabulary database respectively.
S404, determining a vocabulary database to which the analysis vocabulary belongs according to the matching result.
S405, according to the vocabulary database to which the analysis vocabulary belongs, determining a return result corresponding to the analysis vocabulary.
And S406, outputting return results corresponding to the plurality of analyzed vocabularies.
Specifically, for each analysis vocabulary in the plurality of analysis vocabularies, the analysis vocabulary is matched with the vocabulary in each vocabulary database. If the matching is successful, the analysis vocabulary belongs to the corresponding database.
In a possible implementation manner, if the analysis vocabulary belongs to the universal vocabulary database, it is determined that the returned result corresponding to the analysis vocabulary includes the search result of the analysis vocabulary and the first indication information, and the first indication information is used for indicating that the analysis vocabulary belongs to the universal vocabulary database.
The following examples illustrate:
assuming that a search word input by a user is "seleno acid", a plurality of analysis words obtained by analyzing the search word include "seleno acid", "cystine", "moonlight aeroic acid" and "moonlight ammonia unitary acid ", assuming that "cystine" belongs to the general vocabulary database as determined by the process of S403-S404, referring to fig. 5, it may be determined that a returned result for "cystine" includes: the search result of "cystine" and first indication information indicating that "cystine" belongs to the universal vocabulary database. The information in the first area 10 in fig. 5 is the first indication information.
And if the analysis vocabulary belongs to the history selection database, determining that a return result corresponding to the analysis vocabulary comprises a search result of the analysis vocabulary and second indication information, wherein the second indication information is used for indicating that the analysis vocabulary belongs to the history selection database.
The following examples illustrate:
assuming that the search term input by the user is "mooncake acid", and the plurality of analysis terms obtained by analyzing the search term include "mooncake acid", "cystine", "mooncake aeroacid" and "mooncake ammonia unitary acid ", assuming that "mooncake aeroacid" is determined to belong to the history selection database through the process of S403-S404, continuing with fig. 5, it may be determined that the returned result for "mooncake aeroacid" includes: the search result of the lunar phosgene ann acid and second indication information, wherein the second indication information is used for indicating that the lunar phosgene ann acid belongs to the historical selection database. The information in the second area 11 in fig. 5 is the second indication information.
In order to prompt the user of the number of times the analysis vocabulary was selected before in the case where the analysis vocabulary belongs to the history selection database, as shown in fig. 6, the returned result may further include third indication information indicating the number of times the analysis vocabulary was selected. The information in the second area 11 in fig. 6 is the second indication information and the third indication information. The number "5" in the second region 11 represents the number of times "monthly phosgene acid" was selected.
And if the analyzed vocabulary belongs to the abnormal vocabulary database, determining that a returned result corresponding to the analyzed vocabulary comprises fourth indicating information, wherein the fourth indicating information is used for indicating that the analyzed vocabulary belongs to the abnormal vocabulary database.
The following examples illustrate:
assuming that a search word input by a user is "mooncake", a plurality of analysis words obtained by analyzing the search word include "mooncake acid", "cystine", "mooncake aeroacid" and "mooncake ammonia unitary ", and assuming that "mooncake ammonia unitary " is determined to belong to an abnormal word database through the process of S403-S404, as shown in fig. 6, it is determined that a return result for "mooncake ammonia unitary " includes fourth indication information indicating that "mooncake ammonia unitary " belongs to the abnormal word database. The information in the third area 12 in fig. 5 is the fourth indication information.
In one possible implementation, if a certain analyzed vocabulary does not belong to any one of the general vocabulary database, the historical selection database and the abnormal vocabulary database, the analyzed vocabulary is added to the abnormal vocabulary database.
The user can know which words are analyzed through the information in the first area 10, the second area 11 and the third area 12, and can also determine which word the user really wants to search based on the analyzed words and the search results of the analyzed words, and clicking the area corresponding to the word can trigger the terminal device to display the search result of the word. Such as: the user decides that the word he really wants to search is "cystine", and clicking the first area 10 causes the terminal device to jump to the interface shown in fig. 7, and only the search result of "cystine" is displayed on the interface shown in fig. 7.
In one possible implementation, if the user selects the second region 11, indicating that the user selected the word "mooney", the number of selections of this word in the historical selection database may be increased by one.
Fig. 8 is a schematic structural diagram of a search apparatus provided in the present application. As shown in fig. 8, the present application provides a search apparatus, including:
a receiving module 801, configured to receive a search term input by a user;
the analysis module 802 is configured to analyze the search term to obtain a plurality of analysis vocabularies;
a determining module 803, configured to determine a returned result corresponding to each analyzed vocabulary according to the multiple analyzed vocabularies and the vocabulary database, where the vocabulary database includes: the system comprises a general vocabulary database, a historical selection database and an abnormal vocabulary database, wherein the historical selection database comprises vocabularies selected by a user before, and the abnormal vocabulary database comprises vocabularies which do not exist in the general vocabulary database and the historical selection database;
and the output module 804 is configured to output a return result corresponding to the plurality of analysis vocabularies.
Optionally, the parsing module 802 is specifically configured to:
splitting each Chinese character in the search word according to the radicals to obtain a plurality of Chinese character elements corresponding to the search word;
and combining the Chinese character elements to obtain the plurality of analysis vocabularies.
Optionally, the determining module 803 is specifically configured to:
matching each analyzed vocabulary in the plurality of analyzed vocabularies with the vocabulary in each vocabulary database respectively;
determining a vocabulary database to which the analysis vocabulary belongs according to the matching result;
and determining a return result corresponding to the analysis vocabulary according to the vocabulary database to which the analysis vocabulary belongs.
Optionally, the determining module 803 is specifically configured to:
and if the analysis vocabulary belongs to the universal vocabulary database, determining that a return result corresponding to the analysis vocabulary comprises a search result of the analysis vocabulary and first indication information, wherein the first indication information is used for indicating that the analysis vocabulary belongs to the universal vocabulary database.
Optionally, the determining module 803 is specifically configured to:
and if the analysis vocabulary belongs to the history selection database, determining that a return result corresponding to the analysis vocabulary comprises a search result of the analysis vocabulary and second indication information, wherein the second indication information is used for indicating that the analysis vocabulary belongs to the history selection database.
Optionally, the returned result corresponding to the analysis vocabulary further includes third indication information, where the third indication information is used to indicate the number of times that the analysis vocabulary is selected.
Optionally, the determining module 803 is specifically configured to:
and if the analysis vocabulary belongs to the abnormal vocabulary database, determining that a return result corresponding to the analysis vocabulary comprises fourth indicating information, wherein the fourth indicating information is used for indicating that the analysis vocabulary belongs to the abnormal vocabulary database.
Optionally, the determining module 803 is further configured to:
and if the analyzed vocabulary does not belong to the vocabulary database, adding the analyzed vocabulary to the abnormal vocabulary database.
The searching device shown in fig. 8 can be used for executing the searching method in any one of the above method embodiments. The implementation principle and the technical effect are similar, and are not described in detail herein.
Fig. 9 is a schematic diagram of a hardware structure of a terminal device provided in the present application. As shown in fig. 9, the terminal device of this embodiment may include:
a memory 901 for storing program instructions.
A processor 902 for implementing the steps of any of the above method embodiments when the program instructions are executed. The implementation principle and the technical effect are similar, and are not described in detail herein.
The present application provides a computer-readable storage medium having stored thereon a computer program which, when being executed by a processor, carries out the steps of any of the above-mentioned method embodiments. The implementation principle and the technical effect are similar, and are not described in detail herein.
The present application further provides a program product comprising a computer program stored on a readable storage medium, the computer program being readable from the readable storage medium by at least one processor, the at least one processor executing the computer program to cause the processor to carry out the steps of any of the above method embodiments. The implementation principle and the technical effect are similar, and are not described in detail herein.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) or a processor (processor) to perform some steps of the methods according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It should be understood that the Processor described herein may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor, or in a combination of the hardware and software modules in the processor.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present application.

Claims (11)

1. A method of searching, comprising:
receiving a search word input by a user;
analyzing the search words to obtain a plurality of analyzed words;
according to the plurality of analysis vocabularies and the vocabulary database, determining a return result corresponding to each analysis vocabulary, wherein the vocabulary database comprises: the system comprises a general vocabulary database, a historical selection database and an abnormal vocabulary database, wherein the historical selection database comprises vocabularies selected by a user before, and the abnormal vocabulary database comprises vocabularies which do not exist in the general vocabulary database and the historical selection database;
and outputting a return result corresponding to the plurality of analyzed vocabularies.
2. The method of claim 1, wherein parsing the search term to obtain a plurality of parsed words comprises:
splitting each Chinese character in the search word according to the radicals to obtain a plurality of Chinese character elements corresponding to the search word;
and combining the Chinese character elements to obtain the plurality of analysis vocabularies.
3. The method of claim 1 or 2, wherein determining a returned result for each parsed word from the plurality of parsed words and the database of words comprises:
matching each analyzed vocabulary in the plurality of analyzed vocabularies with the vocabulary in each vocabulary database respectively;
determining a vocabulary database to which the analysis vocabulary belongs according to the matching result;
and determining a return result corresponding to the analysis vocabulary according to the vocabulary database to which the analysis vocabulary belongs.
4. The method of claim 3, wherein determining the returned result corresponding to the parsed word according to the vocabulary database to which the parsed word belongs comprises:
and if the analysis vocabulary belongs to the universal vocabulary database, determining that a return result corresponding to the analysis vocabulary comprises a search result of the analysis vocabulary and first indication information, wherein the first indication information is used for indicating that the analysis vocabulary belongs to the universal vocabulary database.
5. The method of claim 3, wherein determining the returned result corresponding to the parsed word according to the vocabulary database to which the parsed word belongs comprises:
and if the analysis vocabulary belongs to the history selection database, determining that a return result corresponding to the analysis vocabulary comprises a search result of the analysis vocabulary and second indication information, wherein the second indication information is used for indicating that the analysis vocabulary belongs to the history selection database.
6. The method according to claim 5, wherein the returned result corresponding to the analysis vocabulary further includes third indication information indicating a number of times the analysis vocabulary was selected.
7. The method of claim 3, wherein determining the returned result corresponding to the parsed word according to the vocabulary database to which the parsed word belongs comprises:
and if the analysis vocabulary belongs to the abnormal vocabulary database, determining that a return result corresponding to the analysis vocabulary comprises fourth indicating information, wherein the fourth indicating information is used for indicating that the analysis vocabulary belongs to the abnormal vocabulary database.
8. The method of claim 3, further comprising:
and if the analyzed vocabulary does not belong to the vocabulary database, adding the analyzed vocabulary to the abnormal vocabulary database.
9. A search apparatus, comprising:
the receiving module is used for receiving search terms input by a user;
the analysis module is used for analyzing the search words to obtain a plurality of analysis words;
a determining module, configured to determine a returned result corresponding to each analyzed vocabulary according to the multiple analyzed vocabularies and the vocabulary database, where the vocabulary database includes: the system comprises a general vocabulary database, a historical selection database and an abnormal vocabulary database, wherein the historical selection database comprises vocabularies selected by a user before, and the abnormal vocabulary database comprises vocabularies which do not exist in the general vocabulary database and the historical selection database;
and the output module is used for outputting the return results corresponding to the plurality of analysis vocabularies.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of any one of claims 1 to 8.
11. A terminal device, comprising:
a processor; and
a memory for storing executable instructions of the processor;
wherein the processor is configured to implement the method of any of claims 1-8 via execution of the executable instructions.
CN202110615980.6A 2021-06-02 2021-06-02 Searching method and device Pending CN113220860A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110615980.6A CN113220860A (en) 2021-06-02 2021-06-02 Searching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110615980.6A CN113220860A (en) 2021-06-02 2021-06-02 Searching method and device

Publications (1)

Publication Number Publication Date
CN113220860A true CN113220860A (en) 2021-08-06

Family

ID=77082468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110615980.6A Pending CN113220860A (en) 2021-06-02 2021-06-02 Searching method and device

Country Status (1)

Country Link
CN (1) CN113220860A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928860A (en) * 2005-09-05 2007-03-14 日电(中国)有限公司 Method, search engine and search system for correcting key errors
CN103034625A (en) * 2011-10-05 2013-04-10 王铭樟 System and method for detecting and correcting mismatched Chinese character
CN103678674A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Method, device and system for achieving error correction searching through Pinyin
CN103927329A (en) * 2014-03-19 2014-07-16 北京奇虎科技有限公司 Instant search method and system
CN106708893A (en) * 2015-11-17 2017-05-24 华为技术有限公司 Error correction method and device for search query term
CN106897319A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 Searching method and device
CN108121790A (en) * 2017-12-19 2018-06-05 百度在线网络技术(北京)有限公司 Chinese character by words querying method, device, server, equipment and storage medium
CN110705536A (en) * 2019-09-24 2020-01-17 北京字节跳动网络技术有限公司 Chinese character recognition error correction method and device, computer readable medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1928860A (en) * 2005-09-05 2007-03-14 日电(中国)有限公司 Method, search engine and search system for correcting key errors
CN103034625A (en) * 2011-10-05 2013-04-10 王铭樟 System and method for detecting and correcting mismatched Chinese character
CN103678674A (en) * 2013-12-25 2014-03-26 乐视网信息技术(北京)股份有限公司 Method, device and system for achieving error correction searching through Pinyin
CN103927329A (en) * 2014-03-19 2014-07-16 北京奇虎科技有限公司 Instant search method and system
CN106708893A (en) * 2015-11-17 2017-05-24 华为技术有限公司 Error correction method and device for search query term
CN106897319A (en) * 2015-12-21 2017-06-27 北京奇虎科技有限公司 Searching method and device
CN108121790A (en) * 2017-12-19 2018-06-05 百度在线网络技术(北京)有限公司 Chinese character by words querying method, device, server, equipment and storage medium
CN110705536A (en) * 2019-09-24 2020-01-17 北京字节跳动网络技术有限公司 Chinese character recognition error correction method and device, computer readable medium and electronic equipment

Similar Documents

Publication Publication Date Title
US8364706B2 (en) System and method for information identification
CN110096655B (en) Search result sorting method, device, equipment and storage medium
CN111198939B (en) Statement similarity analysis method and device and computer equipment
CN109299471B (en) Text matching method, device and terminal
CN112434188B (en) Data integration method, device and storage medium of heterogeneous database
CN111898643A (en) Semantic matching method and device
CN113407850B (en) Method and device for determining and acquiring virtual image and electronic equipment
CN108415998B (en) Application dependency relationship updating method, terminal, device and storage medium
CN111435406A (en) Method and device for correcting database statement spelling errors
CN113010661A (en) Method, device and equipment for analyzing statement and storage medium
CN111708911B (en) Searching method, searching device, electronic equipment and computer-readable storage medium
CN111783415B (en) Template configuration method and device
CN113626638A (en) Short video recommendation processing method and device, intelligent terminal and storage medium
CN109165180A (en) A kind of method and system improving source of houses broker operating efficiency
CN112596617A (en) Message content input method and device and electronic equipment
CN113220860A (en) Searching method and device
CN106651408B (en) Data analysis method and device
US11210462B1 (en) Voice input processing
CN115169368B (en) Machine reading understanding method and device based on multiple documents
CN108170664B (en) Key word expansion method and device based on key words
CN112148962A (en) Method and device for pushing information
CN111625619A (en) Query omission method and device, computer readable medium and electronic equipment
CN114818736A (en) Text processing method, chain finger method and device for short text and storage medium
CN109213937B (en) Intelligent search method and device
CN108415981B (en) Data dimension generation method, device, equipment and computer readable storage medium

Legal Events

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