WO2024255733A1 - 搜索方法、装置、设备及介质 - Google Patents

搜索方法、装置、设备及介质 Download PDF

Info

Publication number
WO2024255733A1
WO2024255733A1 PCT/CN2024/098441 CN2024098441W WO2024255733A1 WO 2024255733 A1 WO2024255733 A1 WO 2024255733A1 CN 2024098441 W CN2024098441 W CN 2024098441W WO 2024255733 A1 WO2024255733 A1 WO 2024255733A1
Authority
WO
WIPO (PCT)
Prior art keywords
text content
search
words
keywords
tags
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2024/098441
Other languages
English (en)
French (fr)
Inventor
郭克邯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Publication of WO2024255733A1 publication Critical patent/WO2024255733A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9532Query formulation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/0482Interaction with lists of selectable items, e.g. menus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/284Lexical analysis, e.g. tokenisation or collocates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/30Semantic analysis

Definitions

  • the present application belongs to the field of communication technology, and specifically relates to a search method, device, equipment and medium.
  • the current search method can only mechanically retrieve the content input by the user.
  • the user wants to retrieve part of the input content, the user needs to re-enter the part of the content in the input box, which results in poor user experience and low efficiency.
  • the purpose of the embodiments of the present application is to provide a search method, apparatus, device and medium, which can solve the problem of poor experience and efficiency when a user wants to further search for part of the input content.
  • an embodiment of the present application provides a search method, the method comprising:
  • multiple keywords are determined according to the text content and multiple search tags are displayed, wherein the multiple search tags include search tags corresponding to the multiple keywords respectively and a search tag corresponding to the text content;
  • the number of the first windows is the same as the number of the first tags.
  • an embodiment of the present application provides a search device, the device comprising:
  • a determination module configured to determine a plurality of keywords according to the text content and display a plurality of search tags when the input box displays text content, wherein the plurality of search tags include search tags corresponding to the plurality of keywords respectively and a search tag corresponding to the text content;
  • a first receiving module configured to receive a first input for a first tag among the multiple search tags
  • the first response module is used for displaying the search results related to the first tag in a first window in response to the first input;
  • the number of the first windows is the same as the number of the first tags.
  • an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
  • an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
  • an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
  • an embodiment of the present application provides an electronic device, which is configured to execute the method of the first aspect.
  • An embodiment of the present application provides a search method, which includes determining multiple keywords based on the text content when the text content is displayed in an input box, and displaying search tags corresponding to the text content and the keywords, and then receiving the user's input for the first tag, and displaying the corresponding search results in the first window.
  • a search method which includes determining multiple keywords based on the text content when the text content is displayed in an input box, and displaying search tags corresponding to the text content and the keywords, and then receiving the user's input for the first tag, and displaying the corresponding search results in the first window.
  • the user can also select multiple search tags at the same time, and the search results of the content corresponding to these multiple search tags are displayed in multiple first windows at the same time, so that the user can quickly compare the search results of multiple different contents, improve search efficiency, and improve user experience.
  • FIG1 is a schematic diagram of a flow chart of a search method for implementing an embodiment of the present application
  • FIG2 is a first schematic diagram of an electronic device interface display for implementing an embodiment of the present application
  • FIG3 is a second schematic diagram of an electronic device interface display for implementing an embodiment of the present application.
  • FIG4 is a third schematic diagram of an electronic device interface display for implementing an embodiment of the present application.
  • FIG5 is a fourth schematic diagram of an electronic device interface display for implementing an embodiment of the present application.
  • FIG6 is a fifth schematic diagram of an electronic device interface display for implementing an embodiment of the present application.
  • FIG7 is a schematic diagram of the structure of a search device for implementing an embodiment of the present application.
  • FIG8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
  • FIG. 9 is a second schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • first, second, etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first”, “second”, etc. are generally of one type, and the number of objects is not limited.
  • the first object can be one or more.
  • “and/or” in the specification and claims represents at least one of the connected objects, and the character “/" generally indicates that the objects associated with each other are in an "or” relationship.
  • the present application embodiment provides a search method, as shown in FIG1 , the method includes the following S1100-S1300:
  • the multiple search tags include search tags corresponding to the multiple keywords respectively and search tags corresponding to the text content.
  • the text content displayed in the input box may be the content that the user wants to search for. After the user enters the text content, the corresponding text content may be displayed in the input box.
  • the text content is the content actually input by the user in the input box.
  • the keyword is part of the text content.
  • the keyword can be automatically split according to the preset conditions, or split according to the splitting dimension selected by the user.
  • the user can manually select the target content in the text content.
  • the number of keywords can be one or more.
  • the keyword in the embodiment of the present application can be a word or a short sentence.
  • multiple search tags including text content and multiple keywords can be displayed.
  • the text content entered by the user and multiple keywords can be searched separately in the background to obtain corresponding search results.
  • the search tags may be displayed before searching the text content and the corresponding keywords.
  • the search tags may be highlighted in the input box by bolding, highlighting, or isolating the text content input by the user.
  • the search tags may be displayed on the display interface after searching the text content and the corresponding keywords.
  • a search tag with text content and keywords and a first window may be displayed in the display interface.
  • the first window is used to display search results corresponding to the search tag.
  • search tags of text content and keywords may be displayed in the search tag area.
  • the display interface may include a search tag area and a first window.
  • a search tag area As shown in FIG. 2 , when a user searches through an electronic device, an input box 201 is displayed on the screen 200 of the electronic device. The user can enter the text content to be searched in the input box 201, such as "A's concert in B".
  • the screen 200 also displays a search result.
  • the search tag area 202 can display search tags of text content and search tags of keywords of text content, and arrange these tags in a certain order, such as the tags "A's concert at B", "A", "B", "concert” and so on arranged in sequence in FIG. 3.
  • the screen 200 also displays a first window 203 for displaying search results corresponding to the search tags.
  • the search tag area may also display only some tags among the search tags of the text content and all keywords.
  • Step S1200 receiving a first input for a first tag among a plurality of search tags.
  • Step S1300 In response to a first input, display search results corresponding to a first tag in a first window; wherein the number of first windows is the same as the number of first tags.
  • the user's input on one or more tags can be received and responded to, and the search results corresponding to the tag can be displayed in the first window.
  • the corresponding first window can display the search results of the text content or keywords corresponding to the tag.
  • the search results of the two tags can be displayed in two windows respectively.
  • the search interface can be as shown in Figure 3.
  • the search tags for text content and multiple keywords can be displayed.
  • the two first windows can respectively display the search results of the two tags. The first window on the left displays the search results of the search tag "A's concert in place B", and the first window on the right displays the search results of the search tag "A”.
  • the corresponding tags in the search tag area may also be highlighted, for example, highlighted, enlarged, bolded, with a changed background color, or underlined.
  • search tag area or search tags may be made to the search tag area or search tags, such as sliding input, clicking input, etc., to change the search tag selected by the user.
  • An embodiment of the present application provides a search method, which includes determining multiple keywords based on the text content when the text content is displayed in an input box, and displaying search tags corresponding to the text content and the keywords, and then receiving the user's input for the first tag, and displaying the corresponding search results in the first window.
  • a search method which includes determining multiple keywords based on the text content when the text content is displayed in an input box, and displaying search tags corresponding to the text content and the keywords, and then receiving the user's input for the first tag, and displaying the corresponding search results in the first window.
  • the user can also select multiple search tags at the same time, and the search results of the content corresponding to these multiple search tags are displayed in multiple first windows at the same time, so that the user can quickly compare the search results of multiple different contents, improve search efficiency, and improve user experience.
  • the method provided in the embodiment of the present application further includes before the above S1100: S1400.
  • S1400 displaying a plurality of split dimension options; receiving a second input for a target split dimension option among the plurality of split dimension options.
  • multiple split dimension options may be displayed in the interface.
  • the split dimension corresponding to the split dimension option is the basis for subsequent splitting of the text content and obtaining keywords.
  • an interface displaying multiple split dimension options may be as shown in FIG. 4 , in which multiple split dimension options may be provided, such as semantic recognition, nouns, verbs, adjectives, languages, and the like.
  • a user can select a target splitting dimension option from multiple splitting dimension options by clicking, swiping, voice control, or other methods.
  • the number of target splitting dimension options can be one or more.
  • a switch for a keyword search function may also be displayed. By selecting the switch, it can be controlled whether to split the text to obtain the corresponding keywords.
  • the user can split the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain multiple keywords.
  • the text content in the input box is "A's concert in B, hotel in B".
  • the split dimension option selected by the user is semantic recognition, it can be recognized that the text content includes two different semantics, and based on these two different semantics, the text content can be split into two keywords "A's concert in B” and "hotel in B".
  • the split dimension option selected by the user is noun
  • the nouns in the text content can be split, such as the name "A”, the place name "B”, “concert” and "hotel”. The same applies to verbs, adjectives and nouns, so I will not go into details here.
  • the split dimension option is "English”
  • the content to be split is “A's concert in B", where A and B are the English name and place name respectively.
  • the English parts "A" and "B" in the text content can be used as keywords of the text content.
  • the user may select multiple splitting dimension options.
  • the text content is "A exercises in the gym”.
  • the nouns and verbs in the text content may be split to obtain keywords such as "A”, “gym”, and "exercise”.
  • split dimension options may be displayed in advance for the user to select the split dimension when splitting the text content to obtain the keyword the user wants to search for, so that the search results corresponding to the keyword can be displayed later.
  • determining multiple keywords according to text content in S1100 above may be implemented by S1120 as follows:
  • the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, including the mark The number of search results including the point character, the preset type of words, and the text content is less than the second preset value.
  • the text content when the text content is "withered and dry", the text content does not have a complete semantics. At this time, the text content can be split and processed to obtain the corresponding keywords "withered” and "dry". For another example, when the text content is "withered and dry", the text content does not have a complete sentence structure. Therefore, it can also be judged that the user wants to search for these two words at the same time, and the text content is split and processed to obtain the corresponding keywords.
  • the first preset value is 10.
  • the text content is "comparison, analogy, contrast, comparison, synonyms of comparison”
  • the number of words in the text content is greater than the preset threshold. Only searching the text content obviously cannot meet the user's information acquisition needs.
  • the text content can be split to obtain the corresponding keywords “comparison”, “analogy”, “contrast”, “contrast” and “synonyms of comparison”. So as to search the content corresponding to these keywords later.
  • the text content can also be split when there are punctuation marks in the text content, such as ",” “;” and “.”, and when the text content contains words of preset types, such as book titles, names, place names, etc.
  • the text content when the text content meets any preset condition, the text content is split and processed.
  • the splitting process can be performed based on the target splitting dimension selected by the user or the keywords selected by the user or other methods.
  • the user after the user enters text content in the input box, it can be judged whether the displayed text content meets the preset conditions, and intelligently confirm whether the user needs to split the content for search.
  • the text content is split only when the preset conditions are met, avoiding wasting processing resources and search resources when the user does not need to split the keywords for search.
  • the preset condition may also include that the search result of the text content is less than a second preset value.
  • the background may first search the text content and determine the number of search results that can be searched in the text content. If the number of search results is small and less than the second preset value, the text content is split.
  • the background can first search the text content and determine the number of search results for the text content.
  • the text content is split and processed to obtain keywords of the text content so as to display the keyword search results later.
  • the keywords in the text content can also be searched to obtain more information that the user may need, thereby improving the user's experience.
  • determining multiple keywords according to text content in S1100 above may be implemented by the following S1130 and S1140:
  • the text content when the input box displays text content, the text content can be split based on the target splitting dimension selected by the user or in other ways to obtain multiple words, and semantic recognition is performed on these words.
  • the multiple words obtained may include words with the same or similar semantics.
  • the multiple words split from the text content entered by the user include “Liu Bei”, “Liu Huangshu” and “Liu Xuande”
  • the three words have the same semantics and all refer to the historical figure Liu Bei.
  • words with the same or similar meanings may also include completely identical words.
  • the text content is "A's concert in B, hotel in B", and when the text content is split by the noun dimension, the split words are "A”, “B”, “concert”, "B” and “hotel".
  • the split words are "A”, “B”, “concert”, "B” and “hotel”.
  • there are two completely identical words “B” in which case the latter word “B” can be directly deleted, and the four words "A”, “B”, “concert” and “hotel” can be retained as keywords.
  • the split words can also be filtered according to the semantics of the split words to remove words with the same or similar semantics, so as to avoid wasting processing resources and search resources when searching for repeated or semantically similar keywords.
  • determining multiple keywords according to text content in S1100 above may be implemented by the following S1150 and S1160:
  • the text content when the input box displays text content, the text content can be split based on the target splitting dimension selected by the user or in other ways to obtain multiple words, and determine whether these words are related.
  • two words are associated, which may include multiple situations, such as two words are a certain region and a specific building, scenic spot, etc. in the region.
  • the text content is "Where to have fun in Shanghai, Oriental Pearl Tower”
  • the text content is split into two words “Shanghai” and "Oriental Pearl Tower”, and then it is determined that the two words are also associated.
  • the two words "Shanghai” and "Oriental Pearl Tower” can be merged, and "Shanghai Oriental Pearl Tower” can be used as a keyword.
  • subsequent searches only the search results of the Shanghai Oriental Pearl Tower building can be obtained, and no search results related to other Oriental Pearl Towers can be obtained.
  • two words are related, and the two words can also refer to a certain person and the person's works, deeds, etc., as well as some commonly matched words, or two words with an inclusive relationship, etc.
  • the related words in the multiple words can be merged and the merged words can be used as keywords to make the keywords more specific and in line with the user's original ideas, so as to obtain more accurate keyword search results that meet user needs.
  • the step of determining multiple keywords according to text content in S1100 above may be implemented through the following S1170 and S1180.
  • S1180 Use the target content as a keyword of the text content.
  • the user's first input may also include a selection input for a target content in the text content.
  • the user may select the text content in the input box or the manual setting interface. For example, as shown in FIG5 , after the user enters the text content in the input box, a manual setting interface may be displayed, on which the text content in the input box may be displayed. The user may select the target content by selecting the box or adjusting the cursor. Split keywords. In the example of FIG5 , the user uses the cursor to select the concert in the text content as the target content, and then based on the user's selection input, "concert" will be used as the keyword of the text content.
  • step S1170 may also be performed when the keyword cannot be split out by splitting the keyword by dimension or splitting the keyword based on preset conditions.
  • the text content can be manually split to obtain the keyword tag that the user wants to search for, so that the search results corresponding to the keyword tag can be displayed later.
  • the method further includes: receiving a third input from the user regarding the first tag; in response to the third input, adjusting the positional relationship of the multiple search tags, and adjusting the positional relationship of the search results of the multiple search tags in the multiple first windows.
  • the user can continue to operate on one or more of the first tags, for example, click and long press to drag one of the search tags to another location, or click the two target search tags in sequence. Adjust the positional relationship of the two search tags and swap their positions. On this basis, the positions of the search results of the two search tags in the two first windows can also be changed synchronously.
  • the first tags are "A's concert in B" and "A".
  • the corresponding search results of the tag "A's concert in B" in the first window on the left can also be synchronously adjusted to the search results of the search tag "A”
  • the search results of the first window on the right can be adjusted to the search results of the tag "A's concert in B”.
  • the user can change the positions of the corresponding search results in the multiple first windows according to the positional relationship of the multiple search tags, so that the user can flexibly adjust the interface according to his/her own usage habits, thereby improving the user experience.
  • the search method provided in the embodiment of the present application can be executed by a search device.
  • a method for executing a search by a search device is taken as an example to illustrate the search device provided in the embodiment of the present application.
  • the embodiment of the present application provides a search device 700, as shown in FIG7 , including:
  • a determination module 710 configured to determine a plurality of keywords according to the text content and display a plurality of search tags when the text content is displayed in the input box, wherein the plurality of search tags include search tags corresponding to the plurality of keywords and a search tag corresponding to the text content;
  • a first receiving module 720 configured to receive a first input for a first tag among a plurality of search tags
  • a first response module 730 configured to, in response to a first input, display search results of keywords corresponding to a first tag in a first window;
  • the number of the first windows is the same as the number of the first tabs.
  • a search device which can search the text content entered by the user and the keywords therein separately after the user enters the text content to be searched, thereby increasing the number of search results obtained by the user, and also making it unnecessary for the user to re-enter the part of the content to be searched when the user wants to search for part of the input content, thereby simplifying the user operation and improving the user experience and efficiency.
  • the user can also select multiple search tags at the same time, and the search results of the contents corresponding to the multiple search tags are displayed in multiple first windows at the same time, so that the user can quickly compare multiple different search results. Search results with the same content improve search efficiency and enhance user experience.
  • the device also includes: a display module 740, used to display multiple splitting dimension options; a second receiving module 750, also used to receive a second input for a target splitting dimension option among the multiple splitting dimension options; a determination module 710, specifically used to, when the input box displays text content, respond to the second input, and split the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain multiple keywords.
  • a display module 740 used to display multiple splitting dimension options
  • a second receiving module 750 also used to receive a second input for a target splitting dimension option among the multiple splitting dimension options
  • a determination module 710 specifically used to, when the input box displays text content, respond to the second input, and split the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain multiple keywords.
  • the determination module 710 is specifically used to: determine multiple keywords based on the text content when the text content meets preset conditions, wherein the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, includes punctuation characters, includes preset types of words, and the number of search results of the text content is less than a second preset value.
  • the determination module 710 includes: a first splitting module for splitting text content to obtain multiple words; a deletion module for deleting repeated words with the same semantics to obtain multiple keywords when the multiple words include words with the same semantics.
  • the determination module 710 further includes: a second splitting module for splitting the text content to obtain multiple words; and a merging module for merging the related words to obtain multiple keywords when the multiple words include related words.
  • the search device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip.
  • the electronic device can be a terminal or other devices other than a terminal.
  • the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR)/virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc.
  • NAS Network Attached Storage
  • PC personal computer
  • TV television
  • teller machine a self-service machine
  • the search device in the embodiment of the present application may be a device having an operating system.
  • the operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
  • the search device provided in the embodiment of the present application can implement each process implemented by the method embodiments corresponding to Figures 1 to 6, and will not be described again here to avoid repetition.
  • an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, and the memory 802 stores a program or instruction that can be executed on the processor 801.
  • the program or instruction is executed by the processor 801
  • the various steps of the above-mentioned search method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • FIG. 9 is a schematic diagram of the hardware structure of an electronic device implementing an embodiment of the present application.
  • the electronic device 1000 includes but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a storage Components such as device 1009 and processor 1010.
  • the electronic device 1000 can also include a power supply (such as a battery) for supplying power to each component, and the power supply can be logically connected to the processor 1010 through a power management system, so that the power management system can manage charging, discharging, and power consumption.
  • a power supply such as a battery
  • the electronic device structure shown in FIG9 does not constitute a limitation on the electronic device, and the electronic device can include more or fewer components than shown in the figure, or combine certain components, or arrange components differently, which will not be described in detail here.
  • the processor 1010 is used to determine multiple keywords according to the text content and display multiple search tags when the input box displays text content, and the multiple search tags include search tags corresponding to the multiple keywords and search tags corresponding to the text content;
  • the input unit 1004 is used to receive a first input for a first tag among the multiple search tags
  • Display unit 1006 in response to the first input, displays the search results corresponding to the first tag in a first window; wherein the number of the first windows is the same as the number of the first tags.
  • the embodiment of the present application provides an electronic device that can search the text content entered by the user and the keywords therein separately after the user enters the text content that he wants to search, thereby increasing the number of search results obtained by the user, and also making it unnecessary for the user to re-enter the part of the content to be searched when the user wants to search for part of the input content, thereby simplifying the user operation and improving the user experience and efficiency.
  • the user can also select multiple search tags at the same time, and the search results of the contents corresponding to these multiple search tags are displayed in multiple first windows at the same time, so that the user can quickly compare the search results of multiple different contents, improve the search efficiency, and improve the user experience.
  • the display unit 1006 is used to display multiple split dimension options
  • the input unit 1004 is used to receive a second input for a target splitting dimension option among the multiple splitting dimension options
  • Processor 1010 is used for, when the input box displays text content, responding to the second input, splitting the text content according to the splitting dimension corresponding to the target splitting dimension option to obtain multiple keywords.
  • processor 1010 is further used to determine multiple keywords based on the text content when the text content meets preset conditions, wherein the preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, punctuation characters are included, words of preset types are included, and the number of search results of the text content is less than a second preset value.
  • preset conditions include at least one of the following: incomplete semantics, incomplete language structure, the number of words is greater than a first preset value, punctuation characters are included, words of preset types are included, and the number of search results of the text content is less than a second preset value.
  • the processor 1010 is further configured to split the text content to obtain a plurality of words
  • the processor 1010 is further configured to split the text content to obtain a plurality of words
  • the related words are merged to obtain a plurality of keywords.
  • the input unit 1004 may include a graphics processing unit (GPU) 10041 and a microphone 10042, and the graphics processor 10041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode.
  • the display unit 1006 may include a display panel 10061, which may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. 10061.
  • the user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072.
  • the touch panel 10071 is also called a touch screen.
  • the touch panel 10071 may include two parts: a touch detection device and a touch controller.
  • Other input devices 10072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
  • the memory 1009 can be used to store software programs and various data.
  • the memory 1009 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc.
  • the memory 1009 can include a volatile memory or a non-volatile memory, or the memory 1009 can include both volatile and non-volatile memories.
  • the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory.
  • the volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM).
  • the memory 1009 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
  • the processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 1010.
  • An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored.
  • a program or instruction is stored.
  • the various processes of the above-mentioned search method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
  • the processor is the processor in the electronic device described in the above embodiment.
  • the readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.
  • the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
  • the present application embodiment provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the various processes of the above-mentioned search method embodiment, and can achieve the same technical To avoid repetition, the effect will not be described here.
  • the technical solution of the present application can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
  • a storage medium such as ROM/RAM, a disk, or an optical disk
  • a terminal which can be a mobile phone, a computer, a server, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Mathematical Physics (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开了一种搜索方法、装置、设备及介质,属于通信技术领域。其中,方法包括:在输入框显示文字内容的情况下,根据所述文字内容确定多个关键词并显示多个搜索标签,所述多个搜索标签包括分别与多个关键词对应的搜索标签和与所述文字内容对应的搜索标签;接收针对所述多个搜索标签中的第一标签的第一输入;响应于所述第一输入,在第一窗口显示与所述第一标签对应的搜索结果;其中所述第一窗口的数量与所述第一标签的数量相同。

Description

搜索方法、装置、设备及介质
相关申请的交叉引用
本申请主张在2023年06月15日在中国提交的中国专利申请202310714225.2的优先权,其全部内容通过引用包含于此。
技术领域
本申请属于通信技术领域,具体涉及一种搜索方法、装置、设备和介质。
背景技术
目前,随着互联网技术的不断发展,越来越多的用户会在互联网上发布或者获取信息,导致互联网上的信息十分驳杂,用户想要寻找某些特定信息时,一般会使用搜索控件,输入要搜索的内容之后获得对应的信息。
但是,目前的搜索方式,只能机械的对用户输入的内容进行检索,在用户还想要对输入内容的部分进行检索时,用户还需要在输入框中重新输入该部分的内容,使用体验较差,效率较低。
发明内容
本申请实施例的目的是提供一种搜索方法、装置、设备及介质,能够解决用户想要对输入的内容的部分进行进一步检索时体验、效率较差的问题。
第一方面,本申请实施例提供了一种搜索方法,该方法包括:
在输入框显示文字内容的情况下,根据所述文字内容确定多个关键词并显示多个搜索标签,所述多个搜索标签包括分别与多个关键词对应的搜索标签和与所述文字内容对应的搜索标签;
接收针对所述多个搜索标签中的第一标签的第一输入;
响应于所述第一输入,在第一窗口显示与所述第一标签对应的搜索结果;
其中所述第一窗口的数量与所述第一标签的数量相同。
第二方面,本申请实施例提供了一种搜索装置,该装置包括:
确定模块,用于在输入框显示文字内容的情况下,根据所述文字内容确定多个关键词并显示多个搜索标签,所述多个搜索标签包括分别与多个关键词对应的搜索标签和与所述文字内容对应的搜索标签;
第一接收模块,用于接收针对所述多个搜索标签中的第一标签的第一输入;
第一响应模块用于,响应于所述第一输入,在第一窗口显示与所述第一标签的搜索结果;
其中所述第一窗口的数量与所述第一标签的数量相同。
第三方面,本申请实施例提供了一种电子设备,该电子设备包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。
第七方面,本申请实施例提供了一种电子设备,所述电子设备被配置成执行如第一方面的方法。
本申请实施例提供了一种搜索方法,该方法包括在输入框显示文字内容的情况下,根据文字内容确定多个关键词,并显示跟文字内容和关键词对应的搜索标签,之后可以接收用户对第一标签的输入,在第一窗口中显示对应的搜索结果。基于该方法,可以在用户输入了想要搜索的文本内容之后,对用户输入的文本内容和其中的关键词分别进行搜索,增加用户获取的搜索结果数量,还使得用户还想要对输入内容的部分进行检索时,不再需要重新输入要检索的部分内容,简化用户操作提升了用户的体验和效率。同时,用户还可以同时选择多个搜索标签,并将这多个搜索标签对应内容的搜索结果同时显示在多个第一窗口中,方便用户快速比对多个不同内容的搜索结果,提高搜索效率,提高用户体验。
附图说明
图1为实现本申请实施例的一种搜索方法的流程示意图;
图2为实现本申请实施例的一种电子设备界面显示示意图一;
图3为实现本申请实施例的一种电子设备界面显示示意图二;
图4为实现本申请实施例的一种电子设备界面显示示意图三;
图5为实现本申请实施例的一种电子设备界面显示示意图四;
图6为实现本申请实施例的一种电子设备界面显示示意图五;
图7为实现本申请实施例的一种搜索装置的结构示意图;
图8为实现本申请实施例的一种电子设备的硬件结构示意图一;
图9为实现本申请实施例的一种电子设备的硬件结构示意图二。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实 施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的搜索方法、装置、设备及介质进行详细地说明。
本申请实施例提供了一种搜索方法,如图1所示,该方法包括如下S1100-S1300:
S1100,在输入框显示文字内容的情况下,根据文字内容确定多个关键词并显示多个搜索标签,多个搜索标签包括分别与多个关键词对应的搜索标签和与文字内容对应的搜索标签。
本申请实施例中,输入框中显示的文字内容,可以是用户输入的想要搜索的内容,在用户输入文字内容之后,输入框中可以显示对应的文字内容。
在输入框中显示了文字内容的情况下,可以根据该文字内容确定出这些文字内容的多个关键词。
在本申请实施例中,文字内容就是用户在输入框中实际输入的内容。关键词就是文字内容中的部分内容。其中,关键词可以根据预设条件自动进行拆分,或者根据用户选择的拆分维度进行拆分得到。或者,还可以是用户手动在文字内容中选取目标内容得到。关键词的数量可以是一个或者多个。并且,本申请实施例中的关键词可以是一个词语或者一个短句。
在确定了多个关键词之后,可以显示包含文字内容和多个关键词在内的多个搜索标签。同时,在后台还可以对用户输入的文字内容,以及多个关键词分别进行搜索,获得对应的搜索结果。
在一个示例中,可以在对文字内容和对应的关键词进行搜索前显示这些搜索标签,例如,可以在输入框中,通过对用户输入的文字内容的加粗、高亮或隔断等形式,突出显示这些搜索标签。在另一个示例中,也可以在对文字内容和对应的关键词进行搜索后,在显示界面上显示这些搜索标签。
例如,显示界面中可以显示有文字内容和关键词的搜索标签和第一窗口。第一窗口用于显示对应于搜索标签的搜索结果。
在一个例子中,文字内容和关键词的搜索标签可以显示在搜索标签区域中。
在本申请的一个实施例中,显示界面中可以包括搜索标签区域和第一窗口。如图2所示,用户通过电子设备进行搜索时,电子设备的屏幕200上显示有输入框201,用户可以在输入框201中输入想要搜索的文字内容,如“A在B地的演唱会”。屏幕200上还显示有搜 索标签区域202,该区域可以显示文字内容的搜索标签和文字内容的关键词的搜索标签,并按照一定顺序将这些标签进行排列,例如图3中依次排列的“A在B地的演唱会”、“A”、“B地”、“演唱会”等标签。此外,屏幕200上还显示有第一窗口203,用来显示对应搜索标签的搜索结果。
需要说明的是,图2中的输入框、搜索标签区域和第一窗口只是示例,本领域技术人员可以根据实际情况灵活设置上述区域的大小、形状、以及分布。
此外,在文字内容的关键词数量较多时,搜索标签区域也可以只显示文字内容和所有关键词的搜索标签中的部分标签。
步骤S1200,接收针对多个搜索标签中的第一标签的第一输入。
步骤S1300,响应于第一输入,在第一窗口显示与第一标签对应的搜索结果;其中第一窗口的数量与第一标签的数量相同。
在本实施例的一个示例中,在显示对应了文字内容和关键词的多个搜索标签之后,可以接收并响应用户对某个或者某些标签的输入,在第一窗口中显示该标签对应的搜索结果。
在用户选择了其中的一个标签时,对应的第一窗口可以显示该标签对应文字内容或者关键词的搜索结果。在用户选择了多个搜索标签,例如两个搜索标签时,可以在两个窗口中分别显示这两个标签的搜索结果。
例如,用户输入文字内容为“A在B地的演唱会”,对应的文字内容的搜索标签为“A在B地的演唱会”。拆分出的关键词的搜索标签为“A”、“B地”和“演唱会”。在对多个搜索标签分别搜索后,搜索界面可以如图3所示,搜索标签区域中,可以显示文字内容和多个关键词的搜索标签。在用户选取了搜索标签“A在B地的演唱会”和“A”时。两个第一窗口可以分别对这两个标签的搜索结果进行显示,在左边的第一窗口中,显示搜索标签“A在B地的演唱会”的搜索结果,在右边的第一窗口中,显示搜索标签“A”的搜索结果。
在一个示例中,在用户选择了多个搜索标签之后,还可以将搜索标签区域中的对应标签突出显示,例如,高亮、放大、加粗、改变背景颜色或者加下划线等。
在另一个示例中,在用户选择多个搜索标签之后,还可以对搜索标签区域或搜索标签进行其他输入,例如滑动输入、点击输入等,来改变用户选中的搜索标签。
本申请实施例提供了一种搜索方法,该方法包括在输入框显示文字内容的情况下,根据文字内容确定多个关键词,并显示跟文字内容和关键词对应的搜索标签,之后可以接收用户对第一标签的输入,在第一窗口中显示对应的搜索结果。基于该方法,可以在用户输入了想要搜索的文本内容之后,对用户输入的文本内容和其中的关键词分别进行搜索,增加用户获取的搜索结果数量,还使得用户还想要对输入内容的部分进行检索时,不再需要重新输入要检索的部分内容,简化用户操作提升了用户的体验和效率。同时,用户还可以同时选择多个搜索标签,并将这多个搜索标签对应内容的搜索结果同时显示在多个第一窗口中,方便用户快速比对多个不同内容的搜索结果,提高搜索效率,提高用户体验。
在本申请的一个实施例中,本申请实施例提供的所述方法在上述S1100之前还包括 S1400。
S1400,显示多个拆分维度选项;接收针对多个拆分维度选项中的目标拆分维度选项的第二输入。
在一个示例中,可以在用户输入了想要搜索的文字内容之后,在界面中显示多个拆分维度选项。拆分维度选项对应的拆分维度就是后续对文字内容拆分,获得关键词的过程中,进行拆分的依据。
在一个示例中,显示多个拆分维度选项的界面可以如图4所示,该界面中可以设置有多个拆分维度的选项,例如语义识别、名词、动词、形容词、语种等。
在一个示例中,用户可以通过点击、划动、语音控制等多种方式,在多个拆分维度选项中,选择用户的目标拆分维度选项,目标拆分维度选项的数量可以是一个或者多个。
在另一个示例中,在显示多个拆分维度选项的界面中,还可以显示有关键词搜索功能的开关,通过选择该开关可以控制是否要对文字进行拆分,以获得对应的关键词。
在上述S1400的基础上,上述S1100中的根据文字内容确定多个关键词,可通过如下S1110来实现:
S1110,在输入框显示文字内容的情况下,响应于第二输入,根据目标拆分维度选项对应的拆分维度对文字内容进行拆分以得到所述多个关键词。
在一个示例中,用户在选择了目标拆分维度选项之后,可以根据目标拆分维度选项对应拆分维度,对文字内容进行拆分,获得多个关键词。
例如,输入框中文字内容为“A在B地的演唱会,B地的酒店”,在用户选取的拆分维度选项为语义识别时,可以识别出文字内容包括两个不同的语义,并根据这两个不同的语义,将文字内容拆分出“A在B地的演唱会”和“B地的酒店”两个关键词。又例如,在用户选取的拆分维度选项为名词时,可以将文字内容中的名词进行拆分,例如人名“A”,地名“B地”,“演唱会”和“酒店”等。动词、形容词与名词同理,在这里不做过多赘述。又例如,在拆分维度选项为“英文”时,待拆分内容为“A在B地的演唱会”其中A和B地分别为英文的人名和地名,此时,可以将文字内容中英文的部分“A”和“B”作为文字内容的关键词。
在另一个示例中,用户选取的拆分维度选项可以为多个,例如,文字内容为“A在健身房锻炼”,在用户选取的拆分维度选项为名词和动词时,可以将文字内容中的名词和动词进行拆分,获得“A”,“健身房”,“锻炼”等关键词。
在本实施例中,在用户进行搜索之前,可以预先显示拆分维度选项,供用户选择拆分文字内容时的拆分维度,以获得用户想要搜索的关键词,以便后续显示该关键词对应的搜索结果。
在一个实施例中,上述S1100中的根据文字内容确定多个关键词,可通过如下S1120来实现:
S1120,在文字内容满足预设条件的情况下,根据文字内容确定多个关键词,其中,预设条件包括以下至少一项:语义不完整、语言结构不完整、字数大于第一预设值、包括标 点字符、包括预设种类词语、文字内容的搜索结果数量小于第二预设值。
例如,在文字内容为“枯萎干枯”时,文字内容没有一个完整的语义,此时可以将文字内容进行拆分处理,获得对应的关键词“枯萎”、“干枯”。再如,在文字内容为“枯萎干枯”时,文字内容没有一个完整的句式结构,因此,也可以判断用户想要同时搜索这两个词,将文字内容进行拆分处理,获得对应的关键词。再如,第一预设值为10,在文字内容为“比较、比拟、对比、对照、对比的近义词”时,文字内容的字数大于预设阈值,只对该文字内容进行搜索明显不能满足用户的信息获取需求,此时可以对文字内容进行拆分,获得对应的关键词“比较”、“比拟”、“对比”、“对照”和“对比的近义词”等。以便后续对这些关键词对应的内容进行搜索。再如,还可以在文字内容有标点符号,例如“、”“;”“。”的情况下,以及,文字内容中包含预设种类的词语,如书名、人名、地名等情况下,对文字内容进行拆分。
在一个示例中,在文字内容符合任一预设条件的情况下,对文字内容进行拆分处理,可以基于用户选择的目标拆分维度或者用户选择的关键词等其他方式进行拆分处理。
在本实施例中,在用户在输入框内输入文字内容之后,可以对显示的文字内容是否满足预设条件进行判断,智能的确认用户是否需要拆分内容进行搜索。并只在满足预设条件的情况下对文字内容拆分处理,避免用户不需要拆分关键词进行搜索时,浪费处理资源和搜索资源。
在本实施例的一个示例中,预设条件还可以包括文字内容的搜索结果小于第二预设值。当用户在输入框输入文字内容之后,后台可以先对文字内容进行搜索,并确定文字内容中可以搜索到的搜索结果的数量,在搜索结果的数量较少,小于第二预设值的情况下,再对文字内容进行拆分处理。
在本实施例中,在用户输入文字内容之后,后台可以先对文字内容进行搜索,并确定文字内容的搜索结果数量,在该数量较少时,对文字内容进行拆分处理,获得文字内容的关键词,以便后续显示关键词的搜索结果。通过这种方式,可以在用户搜索可以获得的信息数量较少时,还搜索文字内容中的关键词,以便获取更多用户可能需要的信息,提升用户的使用体验。
在一个实施例中,上述S1100中的根据文字内容确定多个关键词,可通过如下S1130和S1140来实现:
S1130,拆分文字内容以得到多个词语;
S1140,在多个词语中包括语义相同的词语的情况下,删除语义相同的重复词语以得到所述多个关键词。
在本实施例中,在输入框显示文字内容的情况下,可以基于用户选择的目标拆分维度或者其他方式对该文字内容进行拆分处理,得到多个词语。并对这些词语,进行语义识别。
在对文字进行拆分,获取到多个词语之后,获取到的多个词语中可能会包括有语义相同或者相似的词语。例如,用户输入的文字内容拆分出来的多个词语包括“刘备”、“刘皇叔”、“刘玄德”时,经过识别,这三个词语的语义相同,都是指代刘备这个历史人物,此 时,可以删除“刘皇叔”、“刘玄德”这两个词语,只保留“刘备”这个词语作为关键词。
在另一个例子中,语义相同或者相似的词语中,也可以包括完全相同的词语。例如,文字内容为“A在B地的演唱会,B地的酒店”,在通过名词维度对文字内容进行拆分时,拆分出的词语为“A”、“B地”、“演唱会”、“B地”和“酒店”这五个词语。其中,有两个完全相同的词语“B地”,此时可以直接删除后一个词语“B地”,保留“A”、“B地”、“演唱会”和“酒店”这四个词语,作为关键词。
在本实施例中,在对文字内容进行拆分之后,还可以根据拆分出来的词语的语义,对拆分出的词语进行过滤,以去除语义相同或者相似的词语,避免重复或者语义相近的关键词进行搜索时,浪费处理资源和搜索资源。
在一个实施例中,上述S1100中的根据文字内容确定多个关键词,可通过如下S1150和S1160来实现:
S1150,拆分文字内容以得到多个词语;
S1160,在多个词语中包括相关联的词语的情况下,合并相关联的词语以得到多个关键词。
在本实施例中,在输入框显示文字内容的情况下,可以基于用户选择的目标拆分维度或者其他方式对该文字内容进行拆分处理,得到多个词语。并确定这些词语是否相关联。
在本实施例中,两个词语相关联,可以包括多种情况,比如两个词语分别为某个地区与该地区内的具体建筑物、景点等。例如,在文字内容为“上海哪里好玩,东方明珠”时,将文字内容拆分出“上海”和“东方明珠”两个词语,之后,确定这两个词语也相关联,在这种情况下,可以将“上海”和“东方明珠”这两个词语合并,将“上海东方明珠”作为关键词,在后续搜索时,可以只获得上海东方明珠这个建筑物的搜索结果,不会获得其他东方明珠相关的搜索结果。
在另一个例子中,两个词语相关联,还可以是两个词语分别某个人物和这个人的作品、事迹等。以及某些常见搭配的词语,或者具有包容关系的两个词语等。
在本例中,在对输入框中的文字内容拆分,获得多个词语之后,可以将多个词语中相关联的词语进行合并,并将合并后的词语作为关键词,使关键词更加具体和贴合用户的原本想法。以便获得更加精准的,符合用户需求的关键词的搜索结果。
在一个实施例中,上述S1100中的根据文字内容确定多个关键词,可通过如下S1170和S1180来实现。
S1170,接收用户对于文字内容中的目标内容的选取输入。
S1180,将目标内容作为所述文字内容的关键词。
在一个示例中,用户的第一输入还可以包括对于文字内容中的目标内容的选取输入,在一个例子中,用户可以在输入框或者手动设置界面内输入文字内容上进行选取。例如,如图5所示,用户在输入框中输入文字内容之后,可以显示一个手动设置界面,在该界面上,可以显示有输入框中的文字内容。用户可以通过框选或者调节光标的方式,确定需要 拆分的关键词。在图5示例中,用户用光标选中了文字内容中的演唱会作为目标内容,后续基于用户的选取输入,就会将“演唱会”作为文字内容的关键词。
在另一个示例中,步骤S1170也可以在通过维度拆分关键词或者基于预设条件拆分关键词未能拿拆分出关键词时进行。
在本实施例中,在用户进行搜索之前,可以对文字内容进行手动拆分,获得用户想要搜索的关键词标签,以便后续显示该关键词标签对应的搜索结果。
在一个实施例中,方法还包括:接收用户对于第一标签的第三输入;响应于第三输入,调整多个搜索标签的位置关系,以及,调整多个搜索标签的搜索结果在多个第一窗口中的位置关系。
在一个示例中,用户可以在多个第一窗口显示多个第一标签的搜索标签的结果之后,对其中一个或多个第一标签继续进行操作,例如,点击并长按拖动其中一个搜索标签,将其拖动到的其他位置,或者依次点击这两个目标搜索标签。调整这两个搜索标签的位置关系,将其位置互换。在此基础上,还可以同步将两个第一窗口中,两个搜索标签的搜索结果的位置进行改变。
例如,如图6所示,第一标签分别为“A在B地的演唱会”和“A”。用户拖动搜索标签“A”到搜索标签“A在B地的演唱会”左侧后,对应的,左侧第一窗口中的标签“A在B地的演唱会”的搜索结果,也可以同步调整,调整为搜索标签“A”的搜索结果,并将右侧的第一窗口的搜索结果,调整为标签“A在B地的演唱会”的搜索结果。
在本实施例中,用户可以通过多个搜索标签的位置关系,来改变多个第一窗口中对应的搜索结果的位置。使用户可以根据自己的使用习惯灵活的调整界面,提高用户的体验。
本申请实施例提供的搜索方法,执行主体可以为搜索装置。本申请实施例中以搜索装置执行搜索的方法为例,说明本申请实施例提供的搜索的装置。
本申请实施例提供了一种搜索装置700,如图7所示,包括:
确定模块710,用于在输入框显示文字内容的情况下,根据文字内容确定多个关键词并显示多个搜索标签,多个搜索标签包括分别与多个关键词对应的搜索标签和与文字内容对应的搜索标签;
第一接收模块720,用于接收针对多个搜索标签中的第一标签的第一输入;
第一响应模块730,用于,响应于第一输入,在第一窗口显示与第一标签对应的关键词的搜索结果;
其中第一窗口的数量与第一标签的数量相同。
在本实施例中,提供了一种搜索装置,可以在用户输入了想要搜索的文本内容之后,对用户输入的文本内容和其中的关键词分别进行搜索,增加用户获取的搜索结果数量,还使得用户还想要对输入内容的部分进行检索时,不再需要重新输入要检索的部分内容,简化用户操作提升了用户的体验和效率。同时,用户还可以同时选择多个搜索标签,并将这多个搜索标签对应内容的搜索结果同时显示在多个第一窗口中,方便用户快速比对多个不 同内容的搜索结果,提高搜索效率,提高用户体验。
在本申请的一个实施例中,装置还包括:显示模块740,用于显示多个拆分维度选项;第二接收模块750,还用于接收针对多个拆分维度选项中的目标拆分维度选项的第二输入;确定模块710,具体用于在输入框显示文字内容的情况下,响应于所述第二输入,根据目标拆分维度选项对应的拆分维度对文字内容进行拆分以得到多个关键词。
在本申请的一个实施例中,确定模块710,具体用于:在文字内容满足预设条件的情况下,根据文字内容确定多个关键词,其中,预设条件包括以下至少一项:语义不完整、语言结构不完整、字数大于第一预设值、包括标点字符、包括预设种类词语、文字内容的搜索结果数量小于第二预设值。
在本申请的一个实施例中,确定模块710,包括:第一拆分模块,用于拆分文字内容以得到多个词语;删除模块,用于在多个词语中包括语义相同的词语的情况下,删除语义相同的重复词语以得到多个关键词。
在本申请的一个实施例中,确定模块710,还包括:第二拆分模块,用于拆分文字内容以得到多个词语;合并模块,用于在多个词语中包括相关联的词语的情况下,合并相关联的词语以得到多个关键词。
本申请实施例中的搜索装置可以是电子设备,也可以是电子设备中的部件,例如集成电路或芯片。该电子设备可以是终端,也可以为除终端之外的其他设备。示例性的,电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车载电子设备、移动上网装置(Mobile Internet Device,MID)、增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备、机器人、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,还可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。
本申请实施例中的搜索装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。
本申请实施例提供的搜索装置能够实现图1至图6对应的方法实施例实现的各个过程,为避免重复,这里不再赘述。
可选地,如图8所示,本申请实施例还提供一种电子设备800,包括处理器801和存储器802,存储器802上存储有可在所述处理器801上运行的程序或指令,该程序或指令被处理器801执行时实现上述搜索方法实施例的各个步骤,且能达到相同的技术效果,为避免重复,这里不再赘述。
图9为实现本申请实施例的一种电子设备的硬件结构示意图。
该电子设备1000包括但不限于:射频单元1001、网络模块1002、音频输出单元1003、输入单元1004、传感器1005、显示单元1006、用户输入单元1007、接口单元1008、存储 器1009、以及处理器1010等部件。
本领域技术人员可以理解,电子设备1000还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器1010逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图9中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。
其中,处理器1010用于在输入框显示文字内容的情况下,根据文字内容确定多个关键词并显示多个搜索标签,多个搜索标签包括分别与多个关键词对应的搜索标签和与文字内容对应的搜索标签;
输入单元1004用于接收针对多个搜索标签中的第一标签的第一输入;
显示单元1006,响应于第一输入,在第一窗口显示与第一标签对应的搜索结果;其中第一窗口的数量与第一标签的数量相同。
本申请实施例提供了一种电子设备,可以在用户输入了想要搜索的文本内容之后,对用户输入的文本内容和其中的关键词分别进行搜索,增加用户获取的搜索结果数量,还使得用户还想要对输入内容的部分进行检索时,不再需要重新输入要检索的部分内容,简化用户操作提升了用户的体验和效率。同时,用户还可以同时选择多个搜索标签,并将这多个搜索标签对应内容的搜索结果同时显示在多个第一窗口中,方便用户快速比对多个不同内容的搜索结果,提高搜索效率,提高用户体验。
可选地,显示单元1006用于显示多个拆分维度选项;
输入单元1004用于接收针对多个拆分维度选项中的目标拆分维度选项的第二输入;
处理器1010用于在输入框显示文字内容的情况下,响应于所述第二输入,根据目标拆分维度选项对应的拆分维度对文字内容进行拆分以得到多个关键词。
可选地,处理器1010,还用于在文字内容满足预设条件的情况下,根据文字内容确定多个关键词其中,预设条件包括以下至少一项:语义不完整、语言结构不完整、字数大于第一预设值、包括标点字符、包括预设种类词语、文字内容的搜索结果数量小于第二预设值。
可选地,处理器1010,还用于拆分文字内容以得到多个词语;
在多个词语中包括语义相同的词语的情况下,删除语义相同的重复词语以得到多个关键词。
可选地,处理器1010,还用于拆分文字内容以得到多个词语;
在多个词语中包括相关联的词语的情况下,合并相关联的词语以得到多个关键词。
应理解的是,本申请实施例中,输入单元1004可以包括图形处理器(Graphics Processing Unit,GPU)10041和麦克风10042,图形处理器10041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元1006可包括显示面板10061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板 10061。用户输入单元1007包括触控面板10071以及其他输入设备10072中的至少一种。触控面板10071,也称为触摸屏。触控面板10071可包括触摸检测装置和触摸控制器两个部分。其他输入设备10072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
存储器1009可用于存储软件程序以及各种数据。存储器1009可主要包括存储程序或指令的第一存储区和存储数据的第二存储区,其中,第一存储区可存储操作系统、至少一个功能所需的应用程序或指令(比如声音播放功能、图像播放功能等)等。此外,存储器1009可以包括易失性存储器或非易失性存储器,或者,存储器1009可以包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data Rate SDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synch link DRAM,SLDRAM)和直接内存总线随机存取存储器(Direct Rambus RAM,DRRAM)。本申请实施例中的存储器1009包括但不限于这些和任意其它适合类型的存储器。
处理器1010可包括一个或多个处理单元;可选的,处理器1010集成应用处理器和调制解调处理器,其中,应用处理器主要处理涉及操作系统、用户界面和应用程序等的操作,调制解调处理器主要处理无线通信信号,如基带处理器。可以理解的是,上述调制解调处理器也可以不集成到处理器1010中。
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述搜索方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
其中,所述处理器为上述实施例中所述的电子设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器ROM、随机存取存储器RAM、磁碟或者光盘等。
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述搜索方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如上述搜索方法实施例的各个过程,且能达到相同的技术 效果,为避免重复,这里不再赘述。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。

