CN112131461A - Commodity searching method, system, terminal and computer readable storage medium - Google Patents

Commodity searching method, system, terminal and computer readable storage medium Download PDF

Info

Publication number
CN112131461A
CN112131461A CN202010940590.1A CN202010940590A CN112131461A CN 112131461 A CN112131461 A CN 112131461A CN 202010940590 A CN202010940590 A CN 202010940590A CN 112131461 A CN112131461 A CN 112131461A
Authority
CN
China
Prior art keywords
error
current input
error correction
input content
search
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
CN202010940590.1A
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.)
Chongqing Yichong Technology Co ltd
Original Assignee
Chongqing Yichong Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chongqing Yichong Technology Co ltd filed Critical Chongqing Yichong Technology Co ltd
Priority to CN202010940590.1A priority Critical patent/CN112131461A/en
Publication of CN112131461A publication Critical patent/CN112131461A/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/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/232Orthographic correction, e.g. spell checking or vowelisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]
    • G06Q30/0641Shopping interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Computational Linguistics (AREA)
  • Finance (AREA)
  • Data Mining & Analysis (AREA)
  • Accounting & Taxation (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a commodity searching method, a system, a terminal and a computer readable storage medium, wherein the method comprises the steps of obtaining current input content, wherein the current input content is used for searching commodities, carrying out first search according to the current input content to generate a first search result, obtaining error-correcting words corresponding to the current input content if the first search result is empty, carrying out second search according to the error-correcting words to generate a second search result. The invention also discloses a commodity searching system, a terminal and a computer readable storage medium, which can realize that even if the current input content of a user is inconsistent with any part of the full text which corresponds to the commodity and can be searched, when the first searching result is empty, the second searching result can be obtained by obtaining the error-correcting word, and by correcting the current input content, the possibility that the searching result is empty is reduced, the user loss rate is reduced, and the user experience is improved.

Description

Commodity searching method, system, terminal and computer readable storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, a system, a terminal, and a computer-readable storage medium for searching for a commodity.
Background
With the popularization of the network, online shopping has become the first choice of more and more consumers, and the required goods can be found in the goods in the large variety of electronic commerce websites by inputting some descriptive contents.
With the development of the goods search system, some problems have been exposed: if the current input content of the user is inconsistent with any part of the searchable full text corresponding to the commodity, the search result is empty, that is, the commodity cannot be searched, so that the user runs away, and the user experience is low. For example: if the user inputs the current input contents of wrongly-written characters, pinyin, few characters and multiple characters in the searching process, no result is searched, the user loss is caused, and the user experience is low.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present invention is to provide a method, a system, a terminal and a computer-readable storage medium for searching for a commodity, which are used to solve the problems that a current input content of a user is inconsistent with any part of a searchable full text corresponding to the commodity, so that a search result is empty, the commodity cannot be searched, the user runs away, and the user experience is low.
To achieve the above and other related objects, the present invention provides a method for searching for a commodity, comprising:
acquiring current input content, wherein the current input content is used for searching commodities;
performing a first search according to the current input content to generate a first search result;
if the first search result is empty, acquiring error correction words corresponding to the current input content;
and performing second search according to the error-correcting words to generate a second search result.
Optionally, the obtaining of the error-correcting word corresponding to the current input content includes:
acquiring an error correction word bank, wherein the error correction word bank is generated according to historical input contents with historical search results;
determining at least one alternative error correction word from the error correction word bank according to the current input content;
acquiring the editing distance between each alternative error correction word and the current input content;
and taking the alternative error-correcting word corresponding to the shortest editing distance as the error-correcting word.
Optionally, the determining at least one alternative error correction word from the error correction word bank according to the current input content includes,
determining at least one keyword according to the current input content;
determining at least one alternative error correction word from the error correction word bank according to the keyword;
acquiring the edit distance between each alternative error correction word and the current input content includes: and acquiring the editing distance between each alternative error correction word and the keyword.
Optionally, at least one of the following is also included:
if the first search result is not empty, displaying the first search result, and acquiring the number of commodities in the first search result; updating the keyword and the commodity number in the first search result into the error correction word bank;
and acquiring the quantity of commodities in a second search result according to the second search result, and updating the keyword and the quantity of commodities in the second search result into the error correction word bank.
Optionally, the error correction word bank includes error correction words, document numbers, and browsing numbers, and determining at least one alternative error correction word from the error correction word bank according to the keyword includes:
performing pinyin or Chinese fuzzy search matching in the error correction word bank according to the keywords, and determining at least one target error correction word;
acquiring the document number and the browsing number corresponding to each target error correction word;
sequencing the target error-correcting words according to the document number and the browsing number corresponding to each target error-correcting word to obtain the ranking of each target error-correcting word;
and determining the target error-correcting words with the ranking higher than the preset ranking as alternative error-correcting words.
Optionally, before performing the second search according to the error-correcting word, the method further includes:
and prompting that the error is corrected, and searching by adopting error correction words.
Optionally, at least one of the following is also included,
the searching for the first time according to the current input content comprises: acquiring current input content and carrying out full-text retrieval according to the current input content to generate a first search result, wherein the current input content comprises at least one of pinyin of the current input content, single words of the current input content and words of the current input content;
the second search according to the error correction word comprises: and acquiring error-correcting words and carrying out full-text retrieval according to the error-correcting words to generate a second search result, wherein the error-correcting words comprise at least one of pinyin of the error-correcting words, single words of the error-correcting words and words of the error-correcting words.
The invention also provides a commodity search system, comprising:
the input module is used for acquiring current input content, and the current input content is used for searching commodities;
the first search module is used for carrying out first search according to the current input content to generate a first search result;
an error-correcting word obtaining module, configured to obtain an error-correcting word corresponding to the current input content if the first search result is null;
and the second searching module is used for carrying out second searching according to the error-correcting words to generate a second searching result.
The invention also provides a terminal, which comprises a processor, a memory and a communication bus;
the communication bus is used for connecting the processor and the memory;
the processor is configured to execute the computer program stored in the memory to implement the item search method according to one or more of the above embodiments.
The present invention also provides a computer-readable storage medium, having stored thereon a computer program,
the computer program is for causing the computer to execute the item search method according to any one of the above embodiments.
As described above, the commodity searching method, system, terminal and computer-readable storage medium provided by the present invention have the following beneficial effects:
the current input content is obtained and used for searching commodities, first searching is conducted according to the current input content to generate a first searching result, if the first searching result is empty, error-correcting words corresponding to the current input content are obtained, second searching is conducted according to the error-correcting words, and a second searching result is generated. Even if the current input content of the user is inconsistent with any part of the full text which can be searched and corresponds to the commodity, when the first search result is empty, the second search result can be obtained by acquiring the error correction words, and the current input content is corrected, so that the possibility that the search result is empty is reduced, the user loss rate is reduced, and the user experience is improved.
Drawings
Fig. 1-1 is a schematic flow chart of a method for searching for a commodity according to an embodiment of the present invention;
fig. 1-2 are another schematic flow chart of a method for searching for a commodity according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a commodity search system according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Example one
Referring to fig. 1-1, an embodiment of the invention provides a method for searching a commodity, including:
s101: and acquiring the current input content.
In some embodiments, the currently entered content is used to search for items. The currently entered content may be content entered in a search box of an e-commerce platform page.
S102: and performing first search according to the current input content to generate a first search result.
In some embodiments, a search comparison is performed in the commodity library according to the current input content, and a first search result is generated, wherein the first search result comprises a commodity list.
S103: and if the first search result is empty, acquiring the error correction words corresponding to the current input content.
In some embodiments, the first search fails because the current input content may have wrong or few words, and the first search result is empty, and if the search result is directly displayed as empty, the client is likely to be lost. Therefore, the accuracy of the search result can be improved by correcting the current input content.
In some embodiments, obtaining the error correction word corresponding to the current input content comprises:
acquiring a mapping relation table of preset current input content and error correction words;
and determining error correction words according to the mapping relation table.
It should be noted that the mapping relationship table may be preset by a person skilled in the art, or may be set according to other rules, and is not limited herein.
In some embodiments, obtaining the error correction word corresponding to the current input content comprises:
acquiring an error correction word bank;
determining at least one alternative error correction word from an error correction word bank according to the keyword;
acquiring the editing distance between each alternative error correction word and the current input content;
and taking the alternative error-correcting word corresponding to the shortest editing distance as an error-correcting word.
In some embodiments, the error correction thesaurus is generated from historical input content for which historical search results exist. For example, before the current input content, a plurality of historical input contents exist, and the obtained historical input contents in which the historical search results exist constitute an error correction word bank.
In some embodiments, conducting the first search based on the current input content comprises: at least one keyword is determined according to the current input content, and a first search is performed according to the keyword. At this time, the error correction lexicon is generated from the history keywords having history search results. For example, before the current input content, a plurality of historical input contents exist, a plurality of historical keywords are determined according to the historical input contents, a plurality of searches are carried out according to the historical keywords, and an error correction word bank is generated according to the historical keywords with historical search results. In other words, at this time, the history input content includes the history keywords determined according to the history input content.
In some embodiments, the error correction thesaurus comprises at least one of: error correction words, document number, browsing number, status.
In some embodiments, the error correction thesaurus further comprises at least one of: type, creation time, update time.
In some embodiments, the information of the error correction thesaurus can be seen in table 1 below.
TABLE 1
Error correction word Type (B) Number of documents Number of views Status of state Creation time Update time
Desire for Commodity 20 1000 Is opened 2020/8/20 9:12 2020/8/20 9:12
Royal family Commodity 10 500 Is opened 2020/8/21 9:12 2020/8/21 9:12
In some embodiments, the error correction thesaurus comprises error correction words, a document number and a browsing number, and determining at least one alternative error correction word from the error correction thesaurus according to the keyword comprises:
performing pinyin or Chinese fuzzy search matching in an error correction word bank according to the keywords, and determining at least one target error correction word;
acquiring the document number and the browsing number corresponding to each target error correction word;
sequencing the target error-correcting words according to the document number and the browsing number corresponding to each target error-correcting word, and acquiring the ranking of each target error-correcting word;
and determining the target error-correcting words with the ranking higher than the preset ranking as the alternative error-correcting words.
It should be noted that the preset ranking can be set by those skilled in the art according to actual needs.
In some embodiments, the state of the target error correction word is an on state.
In some embodiments, sorting the target error-correcting words according to the document number and the browsing number corresponding to each target error-correcting word includes:
acquiring the document number and the browsing number corresponding to the target error correction word;
respectively acquiring preset weight ratios corresponding to the document number and the browsing number;
calculating a weighted average value of the target error-correcting words according to the number of documents, the browsing number and a preset weight ratio;
sorting is performed according to the weighted average from large to small.
For example, the preset weight ratio of the document number is 20%, the preset weight ratio of the browsing number is 60%, the document number of the acquired target error-correcting word a is 10, the browsing number is 200, the document number of the target error-correcting word a is 20, and the browsing number is 50, then the weighted average value of the target error-correcting word a is 10%.
In some embodiments, the word matching degree of the keyword and the target error-correcting word may also be obtained, and the rank of the target error-correcting word is determined according to the word matching degree, the number of documents, and the number of browses.
In some embodiments, the number of documents is equal to the number of items of the first search result or the number of items of the second search result.
In some embodiments, the Edit Distance (MED) refers to the Minimum number of Edit operations required to change from one string to another string. Permitted editing operations include replacing one character with another, inserting one character, and deleting one character. The manner of acquiring the edit distance may refer to the manner of calculating in the related art, and is not limited herein.
In some embodiments, determining at least one alternative error correction word from the error correction lexicon according to the current input content comprises,
determining at least one keyword according to the current input content;
determining at least one alternative error correction word from an error correction word bank according to the keyword;
the step of obtaining the edit distance between each alternative error correction word and the current input content comprises the following steps: and acquiring the editing distance between each alternative error correction word and the keyword.
In some embodiments, because the current input content may have more useless information, it may be that a large interference exists when the current input content is directly used to search for a corresponding alternative error-correcting word in the error-correcting word bank, which affects the accuracy of the result, so that at least one keyword is determined according to the current input content, and then at least one alternative error-correcting word is determined from the error-correcting word bank according to the keyword, which may improve the accuracy of the alternative error-correcting word, and further improve the user experience.
In some embodiments, the shorter the editing distance is, the higher the relevance between the keyword and the alternative error-correcting word is, and accordingly, the second search result generated according to the error-correcting word has a higher possibility to meet the requirement of the user.
In some embodiments, when there are multiple keywords, a set of candidate error-correcting words with the shortest editing distance corresponding to each keyword is selected as an error-correcting word. At this time, a second search is performed according to each error correction word, and the generated second search results form a second search result set and are displayed at a preset position.
In some embodiments, determining at least one keyword from the current input content includes, but is not limited to, at least one of:
if the current input contents are all Chinese characters, word splitting is carried out according to the arrangement sequence of the current input contents, and each Chinese character combination obtained by splitting is used as a keyword;
if the current input contents are all letters, splitting words according to the arrangement sequence of the current input contents, taking each split letter combination as a word pinyin initial for retrieval, acquiring an initial retrieval result, taking each initial retrieval result as a keyword, and/or taking each split letter combination as an English abbreviation for retrieval, acquiring an abbreviation retrieval result, and taking each abbreviation retrieval result as a keyword;
if the current input content comprises letters and Chinese characters, obtaining pinyin initials of the Chinese characters, converting the current input content into letter arrangement content, disassembling words according to the arrangement sequence of the letter arrangement content, taking each disassembled letter combination as a vocabulary pinyin initials for retrieval, obtaining an initial retrieval result, taking each initial retrieval result as a keyword, and/or taking each disassembled letter combination as an English abbreviation for retrieval, obtaining an abbreviation retrieval result, and taking each abbreviation retrieval result as a keyword.
S104: and performing second search according to the error-correcting words to generate a second search result.
The second search is carried out through the determined error-correcting words, the probability of searching corresponding products according to the current input content input by the user can be improved, and the user experience degree is improved.
In some embodiments, if the error correction word is different from the keyword, the acquired error correction word is different from the current input content, and then the second search is performed according to the error correction word, so that the waste of computing resources can be avoided.
In some embodiments, the item search method further comprises:
if the first search result is not empty, displaying the first search result, and acquiring the quantity of the commodities in the first search result;
and updating the keyword and the commodity number in the first search result into an error correction word bank.
In some embodiments, the item search method further comprises:
acquiring the quantity of the commodities in the second search result according to the second search result;
and updating the keyword and the commodity number in the second search result into an error correction word bank.
When the keyword sum is updated to the error correction word bank, the keyword sum is updated to the error correction word bank as an error correction word.
In some embodiments, the item search method further includes:
if the first search result is not empty, acquiring error correction words corresponding to the current input content;
and performing second search according to the error-correcting words to generate a second search result.
At this time, the error correction word bank may also be generated as follows:
respectively acquiring current input content and error correction words;
respectively counting the times of clicking a first search result corresponding to the current input content by the user and the times of clicking a second search result corresponding to the error-correcting word;
determining the confidence of the error-correcting word according to the times of clicking the first search result and the times of clicking the second search result by the user;
and generating an error correction word bank based on the current input content, the corresponding error correction words and the confidence coefficients thereof.
In some embodiments, before the second search is performed according to the error correction word, the method further includes:
and prompting that the error is corrected, and searching by adopting error correction words.
By prompting that the error is corrected, the user who inputs the current input content can be prompted to know that the current input content has problems, the search keyword is automatically replaced for the user, the user is educated that the correct current input content can be input according to the error correction word prompted at the next time, the subsequent calculation amount aiming at the commodity search of the user is reduced, and the calculation resources are saved.
In some embodiments, the item search method further comprises, but is not limited to, at least one of:
the first search according to the current input content comprises: acquiring current input content and carrying out full-text retrieval according to the current input content to generate a first search result, wherein the current input content comprises at least one of pinyin of the current input content, single words of the current input content and words of the current input content;
the second search according to the error correction words comprises: and acquiring error-correcting words and carrying out full-text retrieval according to the error-correcting words to generate a second search result, wherein the error-correcting words comprise at least one of pinyin of the error-correcting words, single words of the error-correcting words and words of the error-correcting words.
In some embodiments, at least one of the first search and the second search is a fault tolerant search.
The above-mentioned product search method is further exemplarily described below by a specific embodiment. Referring to fig. 1-2, the specific commodity searching method includes:
s201: acquiring current input content;
s202: acquiring a keyword according to the current input content;
s203: carrying out first commodity fault-tolerant search according to the key words;
s204: judging whether the first search result is empty, if not, executing S205, and if so, executing S207;
s205: returning to the commodity list;
s206: updating the keywords and the commodity quantity of the first search result into an error correction word bank;
s207: acquiring an error correction word bank;
s208: performing pinyin or Chinese fuzzy search matching in an error correction word bank according to the keywords, and determining at least one target error correction word;
s209: acquiring the document number and the browsing number corresponding to each target error correction word;
s210: sequencing the target error-correcting words according to the document number and the browsing number corresponding to each target error-correcting word, and acquiring the ranking of each target error-correcting word;
s211: determining target error-correcting words with the ranking higher than a preset ranking as alternative error-correcting words;
s212: acquiring the editing distance between the alternative error-correcting words and the keywords;
s213: taking the alternative error-correcting word corresponding to the shortest editing distance as an error-correcting word;
s214: judging whether the error-correcting words are consistent with the keywords, if not, executing S215, and if so, executing S217;
s215: carrying out secondary commodity fault-tolerant search according to the error-correcting words to generate a second search result;
s216: updating the keywords and the commodity quantity of the second search result into an error correction word bank;
s217: no result is returned.
In some embodiments, if the error-correcting word is consistent with the keyword, the result of the second search is necessarily consistent with the result of the first search, and in order to reduce unnecessary waste of computing resources, the second search is not performed.
The embodiment of the invention discloses a commodity searching method which comprises the steps of obtaining current input content, wherein the current input content is used for searching commodities, conducting first searching according to the current input content to generate a first searching result, obtaining error correction words corresponding to the current input content if the first searching result is empty, conducting second searching according to the error correction words, and generating a second searching result. Even if the current input content of the user is inconsistent with any part of the full text which can be searched and corresponds to the commodity, the second search result can be obtained by acquiring the error correction words, the possibility that the search result is empty is reduced by correcting the current input content, the user loss rate is reduced, and the user experience is improved.
Optionally, the error-correcting word is determined by editing the distance, so that the proximity of the error-correcting word to the currently input content can be improved, the second search result can better meet the user requirement, and the user experience is improved.
Optionally, the target error-correcting words are sorted according to the document number and the browsing number of the target error-correcting words, so that when a plurality of target error-correcting words are obtained, for saving computing resources, the target error-correcting words which are more likely to meet the needs of the user are determined to be used as the alternative error-correcting words, the satisfaction degree of the user on the second search result is further improved, and the user experience degree is improved.
Optionally, the keyword and the commodity number of the first search result or the commodity number of the second search result are updated into the error correction word bank, so that the accuracy of subsequent error correction results can be improved.
Example two
Referring to fig. 2, an embodiment of the invention provides a product search system 200, including:
an input module 201, configured to obtain current input content, where the current input content is used to search for a commodity;
the first search module 202 is configured to perform a first search according to current input content to generate a first search result;
an error-correcting word obtaining module 203, configured to obtain an error-correcting word corresponding to the current input content if the first search result is empty;
and the second searching module 204 is configured to perform a second search according to the error-correcting word to generate a second search result.
In this embodiment, the product search system is substantially provided with a plurality of modules for executing the product search method of the first embodiment, and specific functions and technical effects are only referred to the first embodiment, which is not described herein again.
Referring to fig. 3, an embodiment of the present invention further provides a terminal 300, including a processor 301, a memory 302, and a communication bus 303;
the communication bus 303 is used to connect the processor 301 with a memory 302;
the processor 301 is configured to execute the computer program stored in the memory 302 to implement the item search method according to one or more of the first embodiment.
The embodiment of the present invention further provides a computer-readable storage medium, wherein a computer program is stored thereon, and the computer program is configured to enable the computer to execute the item search method according to any one of the above embodiments.
Embodiments of the present application also provide a non-transitory readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a device, the device may execute instructions (instructions) included in an embodiment of the present application.
It should be noted that the computer readable medium mentioned above in the present disclosure may be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for disclosed herein may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.

Claims (10)

1. A method for searching for a commodity, comprising:
acquiring current input content, wherein the current input content is used for searching commodities;
performing a first search according to the current input content to generate a first search result;
if the first search result is empty, acquiring error correction words corresponding to the current input content;
and performing second search according to the error-correcting words to generate a second search result.
2. The item search method according to claim 1, wherein the acquiring an error correction word corresponding to the currently input content includes:
acquiring an error correction word bank, wherein the error correction word bank is generated according to historical input contents with historical search results;
determining at least one alternative error correction word from the error correction word bank according to the current input content;
acquiring the editing distance between each alternative error correction word and the current input content;
and taking the alternative error-correcting word corresponding to the shortest editing distance as the error-correcting word.
3. The item search method of claim 2, wherein said determining at least one alternative error correction word from said error correction lexicon according to said current input content comprises,
determining at least one keyword according to the current input content;
determining at least one alternative error correction word from the error correction word bank according to the keyword;
acquiring the edit distance between each alternative error correction word and the current input content includes: and acquiring the editing distance between each alternative error correction word and the keyword.
4. The merchandise searching method according to claim 3, wherein the error correction word bank includes error correction words, document numbers and browsing numbers, and the determining at least one alternative error correction word from the error correction word bank according to the keyword includes:
performing pinyin or Chinese fuzzy search matching in the error correction word bank according to the keywords, and determining at least one target error correction word;
acquiring the document number and the browsing number corresponding to each target error correction word;
sequencing the target error-correcting words according to the document number and the browsing number corresponding to each target error-correcting word to obtain the ranking of each target error-correcting word;
and determining the target error-correcting words with the ranking higher than the preset ranking as alternative error-correcting words.
5. The item search method according to claim 3, further comprising at least one of:
if the first search result is not empty, displaying the first search result, acquiring the quantity of commodities in the first search result, and updating the keyword and the quantity of commodities in the first search result into the error correction word bank;
and acquiring the quantity of commodities in a second search result according to the second search result, and updating the keyword and the quantity of commodities in the second search result into the error correction word bank.
6. The item search method according to any one of claims 1 to 5, wherein before the second search according to the error correction word, the method further comprises:
and prompting that the error is corrected, and searching by adopting error correction words.
7. The item search method according to any one of claims 1 to 5, further comprising at least one of,
the searching for the first time according to the current input content comprises: acquiring current input content and carrying out full-text retrieval according to the current input content to generate a first search result, wherein the current input content comprises at least one of pinyin of the current input content, single words of the current input content and words of the current input content;
the second search according to the error correction word comprises: and acquiring error-correcting words and carrying out full-text retrieval according to the error-correcting words to generate a second search result, wherein the error-correcting words comprise at least one of pinyin of the error-correcting words, single words of the error-correcting words and words of the error-correcting words.
8. An article search system, comprising:
the input module is used for acquiring current input content, and the current input content is used for searching commodities;
the first search module is used for carrying out first search according to the current input content to generate a first search result;
an error-correcting word obtaining module, configured to obtain an error-correcting word corresponding to the current input content if the first search result is null;
and the second searching module is used for carrying out second searching according to the error-correcting words to generate a second searching result.
9. A terminal comprising a processor, a memory, and a communication bus;
the communication bus is used for connecting the processor and the memory;
the processor is adapted to execute the computer program stored in the memory to implement the item search method according to one or more of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program,
the computer program is for causing the computer to execute the item search method according to any one of claims 1 to 7.
CN202010940590.1A 2020-09-09 2020-09-09 Commodity searching method, system, terminal and computer readable storage medium Pending CN112131461A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010940590.1A CN112131461A (en) 2020-09-09 2020-09-09 Commodity searching method, system, terminal and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010940590.1A CN112131461A (en) 2020-09-09 2020-09-09 Commodity searching method, system, terminal and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN112131461A true CN112131461A (en) 2020-12-25

Family

ID=73846524

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010940590.1A Pending CN112131461A (en) 2020-09-09 2020-09-09 Commodity searching method, system, terminal and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN112131461A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936896A (en) * 2006-09-20 2007-03-28 网之易信息技术(北京)有限公司 Information searching method and system based on searching engine
CN104036004A (en) * 2014-06-17 2014-09-10 百度在线网络技术(北京)有限公司 Search error correction method and search error correction device
CN104268157A (en) * 2014-09-03 2015-01-07 乐视网信息技术(北京)股份有限公司 Device and method for error correction in data search
CN104750672A (en) * 2013-12-27 2015-07-01 重庆新媒农信科技有限公司 Chinese word error correction method used in search and device thereof
CN105989125A (en) * 2015-02-16 2016-10-05 苏宁云商集团股份有限公司 Searching method and system for carrying out label identification on resultless word
CN106156098A (en) * 2015-04-02 2016-11-23 深圳市腾讯计算机系统有限公司 A kind of error correction is to method for digging and system
CN106326484A (en) * 2016-08-31 2017-01-11 北京奇艺世纪科技有限公司 Error correction method and device for search terms
CN107958039A (en) * 2017-11-21 2018-04-24 北京百度网讯科技有限公司 A kind of term error correction method, device and server
CN109002521A (en) * 2018-07-12 2018-12-14 北京猫眼文化传媒有限公司 Error correction method, device and the storage medium of search key
CN109522465A (en) * 2018-10-22 2019-03-26 国家电网公司 The semantic searching method and device of knowledge based map

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1936896A (en) * 2006-09-20 2007-03-28 网之易信息技术(北京)有限公司 Information searching method and system based on searching engine
CN104750672A (en) * 2013-12-27 2015-07-01 重庆新媒农信科技有限公司 Chinese word error correction method used in search and device thereof
CN104036004A (en) * 2014-06-17 2014-09-10 百度在线网络技术(北京)有限公司 Search error correction method and search error correction device
CN104268157A (en) * 2014-09-03 2015-01-07 乐视网信息技术(北京)股份有限公司 Device and method for error correction in data search
WO2016034052A1 (en) * 2014-09-03 2016-03-10 乐视网信息技术(北京)股份有限公司 Device and method for error correction in data search
CN105989125A (en) * 2015-02-16 2016-10-05 苏宁云商集团股份有限公司 Searching method and system for carrying out label identification on resultless word
CN106156098A (en) * 2015-04-02 2016-11-23 深圳市腾讯计算机系统有限公司 A kind of error correction is to method for digging and system
CN106326484A (en) * 2016-08-31 2017-01-11 北京奇艺世纪科技有限公司 Error correction method and device for search terms
CN107958039A (en) * 2017-11-21 2018-04-24 北京百度网讯科技有限公司 A kind of term error correction method, device and server
CN109002521A (en) * 2018-07-12 2018-12-14 北京猫眼文化传媒有限公司 Error correction method, device and the storage medium of search key
CN109522465A (en) * 2018-10-22 2019-03-26 国家电网公司 The semantic searching method and device of knowledge based map

Similar Documents

Publication Publication Date Title
KR101778679B1 (en) Method and system for classifying data consisting of multiple attribues represented by sequences of text words or symbols using deep learning
US20180075013A1 (en) Method and system for automating training of named entity recognition in natural language processing
US8019756B2 (en) Computer apparatus, computer program and method, for calculating importance of electronic document on computer network, based on comments on electronic document included in another electronic document associated with former electronic document
US20130060769A1 (en) System and method for identifying social media interactions
US10152532B2 (en) Method and system to associate meaningful expressions with abbreviated names
WO2016032866A1 (en) Spelling correction of email queries
CN101467125A (en) Processing of query terms
JP2010531492A (en) Word probability determination
CN104834651B (en) Method and device for providing high-frequency question answers
CN113204621B (en) Document warehouse-in and document retrieval method, device, equipment and storage medium
US20130339369A1 (en) Search Method and Apparatus
WO2014210387A2 (en) Concept extraction
CN112100396B (en) Data processing method and device
CN112115232A (en) Data error correction method and device and server
Song et al. Improving neural named entity recognition with gazetteers
WO2023010427A1 (en) Systems and methods generating internet-of-things-specific knowledge graphs, and search systems and methods using such graphs
CN111435406A (en) Method and device for correcting database statement spelling errors
CN113268560A (en) Method and device for text matching
CN113988157A (en) Semantic retrieval network training method and device, electronic equipment and storage medium
CN111753029A (en) Entity relationship extraction method and device
CN104281275A (en) Method and device for inputting English
WO2021042529A1 (en) Article abstract automatic generation method, device, and computer-readable storage medium
CN111753534A (en) Identifying sequence titles in a document
WO2020106644A1 (en) Transliteration of data records for improved data matching
CN111428486B (en) Article information data processing method, device, medium and electronic 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