CN114625863A - Article searching method and related equipment thereof - Google Patents

Article searching method and related equipment thereof Download PDF

Info

Publication number
CN114625863A
CN114625863A CN202210349883.1A CN202210349883A CN114625863A CN 114625863 A CN114625863 A CN 114625863A CN 202210349883 A CN202210349883 A CN 202210349883A CN 114625863 A CN114625863 A CN 114625863A
Authority
CN
China
Prior art keywords
target
article
image
text similarity
images
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
CN202210349883.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.)
Tubatu Group Co Ltd
Original Assignee
Tubatu Group 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 Tubatu Group Co Ltd filed Critical Tubatu Group Co Ltd
Priority to CN202210349883.1A priority Critical patent/CN114625863A/en
Publication of CN114625863A publication Critical patent/CN114625863A/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/335Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/53Querying
    • G06F16/532Query formulation, e.g. graphical querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/583Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content
    • G06F16/5846Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using metadata automatically derived from the content using extracted text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/22Matching criteria, e.g. proximity measures

Abstract

The embodiment of the application discloses an article searching method, which comprises the following steps: acquiring a target keyword; searching according to the target keywords to obtain a target article, wherein the target article comprises a plurality of images; acquiring a plurality of associated fields respectively associated with different images in a target article; calculating the text similarity of the plurality of associated fields and the target keyword respectively; determining a target image according to the calculation result of the text similarity; and taking the target image as a preview image of the target article. The article search result obtained based on the method comprises preview images, and the preview images displayed by the articles are obtained by calculation based on the text similarity between the target keywords input by the user and the image associated fields, so that the displayed preview images are closer to the target keywords input by the user, the displayed preview images are more in line with the user requirements, the most wanted images of the user are screened, and the search accuracy is improved.

Description