Claims (15)

  1. 一种搜索方法,包括:
    在输入框显示文字内容的情况下,根据所述文字内容确定多个关键词并显示多个搜索标签,所述多个搜索标签包括分别与多个关键词对应的搜索标签和与所述文字内容对应的搜索标签;
    接收针对所述多个搜索标签中的第一标签的第一输入;
    响应于所述第一输入,在第一窗口显示与所述第一标签对应的搜索结果;
    其中所述第一窗口的数量与所述第一标签的数量相同。
  2. 根据权利要求1所述的方法,其中,在所述根据所述文字内容确定多个关键词并显示多个搜索标签之前,所述方法包括:
    显示多个拆分维度选项;
    接收针对多个拆分维度选项中的目标拆分维度选项的第二输入;
    所述在输入框显示文字内容的情况下,根据所述文字内容确定多个关键词包括:
    在输入框显示文字内容的情况下,响应于所述第二输入,根据所述目标拆分维度选项对应的拆分维度对所述文字内容进行拆分,以得到所述多个关键词。
  3. 根据权利要求1所述的方法,其中,所述根据所述文字内容确定多个关键词包括:
    在所述文字内容满足预设条件的情况下,根据所述文字内容确定多个关键词,其中,所述预设条件包括以下至少一项:语义不完整、语言结构不完整、字数大于第一预设值、包括标点字符、包括预设种类词语、所述文字内容的搜索结果数量小于第二预设值。
  4. 根据权利要求1所述的方法,其中,所述根据所述文字内容确定多个关键词包括:
    拆分所述文字内容以得到多个词语;
    在所述多个词语中包括语义相同的词语的情况下,删除语义相同的重复词语以得到所述多个关键词。
  5. 根据权利要求1所述的方法,其中,所述根据所述文字内容确定多个关键词包括:
    拆分所述文字内容以得到多个词语;
    在所述多个词语中包括相关联的词语的情况下,合并所述相关联的词语以得到所述多个关键词。
  6. 一种搜索装置,包括:
    确定模块,用于在输入框显示文字内容的情况下,根据所述文字内容确定多个关键词并显示多个搜索标签,所述多个搜索标签包括分别与多个关键词对应的搜索标签和与所述文字内容对应的搜索标签;
    第一接收模块,用于接收针对所述多个搜索标签中的第一标签的第一输入;
    第一响应模块,用于响应于所述第一输入,在第一窗口显示与所述第一标签对应的搜索结果;
    其中所述第一窗口的数量与所述第一标签的数量相同。
  7. 根据权利要求6所述的装置,还包括:
    显示模块,用于显示多个拆分维度选项;
    第二接收模块,还用于接收针对多个拆分维度选项中的目标拆分维度选项的第二输入;
    所述确定模块,具体用于在输入框显示文字内容的情况下,响应于所述第二输入,根据所述目标拆分维度选项对应的拆分维度对所述文字内容进行拆分,以得到所述多个关键词。
  8. 根据权利要求6所述的装置,其中,所述确定模块,具体用于:
    在所述文字内容满足预设条件的情况下,根据所述文字内容确定多个关键词,其中,所述预设条件包括以下至少一项:语义不完整、语言结构不完整、字数大于第一预设值、包括标点字符、包括预设种类词语、所述文字内容的搜索结果数量小于第二预设值。
  9. 根据权利要求6所述的装置,其中,所述确定模块包括:
    第一拆分模块,用于拆分所述文字内容以得到多个词语;
    删除模块,用于在所述多个词语中包括语义相同的词语的情况下,删除语义相同的重复词语以得到所述多个关键词。
  10. 根据权利要求6所述的装置,其中,所述确定模块还包括:
    第二拆分模块,用于拆分所述文字内容以得到多个词语;
    合并模块,用于在所述多个词语中包括相关联的词语的情况下,合并相关联的词语以得到所述多个关键词。
  11. 一种电子设备,包括处理器和存储器,所述存储器存储可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5任一项所述的搜索方法的步骤。
  12. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5任一项所述的搜索方法的步骤。
  13. 一种芯片,包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-5中任一项所述的搜索方法的步骤。
  14. 一种计算机程序产品,所述程序产品被存储在存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-5中任一项所述的搜索方法的步骤。
  15. 一种电子设备,所述电子设备被配置成执行如权利要求1-5中任一项所述的搜索方法的步骤。
