WO2017181663A1 - Method and device for matching image to search information - Google Patents
Method and device for matching image to search information Download PDFInfo
- Publication number
- WO2017181663A1 WO2017181663A1 PCT/CN2016/106183 CN2016106183W WO2017181663A1 WO 2017181663 A1 WO2017181663 A1 WO 2017181663A1 CN 2016106183 W CN2016106183 W CN 2016106183W WO 2017181663 A1 WO2017181663 A1 WO 2017181663A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- picture
- search
- keyword
- matching
- search keyword
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/95—Retrieval from the web
- G06F16/951—Indexing; Web crawling techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/50—Information retrieval; Database structures therefor; File system structures therefor of still image data
- G06F16/58—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
- G06F16/5866—Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
Definitions
- the present invention relates to the field of computer technologies, and in particular, to a method and apparatus for matching pictures for search information.
- search engines came into being.
- a search engine can help people obtain the information they need by searching for keywords.
- many search results display pure text search results, which is not convenient for the user to intuitively obtain the required information.
- the user needs to frequently open the webpage corresponding to the search result to obtain the information of interest, thereby increasing the interaction between the user and the network, resulting in The waste of network resources.
- the display of plain text cannot attract the attention and browsing of the user.
- the content of the advertisement search results is provided by the advertiser. If the advertising content provided by the advertiser does not contain images, it often fails to attract the attention of the users, and the amount of clicks is not high. However, for many advertisers, the cost of producing an image is high, and it is often impossible to configure a suitable image for the content of the advertisement.
- the plain text advertisement search result occupies a better display position, but can not get enough attention and clicks from the user, the time for the user to find the information of interest is invisibly increased, and the interaction between the user and the network is increased, and to a certain extent It causes the occupation and waste of network resources.
- Embodiments of the present invention provide a method and apparatus for matching pictures for search information, which may be search
- the information matches the appropriate picture, improves the readability of the information, facilitates the user to obtain information more intuitively, reduces the frequent interaction between the user and the network, and reduces the occupation and waste of network resources.
- an embodiment of the present invention provides a method for matching pictures for search information, including:
- the first search result does not include a picture
- searching in the pre-established first picture library according to the search keyword acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;
- the picture matching the search keyword is displayed in association with the first search result.
- an embodiment of the present invention provides an apparatus for matching a picture for searching information, including:
- An obtaining unit configured to acquire, according to a search request of the user, a first search result corresponding to the search keyword included in the search request;
- a matching unit configured to: when determining that the first search result does not include a picture, searching in a pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein, the The first picture library stores a correspondence between the picture and the search keyword;
- a display unit configured to display the picture that matches the search keyword with the first search result.
- an embodiment of the present invention provides an apparatus for matching a picture to search information, including a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be Execution of the one or more programs by one or more processors includes instructions for performing the following operations:
- the first search result does not include a picture
- searching in the pre-established first picture library according to the search keyword acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;
- the picture matching the search keyword is displayed in association with the first search result.
- the method and apparatus for searching for a picture to match a picture may be, in response to a search request of a user, acquiring a first search result corresponding to the search keyword included in the search request; and determining the first search result
- the search is performed in the pre-established first picture library according to the search keyword, the picture matching the search keyword is acquired, and the picture may be displayed in association with the first search result.
- the embodiment of the invention can automatically configure matching pictures for search results that do not include pictures, improve the readability of the search results, increase the click rate of the recommended information, and facilitate the user to obtain information more intuitively, and reduce frequent users and networks. Interaction, reducing network resource consumption and waste.
- FIG. 1 is a schematic diagram showing a scenario in which an embodiment of the present invention can be applied
- FIG. 2 is a flowchart of a method for matching pictures to search information according to an embodiment of the present invention
- FIG. 3 is a flowchart of a method for matching pictures to search information according to another embodiment of the present invention.
- FIG. 4 is a schematic diagram of an apparatus for matching pictures for search information according to an embodiment of the present invention.
- FIG. 5 is a block diagram of an apparatus for matching pictures for search information, according to an exemplary embodiment
- FIG. 6 is a schematic structural diagram of a server in an embodiment of the present invention.
- the embodiment of the invention provides a method and a device for matching pictures with search information, which can match the search information with suitable images, improve the readability of the information, and facilitate the user to obtain information more intuitively. Frequent interactions between users and the network reduce network resource occupation and waste.
- FIG. 1 is an exemplary application scenario of an embodiment of the present invention.
- the method provided by the embodiment of the present invention can be applied to the scenario shown in FIG. 1 , wherein the method provided by the embodiment of the present invention can be applied to the terminal device 2 shown in FIG. 1 , where the terminal device 2 includes the display interface 1 . .
- the user can input a search keyword in the search box 10 of the display interface, and the terminal device 2 displays a search result, such as the search result 11, in response to the user's search request.
- the search result 11 does not include a picture
- the method and apparatus provided by the embodiments of the present invention may automatically configure the picture 12 for the search result 11 and display the search result 11 in association with the picture 12.
- 1 may be any existing electronic device that is being developed or developed in the future, including but not limited to: existing, under development or future development, desktop computer, laptop computer, mobile Terminals (including smartphones, non-smart phones, various tablets), etc.
- the method and apparatus provided by the embodiments of the present invention may also be applied to a web server, and are not limited herein. It should be noted that the above application scenarios are only for the purpose of facilitating understanding of the present invention, and embodiments of the present invention are not limited in this respect. Rather, embodiments of the invention may be applied to any scenario that is applicable.
- FIG. 2 is a flowchart of a method for matching pictures to search information according to an embodiment of the present invention. As shown in Figure 1, it can include:
- the user's search request includes a search keyword
- the apparatus provided by the embodiment of the present invention may acquire one or more search results that match the search keyword in response to the user's search request.
- the one or more search results include at least a first search result.
- a search result may be a search result that is preferentially displayed from the one or more search results according to a preset screening policy.
- the specific screening policy can be flexibly set as needed, and is not limited herein.
- the first search result is an advertisement search result
- the advertisement search result includes content of the advertisement.
- the method provided by the embodiment of the present invention may further include the step of establishing a first picture library.
- the establishing the first picture library includes: acquiring a feature search keyword according to the historical search result; configuring a matching picture for the feature search keyword, and saving a correspondence between the feature search keyword and the picture.
- the feature search keyword may be a high frequency search keyword, or may be a keyword having a specific feature or associated with a specific use.
- the feature search keyword may be a keyword with a high search frequency, that is, a high frequency search keyword.
- the feature search keywords may also be associated with a particular use, such as search keywords related to the advertisement.
- the feature keyword may be a keyword having certain characteristics and having certain characteristics.
- the historical search result when the feature search keyword is acquired, the historical search result may be pre-stated, and the search keyword whose user search frequency is greater than the first preset threshold is acquired as the feature search keyword.
- the search frequency of some keywords is not greater than the first preset threshold, the time factor may be comprehensively considered, and in the shorter time, more hot words may be searched as feature search keywords.
- the matched search image After the feature search keyword is determined, the matched search image may be configured for the feature search keyword, and the corresponding relationship between the feature search keyword and the image may be saved.
- the picture configured for the feature search keyword in the first picture library is a picture with strong versatility and relatively strong correlation with the search keyword.
- the search results configured with images are more in line with the user's expectations of search results, and can also increase the attractiveness of search results and bring more clicks.
- the search result is recommended information, such as an advertisement search result
- the above manner can improve the reading amount of the advertisement, thereby improving the advertisement income of the advertiser and the revenue of the advertisement platform.
- configuring the matched picture for the feature search keyword may include: establishing a second picture library, where the second picture library stores a correspondence between the picture and the tag; according to the feature Searching for a keyword in the second image library, acquiring a tag matching the feature search keyword; and configuring a picture corresponding to the tag matching the feature search keyword according to the correspondence between the image and the tag Search for the matching picture of the keyword for the feature.
- the second picture library may be pre-established as a base library, and the pictures in the second picture library are set with matching tags.
- the tag is used to describe the content and/or classification of the picture.
- the first label "cake” is configured for a picture of a cake, and further, a classification label "gourmet" can be set for it.
- the second picture library may be scanned to obtain a picture corresponding to the tag that matches the feature search keyword.
- the efficiency of data processing is improved relative to the manner in which the image is manually configured for the feature search keyword.
- configuring the matched picture for the feature search keyword may include: acquiring, according to the historical search result, a picture included or associated with the search result with the highest click rate among the search results corresponding to the feature search keyword;
- the picture including or associated with the search result having the highest click rate is configured as a picture matching the feature search keyword.
- the historical search result can be analyzed, the click rate of the user's search results for the "ring” can be obtained, and the image or the associated image included in the search result with the highest click rate can be selected. And using the picture as a picture that matches the feature search keyword.
- the image may be resized, adjusted to an appropriate size, and saved to the first image library.
- the picture configured for the feature search keyword is a picture with a high historical click rate of the user, the probability that the picture and the search result displayed in association with it are clicked is greatly increased, and the recommended information is successfully pushed. The probability.
- the picture configured for the feature search keyword is a picture with a high user history click rate and a relatively strong correlation with the search keyword, the search result configured with the picture is more in line with the user's search result. It is expected that the search result is greatly increased by the user's desire to search, which saves the user's search time, reduces frequent interaction between the user and the network, and reduces network resource occupation and waste.
- the feature search keyword when the matching picture is configured for the feature search keyword, the feature search keyword may be subjected to word splitting processing to acquire at least two keywords, and the at least two may be determined. Key keywords in keywords. For example, if the feature search keyword “wedding ring” is split, the two keywords “marriage” and “ring” can be obtained, and the core keyword in the two keywords is determined as “ring” and is the core. Keyword “ring” configuration matching diagram sheet. For example, if the feature search keyword “summer part-time job” is used for word-breaking, two keywords “summer” and “part-time job” can be obtained, and the core keywords in the two keywords are determined as "part-time” and are the core. The keyword "part-time” configuration matches the picture.
- the method for determining the core keyword may be various.
- the keyword having strong word formation ability may be used as the core keyword according to the word formation ability of the keyword and other words.
- the core keyword may be determined according to the weight corresponding to each keyword after the split, and the keyword with higher weight may be determined as the core keyword.
- the weight setting of the keyword can be set according to needs, for example, the feature search keyword "wedding ring", for the split keywords "marriage” and "ring”, the keyword “ring” belongs to the entity word, then The weight is higher; the keyword “marriage” belongs to a modifier or a qualifier, and the weight is lower.
- other methods may also be employed, and are not limited herein.
- the feature search keyword is subjected to word splitting processing, the application range of the image can be improved, and the cost of configuring the image can be reduced.
- the keyword "ring” can be obtained by word-removal processing. In the gallery, only one picture can be configured for the keyword "ring”. There is no need to configure pictures for the "wedding ring” and “marriage ring” respectively, which reduces the cost of configuring the picture.
- the picture of "ring” can be matched with the search keywords "wedding ring” and "marriage ring” to achieve the multi-use effect of the picture and improve the application range of the picture.
- it is also possible to perform the word-removal processing on the feature search keyword which is not limited by the present invention.
- the first search result corresponding to the search keyword included in the search request may be acquired in response to the search request of the user, and when it is determined that the first search result does not include the picture, Automatically configure the matching image for the first search result.
- the first search result may be determined according to whether the image is included in the first search result, or may be determined according to the document structure information of the first search result.
- the searching in the pre-established first picture library according to the search keyword, and acquiring the picture that matches the search keyword comprises: performing a word-removing process on the search keyword, acquiring at least Matching the at least two keywords with the pictures in the first picture library to obtain a matching result; determining, in the matching result, a picture corresponding to the keyword with high matching degree as Search for keywords that match the image.
- the method provided by the embodiment of the present invention may further include: configuring a corresponding picture in the first picture library for a keyword with a low matching degree in the matching result, and saving the picture with the low matching degree Correspondence of keywords.
- a keyword with low matching degree "Beijing”
- the search keyword is “unmanned aerial vehicle”
- there is no matching picture in the first picture library that is, when the matching degree is zero, if the user searches for more, a label can be configured as “none”.
- the picture of the man-machine thereby realizing the updating and maintenance of the first picture library, thereby improving the application range of the picture of the first picture library.
- the searching in the pre-established first picture library according to the search keyword, and acquiring the picture that matches the search keyword comprises: performing a word-removing process on the search keyword, acquiring at least Determining a core keyword of the at least two keywords; matching the core keyword with a picture in the first picture library to obtain a matching result; matching the core keyword
- the picture is determined to be a picture that matches the search keyword. For example, if the search keyword "wedding ring" is dismantled, two keywords “marriage” and "ring” can be obtained. The algorithm can determine that the core keyword of the two keywords is "ring". And matching the core keyword "ring” with the picture in the first picture library to obtain a matching result.
- the keyword "cake” is identified as the core keyword.
- the manner of determining the core keyword is the same as the manner of determining the core keyword in the feature search keyword, and details are not described herein. For example, based on the ability of words and other words to form words, Key words with strong word formation ability are used as core keywords.
- the core keyword may be determined according to the weight corresponding to each keyword after the split, and the keyword with higher weight may be determined as the core keyword.
- the search keyword when determining a picture that matches the search keyword, may not be subjected to word splitting processing. For example, if the search keyword is "marriage ring", there is a picture in the first picture library labeled "marriage ring", at which time the two can be matched, and the search result without the picture can be automatically configured to have a picture. Search results.
- the search result is an advertisement search result
- the non-map advertisement can be upgraded to a map advertisement.
- the specific matching method when searching for a picture matching the search keyword in the pre-established first picture library according to the search keyword, the specific matching method may be an exact match or a fuzzy match.
- the search keyword when the matching method is an exact match, the search keyword is “marriage ring”, and it needs to be accurately matched with the picture with the label “marriage ring”.
- the matching method is fuzzy matching, the search keyword is “marriage ring”, which can also achieve fuzzy matching with the picture labeled “wedding ring”.
- the picture may be displayed together with the first search result according to a preset layout.
- the first search result 11 is displayed in association with the picture 12.
- the image may be cropped to the size required by the advertisement, and configured to the left of the text content included in the advertisement.
- the specific layout can be set as needed, and is not limited herein.
- the size of the picture contained therein can be adjusted to match the search result. In this way, the time for the user to wait for the search result can be reduced, and the user experience can be improved.
- the size of the picture and/or the layout of the picture and the text information may be adjusted according to the size of the text information included in the first search result. For example, the length of the text information included in different search results may be different. In this case, the size of the matched image needs to be adjusted according to the size of the text information, and/or the layout of the image and the text information is adjusted to achieve better. display effect.
- the first search result is an advertisement search result
- the displaying the picture matching the search keyword with the first search result includes: displaying the search key with the search key The image matching the word is displayed in association with the advertising content corresponding to the ad search result.
- the matched image can be automatically configured for the search result that does not include the image, the readability of the search result is improved, the click rate of the recommended information is increased, and the user can be more intuitively obtained, thereby reducing the user and the user. Frequent interactions of the network reduce network resource occupation and waste.
- FIG. 3 is a flowchart of a method for matching pictures to search information according to another embodiment of the present invention.
- the above implementation method is described by taking the first search result as an advertisement search result as an example.
- the keyword searched by the user is “bloves ring”.
- the advertisement search result is a non-image advertisement, that is, the advertisement search result corresponding to “bloves ring” is a plain text advertisement.
- the image matches the keyword "ring”, and the image is associated with the ad, which automatically matches the image in the gallery for the customer's unmapped ad.
- an image containing a ring can be automatically matched for the unmapped ad, and the matched image is displayed in association with the ad search result, thereby increasing the readability of the ad search result, increasing the click rate, and reducing the user's search search.
- the resulting time reduces the interaction between the user and the network and reduces the occupation and waste of network resources.
- FIG. 4 is a schematic diagram of an apparatus for searching for a picture to match a picture according to an embodiment of the present invention.
- a device 400 for searching for information to match a picture comprising:
- the obtaining unit 401 is configured to acquire, according to a search request of the user, a first search result corresponding to the search keyword included in the search request.
- the matching unit 402 is configured to: when determining that the first search result does not include a picture, searching in a pre-established first picture library according to the search keyword, and acquiring a picture that matches the search keyword;
- the first picture library stores a correspondence between pictures and search keywords.
- the display unit 403 is configured to display the picture matching the search keyword in association with the first search result.
- the matching unit 402 includes:
- a first splitting unit configured to perform a word splitting process on the search keyword to obtain at least two keywords
- a first matching unit configured to match the at least two keywords with the pictures in the first picture library to obtain a matching result
- the first determining unit is configured to determine, in the matching result, a picture corresponding to the keyword with high matching degree as a picture that matches the search keyword.
- the device further comprises:
- the gallery update unit is configured to configure, in the first picture library, a corresponding picture for the keyword with low matching degree in the matching result, and save a correspondence between the picture and the keyword with low matching degree.
- the matching unit 402 includes:
- a second splitting unit configured to perform a word splitting process on the search keyword to obtain at least two keywords
- a second determining unit configured to determine a core keyword of the at least two keywords
- a second matching unit configured to match the core keyword with a picture in the first picture library to obtain a matching result
- a third determining unit configured to determine, by the core keyword, the picture that matches the search keyword.
- the device further includes a first picture library establishing unit, where the first picture library establishing unit includes:
- a search word obtaining unit configured to acquire a feature search keyword according to a historical search result
- a picture configuration unit configured to configure a matching picture for the feature search keyword, and save a correspondence between the feature search keyword and the picture.
- the picture configuration unit includes:
- a second picture library establishing unit configured to establish a second picture library, where the second picture library stores a correspondence between the picture and the label;
- a first search unit configured to search, in the second picture library, according to the feature search keyword, to acquire a tag that matches the feature search keyword
- the first configuration unit is configured to configure, according to the correspondence between the picture and the tag, a picture corresponding to the tag that matches the feature search keyword as a picture that matches the feature search keyword.
- the picture configuration unit includes:
- a picture obtaining unit configured to acquire, according to the historical search result, a picture that is included or associated with the search result with the highest click rate among the search results corresponding to the feature search keyword;
- a second configuration unit configured to configure, by the search result that is included in the search result with the highest click rate, a picture that matches the feature search keyword.
- the display unit is specifically configured to:
- the display unit is specifically configured to:
- the image matching the search keyword is associated with the advertisement content corresponding to the advertisement search result.
- each unit or module of the device of the present invention can be implemented by referring to the method shown in FIG. 2 to FIG. 3, and details are not described herein.
- device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
- apparatus 500 can include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, And a communication component 516.
- Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations.
- Processing component 502 can include one or more The processor 520 executes instructions to perform all or part of the steps of the above method.
- processing component 502 can include one or more modules to facilitate interaction between component 502 and other components.
- processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
- Memory 504 is configured to store various types of data to support operation at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phone book data, messages, pictures, videos, and the like.
- the memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable.
- SRAM static random access memory
- EEPROM electrically erasable programmable read only memory
- EPROM Electrically erasable programmable read only memory
- PROM Programmable Read Only Memory
- ROM Read Only Memory
- Magnetic Memory Flash Memory
- Disk Disk or Optical Disk.
- Power component 506 provides power to various components of device 500.
- Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 500.
- the multimedia component 508 includes a screen between the device 500 and the user that provides an output interface.
- the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user.
- the touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation.
- the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
- the audio component 510 is configured to output and/or input an audio signal.
- audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode.
- the received audio signal may be further stored in memory 504 or transmitted via communication component 516.
- audio component 510 also includes a speaker for outputting an audio signal.
- the I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
- Sensor assembly 514 includes one or more sensors for providing device 500 with various aspects of status assessment.
- sensor component 514 can detect an open/closed state of device 500, a relative positioning of components, such as the display and keypad of device 500, and sensor component 514 can also detect a change in position of one component of device 500 or device 500. The presence or absence of user contact with device 500, device 500 orientation or acceleration/deceleration, and temperature variation of device 500.
- Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact.
- Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
- the sensor component 514 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
- Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices.
- the device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof.
- communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel.
- the communication component 516 also includes a near field communication (NFC) module to facilitate short range communication.
- NFC near field communication
- the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
- RFID radio frequency identification
- IrDA infrared data association
- UWB ultra-wideband
- Bluetooth Bluetooth
- apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
- ASICs application specific integrated circuits
- DSPs digital signal processors
- DSPDs digital signal processing devices
- PLDs programmable logic devices
- FPGA field programmable A gate array
- controller microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
- non-transitory computer readable storage medium comprising instructions, such as a memory 504 comprising instructions executable by processor 520 of apparatus 500 to perform the above method.
- the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
- a non-transitory computer readable storage medium when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method for matching pictures for search information
- the method includes: acquiring, in response to a search request of a user, a first search result corresponding to a search keyword included in the search request;
- the first search result does not include a picture
- searching in the pre-established first picture library according to the search keyword acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;
- the picture matching the search keyword is displayed in association with the first search result.
- FIG. 6 is a schematic structural diagram of a server in an embodiment of the present invention.
- the server 600 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 622 (eg, one or more processors) and memory 632, one or one The above storage medium 642 of storage application 642 or data 644 (eg, one or one storage device in Shanghai).
- the memory 632 and the storage medium 630 may be short-term storage or persistent storage.
- the program stored on storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations in the server.
- central processor 622 can be configured to communicate with storage medium 630, executing a series of instruction operations in storage medium 630 on server 600.
- Server 60 may also include one or more power sources 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641.
- power sources 626 one or more wired or wireless network interfaces 650
- input and output interfaces 658 one or more input and output interfaces 658
- keyboards 656 one or more keyboards 656, and/or one or more operating systems 641.
- Windows ServerTM Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
- the invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module.
- program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types.
- the invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network.
- program modules can be located in both local and remote computer storage media including storage devices.
- the various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments.
- the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment.
- the device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Databases & Information Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Library & Information Science (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Disclosed are a method and a device for matching an image to search information. The method comprises: in response to a search request of a user, acquiring a first search result corresponding to a search keyword comprised in the search request (S201); if it is determined that the first search result does not comprise an image, searching, according to the search keyword, a pre-established first image library, and acquiring an image matching the search keyword, wherein the first image library stores a correspondence between an image and a search keyword (S202); associating the image matching the search keyword with the first search result and displaying the image and the first search result (S203). The method of the present invention automatically matches a suitable image to search information, thereby improving the readability of information, allowing users to acquire information more intuitively, reducing frequency of user/network interaction and reducing wastage of network resources.
Description
本申请要求于2016年4月21日提交中国专利局、申请号为201610251898.9、发明名称为“一种为搜索信息匹配图片的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。The present application claims priority to Chinese Patent Application No. 201610251898.9, entitled "A Method and Apparatus for Searching for Information Matching Images", filed on April 21, 2016, the entire contents of which are incorporated by reference. In this application.
本发明涉及计算机技术领域,具体涉及一种为搜索信息匹配图片的方法及装置。The present invention relates to the field of computer technologies, and in particular, to a method and apparatus for matching pictures for search information.
随着互联网的快速发展,互联网已经成为重要的信息发布平台。为了帮助用户在信息海洋里快速、有效地获取用户需要的信息,搜索引擎应运而生。现有技术中,搜索引擎可以帮助人们通过搜索关键字来获取需要的信息。然而,许多搜索结果展示的是纯文字的搜索结果,并不方便用户直观地获取需要的信息,用户需要频繁地打开搜索结果对应的网页获取感兴趣的信息,增加了用户与网络的交互,造成了网络资源的浪费。特别地,对于一些希望被推荐阅读的信息而言,纯文字的展示不能够吸引用户的关注和浏览。举例说明,在搜索引擎展示的搜索结果中,存在一些广告搜索结果,这些广告搜索结果的内容由广告主提供。若广告主提供的广告内容不包含图片时,往往无法吸引用户的注意,点击量不高。但对许多广告主而言,图片的制作成本很高,往往无法为广告内容配置合适的图片。当纯文字的广告搜索结果占据较佳的显示位置,却不能够得到用户足够的关注和点击时,无形中增加了用户查找感兴趣信息的时间,增加了用户与网络的交互,并从一定程度上造成了网络资源的占用和浪费。With the rapid development of the Internet, the Internet has become an important information publishing platform. In order to help users quickly and efficiently obtain the information users need in the information ocean, search engines came into being. In the prior art, a search engine can help people obtain the information they need by searching for keywords. However, many search results display pure text search results, which is not convenient for the user to intuitively obtain the required information. The user needs to frequently open the webpage corresponding to the search result to obtain the information of interest, thereby increasing the interaction between the user and the network, resulting in The waste of network resources. In particular, for some information that is expected to be recommended for reading, the display of plain text cannot attract the attention and browsing of the user. For example, in the search results displayed by the search engine, there are some advertisement search results, and the content of the advertisement search results is provided by the advertiser. If the advertising content provided by the advertiser does not contain images, it often fails to attract the attention of the users, and the amount of clicks is not high. However, for many advertisers, the cost of producing an image is high, and it is often impossible to configure a suitable image for the content of the advertisement. When the plain text advertisement search result occupies a better display position, but can not get enough attention and clicks from the user, the time for the user to find the information of interest is invisibly increased, and the interaction between the user and the network is increased, and to a certain extent It causes the occupation and waste of network resources.
发明内容Summary of the invention
本发明实施例提供了一种为搜索信息匹配图片的方法及装置,可以为搜索
信息匹配合适的图片,提高信息的可读性,方便用户更加直观地获取信息,减少用户与网络的频繁交互,降低网络资源占用和浪费。Embodiments of the present invention provide a method and apparatus for matching pictures for search information, which may be search
The information matches the appropriate picture, improves the readability of the information, facilitates the user to obtain information more intuitively, reduces the frequent interaction between the user and the network, and reduces the occupation and waste of network resources.
为此,本发明实施例提供如下技术方案:To this end, the embodiments of the present invention provide the following technical solutions:
第一方面,本发明实施例提供了一种为搜索信息匹配图片的方法,包括:In a first aspect, an embodiment of the present invention provides a method for matching pictures for search information, including:
响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;Acquiring, in response to the user's search request, a first search result corresponding to the search keyword included in the search request;
当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系;When it is determined that the first search result does not include a picture, searching in the pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;
将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。The picture matching the search keyword is displayed in association with the first search result.
第二方面,本发明实施例提供了一种为搜索信息匹配图片的装置,包括:In a second aspect, an embodiment of the present invention provides an apparatus for matching a picture for searching information, including:
获取单元,用于响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;An obtaining unit, configured to acquire, according to a search request of the user, a first search result corresponding to the search keyword included in the search request;
匹配单元,用于当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系;a matching unit, configured to: when determining that the first search result does not include a picture, searching in a pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein, the The first picture library stores a correspondence between the picture and the search keyword;
显示单元,用于将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。And a display unit, configured to display the picture that matches the search keyword with the first search result.
第三方面,本发明实施例提供了一种用于为搜索信息匹配图片的装置,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:In a third aspect, an embodiment of the present invention provides an apparatus for matching a picture to search information, including a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be Execution of the one or more programs by one or more processors includes instructions for performing the following operations:
响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;Acquiring, in response to the user's search request, a first search result corresponding to the search keyword included in the search request;
当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系;
When it is determined that the first search result does not include a picture, searching in the pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;
将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。The picture matching the search keyword is displayed in association with the first search result.
本发明实施例提供的为搜索信息匹配图片的方法及装置,可以响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片,并可以将所述图片与所述第一搜索结果关联显示。本发明实施例可以为不包含图片的搜索结果自动配置匹配的图片,提高搜索结果的可读性,增加被推荐信息的点击率,且可以方便用户更加直观地获取信息,减少用户与网络的频繁交互,降低网络资源占用和浪费。The method and apparatus for searching for a picture to match a picture may be, in response to a search request of a user, acquiring a first search result corresponding to the search keyword included in the search request; and determining the first search result When the picture is not included, the search is performed in the pre-established first picture library according to the search keyword, the picture matching the search keyword is acquired, and the picture may be displayed in association with the first search result. The embodiment of the invention can automatically configure matching pictures for search results that do not include pictures, improve the readability of the search results, increase the click rate of the recommended information, and facilitate the user to obtain information more intuitively, and reduce frequent users and networks. Interaction, reducing network resource consumption and waste.
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a few embodiments described in the present invention, and other drawings can be obtained from those skilled in the art without any inventive effort.
图1示意性地示出了本发明实施例可以应用的场景;FIG. 1 is a schematic diagram showing a scenario in which an embodiment of the present invention can be applied;
图2为本发明一实施例提供的为搜索信息匹配图片的方法流程图;2 is a flowchart of a method for matching pictures to search information according to an embodiment of the present invention;
图3为本发明另一实施例提供的为搜索信息匹配图片的方法流程图;FIG. 3 is a flowchart of a method for matching pictures to search information according to another embodiment of the present invention; FIG.
图4为本发明一实施例提供的为搜索信息匹配图片的装置示意图;FIG. 4 is a schematic diagram of an apparatus for matching pictures for search information according to an embodiment of the present invention; FIG.
图5根据一示例性实施例示出的一种用于为搜索信息匹配图片的装置的框图;FIG. 5 is a block diagram of an apparatus for matching pictures for search information, according to an exemplary embodiment;
图6是本发明实施例中服务器的结构示意图。FIG. 6 is a schematic structural diagram of a server in an embodiment of the present invention.
本发明实施例提供了一种为搜索信息匹配图片的方法及装置,可以为搜索信息匹配合适的图片,提高信息的可读性,方便用户更加直观地获取信息,减
少用户与网络的频繁交互,降低网络资源占用和浪费。The embodiment of the invention provides a method and a device for matching pictures with search information, which can match the search information with suitable images, improve the readability of the information, and facilitate the user to obtain information more intuitively.
Frequent interactions between users and the network reduce network resource occupation and waste.
为了使本技术领域的人员更好地理解本发明中的技术方案,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都应当属于本发明保护的范围。In order to make those skilled in the art better understand the technical solutions in the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. The embodiments are only a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts shall fall within the scope of the present invention.
参见图1,为本发明实施例的示例性应用场景。本发明实施例提供的方法可以应用于如图1所示的场景,其中,本发明实施例提供的方法可以应用于如图1所示的终端设备2中,所述终端设备2包括显示界面1。用户可以在显示界面的搜索框10中输入搜索关键词,终端设备2响应于用户的搜索请求,显示搜索结果,例如搜索结果11。当所述搜索结果11不包含图片时,本发明实施例提供的方法和装置可以为搜索结果11自动配置图片12,并将所述搜索结果11与图片12关联显示。图1所示的终端设备可以是现有的、正在研发的或将来研发的任何电子设备,包括但不限于:现有的、正在研发的或将来研发的、台式计算机、膝上型计算机、移动终端(包括智能手机、非智能手机、各种平板电脑)等。当然,本发明实施例提供的方法和装置还可以应用于网页服务器中,在此不进行限制。需要注意的是,上述应用场景仅是为了便于理解本发明而示出,本发明的实施方式在此方面不受任何限制。相反,本发明的实施方式可以应用于适用的任何场景。FIG. 1 is an exemplary application scenario of an embodiment of the present invention. The method provided by the embodiment of the present invention can be applied to the scenario shown in FIG. 1 , wherein the method provided by the embodiment of the present invention can be applied to the terminal device 2 shown in FIG. 1 , where the terminal device 2 includes the display interface 1 . . The user can input a search keyword in the search box 10 of the display interface, and the terminal device 2 displays a search result, such as the search result 11, in response to the user's search request. When the search result 11 does not include a picture, the method and apparatus provided by the embodiments of the present invention may automatically configure the picture 12 for the search result 11 and display the search result 11 in association with the picture 12. The terminal device shown in FIG. 1 may be any existing electronic device that is being developed or developed in the future, including but not limited to: existing, under development or future development, desktop computer, laptop computer, mobile Terminals (including smartphones, non-smart phones, various tablets), etc. Of course, the method and apparatus provided by the embodiments of the present invention may also be applied to a web server, and are not limited herein. It should be noted that the above application scenarios are only for the purpose of facilitating understanding of the present invention, and embodiments of the present invention are not limited in this respect. Rather, embodiments of the invention may be applied to any scenario that is applicable.
下面将结合附图2至附图3对本发明示例性实施例示出的为搜索信息匹配图片的方法进行介绍。A method for searching for information matching pictures shown in an exemplary embodiment of the present invention will be described below with reference to FIGS. 2 to 3.
参见图2,为本发明一实施例提供的为搜索信息匹配图片的方法流程图。如图1所示,可以包括:2 is a flowchart of a method for matching pictures to search information according to an embodiment of the present invention. As shown in Figure 1, it can include:
S201,响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果。S201. Acquire, in response to a search request of the user, a first search result corresponding to the search keyword included in the search request.
具体实现时,用户的搜索请求包含搜索关键词,本发明实施例提供的装置可以响应于用户的搜索请求,获取与所述搜索关键词匹配的一个或多个搜索结果。所述一个或多个搜索结果至少包括第一搜索结果。需要说明的是,所述第
一搜索结果可以是根据预设的筛选策略从所述一个或多个搜索结果中筛选出来、优先显示的搜索结果。具体的筛选策略可以根据需要灵活设置,在此不进行限定。特别地,所述第一搜索结果为广告搜索结果,所述广告搜索结果包含广告的内容。In a specific implementation, the user's search request includes a search keyword, and the apparatus provided by the embodiment of the present invention may acquire one or more search results that match the search keyword in response to the user's search request. The one or more search results include at least a first search result. It should be noted that the above
A search result may be a search result that is preferentially displayed from the one or more search results according to a preset screening policy. The specific screening policy can be flexibly set as needed, and is not limited herein. In particular, the first search result is an advertisement search result, and the advertisement search result includes content of the advertisement.
S202,当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系。S202, when it is determined that the first search result does not include a picture, searching in a pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein, the first picture The stock stores a correspondence between pictures and search keywords.
在一些实施方式中,本发明实施例提供的方法还可以包括建立第一图片库的步骤。其中,所述建立第一图片库包括:根据历史搜索结果,获取特征搜索关键词;为所述特征搜索关键词配置匹配的图片,保存所述特征搜索关键词与所述图片的对应关系。In some embodiments, the method provided by the embodiment of the present invention may further include the step of establishing a first picture library. The establishing the first picture library includes: acquiring a feature search keyword according to the historical search result; configuring a matching picture for the feature search keyword, and saving a correspondence between the feature search keyword and the picture.
其中,所述特征搜索关键词可以为高频搜索关键词,也可以为具有特定特征或者与特定用途关联的关键词。举例说明,所述特征搜索关键词可以是搜索频率较高的关键词,即高频搜索关键词。所述特征搜索关键词还可以与特定用途关联,例如,与广告相关的搜索关键词。总的来说,所述特征关键词可以是具有一定代表意义的、具有一定特点的关键词。The feature search keyword may be a high frequency search keyword, or may be a keyword having a specific feature or associated with a specific use. For example, the feature search keyword may be a keyword with a high search frequency, that is, a high frequency search keyword. The feature search keywords may also be associated with a particular use, such as search keywords related to the advertisement. In general, the feature keyword may be a keyword having certain characteristics and having certain characteristics.
在一些实施方式中,获取特征搜索关键词时,可以预先统计历史搜索结果,获取用户搜索频率大于第一预设阈值的搜索关键词作为特征搜索关键词。当然,尽管一些关键词的搜索频率未大于第一预设阈值,还可以综合考虑时间因素,在较短时间内、搜索较多的热词也可以作为特征搜索关键词。在确定特征搜索关键词后,即可以为所述特征搜索关键词配置匹配的图片,并保存所述特征搜索关键词与所述图片的对应关系。需要说明的是,在所述第一图片库中为特征搜索关键词配置的图片是通用性较强、与搜索关键词相关性也相对较强的图片。这样,配置了图片的搜索结果才更加符合用户对搜索结果的预期,也能提高搜索结果的吸引力,带来更多点击。特别地,当所述搜索结果是被推荐的信息,例如广告搜索结果时,上述方式可以提高广告的阅读量,进而提高广告主的广告收益和广告平台的收益。In some embodiments, when the feature search keyword is acquired, the historical search result may be pre-stated, and the search keyword whose user search frequency is greater than the first preset threshold is acquired as the feature search keyword. Of course, although the search frequency of some keywords is not greater than the first preset threshold, the time factor may be comprehensively considered, and in the shorter time, more hot words may be searched as feature search keywords. After the feature search keyword is determined, the matched search image may be configured for the feature search keyword, and the corresponding relationship between the feature search keyword and the image may be saved. It should be noted that the picture configured for the feature search keyword in the first picture library is a picture with strong versatility and relatively strong correlation with the search keyword. In this way, the search results configured with images are more in line with the user's expectations of search results, and can also increase the attractiveness of search results and bring more clicks. In particular, when the search result is recommended information, such as an advertisement search result, the above manner can improve the reading amount of the advertisement, thereby improving the advertisement income of the advertiser and the revenue of the advertisement platform.
在一些实施方式中,为所述特征搜索关键词配置匹配的图片可以包括:建立第二图片库,所述第二图片库存储有图片与标签的对应关系;根据所述特征
搜索关键词在所述第二图片库中搜索,获取与所述特征搜索关键词匹配的标签;根据所述图片与标签的对应关系,将与所述特征搜索关键词匹配的标签对应的图片配置为所述特征搜索关键词匹配的图片。举例说明,可以预先建立第二图片库作为基础图库,在所述第二图片库中的图片设置与之匹配的标签。所述标签用于描述所述图片的内容和/或分类。例如,为一幅蛋糕的图片配置第一标签“蛋糕”,进一步地,还可以为其设置分类标签“美食”。在为所述特征搜索关键词配置图片时,可以在第二图片库中扫描,获取与特征搜索关键词匹配的标签对应的图片。这一实施方式中,相对于人工为特征搜索关键词配置图片的方式,提高了数据处理的效率。In some embodiments, configuring the matched picture for the feature search keyword may include: establishing a second picture library, where the second picture library stores a correspondence between the picture and the tag; according to the feature
Searching for a keyword in the second image library, acquiring a tag matching the feature search keyword; and configuring a picture corresponding to the tag matching the feature search keyword according to the correspondence between the image and the tag Search for the matching picture of the keyword for the feature. For example, the second picture library may be pre-established as a base library, and the pictures in the second picture library are set with matching tags. The tag is used to describe the content and/or classification of the picture. For example, the first label "cake" is configured for a picture of a cake, and further, a classification label "gourmet" can be set for it. When the picture is configured for the feature search keyword, the second picture library may be scanned to obtain a picture corresponding to the tag that matches the feature search keyword. In this embodiment, the efficiency of data processing is improved relative to the manner in which the image is manually configured for the feature search keyword.
在一些实施方式中,为所述特征搜索关键词配置匹配的图片可以包括:根据历史搜索结果,获取与所述特征搜索关键词对应的搜索结果中点击率最高的搜索结果包含或关联的图片;将所述点击率最高的搜索结果包含或关联的图片配置为与所述特征搜索关键词匹配的图片。举例说明,对于特征搜索关键词“戒指”而言,可以分析历史搜索结果,获取用户对于“戒指”的各搜索结果的点击率,筛选出点击率最高的搜索结果所包含的图片或者关联的图片,将所述图片作为与所述特征搜索关键词匹配的图片。In some embodiments, configuring the matched picture for the feature search keyword may include: acquiring, according to the historical search result, a picture included or associated with the search result with the highest click rate among the search results corresponding to the feature search keyword; The picture including or associated with the search result having the highest click rate is configured as a picture matching the feature search keyword. For example, for the feature search keyword "ring", the historical search result can be analyzed, the click rate of the user's search results for the "ring" can be obtained, and the image or the associated image included in the search result with the highest click rate can be selected. And using the picture as a picture that matches the feature search keyword.
具体实现时,还可以对所述图片进行尺寸调整,将其调整为合适的尺寸,保存到第一图片库中。这一实施方式中,由于为特征搜索关键词配置的图片,是用户历史点击率较高的图片,因此大大增加了图片以及与其关联显示的搜索结果被点击的概率,提高了被推荐信息推送成功的概率。同时,由于为所述特征搜索关键词配置的图片是用户历史点击率较高、与搜索关键词相关性也相对较强的图片,因此,配置了所述图片的搜索结果更加符合用户对搜索结果的预期,所述搜索结果是用户想要搜索的结果的可能性大大增高,节省了用户的搜索时间,减少了用户与网络的频繁交互,降低网络资源占用和浪费。In a specific implementation, the image may be resized, adjusted to an appropriate size, and saved to the first image library. In this embodiment, since the picture configured for the feature search keyword is a picture with a high historical click rate of the user, the probability that the picture and the search result displayed in association with it are clicked is greatly increased, and the recommended information is successfully pushed. The probability. At the same time, since the picture configured for the feature search keyword is a picture with a high user history click rate and a relatively strong correlation with the search keyword, the search result configured with the picture is more in line with the user's search result. It is expected that the search result is greatly increased by the user's desire to search, which saves the user's search time, reduces frequent interaction between the user and the network, and reduces network resource occupation and waste.
需要说明的是,在上述各实施方式中,为特征搜索关键词配置匹配的图片时,可以预先对特征搜索关键词进行拆词处理,获取至少两个关键词,并可以确定所述至少两个关键词中的核心关键词。举例说明,对特征搜索关键词“结婚戒指”进行拆词处理,可以获取到两个关键词“结婚”和“戒指”,确定两个关键词中的核心关键词为“戒指”,并为核心关键词“戒指”配置匹配的图
片。又如,对特征搜索关键词“暑期兼职”进行拆词处理,可以获取到两个关键词“暑期”和“兼职”,确定两个关键词中的核心关键词为“兼职”,并为核心关键词“兼职”配置匹配的图片。It should be noted that, in the foregoing embodiments, when the matching picture is configured for the feature search keyword, the feature search keyword may be subjected to word splitting processing to acquire at least two keywords, and the at least two may be determined. Key keywords in keywords. For example, if the feature search keyword "wedding ring" is split, the two keywords "marriage" and "ring" can be obtained, and the core keyword in the two keywords is determined as "ring" and is the core. Keyword "ring" configuration matching diagram
sheet. For example, if the feature search keyword "summer part-time job" is used for word-breaking, two keywords "summer" and "part-time job" can be obtained, and the core keywords in the two keywords are determined as "part-time" and are the core. The keyword "part-time" configuration matches the picture.
其中,确定核心关键词的方法可以是多样的,例如可以根据关键词与其他词汇的构词能力,将构词能力强的关键词作为核心关键词。又如,还可以根据拆分后的各关键词对应的权重来确定核心关键词,将权重较高的关键词,确定为核心关键词。关键词的权重设置可以根据需要设定,举例说明,特征搜索关键词“结婚戒指”,对于拆分后的关键词“结婚”和“戒指”,所述关键词“戒指”属于实体词,则权重较高;所述关键词“结婚”属于修饰词或限定词,则权重较低等。当然,也可以采用其他方法,在此不进行限定。The method for determining the core keyword may be various. For example, the keyword having strong word formation ability may be used as the core keyword according to the word formation ability of the keyword and other words. For another example, the core keyword may be determined according to the weight corresponding to each keyword after the split, and the keyword with higher weight may be determined as the core keyword. The weight setting of the keyword can be set according to needs, for example, the feature search keyword "wedding ring", for the split keywords "marriage" and "ring", the keyword "ring" belongs to the entity word, then The weight is higher; the keyword "marriage" belongs to a modifier or a qualifier, and the weight is lower. Of course, other methods may also be employed, and are not limited herein.
需要说明的是,若对特征搜索关键词进行拆词处理,可以提高图片的适用范围,降低配置图片的成本。举例说明,对于特征搜索关键词“结婚戒指”和“求婚戒指”而言,通过拆词处理均能得到关键词“戒指”,在图库中只需要为关键词“戒指”配置一张图片即可,无需为“结婚戒指”和“求婚戒指”分别配置图片,降低了配置图片的成本。此外,“戒指”的图片可以和搜索关键词“结婚戒指”、“求婚戒指”均能实现匹配,达到了一图多用的效果,提高了图片的适用范围。当然,不对特征搜索关键词进行拆词处理也是可以的,本发明对此不进行限定。It should be noted that if the feature search keyword is subjected to word splitting processing, the application range of the image can be improved, and the cost of configuring the image can be reduced. For example, for the feature search keywords "wedding ring" and "marriage ring", the keyword "ring" can be obtained by word-removal processing. In the gallery, only one picture can be configured for the keyword "ring". There is no need to configure pictures for the "wedding ring" and "marriage ring" respectively, which reduces the cost of configuring the picture. In addition, the picture of "ring" can be matched with the search keywords "wedding ring" and "marriage ring" to achieve the multi-use effect of the picture and improve the application range of the picture. Of course, it is also possible to perform the word-removal processing on the feature search keyword, which is not limited by the present invention.
在建立第一图片库后,即可以响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果,当确定所述第一搜索结果不包含图片时,即可以自动为第一搜索结果配置与之匹配的图片。其中,可以根据第一搜索结果中是否包含图片链接来确定其是否包含图片,也可以根据第一搜索结果的文档结构信息确定其是否包含图片。After the first picture library is created, the first search result corresponding to the search keyword included in the search request may be acquired in response to the search request of the user, and when it is determined that the first search result does not include the picture, Automatically configure the matching image for the first search result. The first search result may be determined according to whether the image is included in the first search result, or may be determined according to the document structure information of the first search result.
在一些实施方式中,所述根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片包括:对所述搜索关键词进行拆词处理,获取至少两个关键词;将所述至少两个关键词与所述第一图片库中的图片进行匹配,获取匹配结果;将所述匹配结果中匹配度高的关键词对应的图片确定为与所述搜索关键词匹配的图片。举例说明,假设第一搜索结果对应的搜索关键词为“求婚戒指”,可拆为“第一关键词=求婚”、“第二关键词=戒指”;
假设第一搜索结果对应的搜索关键词为“北京蛋糕哪家好”,可拆为“第一关键词=北京、第二关键词=蛋糕、第三关键词=哪家、第四关键词=好”。举例说明,对于搜索关键词为“北京蛋糕哪家好”,将其拆分的4个关键词“北京”“蛋糕”“哪家”“好”均在第一图片库中进行搜索,获取与之匹配的图片,并分别计算各关键词与照片的匹配度。其中,计算匹配度的方法可以是根据需要设置,在此不进行限定。假设关键词“北京”与一张标签为“天安门”的图片实现了匹配,其匹配度为50%;假设关键词“蛋糕”与一张标签为“蛋糕”的图片实现了匹配,其匹配度为100%;关键词“哪家”“好”没有图片与之匹配,匹配度为0%。那么,将匹配度最高的图片“蛋糕”作为与搜索关键词“北京蛋糕哪家好”匹配的图片。In some embodiments, the searching in the pre-established first picture library according to the search keyword, and acquiring the picture that matches the search keyword comprises: performing a word-removing process on the search keyword, acquiring at least Matching the at least two keywords with the pictures in the first picture library to obtain a matching result; determining, in the matching result, a picture corresponding to the keyword with high matching degree as Search for keywords that match the image. For example, if the search keyword corresponding to the first search result is “marriage ring”, it can be split into “first keyword=marriage proposal” and “second keyword=ring”;
Assume that the search keyword corresponding to the first search result is "Beijing cake which is good", which can be broken into "first keyword = Beijing, second keyword = cake, third keyword = which, fourth keyword = it is good". For example, for the search keyword "Which cake is good", the four keywords "Beijing", "cake", "Which" and "good" are all searched in the first picture library. Match the images and calculate the matching degree between each keyword and the photo. The method for calculating the matching degree may be set as needed, and is not limited herein. Assume that the keyword "Beijing" is matched with a picture tagged "Tiananmen" with a matching degree of 50%; assuming that the keyword "cake" matches a picture with the label "cake", the matching degree It is 100%; the keyword "Which" is "good" and there is no picture matching, the matching degree is 0%. Then, the picture "cake" with the highest matching degree is taken as a picture matching the search keyword "Which cake is good".
进一步地,本发明实施例提供的方法还可以包括:在所述第一图片库中为所述匹配结果中匹配度低的关键词配置对应的图片,保存所述图片与所述匹配度低的关键词的对应关系。举例说明,对于匹配度较低的关键词“北京”,若用户搜索较多时,也可以为其设置一张与之匹配的图片。又如,当搜索关键词为“无人机”,第一图片库中不存在与之匹配的图片,即匹配度为零时,若用户搜索较多时,可以为之配置一张标签为“无人机”的图片,由此实现第一图片库的更新与维护,从而提高第一图片库的图片的适用范围。Further, the method provided by the embodiment of the present invention may further include: configuring a corresponding picture in the first picture library for a keyword with a low matching degree in the matching result, and saving the picture with the low matching degree Correspondence of keywords. For example, for a keyword with low matching degree, "Beijing", if the user searches for more, it can also set a matching picture for it. For example, when the search keyword is “unmanned aerial vehicle”, there is no matching picture in the first picture library, that is, when the matching degree is zero, if the user searches for more, a label can be configured as “none”. The picture of the man-machine, thereby realizing the updating and maintenance of the first picture library, thereby improving the application range of the picture of the first picture library.
在一些实施方式中,所述根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片包括:对所述搜索关键词进行拆词处理,获取至少两个关键词;确定所述至少两个关键词中的核心关键词;将所述核心关键词与所述第一图片库中的图片进行匹配,获取匹配结果;将所述核心关键词匹配的图片确定为与所述搜索关键词匹配的图片。举例说明,对搜索关键词“结婚戒指”进行拆词处理,可以获取到两个关键词“结婚”和“戒指”,通过一定的算法可以确定两个关键词中的核心关键词为“戒指”,并将所述核心关键词“戒指”与所述第一图片库中的图片进行匹配,获取匹配结果。又如,搜索关键词为“北京蛋糕哪家好”,可拆为“第一关键词=北京、第二关键词=蛋糕、第三关键词=哪家、第四关键词=好”,将关键词“蛋糕”确定为核心关键词。其中,确定核心关键词的方式与前述确定特征搜索关键词中的核心关键词的方式相同,在此不再赘述。例如,可以根据关键词与其他词汇的构词能力,
将构词能力强的关键词作为核心关键词。又如,可以根据拆分后的各关键词对应的权重来确定核心关键词,将权重较高的关键词,确定为核心关键词。In some embodiments, the searching in the pre-established first picture library according to the search keyword, and acquiring the picture that matches the search keyword comprises: performing a word-removing process on the search keyword, acquiring at least Determining a core keyword of the at least two keywords; matching the core keyword with a picture in the first picture library to obtain a matching result; matching the core keyword The picture is determined to be a picture that matches the search keyword. For example, if the search keyword "wedding ring" is dismantled, two keywords "marriage" and "ring" can be obtained. The algorithm can determine that the core keyword of the two keywords is "ring". And matching the core keyword "ring" with the picture in the first picture library to obtain a matching result. Another example is that the search keyword is “Which cake is good in Beijing”, which can be broken down as “first keyword=Beijing, second keyword=cake, third keyword=which, fourth keyword=good”, The keyword "cake" is identified as the core keyword. The manner of determining the core keyword is the same as the manner of determining the core keyword in the feature search keyword, and details are not described herein. For example, based on the ability of words and other words to form words,
Key words with strong word formation ability are used as core keywords. For another example, the core keyword may be determined according to the weight corresponding to each keyword after the split, and the keyword with higher weight may be determined as the core keyword.
在一些实施方式中,在确定与搜索关键词匹配的图片时,也可以不对搜索关键词进行拆词处理。举例说明,若搜索关键词为“求婚戒指”,第一图片库中存在一张标签为“求婚戒指”的图片,此时二者可以实行匹配,不存在图片的搜索结果可以自动配置为有图片的搜索结果。特别地,所述搜索结果为广告搜索结果时,无图广告可以获得智能加图升级为有图广告。In some embodiments, when determining a picture that matches the search keyword, the search keyword may not be subjected to word splitting processing. For example, if the search keyword is "marriage ring", there is a picture in the first picture library labeled "marriage ring", at which time the two can be matched, and the search result without the picture can be automatically configured to have a picture. Search results. In particular, when the search result is an advertisement search result, the non-map advertisement can be upgraded to a map advertisement.
在一些实施方式中,在根据所述搜索关键词在预先建立的第一图片库中搜索、获取与所述搜索关键词匹配的图片时,具体的匹配方法可以是精准匹配也可以是模糊匹配。举例说明,当匹配方法是精准匹配时,搜索关键词为“求婚戒指”则其需要与标签为“求婚戒指”的图片实现精准匹配。当匹配方法是模糊匹配时,搜索关键词为“求婚戒指”,其也可以与标签为“结婚戒指”的图片实现模糊匹配。In some embodiments, when searching for a picture matching the search keyword in the pre-established first picture library according to the search keyword, the specific matching method may be an exact match or a fuzzy match. For example, when the matching method is an exact match, the search keyword is “marriage ring”, and it needs to be accurately matched with the picture with the label “marriage ring”. When the matching method is fuzzy matching, the search keyword is “marriage ring”, which can also achieve fuzzy matching with the picture labeled “wedding ring”.
S203,将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。S203. Display the picture that matches the search keyword with the first search result.
具体实现时,可以按照预设的布局将所述图片与第一搜索结果显示在一起。例如,如图1所示的应用场景中,将第一搜索结果11与图片12关联显示。举例说明,将图片设置在左侧,将搜索结果包含的文字信息设置在右侧。对于第一搜索结果是广告搜索结果的场景,可以将所述图片裁剪成广告需要的大小,配置在广告包含的文本内容左侧。具体的布局可以根据需要设置,在此不进行限定。当然,也可以在建立第一图片库时,即对其中包含的图片的大小进行调整,使之匹配搜索结果。这样,可以减少用户等待搜索结果的时间,提高用户体验。In a specific implementation, the picture may be displayed together with the first search result according to a preset layout. For example, in the application scenario shown in FIG. 1, the first search result 11 is displayed in association with the picture 12. For example, set the picture to the left and set the text information contained in the search result to the right. For the scenario where the first search result is an advertisement search result, the image may be cropped to the size required by the advertisement, and configured to the left of the text content included in the advertisement. The specific layout can be set as needed, and is not limited herein. Of course, when the first picture library is created, the size of the picture contained therein can be adjusted to match the search result. In this way, the time for the user to wait for the search result can be reduced, and the user experience can be improved.
在一些实施方式中,还可以根据所述第一搜索结果包含的文本信息的大小,调整所述图片的大小和/或调整所述图片与所述文本信息的布局。举例说明,不同的搜索结果包含的文本信息的长度可能不同,这时需要根据文本信息的大小,来调整匹配的图片的大小,和/或,调整图片与文本信息的布局,以达到较佳的显示效果。
In some embodiments, the size of the picture and/or the layout of the picture and the text information may be adjusted according to the size of the text information included in the first search result. For example, the length of the text information included in different search results may be different. In this case, the size of the matched image needs to be adjusted according to the size of the text information, and/or the layout of the image and the text information is adjusted to achieve better. display effect.
在一些实施方式中,所述第一搜索结果为广告搜索结果,所述将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示包括:将所述与所述搜索关键词匹配的图片与广告搜索结果对应的广告内容关联显示。In some embodiments, the first search result is an advertisement search result, and the displaying the picture matching the search keyword with the first search result includes: displaying the search key with the search key The image matching the word is displayed in association with the advertising content corresponding to the ad search result.
在本发明实施例中,可以为不包含图片的搜索结果自动配置匹配的图片,提高搜索结果的可读性,增加被推荐信息的点击率,且可以方便用户更加直观地获取信息,减少用户与网络的频繁交互,降低网络资源占用和浪费。In the embodiment of the present invention, the matched image can be automatically configured for the search result that does not include the image, the readability of the search result is improved, the click rate of the recommended information is increased, and the user can be more intuitively obtained, thereby reducing the user and the user. Frequent interactions of the network reduce network resource occupation and waste.
为了便于本领域技术人员更清楚地理解本申请在具体场景下的实施方式,下面以一个具体示例对本申请实施方式进行介绍。需要说明的是,该具体示例仅为使得本领域技术人员更清楚地了解本发明,但本发明的实施方式不限于该具体示例。In order to facilitate a clear understanding of the embodiments of the present application in a specific scenario, the embodiments of the present application are described below with a specific example. It should be noted that the specific examples are only for those skilled in the art to more clearly understand the present invention, but the embodiments of the present invention are not limited to the specific examples.
参见图3,为本发明另一实施例提供的为搜索信息匹配图片的方法流程图。FIG. 3 is a flowchart of a method for matching pictures to search information according to another embodiment of the present invention.
S301,根据历史搜索结果,获取特征搜索关键词。S301. Acquire a feature search keyword according to a historical search result.
S302,为所述特征搜索关键词配置匹配的图片,保存所述特征搜索关键词与所述图片的对应关系,以建立第一图片库。S302. Configure a matching picture for the feature search keyword, and save a correspondence between the feature search keyword and the picture to establish a first picture library.
S303,响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果。S303. Acquire, in response to a search request of the user, a first search result corresponding to the search keyword included in the search request.
S304,当确定所述第一搜索结果不包含图片时,对所述搜索关键词进行拆词处理,获取至少两个关键词。S304. When it is determined that the first search result does not include a picture, perform a word splitting process on the search keyword to obtain at least two keywords.
S305,将所述至少两个关键词与所述第一图片库中的图片进行匹配,获取匹配结果。S305. Match the at least two keywords with the pictures in the first picture library to obtain a matching result.
S306,将所述匹配结果中匹配度高的关键词对应的图片确定为与所述搜索关键词匹配的图片。S306. Determine, according to the matching result, a picture corresponding to the keyword with high matching degree as a picture that matches the search keyword.
S307,将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。S307. Display the picture that matches the search keyword with the first search result.
S308,在所述第一图片库中为所述匹配结果中匹配度低的关键词配置对应
的图片,保存所述图片与所述匹配度低的关键词的对应关系。S308, configured, in the first picture library, a keyword with a low matching degree in the matching result.
a picture, the correspondence between the picture and the keyword with low matching degree is saved.
需要说明的是,作为S305和S306的替换步骤,可以在获取至少两个关键词后,确定所述至少两个关键词中的核心关键词;将所述核心关键词与所述第一图片库中的图片进行匹配,获取匹配结果;将所述核心关键词匹配的图片确定为与所述搜索关键词匹配的图片。It should be noted that, as an alternative step of S305 and S306, after acquiring at least two keywords, determining a core keyword of the at least two keywords; and the core keyword and the first image library The pictures in the matching are matched to obtain a matching result; the picture matched by the core keyword is determined as a picture matching the search keyword.
以所述第一搜索结果为广告搜索结果为例进行说明上述实现方法。举例说明,第一图片库中存在一张标签为戒指的图片,即tag1=戒指。用户搜索的关键词为“bloves戒指”,经过计算,展示的广告搜索结果为一个无图广告,即与“bloves戒指”对应的广告搜索结果为纯文字广告。本发明实施例提供的方法可以将用户搜索的关键词“bloves戒指”进行拆词,可拆词为“word1=bloves”,“word2=戒指”。此时,将拆分的关键词“bloves”“戒指”分别与第一图片库中的图片进行匹配,得到匹配结果为“tag1=word2”,即在第一图片库中存在标签为“戒指”的图片与关键词“戒指”匹配,这时将图片与广告关联显示,可为客户的无图广告自动匹配图库中的图片。这样,可以为无图广告自动匹配了一张包含戒指的图片,并将匹配的图片与广告搜索结果关联显示,从而增加了广告搜索结果的可读性,增加了点击率,减少了用户查找搜索结果的时间,减少了用户与网络的交互,降低了网络资源占用与浪费。The above implementation method is described by taking the first search result as an advertisement search result as an example. For example, there is a picture in the first picture library labeled as a ring, ie tag1=ring. The keyword searched by the user is “bloves ring”. After calculation, the advertisement search result is a non-image advertisement, that is, the advertisement search result corresponding to “bloves ring” is a plain text advertisement. The method provided by the embodiment of the present invention can perform the word "bloves ring" searched by the user, and the detachable words are "word1=bloves" and "word2=ring". At this time, the split keyword "bloves" and "ring" are respectively matched with the pictures in the first picture library, and the matching result is "tag1=word2", that is, the label is "ring" in the first picture library. The image matches the keyword "ring", and the image is associated with the ad, which automatically matches the image in the gallery for the customer's unmapped ad. In this way, an image containing a ring can be automatically matched for the unmapped ad, and the matched image is displayed in association with the ad search result, thereby increasing the readability of the ad search result, increasing the click rate, and reducing the user's search search. The resulting time reduces the interaction between the user and the network and reduces the occupation and waste of network resources.
参见图4,为本发明一实施例提供的为搜索信息匹配图片的装置示意图。FIG. 4 is a schematic diagram of an apparatus for searching for a picture to match a picture according to an embodiment of the present invention.
一种为搜索信息匹配图片的装置400,包括:A device 400 for searching for information to match a picture, comprising:
获取单元401,用于响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果。The obtaining unit 401 is configured to acquire, according to a search request of the user, a first search result corresponding to the search keyword included in the search request.
匹配单元402,用于当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系。The matching unit 402 is configured to: when determining that the first search result does not include a picture, searching in a pre-established first picture library according to the search keyword, and acquiring a picture that matches the search keyword; The first picture library stores a correspondence between pictures and search keywords.
显示单元403,用于将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。
The display unit 403 is configured to display the picture matching the search keyword in association with the first search result.
其中,所述匹配单元402包括:The matching unit 402 includes:
第一拆词单元,用于对所述搜索关键词进行拆词处理,获取至少两个关键词;a first splitting unit, configured to perform a word splitting process on the search keyword to obtain at least two keywords;
第一匹配单元,用于将所述至少两个关键词与所述第一图片库中的图片进行匹配,获取匹配结果;a first matching unit, configured to match the at least two keywords with the pictures in the first picture library to obtain a matching result;
第一确定单元,用于将所述匹配结果中匹配度高的关键词对应的图片确定为与所述搜索关键词匹配的图片。The first determining unit is configured to determine, in the matching result, a picture corresponding to the keyword with high matching degree as a picture that matches the search keyword.
其中,所述装置还包括:Wherein, the device further comprises:
图库更新单元,用于在所述第一图片库中为所述匹配结果中匹配度低的关键词配置对应的图片,保存所述图片与所述匹配度低的关键词的对应关系。The gallery update unit is configured to configure, in the first picture library, a corresponding picture for the keyword with low matching degree in the matching result, and save a correspondence between the picture and the keyword with low matching degree.
其中,所述匹配单元402包括:The matching unit 402 includes:
第二拆词单元,用于对所述搜索关键词进行拆词处理,获取至少两个关键词;a second splitting unit, configured to perform a word splitting process on the search keyword to obtain at least two keywords;
第二确定单元,用于确定所述至少两个关键词中的核心关键词;a second determining unit, configured to determine a core keyword of the at least two keywords;
第二匹配单元,用于将所述核心关键词与所述第一图片库中的图片进行匹配,获取匹配结果;a second matching unit, configured to match the core keyword with a picture in the first picture library to obtain a matching result;
第三确定单元,用于将所述核心关键词匹配的图片确定为与所述搜索关键词匹配的图片。And a third determining unit, configured to determine, by the core keyword, the picture that matches the search keyword.
其中,所述装置还包括第一图片库建立单元,所述第一图片库建立单元包括:The device further includes a first picture library establishing unit, where the first picture library establishing unit includes:
搜索词获取单元,用于根据历史搜索结果,获取特征搜索关键词;a search word obtaining unit, configured to acquire a feature search keyword according to a historical search result;
图片配置单元,用于为所述特征搜索关键词配置匹配的图片,保存所述特征搜索关键词与所述图片的对应关系。And a picture configuration unit, configured to configure a matching picture for the feature search keyword, and save a correspondence between the feature search keyword and the picture.
其中,所述图片配置单元包括:The picture configuration unit includes:
第二图片库建立单元,用于建立第二图片库,所述第二图片库存储有图片与标签的对应关系;
a second picture library establishing unit, configured to establish a second picture library, where the second picture library stores a correspondence between the picture and the label;
第一搜索单元,用于根据所述特征搜索关键词在所述第二图片库中搜索,获取与所述特征搜索关键词匹配的标签;a first search unit, configured to search, in the second picture library, according to the feature search keyword, to acquire a tag that matches the feature search keyword;
第一配置单元,用于根据所述图片与标签的对应关系,将与所述特征搜索关键词匹配的标签对应的图片配置为所述特征搜索关键词匹配的图片。The first configuration unit is configured to configure, according to the correspondence between the picture and the tag, a picture corresponding to the tag that matches the feature search keyword as a picture that matches the feature search keyword.
其中,所述图片配置单元包括:The picture configuration unit includes:
图片获得单元,用于根据历史搜索结果,获取与所述特征搜索关键词对应的搜索结果中点击率最高的搜索结果包含或关联的图片;a picture obtaining unit, configured to acquire, according to the historical search result, a picture that is included or associated with the search result with the highest click rate among the search results corresponding to the feature search keyword;
第二配置单元,用于将所述点击率最高的搜索结果包含或关联的图片配置为与所述特征搜索关键词匹配的图片。And a second configuration unit, configured to configure, by the search result that is included in the search result with the highest click rate, a picture that matches the feature search keyword.
其中,所述显示单元具体用于:The display unit is specifically configured to:
根据所述第一搜索结果包含的文本信息的大小,调整所述图片的大小和/或调整所述图片与所述文本信息的布局。Adjusting the size of the picture and/or adjusting the layout of the picture and the text information according to the size of the text information included in the first search result.
其中,所述显示单元具体用于:The display unit is specifically configured to:
当所述第一搜索结果为广告搜索结果时,将所述与所述搜索关键词匹配的图片与广告搜索结果对应的广告内容关联显示。When the first search result is an advertisement search result, the image matching the search keyword is associated with the advertisement content corresponding to the advertisement search result.
其中,本发明装置各单元或模块的设置可以参照图2至图3所示的方法而实现,在此不赘述。The arrangement of each unit or module of the device of the present invention can be implemented by referring to the method shown in FIG. 2 to FIG. 3, and details are not described herein.
参见图5,为根据一示例性实施例示出的一种用于为搜索信息匹配图片的装置的框图。例如,装置500可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。Referring to FIG. 5, a block diagram of an apparatus for matching pictures for search information is shown in accordance with an exemplary embodiment. For example, device 500 can be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a gaming console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
参照图5,装置500可以包括以下一个或多个组件:处理组件502,存储器504,电源组件506,多媒体组件508,音频组件510,输入/输出(I/O)的接口512,传感器组件514,以及通信组件516。Referring to FIG. 5, apparatus 500 can include one or more of the following components: processing component 502, memory 504, power component 506, multimedia component 508, audio component 510, input/output (I/O) interface 512, sensor component 514, And a communication component 516.
处理组件502通常控制装置500的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件502可以包括一个或多
个处理器520来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件502可以包括一个或多个模块,便于处理组件502和其他组件之间的交互。例如,处理部件502可以包括多媒体模块,以方便多媒体组件508和处理组件502之间的交互。 Processing component 502 typically controls the overall operation of device 500, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Processing component 502 can include one or more
The processor 520 executes instructions to perform all or part of the steps of the above method. Moreover, processing component 502 can include one or more modules to facilitate interaction between component 502 and other components. For example, processing component 502 can include a multimedia module to facilitate interaction between multimedia component 508 and processing component 502.
存储器504被配置为存储各种类型的数据以支持在设备500的操作。这些数据的示例包括用于在装置500上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器504可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 504 is configured to store various types of data to support operation at device 500. Examples of such data include instructions for any application or method operating on device 500, contact data, phone book data, messages, pictures, videos, and the like. The memory 504 can be implemented by any type of volatile or non-volatile storage device, or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable. Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Disk or Optical Disk.
电源组件506为装置500的各种组件提供电力。电源组件506可以包括电源管理系统,一个或多个电源,及其他与为装置500生成、管理和分配电力相关联的组件。 Power component 506 provides power to various components of device 500. Power component 506 can include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 500.
多媒体组件508包括在所述装置500和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件508包括一个前置摄像头和/或后置摄像头。当设备500处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。The multimedia component 508 includes a screen between the device 500 and the user that provides an output interface. In some embodiments, the screen can include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen can be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, slides, and gestures on the touch panel. The touch sensor may sense not only the boundary of the touch or sliding action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 508 includes a front camera and/or a rear camera. When the device 500 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera can receive external multimedia data. Each front and rear camera can be a fixed optical lens system or have focal length and optical zoom capabilities.
音频组件510被配置为输出和/或输入音频信号。例如,音频组件510包括一个麦克风(MIC),当装置500处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器504或经由通信组件516发送。在一些实施例中,音频组件510还包括一个扬声器,用于输出音频信号。
The audio component 510 is configured to output and/or input an audio signal. For example, audio component 510 includes a microphone (MIC) that is configured to receive an external audio signal when device 500 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signal may be further stored in memory 504 or transmitted via communication component 516. In some embodiments, audio component 510 also includes a speaker for outputting an audio signal.
I/O接口512为处理组件502和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 512 provides an interface between the processing component 502 and the peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to, a home button, a volume button, a start button, and a lock button.
传感器组件514包括一个或多个传感器,用于为装置500提供各个方面的状态评估。例如,传感器组件514可以检测到设备500的打开/关闭状态,组件的相对定位,例如所述组件为装置500的显示器和小键盘,传感器组件514还可以检测装置500或装置500一个组件的位置改变,用户与装置500接触的存在或不存在,装置500方位或加速/减速和装置500的温度变化。传感器组件514可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件514还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件514还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 514 includes one or more sensors for providing device 500 with various aspects of status assessment. For example, sensor component 514 can detect an open/closed state of device 500, a relative positioning of components, such as the display and keypad of device 500, and sensor component 514 can also detect a change in position of one component of device 500 or device 500. The presence or absence of user contact with device 500, device 500 orientation or acceleration/deceleration, and temperature variation of device 500. Sensor assembly 514 can include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 514 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor component 514 can also include an acceleration sensor, a gyro sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件516被配置为便于装置500和其他设备之间有线或无线方式的通信。装置500可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信部件516经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信部件516还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 516 is configured to facilitate wired or wireless communication between device 500 and other devices. The device 500 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, communication component 516 receives broadcast signals or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 516 also includes a near field communication (NFC) module to facilitate short range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
在示例性实施例中,装置500可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 500 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor, or other electronic component implementation for performing the above methods.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器504,上述指令可由装置500的处理器520执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。In an exemplary embodiment, there is also provided a non-transitory computer readable storage medium comprising instructions, such as a memory 504 comprising instructions executable by processor 520 of apparatus 500 to perform the above method. For example, the non-transitory computer readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device.
一种非临时性计算机可读存储介质,当所述存储介质中的指令由移动终端的处理器执行时,使得移动终端能够执行一种用于为搜索信息匹配图片的方
法,所述方法包括:响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;A non-transitory computer readable storage medium, when instructions in the storage medium are executed by a processor of a mobile terminal, enabling the mobile terminal to perform a method for matching pictures for search information
The method includes: acquiring, in response to a search request of a user, a first search result corresponding to a search keyword included in the search request;
当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系;When it is determined that the first search result does not include a picture, searching in the pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;
将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。The picture matching the search keyword is displayed in association with the first search result.
图6是本发明实施例中服务器的结构示意图。该服务器600可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)622(例如,一个或一个以上处理器)和存储器632,一个或一个以上存储应用程序642或数据644的存储介质630(例如一个或一个以上海量存储设备)。其中,存储器632和存储介质630可以是短暂存储或持久存储。存储在存储介质630的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对服务器中的一系列指令操作。更进一步地,中央处理器622可以设置为与存储介质630通信,在服务器600上执行存储介质630中的一系列指令操作。FIG. 6 is a schematic structural diagram of a server in an embodiment of the present invention. The server 600 can vary considerably depending on configuration or performance, and can include one or more central processing units (CPUs) 622 (eg, one or more processors) and memory 632, one or one The above storage medium 642 of storage application 642 or data 644 (eg, one or one storage device in Shanghai). Among them, the memory 632 and the storage medium 630 may be short-term storage or persistent storage. The program stored on storage medium 630 may include one or more modules (not shown), each of which may include a series of instruction operations in the server. Still further, central processor 622 can be configured to communicate with storage medium 630, executing a series of instruction operations in storage medium 630 on server 600.
服务器60还可以包括一个或一个以上电源626,一个或一个以上有线或无线网络接口650,一个或一个以上输入输出接口658,一个或一个以上键盘656,和/或,一个或一个以上操作系统641,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。Server 60 may also include one or more power sources 626, one or more wired or wireless network interfaces 650, one or more input and output interfaces 658, one or more keyboards 656, and/or one or more operating systems 641. For example, Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
本领域技术人员在考虑说明书及实践这里公开的发明后,将容易想到本发明的其它实施方案。本发明旨在涵盖本发明的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本发明的一般性原理并包括本公开未公开的本技术领域中的公知常识或惯用技术手段。说明书和实施例仅被视为示例性的,本发明的真正范围和精神由下面的权利要求指出。Other embodiments of the invention will be apparent to those skilled in the <RTIgt; The present invention is intended to cover any variations, uses, or adaptations of the present invention, which are in accordance with the general principles of the invention and include common general knowledge or common technical means in the art that are not disclosed in the present disclosure. . The specification and examples are to be considered as illustrative only,
应当理解的是,本发明并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本发明的范围仅由所附的权利要求来限制It is to be understood that the invention is not limited to the details of the details of The scope of the invention is limited only by the appended claims
以上所述仅为本发明的较佳实施例,并不用以限制本发明,凡在本发明的
精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only the preferred embodiment of the present invention and is not intended to limit the present invention.
Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles are intended to be included within the scope of the present invention.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。本发明可以在由计算机执行的计算机可执行指令的一般上下文中描述,例如程序模块。一般地,程序模块包括执行特定任务或实现特定抽象数据类型的例程、程序、对象、组件、数据结构等等。也可以在分布式计算环境中实践本发明,在这些分布式计算环境中,由通过通信网络而被连接的远程处理设备来执行任务。在分布式计算环境中,程序模块可以位于包括存储设备在内的本地和远程计算机存储介质中。It should be noted that, in this context, relational terms such as first and second are used merely to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply such entities or operations. There is any such actual relationship or order between them. Furthermore, the term "comprises" or "comprises" or "comprises" or any other variations thereof is intended to encompass a non-exclusive inclusion, such that a process, method, article, or device that comprises a plurality of elements includes not only those elements but also Other elements, or elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional equivalent elements in the process, method, item, or device that comprises the element. The invention may be described in the general context of computer-executable instructions executed by a computer, such as a program module. Generally, program modules include routines, programs, objects, components, data structures, and the like that perform particular tasks or implement particular abstract data types. The invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are connected through a communication network. In a distributed computing environment, program modules can be located in both local and remote computer storage media including storage devices.
本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于装置实施例而言,由于其基本相似于方法实施例,所以描述得比较简单,相关之处参见方法实施例的部分说明即可。以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性劳动的情况下,即可以理解并实施。以上所述仅是本发明的具体实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也应视为本发明的保护范围。
The various embodiments in the specification are described in a progressive manner, and the same or similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the description of the method embodiment. The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, ie may be located A place, or it can be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the embodiment. Those of ordinary skill in the art can understand and implement without any creative effort. The above is only a specific embodiment of the present invention, and it should be noted that those skilled in the art can also make several improvements and retouchings without departing from the principles of the present invention. It should be considered as the scope of protection of the present invention.
Claims (10)
- 一种为搜索信息匹配图片的方法,其特征在于,包括:A method for matching information to search for information, comprising:响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;Acquiring, in response to the user's search request, a first search result corresponding to the search keyword included in the search request;当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系;When it is determined that the first search result does not include a picture, searching in the pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。The picture matching the search keyword is displayed in association with the first search result.
- 根据权利要求1所述的方法,其特征在于,所述根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片包括:The method according to claim 1, wherein the searching in the pre-established first picture library according to the search keyword, and acquiring a picture matching the search keyword comprises:对所述搜索关键词进行拆词处理,获取至少两个关键词;Performing a word splitting process on the search keyword to obtain at least two keywords;将所述至少两个关键词与所述第一图片库中的图片进行匹配,获取匹配结果;Matching the at least two keywords with the pictures in the first picture library to obtain a matching result;将所述匹配结果中匹配度高的关键词对应的图片确定为与所述搜索关键词匹配的图片。A picture corresponding to the keyword having a high degree of matching among the matching results is determined as a picture matching the search keyword.
- 根据权利要求2所述的方法,其特征在于,所述方法还包括:The method of claim 2, wherein the method further comprises:在所述第一图片库中为所述匹配结果中匹配度低的关键词配置对应的图片,保存所述图片与所述匹配度低的关键词的对应关系。A corresponding picture is configured in the first picture library for a keyword with a low matching degree in the matching result, and a correspondence relationship between the picture and the keyword with a low matching degree is saved.
- 根据权利要求1所述的方法,其特征在于,所述根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片包括:The method according to claim 1, wherein the searching in the pre-established first picture library according to the search keyword, and acquiring a picture matching the search keyword comprises:对所述搜索关键词进行拆词处理,获取至少两个关键词;Performing a word splitting process on the search keyword to obtain at least two keywords;确定所述至少两个关键词中的核心关键词;Determining a core keyword of the at least two keywords;将所述核心关键词与所述第一图片库中的图片进行匹配,获取匹配结果;Matching the core keyword with a picture in the first picture library to obtain a matching result;将所述核心关键词匹配的图片确定为与所述搜索关键词匹配的图片。 The picture matched by the core keyword is determined as a picture that matches the search keyword.
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method of claim 1 further comprising:根据历史搜索结果,获取特征搜索关键词;Obtaining feature search keywords according to historical search results;为所述特征搜索关键词配置匹配的图片,构建所述特征搜索关键词与所述图片的对应关系,保存在所述第一图片库中。A matching picture is configured for the feature search keyword, and a correspondence between the feature search keyword and the picture is constructed and saved in the first picture library.
- 根据权利要求5所述的方法,其特征在于,所述为所述特征搜索关键词配置匹配的图片包括:The method according to claim 5, wherein the configuring a matching picture for the feature search keyword comprises:建立第二图片库,所述第二图片库存储有图片与标签的对应关系;Establishing a second picture library, where the second picture library stores a correspondence between the picture and the tag;根据所述特征搜索关键词在所述第二图片库中搜索,获取与所述特征搜索关键词匹配的标签;Searching in the second picture library according to the feature search keyword, and acquiring a tag that matches the feature search keyword;根据所述图片与标签的对应关系,将与所述特征搜索关键词匹配的标签对应的图片配置为所述特征搜索关键词匹配的图片。And configuring, according to the correspondence between the picture and the tag, a picture corresponding to the tag that matches the feature search keyword as a picture that matches the feature search keyword.
- 根据权利要求5所述的方法,其特征在于,所述为所述特征搜索关键词配置匹配的图片包括:The method according to claim 5, wherein the configuring a matching picture for the feature search keyword comprises:根据历史搜索结果,获取与所述特征搜索关键词对应的搜索结果中点击率最高的搜索结果包含或关联的图片;Obtaining, according to the historical search result, a picture that includes or is associated with the search result with the highest click rate among the search results corresponding to the feature search keyword;将所述点击率最高的搜索结果包含或关联的图片配置为与所述特征搜索关键词匹配的图片。The picture including or associated with the search result having the highest click rate is configured as a picture matching the feature search keyword.
- 根据权利要求1所述的方法,其特征在于,所述将所述图片与所述第一搜索结果关联显示包括:The method of claim 1, wherein the displaying the picture in association with the first search result comprises:根据所述第一搜索结果包含的文本信息的大小,调整所述图片的大小和/或调整所述图片与所述文本信息的布局。Adjusting the size of the picture and/or adjusting the layout of the picture and the text information according to the size of the text information included in the first search result.
- 一种为搜索信息匹配图片的装置,其特征在于,包括:An apparatus for searching for information to match a picture, comprising:获取单元,用于响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;An obtaining unit, configured to acquire, according to a search request of the user, a first search result corresponding to the search keyword included in the search request;匹配单元,用于当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其 中,所述第一图片库存储有图片与搜索关键词的对应关系;a matching unit, configured to: when determining that the first search result does not include a picture, searching in a pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; The first picture library stores a correspondence between a picture and a search keyword;显示单元,用于将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。And a display unit, configured to display the picture that matches the search keyword with the first search result.
- 一种用于为搜索信息匹配图片的装置,其特征在于,包括有存储器,以及一个或者一个以上的程序,其中一个或者一个以上程序存储于存储器中,且经配置以由一个或者一个以上处理器执行所述一个或者一个以上程序包含用于进行以下操作的指令:An apparatus for matching pictures to search information, comprising: a memory, and one or more programs, wherein one or more programs are stored in the memory and configured to be comprised by one or more processors Executing the one or more programs includes instructions for performing the following operations:响应于用户的搜索请求,获取与所述搜索请求包含的搜索关键词对应的第一搜索结果;Acquiring, in response to the user's search request, a first search result corresponding to the search keyword included in the search request;当确定所述第一搜索结果不包含图片时,根据所述搜索关键词在预先建立的第一图片库中搜索,获取与所述搜索关键词匹配的图片;其中,所述第一图片库存储有图片与搜索关键词的对应关系;When it is determined that the first search result does not include a picture, searching in the pre-established first picture library according to the search keyword, acquiring a picture that matches the search keyword; wherein the first picture library is stored Correspondence between pictures and search keywords;将所述与所述搜索关键词匹配的图片与所述第一搜索结果关联显示。 The picture matching the search keyword is displayed in association with the first search result.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610251898.9A CN107305566B (en) | 2016-04-21 | 2016-04-21 | A kind of method and device to search for information matches picture |
CN201610251898.9 | 2016-04-21 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2017181663A1 true WO2017181663A1 (en) | 2017-10-26 |
Family
ID=60116577
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/106183 WO2017181663A1 (en) | 2016-04-21 | 2016-11-17 | Method and device for matching image to search information |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107305566B (en) |
WO (1) | WO2017181663A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134850A (en) * | 2018-02-09 | 2019-08-16 | 北京搜狗科技发展有限公司 | A kind of searching method and device |
CN111368107A (en) * | 2020-02-18 | 2020-07-03 | 深圳传音控股股份有限公司 | Gallery searching method, terminal and computer storage medium |
CN112925939A (en) * | 2019-12-05 | 2021-06-08 | 阿里巴巴集团控股有限公司 | Picture searching method, description information generating method, device and storage medium |
CN113763005A (en) * | 2020-09-23 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Picture advertisement pushing method, electronic equipment and computer readable storage medium |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107908707A (en) * | 2017-11-09 | 2018-04-13 | 程杰 | The method for building up and its picture searching method in a kind of picture materials storehouse |
CN109948401A (en) * | 2017-12-20 | 2019-06-28 | 北京京东尚科信息技术有限公司 | Data processing method and its system for text |
CN110727815B (en) * | 2018-07-16 | 2024-01-30 | 浙江大华技术股份有限公司 | Method, equipment and readable storage medium for updating graph library searching graph by graph |
CN110020411B (en) * | 2019-03-29 | 2020-10-09 | 上海掌门科技有限公司 | Image-text content generation method and equipment |
CN113722598B (en) * | 2021-09-02 | 2024-05-10 | 上海蒜芽信息科技有限公司 | Flight search interaction method, system, electronic device and storage medium |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609458A (en) * | 2012-01-12 | 2012-07-25 | 北京搜狗信息服务有限公司 | Method and device for picture recommendation |
CN104504110A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Search method and device |
CN104504109A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Image search method and device |
CN104881451A (en) * | 2015-05-18 | 2015-09-02 | 百度在线网络技术(北京)有限公司 | Image searching method and image searching device |
US20160078105A1 (en) * | 2014-09-11 | 2016-03-17 | Yahoo Japan Corporation | Information providing system, information providing server and information providing method |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101984420B (en) * | 2010-09-03 | 2013-08-14 | 百度在线网络技术(北京)有限公司 | Method and equipment for searching pictures based on word segmentation processing |
CN103064903B (en) * | 2012-12-18 | 2017-08-01 | 厦门市美亚柏科信息股份有限公司 | Picture retrieval method and device |
CN103226573B (en) * | 2013-03-28 | 2016-06-15 | 百度在线网络技术(北京)有限公司 | The method of Search Results association display and client terminal |
CN103942272B (en) * | 2014-03-27 | 2017-08-18 | 北京百度网讯科技有限公司 | Image searching method and device |
CN104462212B (en) * | 2014-11-04 | 2017-12-22 | 百度在线网络技术(北京)有限公司 | Information displaying method and device |
-
2016
- 2016-04-21 CN CN201610251898.9A patent/CN107305566B/en active Active
- 2016-11-17 WO PCT/CN2016/106183 patent/WO2017181663A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102609458A (en) * | 2012-01-12 | 2012-07-25 | 北京搜狗信息服务有限公司 | Method and device for picture recommendation |
US20160078105A1 (en) * | 2014-09-11 | 2016-03-17 | Yahoo Japan Corporation | Information providing system, information providing server and information providing method |
CN104504110A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Search method and device |
CN104504109A (en) * | 2014-12-30 | 2015-04-08 | 百度在线网络技术(北京)有限公司 | Image search method and device |
CN104881451A (en) * | 2015-05-18 | 2015-09-02 | 百度在线网络技术(北京)有限公司 | Image searching method and image searching device |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110134850A (en) * | 2018-02-09 | 2019-08-16 | 北京搜狗科技发展有限公司 | A kind of searching method and device |
CN110134850B (en) * | 2018-02-09 | 2024-05-14 | 北京搜狗科技发展有限公司 | Searching method and device |
CN112925939A (en) * | 2019-12-05 | 2021-06-08 | 阿里巴巴集团控股有限公司 | Picture searching method, description information generating method, device and storage medium |
CN111368107A (en) * | 2020-02-18 | 2020-07-03 | 深圳传音控股股份有限公司 | Gallery searching method, terminal and computer storage medium |
CN111368107B (en) * | 2020-02-18 | 2024-03-12 | 深圳传音控股股份有限公司 | Gallery searching method, terminal and computer storage medium |
CN113763005A (en) * | 2020-09-23 | 2021-12-07 | 北京沃东天骏信息技术有限公司 | Picture advertisement pushing method, electronic equipment and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107305566A (en) | 2017-10-31 |
CN107305566B (en) | 2019-10-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2017181663A1 (en) | Method and device for matching image to search information | |
WO2017157040A1 (en) | Search method and device, and device used for searching | |
US10791187B2 (en) | Information displaying method and apparatus, and storage medium | |
CN107515870B (en) | Searching method and device and searching device | |
CN106897937B (en) | Method and device for displaying social sharing information | |
KR20140089751A (en) | Method for intelligent searching service using circumstance recognition and the terminal thereof | |
WO2019057191A1 (en) | Content retrieval method, terminal and server, electronic device and storage medium | |
CN111382339B (en) | Search processing method and device for search processing | |
CN107967271A (en) | A kind of information search method and device | |
CN110391966B (en) | Message processing method and device and message processing device | |
KR20170023746A (en) | Method and apparatus of displaying ticket information | |
CN106815291B (en) | Search result item display method and device and search result item display device | |
CN109783244B (en) | Processing method and device for processing | |
CN112784142A (en) | Information recommendation method and device | |
CN109213942A (en) | A kind of search result methods of exhibiting and device | |
CN110110207B (en) | Information recommendation method and device and electronic equipment | |
WO2016127625A1 (en) | Address filtering method and device | |
CN109521888B (en) | Input method, device and medium | |
CN110929122B (en) | Data processing method and device for data processing | |
CN110020082B (en) | Searching method and device | |
CN113157370B (en) | Page display method and device, electronic equipment and storage medium | |
CN109901726B (en) | Candidate word generation method and device and candidate word generation device | |
CN110633391A (en) | Information searching method and device | |
CN107436896B (en) | Input recommendation method and device and electronic equipment | |
WO2022257883A1 (en) | Presentation method and presentation apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16899245 Country of ref document: EP Kind code of ref document: A1 |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16899245 Country of ref document: EP Kind code of ref document: A1 |