Article searching method and related equipment thereof
Technical Field
The application belongs to the technical field of internet, and particularly relates to an article searching method and related equipment thereof.
Background
With the development of the internet, the technology of the search function as a common function is more and more mature, and different websites may respectively adopt different search systems.
When searching articles, the search mode generally adopted is text search, that is, a user inputs keywords, and the website system searches articles which are most matched with the keywords based on the input keywords and displays the articles to the user. Generally, the search result presented to the user is a set including a plurality of matching articles, that is, information such as titles and summaries of a plurality of articles is presented, so that the user can select the article of most interest and click to browse.
In the process of displaying a search result, for the case that some article contents have images, the website system may select a certain image as a preview image to be displayed to the user together with information such as titles and abstracts of the articles, and the image as the preview image is often the first image in the articles, and is usually greatly different from a search text input by the user, which has a certain problem.
Disclosure of Invention
A first aspect of an embodiment of the present application provides an article search method, including:
acquiring a target keyword;
searching according to the target keywords to obtain a target article, wherein the target article comprises a plurality of images;
acquiring a plurality of associated fields respectively associated with different images in a target article;
calculating the text similarity of the plurality of associated fields and the target keyword respectively;
determining a target image according to the calculation result of the text similarity;
and taking the target image as a preview image of the target article.
Based on the article searching method provided in the first aspect of the embodiment of the present application, optionally, the associated fields are n bytes before the image and n bytes after the image.
Based on the article searching method provided in the first aspect of the embodiment of the present application, optionally, the determining a target image according to the calculation result of the text similarity includes:
determining an image corresponding to a calculation result with the highest text similarity as a target image;
based on the article searching method provided in the first aspect of the embodiment of the present application, optionally, the determining a target image according to the calculation result of the text similarity includes:
and if a plurality of calculation results with the highest text similarity exist, determining that the image with the prior appearance sequence in the images corresponding to the calculation results with the highest text similarity is the target image.
Based on the article searching method provided in the first aspect of the embodiment of the present application, optionally, the target article is multiple.
Based on the article searching method provided in the first aspect of the embodiment of the present application, optionally, the taking the target image as a preview image of the target article includes:
preprocessing the target image to obtain a thumbnail of the target image;
and displaying the thumbnail and the title of the target article in an associated manner.
Based on the article searching method provided in the first aspect of the embodiment of the present application, optionally, the associated field is a byte from n periods before the image to n periods after the image.
A second aspect of embodiments of the present application provides an article search device, including:
an acquisition unit configured to acquire a target keyword;
the searching unit is used for searching according to the target keyword to obtain a target article, and the target article comprises a plurality of images;
the second acquisition unit is used for acquiring a plurality of associated fields which are respectively associated with different images in the target article;
the calculation unit is used for calculating the text similarity between the plurality of associated fields and the target keyword respectively;
the determining unit is used for determining a target image according to the calculation result of the text similarity;
and the preview unit is used for taking the target image as a preview image of the target article.
A first aspect of embodiments of the present application provides a method, including:
a third aspect of the embodiments of the present application provides an article search device, where the method further includes:
the system comprises a central processing unit, a memory, an input/output interface, a wired or wireless network interface and a power supply;
the memory is a transient storage memory or a persistent storage memory;
the central processing unit is configured to communicate with the memory, and to execute the instructions in the memory on the device to perform the method according to any one of the first aspect of the embodiments of the present application.
A fourth aspect of embodiments of the present application provides a computer-readable storage medium, including instructions, which, when executed on a computer, cause the computer to perform the method according to any one of the first aspects of embodiments of the present application.
A fifth aspect of embodiments of the present application provides a computer program product containing instructions, which when executed on a computer, cause the computer to perform the method according to any one of the first aspect of embodiments of the present application.
According to the technical scheme, the embodiment of the application has the following advantages: the application provides an article searching method, which comprises the following steps: acquiring a target keyword; searching according to the target keywords to obtain a target article, wherein the target article comprises a plurality of images; acquiring a plurality of associated fields respectively associated with different images in a target article; calculating the text similarity of the plurality of associated fields and the target keyword respectively; determining a target image according to the calculation result of the text similarity; and taking the target image as a preview image of the target article. The article search result obtained based on the method comprises preview images, and the preview images displayed by the articles are obtained through calculation based on the text similarity between the target keywords input by the user and the image associated fields, so that the displayed preview images are closer to the target keywords input by the user, the displayed preview images are further more in line with the user requirements, the pictures most desired by the user are further screened, and the search accuracy is improved. And extracting the most relevant pictures of the articles to display to the user through the keywords searched by the user.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts. It is to be understood that the drawings provided in this section are only for the purpose of better understanding the present solution and are not to be construed as limiting the present application.
FIG. 1 is a diagram illustrating search results of an article provided by the present application.
Fig. 2 is a flowchart illustrating an embodiment of an article searching method provided in the present application.
Fig. 3 is another schematic flow chart of an embodiment of an article searching method provided in the present application.
Fig. 4 is a schematic structural diagram of an embodiment of an article search device provided in the present application.
Fig. 5 is another schematic structural diagram of an embodiment of an article search device provided in the present application.
Detailed Description
In order to make the technical solutions in the embodiments of the present application better understood, the technical solutions in the embodiments of the present application are clearly and completely described below, and it is obvious that the described embodiments are only some embodiments of the present application, not all embodiments. 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. Meanwhile, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness of description.
The terms "first," "second," "third," "fourth," and the like in the description and in the claims of the present application and in the drawings described above, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that the embodiments described herein may be practiced otherwise than as specifically illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
With the development of the internet, the technology of the search function as a common function is more and more mature, and different websites may respectively adopt different search systems.
When searching articles, the search mode generally adopted is text search, that is, a user inputs keywords, and the website system searches articles which are most matched with the keywords based on the input keywords and displays the articles to the user. Generally, the search result presented to the user is a set including a plurality of matching articles, that is, information such as titles and summaries of a plurality of articles is presented, so that the user can select the article of most interest and click to browse.
In the process of displaying the search result, for the case that some article contents have images, the website system may select a certain image as a preview image to be displayed to the user together with information such as titles and abstracts of the articles, specifically, referring to fig. 1, a preview page appearing when the user searches for a keyword of "soup plus national communication interruption" is shown in fig. 1, where the article having the image selects a certain image as the preview image to be displayed to the user in the preview page, the image serving as the preview image is often the first image in the article, and for the case that the image has more contents and is more complicated, the displayed preview image may be greatly different from the search text input by the user, so that a certain problem exists.
To solve the above problem, an embodiment of the present application provides an article searching method, please refer to fig. 2, and an embodiment of the article searching method provided by the present application includes: step 201-step 206.
201. And acquiring the target keyword.
Specifically, the target keyword is obtained, where the target keyword is a search field input by the user, in an actual application process, the website system may provide a corresponding search bar, the user may input a content text to be searched in the search bar, and the content text is regarded as the target keyword, and a specific form may be determined according to an actual situation, which is not limited herein.
202. And searching according to the target keywords to obtain a target article.
Searching according to the target keyword to obtain a target article, wherein the target article comprises a plurality of images, matching the target keyword with articles stored in a database to obtain one or more articles with high association degree with the target keyword as the target article, and the searching process of the target article can refer to the prior art and is not repeated here. It can be understood that the target article includes a plurality of images, the images are used for explaining the article content, and the article which is obtained by searching and does not have the images does not need to be subjected to subsequent steps, and can be directly displayed to the user as a search result together with the target article, which may be determined according to the actual situation, and is not limited herein.
203. And acquiring a plurality of associated fields in the target article, wherein the associated fields are respectively associated with different images.
Specifically, a plurality of associated fields associated with different images in the target article are obtained, where the associated fields are fields associated with the images, for example, the first 20 bytes and the second 20 bytes corresponding to the images may be selected as the associated fields corresponding to the images, and the number of bytes may be adjusted according to actual conditions, which is not limited herein. Or extracting the titles of the images, and taking the fields related in the article based on the image titles as the related fields thereof, such as: if the title of a certain image is "fig. 1", the following 10 bytes of the typeface of "fig. 1" appearing in the article are searched as the associated field of the image, and the specific manner may be determined according to the actual situation, which is not limited herein.
204. And calculating the text similarity of the plurality of associated fields and the target keyword respectively.
Specifically, the text similarity between each of the plurality of associated fields and the target keyword is calculated, and the text similarity between each of the associated fields and the target keyword is calculated, where the specific text similarity may be calculated as follows: cosine similarity, manhattan distance, euclidean distance, or explicit distance, and the specific calculation method may be determined according to actual situations, and is not limited herein. The calculation result is the approximation degree of each associated field and the target keyword, and the approximation degree between the image corresponding to each associated field and the target keyword is reflected.
205. And determining a target image according to the calculation result of the text similarity.
Specifically, the target image is determined according to the calculation result of the text similarity. In the actual implementation process, the image corresponding to the associated field with the highest similarity in the calculation result may be selected as the target image, and the higher the similarity is, the closer the associated field is to the target keyword input by the user, that is, the higher the association between the image corresponding to the associated field and the target keyword input by the user is, so that the image corresponding to the associated field with the highest similarity may be selected as the target image.
206. And taking the target image as a preview image of the target article.
Specifically, the target image is used as a preview image of the target article. The title and other related information of the target article and the preview image can be displayed to the user together when the search result is displayed, and corresponding processing such as cutting, scaling and the like can be performed on the target image in the process, which can be specifically determined according to the actual situation, and is not limited herein.
According to the technical scheme, the embodiment of the application has the following advantages: the application provides an article searching method, which comprises the following steps: acquiring a target keyword; searching according to the target keywords to obtain a target article, wherein the target article comprises a plurality of images; acquiring a plurality of associated fields respectively associated with different images in a target article; calculating the text similarity of the plurality of associated fields and the target keyword respectively; determining a target image according to the calculation result of the text similarity; and taking the target image as a preview image of the target article. The article search result obtained based on the method comprises preview images, and the preview images displayed by the articles are obtained through calculation based on the text similarity between the target keywords input by the user and the image associated fields, so that the displayed preview images are closer to the target keywords input by the user, the displayed preview images are further more in line with the user requirements, the pictures most desired by the user are further screened, and the search accuracy is improved. And extracting the most relevant pictures of the articles to display to the user through the keywords searched by the user.
To facilitate using the method in the actual search process, the present application also provides a more detailed embodiment that can be implemented alternatively, and referring to fig. 3, an embodiment of the article search method provided by the present application includes: step 301-step 307.
301. And acquiring the target keyword.
302. And searching according to the target keywords to obtain a target article.
Steps 301 to 302 are similar to steps 201 to 202 in the embodiment corresponding to fig. 1, and reference may be made to the foregoing specifically, which is not repeated herein.
303. And acquiring a plurality of associated fields in the target article, wherein the associated fields are respectively associated with different images.
Specifically, a plurality of associated fields in the target article, which are respectively associated with different images, are obtained. In this step, the associated fields are the first n bytes of the image and the last n bytes of the image, where n is a positive integer, and the value may be selected according to the actual situation, which is not limited herein. It is understood that the selection manner of the associated field may also be selected by punctuation, for example, the associated field is a byte after the first n periods of the image and before the last n periods of the image, which may be determined according to the actual situation and is not limited herein.
304. And calculating the text similarity of the plurality of associated fields and the target keyword respectively.
Specifically, the text similarity between each of the plurality of associated fields and the target keyword is calculated. This step is similar to step 204 in the embodiment corresponding to fig. 1, and is not described herein again.
305. And determining the image corresponding to the calculation result with the highest text similarity as the target image.
Specifically, the image corresponding to the calculation result with the highest text similarity is determined as the target image. And if a plurality of calculation results with the highest text similarity exist, determining that the image with the prior appearance sequence in the images corresponding to the calculation results with the highest text similarity is the target image. In this way, an image having a high degree of association with the search keyword input by the user is made to serve as the target image.
306. And preprocessing the target image to obtain a thumbnail of the target image.
Specifically, the target image is preprocessed to obtain the thumbnail of the target image, the size of the target image is often large in the display process and does not meet the requirement of the preview image, so that the target image needs to be zoomed to obtain the thumbnail meeting the preview requirement, the preprocessing process is determined according to the display requirement of the website, and the preprocessing process is not limited here.
307. And displaying the thumbnail and the title of the target article in an associated manner.
Specifically, the thumbnail and the title of the target article are displayed in an associated manner. Therefore, the user can obtain the image information which is most similar to the search keyword in the article while obtaining the text information, and the search requirement of the user is further met.
According to the technical scheme, the embodiment of the application has the following advantages: the application provides an article searching method, which comprises the following steps: acquiring a target keyword; searching according to the target keywords to obtain a target article, wherein the target article comprises a plurality of images; acquiring a plurality of associated fields respectively associated with different images in a target article; calculating the text similarity of the plurality of associated fields and the target keyword respectively; determining a target image according to the calculation result of the text similarity; and taking the target image as a preview image of the target article. The article search result obtained based on the method comprises preview images, and the preview images displayed by the articles are obtained through calculation based on the text similarity between the target keywords input by the user and the image associated fields, so that the displayed preview images are closer to the target keywords input by the user, the displayed preview images are further more in line with the user requirements, the pictures most desired by the user are further screened, and the search accuracy is improved. And extracting the most relevant pictures of the articles through the keywords searched by the user and displaying the pictures to the user.
In order to support the implementation of the above embodiments, the present application further provides an article searching apparatus, please refer to fig. 4, where an embodiment of the present application includes:
a first obtaining unit 401, configured to obtain a target keyword;
a searching unit 402, configured to search according to the target keyword to obtain a target article, where the target article includes multiple images;
a second obtaining unit 403, configured to obtain multiple associated fields in the target article, where the multiple associated fields are associated with different images respectively;
a calculating unit 404, configured to calculate text similarities between the multiple associated fields and the target keyword, respectively;
a determining unit 405, configured to determine a target image according to a calculation result of the text similarity;
a preview unit 406, configured to take the target image as a preview image of the target article.
In this embodiment, the flow executed by each unit in the article search device is similar to the method flow described in the embodiment corresponding to fig. 1 and fig. 2, and is not repeated here.
FIG. 5 illustrates a schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 5, the apparatus 500 comprises a computing unit 501 which may perform various appropriate actions and processes in accordance with a computer program stored in a Read Only Memory (ROM)502 or a computer program loaded from a storage unit 508 into a Random Access Memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The calculation unit 501, the ROM 502, and the RAM 503 are connected to each other by a bus 504. An input/output (I/O) interface 505 is also connected to bus 504.
A number of components in the device 500 are connected to the I/O interface 505, including: an input unit 506 such as a keyboard, a mouse, or the like; an output unit 507 such as various types of displays, speakers, and the like; a storage unit 508, such as a magnetic disk, optical disk, or the like; and a communication unit 509 such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The computing unit 501 may be a variety of general-purpose and/or special-purpose processing components having processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various dedicated Artificial Intelligence (AI) computing chips, various computing units running machine learning model algorithms, a Digital Signal Processor (DSP), and any suitable processor, controller, microcontroller, and so forth. The calculation unit 501 executes the respective methods and processes described above, such as the article search method. For example, in some embodiments, implemented as a computer software program, tangibly embodied in a machine-readable medium, such as storage unit 508. In some embodiments, part or all of the computer program may be loaded and/or installed onto the device 500 via the ROM 502 and/or the communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the article search method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the article search method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuitry, Field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), system on a chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
Program code for implementing the methods of the present application may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this application, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on 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.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user may provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), the internet, and blockchain networks.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The Server can be a cloud Server, also called a cloud computing Server or a cloud host, and is a host product in a cloud computing service system, so as to solve the defects of high management difficulty and weak service expansibility in the traditional physical host and VPS service ("Virtual Private Server", or simply "VPS"). The server may also be a server of a distributed system, or a server incorporating a blockchain.
Embodiments of the present application also provide a computer storage medium for storing computer software instructions for the article searching method, which includes a program designed for executing the article searching method.
The article search method may be as described in the foregoing fig. 1.
An embodiment of the present application further provides a computer program product, where the computer program product includes computer software instructions, and the computer software instructions can be loaded by a processor to implement the flow of the article search method in any one of fig. 1 and fig. 2.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, equivalent circuit transformations, partitions of units, and logic functions may be merely one type of partitioning, and in actual implementation, there may be other partitioning manners, 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 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, and can also be realized in a form of a software functional unit.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents or improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (10)

1. An article searching method, comprising:
acquiring a target keyword;
searching according to the target keywords to obtain a target article, wherein the target article comprises a plurality of images;
acquiring a plurality of associated fields respectively associated with different images in a target article;
calculating the text similarity of the plurality of associated fields and the target keyword respectively;
determining a target image according to the calculation result of the text similarity;
and taking the target image as a preview image of the target article.
2. The article searching method according to claim 1, wherein the associated fields are the first n bytes of the image and the last n bytes of the image.
3. The article searching method according to claim 1, wherein said determining a target image according to the calculation result of the text similarity comprises:
and determining the image corresponding to the calculation result with the highest text similarity as the target image.
4. The article searching method according to claim 1, wherein said determining a target image according to the calculation result of the text similarity comprises:
and if a plurality of calculation results with the highest text similarity exist, determining that the image with the prior appearance sequence in the images corresponding to the calculation results with the highest text similarity is the target image.
5. The article searching method of claim 1, wherein the target article is a plurality of articles.
6. The article searching method according to claim 1, wherein the taking the target image as a preview image of the target article comprises:
preprocessing the target image to obtain a thumbnail of the target image;
and displaying the thumbnail and the title of the target article in an associated manner.
7. The article searching method according to claim 1, wherein said associated field is a byte after the first n periods of said image and before the last n periods of said image.
8. An article search device, comprising:
a first acquisition unit configured to acquire a target keyword;
the searching unit is used for searching according to the target keyword to obtain a target article, and the target article comprises a plurality of images;
the second acquisition unit is used for acquiring a plurality of associated fields which are respectively associated with different images in the target article;
the calculation unit is used for calculating the text similarity between the plurality of associated fields and the target keyword respectively;
the determining unit is used for determining a target image according to the calculation result of the text similarity;
and the preview unit is used for taking the target image as a preview image of the target article.
9. An article search device, comprising:
the system comprises a central processing unit, a memory, an input/output interface, a wired or wireless network interface and a power supply;
the memory is a transient memory or a persistent memory;
the central processor is configured to communicate with the memory, the instructions in the memory operative to be executed on the article search device to perform the method of any of claims 1 to 7.
10. A computer-readable storage medium comprising instructions that, when executed on a computer, cause the computer to perform the method of any one of claims 1 to 7.
CN202210349883.1A 2022-04-02 2022-04-02 Article searching method and related equipment thereof Pending CN114625863A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210349883.1A CN114625863A (en) 2022-04-02 2022-04-02 Article searching method and related equipment thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210349883.1A CN114625863A (en) 2022-04-02 2022-04-02 Article searching method and related equipment thereof

Publications (1)

Publication Number Publication Date
CN114625863A true CN114625863A (en) 2022-06-14

Family

ID=81906496

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210349883.1A Pending CN114625863A (en) 2022-04-02 2022-04-02 Article searching method and related equipment thereof

Country Status (1)

Country Link
CN (1) CN114625863A (en)

Similar Documents

Publication Publication Date Title
CN113590645B (en) Searching method, searching device, electronic equipment and storage medium
CN112765478B (en) Method, apparatus, device, medium and program product for recommending content
CN113836314B (en) Knowledge graph construction method, device, equipment and storage medium
CN113239295A (en) Search method, search device, electronic equipment and storage medium
CN111782841A (en) Image searching method, device, equipment and computer readable medium
CN113806660A (en) Data evaluation method, training method, device, electronic device and storage medium
EP3564833B1 (en) Method and device for identifying main picture in web page
CN113408660A (en) Book clustering method, device, equipment and storage medium
CN116955856A (en) Information display method, device, electronic equipment and storage medium
CN116597443A (en) Material tag processing method and device, electronic equipment and medium
CN113722593B (en) Event data processing method, device, electronic equipment and medium
CN114036397B (en) Data recommendation method, device, electronic equipment and medium
CN112887426B (en) Information stream pushing method and device, electronic equipment and storage medium
CN112148988B (en) Method, apparatus, device and storage medium for generating information
CN114625863A (en) Article searching method and related equipment thereof
CN114048315A (en) Method and device for determining document tag, electronic equipment and storage medium
CN112861504A (en) Text interaction method, device, equipment, storage medium and program product
CN114238689A (en) Video generation method, video generation device, electronic device, storage medium, and program product
CN113377924A (en) Data processing method, device, equipment and storage medium
CN113221035A (en) Method, apparatus, device, medium, and program product for determining an abnormal web page
CN112926297A (en) Method, apparatus, device and storage medium for processing information
CN117271840B (en) Data query method and device of graph database and electronic equipment
WO2020005654A1 (en) Automatically providing information in an application
CN115828915B (en) Entity disambiguation method, device, electronic equipment and storage medium
CN115392389B (en) Cross-modal information matching and processing method and device, electronic equipment and 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