PCT/CN2024/098441 2023-06-15 2024-06-11 搜索方法、装置、设备及介质 Ceased WO2024255733A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202310714225.2A CN116775982A (zh) 2023-06-15 2023-06-15 搜索方法、装置、设备及介质
CN202310714225.2 2023-06-15

Publications (1)

Publication Number Publication Date
WO2024255733A1 true WO2024255733A1 (zh) 2024-12-19

Family

ID=87990754

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2024/098441 Ceased WO2024255733A1 (zh) 2023-06-15 2024-06-11 搜索方法、装置、设备及介质

Country Status (2)

Country Link
CN (1) CN116775982A (zh)
WO (1) WO2024255733A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116775982A (zh) * 2023-06-15 2023-09-19 维沃移动通信有限公司 搜索方法、装置、设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160224617A1 (en) * 2015-02-04 2016-08-04 Naver Corporation System and method for providing search service using tags
CN106980631A (zh) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 通过移动终端进行搜索的方法和装置
CN111831938A (zh) * 2020-06-17 2020-10-27 维沃移动通信有限公司 信息显示方法、装置、电子设备及介质
CN112559763A (zh) * 2020-12-09 2021-03-26 用友网络科技股份有限公司 搜索结果召回方法、装置和可读存储介质
CN115329193A (zh) * 2022-08-03 2022-11-11 北京达佳互联信息技术有限公司 信息搜索方法、装置、电子设备及存储介质
CN115840851A (zh) * 2022-12-02 2023-03-24 深圳市富途网络科技有限公司 业务内容搜索的方法、装置、设备及存储介质
CN116775982A (zh) * 2023-06-15 2023-09-19 维沃移动通信有限公司 搜索方法、装置、设备及介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105989030A (zh) * 2015-02-02 2016-10-05 阿里巴巴集团控股有限公司 一种文本检索方法和装置
CN105930376B (zh) * 2016-04-12 2019-08-02 Oppo广东移动通信有限公司 一种搜索方法和装置
CN117056622A (zh) * 2019-10-22 2023-11-14 海信视像科技股份有限公司 语音控制方法及显示设备
CN112084395B (zh) * 2020-09-25 2024-11-26 百度国际科技(深圳)有限公司 搜索方法、搜索装置、电子设备和存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160224617A1 (en) * 2015-02-04 2016-08-04 Naver Corporation System and method for providing search service using tags
CN106980631A (zh) * 2016-01-19 2017-07-25 阿里巴巴集团控股有限公司 通过移动终端进行搜索的方法和装置
CN111831938A (zh) * 2020-06-17 2020-10-27 维沃移动通信有限公司 信息显示方法、装置、电子设备及介质
CN112559763A (zh) * 2020-12-09 2021-03-26 用友网络科技股份有限公司 搜索结果召回方法、装置和可读存储介质
CN115329193A (zh) * 2022-08-03 2022-11-11 北京达佳互联信息技术有限公司 信息搜索方法、装置、电子设备及存储介质
CN115840851A (zh) * 2022-12-02 2023-03-24 深圳市富途网络科技有限公司 业务内容搜索的方法、装置、设备及存储介质
CN116775982A (zh) * 2023-06-15 2023-09-19 维沃移动通信有限公司 搜索方法、装置、设备及介质

Also Published As

Publication number Publication date
CN116775982A (zh) 2023-09-19

Similar Documents

Publication Publication Date Title
CN112631437B (zh) 信息推荐方法、装置及电子设备
CN110858100B (zh) 联想候选词生成方法及装置
WO2021254251A1 (zh) 输入显示方法、装置及电子设备
WO2023202579A9 (zh) 信息显示方法、装置及电子设备
WO2023083158A1 (zh) 文本选择方法、文本选择装置和电子设备
WO2025051087A1 (zh) 聊天内容的处理方法和装置
CN112882619B (zh) 应用界面的管理方法、装置、电子设备及介质
CN112383662B (zh) 信息显示方法、装置和电子设备
WO2024255733A1 (zh) 搜索方法、装置、设备及介质
CN113157966B (zh) 显示方法、装置及电子设备
CN114237451A (zh) 信息获取方法、装置、电子设备和可读存储介质
WO2023045919A1 (zh) 文字编辑方法和装置
CN116033094A (zh) 视频编辑方法及装置
CN115309487A (zh) 显示方法、装置、电子设备和可读存储介质
CN113238686B (zh) 文档处理方法、装置和电子设备
WO2022105754A1 (zh) 输入文字的方法、装置和电子设备
WO2024149183A1 (zh) 文档显示方法、装置及电子设备
CN111930245A (zh) 字符输入控制方法、装置及电子设备
WO2024109699A1 (zh) 显示方法、装置、电子设备及介质
WO2025055822A1 (zh) 粘贴方法、装置和电子设备
WO2025036319A1 (zh) 应用程序搜索方法、装置、设备和存储介质
WO2024235088A1 (zh) 视频编辑方法、装置、电子设备和存储介质
CN113849711B (zh) 对象搜索方法、装置、电子设备及存储介质
CN113127629B (zh) 关键字搜索方法、装置及电子设备
CN113010072A (zh) 搜索方法、装置、电子设备及可读存储介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 24822683

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE