WO2022257883A1 - Presentation method and presentation apparatus - Google Patents

Presentation method and presentation apparatus Download PDF

Info

Publication number
WO2022257883A1
WO2022257883A1 PCT/CN2022/097134 CN2022097134W WO2022257883A1 WO 2022257883 A1 WO2022257883 A1 WO 2022257883A1 CN 2022097134 W CN2022097134 W CN 2022097134W WO 2022257883 A1 WO2022257883 A1 WO 2022257883A1
Authority
WO
WIPO (PCT)
Prior art keywords
retrieval
search
result
feature vector
search result
Prior art date
Application number
PCT/CN2022/097134
Other languages
French (fr)
Chinese (zh)
Inventor
姚攀
刘聪
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2022257883A1 publication Critical patent/WO2022257883A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9538Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/205Parsing
    • G06F40/216Parsing using statistical methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning

Definitions

  • the present application belongs to the technical field of computers, and in particular relates to a display method and a display device.
  • the purpose of the embodiments of the present application is to provide a display method and a display device, which can solve the problem that the mobile terminal cannot preferentially display local or networked search results according to the user's search intention when the user performs a global search.
  • the embodiment of the present application provides a presentation method, which includes: performing a global search based on query words, wherein the global search includes local search and network search; obtaining the first search result, wherein the second A search result is the search result of the local search; based on the query word and the first search result, the first search result or the second search result is displayed, wherein the second search result is the online search result
  • the search results of the search includes: performing a global search based on query words, wherein the global search includes local search and network search; obtaining the first search result, wherein the second A search result is the search result of the local search; based on the query word and the first search result, the first search result or the second search result is displayed, wherein the second search result is the online search result
  • the search results of the search includes: performing a global search based on query words, wherein the global search includes local search and network search; obtaining the first search result, wherein the second A search result is the search result of the local search; based on the query word and the first search result
  • an embodiment of the present application provides a display device, which includes a retrieval module for performing global retrieval based on query words, wherein the global retrieval includes local retrieval and network retrieval; an acquisition module for obtaining the first A search result, wherein, the first search result is the search result of the local search; a display module, configured to display the first search result or the second search result based on the query word and the first search result As a result, the second search result is the search result of the online search.
  • an embodiment of the present application provides a terminal device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
  • an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
  • the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
  • an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product 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 configured to execute the method described in the first aspect.
  • a global search is performed according to the query words, and the first search result, that is, the search result of the local search is obtained, and then based on the query words and the first search result, the first search result or the second search result is displayed.
  • Fig. 1 is a schematic flow chart of the presentation method provided by the embodiment of the present application.
  • Fig. 2 is another schematic flowchart of the presentation method provided by the embodiment of the present application.
  • Fig. 3 is a schematic structural view of a display device provided by an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a terminal device provided in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a hardware structure of a terminal device provided by an embodiment of the present application.
  • FIG. 1 shows a schematic flowchart of a presentation method provided by an embodiment of the present application, and the method 100 may be executed by a terminal device.
  • the method may be executed by software or hardware installed in the terminal device.
  • the method may include the following steps.
  • the global search includes local search and network search.
  • the user when performing a global search, the user enters query words in the search box of the terminal device, and after clicking the search button, the terminal device will simultaneously perform local search and network search based on the query words.
  • performing the global search according to the query word may include: when the character length of the query word is greater than a first threshold, segmenting the query word by character; words for the global search. For example, if the query word is "Mobile Taobao", and the character length of "Mobile Taobao" is greater than the first threshold, "Mobile Taobao” is segmented to obtain two words “Mobile” and “Taobao", and then according to "Mobile " and "Taobao” for global search.
  • the first retrieval result is a retrieval result of the local retrieval.
  • the terminal device can preferentially obtain the search results of the local search, that is, the first search result.
  • the terminal device when the terminal device is performing a global search, when the local search returns a search result, it will preferentially obtain the search result of the local search without waiting for the search result returned by the networked search.
  • S130 Display the first search result or the second search result based on the query word and the first search result.
  • the second retrieval result is a retrieval result of online retrieval.
  • it may be determined whether to display the first search result or the second search result to the user according to the query word input by the user and the search result returned by the local search, that is, the first search result.
  • presenting the first search result or the second search result may include: predicting based on the query word and the first search result The user's retrieval intention; if the user's retrieval intention is the local retrieval, display the first retrieval result, and if the user's retrieval intention is the online retrieval, obtain the second retrieval result, And display the second retrieval result.
  • the ongoing online retrieval is ended, and the local retrieval results are displayed to the user, and the user filters the data information he needs according to the returned results; when the user's retrieval intention is predicted to be online When retrieving, the ongoing online retrieval is continued, and the retrieval results of the online retrieval are displayed to the user. Afterwards, the user performs information screening according to the returned results to screen out the information he needs.
  • the user's search intention is local search, unnecessary online search can be reduced through this implementation, thereby reducing search time and improving the efficiency of displaying search results.
  • predicting the user's retrieval intention based on the query word and the first retrieval result may include: determining a first feature vector used to characterize the query word; determining a first feature vector used to characterize the first A second eigenvector of the retrieval result; predicting the user's retrieval intention according to the first eigenvector and the second eigenvector.
  • TF-IDF Term Frequency-Inverse Document Frequency
  • determining the first feature vector used to characterize the query word may include: when the character length of the query word is greater than the first In the case of the threshold value, the first feature vector used to characterize each segmented word is determined. For example, the query word is "Mobile Phone Taobao", and after segmentation is "Mobile Phone” and “Taobao", the first feature vector used to characterize the two words “Mobile Phone” and “Taobao” is determined.
  • determining the second feature vector used to characterize the first retrieval result may include: determining the second feature vector according to whether the query word appears in a local category.
  • the local categories may include: files, contacts, short messages, applications, and so on.
  • the second feature vector of the first retrieval result can be [0,1,0,1], wherein, the first value 0 can indicate that the query term does not appear in the file, and the second value 1 can indicate that the query word appears in the contact.
  • the third value 0 can indicate that the query word does not appear in the SMS
  • the fourth value 1 can indicate that the query word appears in the application.
  • predicting the user's retrieval intention according to the first feature vector and the second feature vector may include: obtaining a retrieval intention probability value based on the first feature vector and the second feature vector; When the retrieval intention probability value is greater than the second threshold, it is predicted that the user retrieval intention is the local retrieval; when the retrieval intention probability value is smaller than the second threshold, it is predicted that the user retrieval intention is the online search. search.
  • the first eigenvector and the second eigenvector may be input into the algorithm model as input information to obtain the retrieval intention probability value.
  • the algorithm model can be a logistic regression (Logistic Regression, LR) algorithm model, and the first eigenvector and the second eigenvector are input into the trained LR algorithm model as input information, and the LR algorithm model processes the first eigenvector and the second eigenvector Two eigenvectors, the Sigmoid activation function outputs the retrieval intent probability value, the formula is as follows:
  • the calculation result of the probability value P ranges from (0 to 1).
  • the probability value P is greater than the second threshold, the user’s retrieval intention is predicted to be local retrieval; when the probability value P is less than or equal to the second threshold, the user’s retrieval intention is predicted to be Internet search.
  • the above-mentioned algorithm model is a trained algorithm model.
  • the algorithm model can be trained using sample data, wherein the sample data can include feature vectors corresponding to sample query words and local retrieval of sample query words.
  • the feature vector corresponding to the result and the probability value of the user's retrieval intention corresponding to the sample query word, the feature vector corresponding to the sample query word and the feature vector corresponding to the local retrieval result of the sample query word are used as the input of the algorithm model , the probability value of the user's retrieval intention corresponding to the sample query word is used as an output of the algorithm model, and the algorithm model is trained.
  • Fig. 2 is another schematic flow diagram of the display method provided by the embodiment of the present application.
  • Fig. 2 firstly, in response to the user's input, start the global search, obtain the query words entered by the user, respond to the user's input, and perform the local search and
  • the online search is started at the same time, and the local search returns the search results first, and then predicts whether the user's search intention is a local search. If it is a local search, the search is ended and the search results of the local search are displayed to the user.
  • Temporarily store the search results of the local search and wait for the return of the search results from the network search, and finally display all the returned results together, and display the search results of the network search first.
  • the user's search intention is predicted in advance based on the query word and the first search result, so that when the user's search intention is a local search, the search results of the local search are displayed first, without waiting After the online retrieval is completed, the retrieval results are returned, thus saving retrieval time.
  • the ongoing online retrieval is continued, and the retrieval results of the online retrieval are displayed after the retrieval is completed. It can be seen that, compared with the existing technology, the display method of the above retrieval results is more convenient and has better user experience.
  • the execution subject of the method for displaying search results provided in the embodiment of the present application may be the device for displaying search results, or a control module in the device for displaying search results that is used to execute the method for displaying search results.
  • the method for displaying the search result performed by the device for displaying the search result is taken as an example to describe the device for displaying the search result provided in the embodiment of the present application.
  • Fig. 3 is a schematic structural diagram of a display device provided by an embodiment of the present application.
  • the display device 300 includes: a retrieval module 310 , an acquisition module 320 , and a display module 330 .
  • a retrieval module 310 configured to perform global retrieval according to query words, wherein the global retrieval includes local retrieval and network retrieval;
  • An obtaining module 320 configured to obtain a first search result, wherein the first search result is a search result of the local search
  • the display module 330 is configured to display the first search result or the second search result based on the query word and the first search result, wherein the second search result is a search result of the online search.
  • the presenting module 330 displaying the first search result or the second search result based on the query word and the first search result includes: based on the query word and the first search result The result predicts the user's retrieval intention; if the user's retrieval intention is the local retrieval, display the first retrieval result, and if the user's retrieval intention is the online retrieval, obtain the second retrieval results, and display the second search result.
  • the retrieval module 310 performing global retrieval according to the query includes: when the character length of the query is greater than a first threshold, segmenting the query by character; The global search is performed for each word of .
  • the presentation module 330 predicting the user's retrieval intention based on the query word and the first retrieval result includes: determining a first feature vector used to characterize the query word; determining a feature vector used to characterize the A second feature vector of the first search result; predicting a user's search intention according to the first feature vector and the second feature vector.
  • the display module 330 determining the second feature vector used to characterize the first retrieval result includes: determining the second feature vector according to whether the query word appears in the local category, the local Vertical categories include files, contacts, text messages and applications.
  • the display module 330 predicting the user's retrieval intention according to the first feature vector and the second feature vector includes: obtaining the retrieval intention probability based on the first feature vector and the second feature vector value; in the case where the retrieval intention probability value is greater than the second threshold, it is predicted that the user retrieval intention is the local retrieval, and in the case that the retrieval intention probability value is smaller than the second threshold, the user retrieval intention is predicted for the online search.
  • the retrieval module 310 performs a global search according to the query word
  • the acquisition module 320 obtains the first retrieval result
  • the display module 330 displays the first retrieval result or the second retrieval result based on the query word and the first retrieval result. Search Results. In this way, the operation is more convenient and the user experience is better when performing a global search.
  • the display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal.
  • the apparatus may be a mobile terminal device or a non-mobile terminal device.
  • the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant).
  • non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
  • Network Attached Storage NAS
  • personal computer personal computer, PC
  • television television
  • teller machine or self-service machine etc.
  • the display device in the embodiment of the present application may be a device with an operating system.
  • the operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
  • the display device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition.
  • the embodiment of the present application further provides a terminal device 400, including a processor 401, a memory 402, and programs or instructions stored in the memory 402 and operable on the processor 401,
  • a terminal device 400 including a processor 401, a memory 402, and programs or instructions stored in the memory 402 and operable on the processor 401,
  • the program or instruction is executed by the processor 401, the various processes of the above-described method embodiments are realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
  • terminal devices in the embodiments of the present application include the above-mentioned mobile terminal devices and non-mobile terminal devices.
  • FIG. 5 is a schematic diagram of a hardware structure of a terminal device implementing an embodiment of the present application.
  • the terminal device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.
  • the terminal device 500 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 510 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions.
  • a power supply such as a battery
  • the structure of the terminal device shown in FIG. 5 does not constitute a limitation on the terminal device.
  • the terminal device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
  • the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is used for the image capture device (such as the image data of the still picture or video obtained by the camera) for processing.
  • the display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like.
  • the user input unit 507 includes a touch panel 5071 and other input devices 5072 .
  • the touch panel 5071 is also called a touch screen.
  • the touch panel 5071 may include two parts, a touch detection device and a touch controller.
  • Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here.
  • Memory 509 may be used to store software programs as well as various data, including but not limited to application programs and operating systems.
  • the processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 510 .
  • the embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method shown can be achieved, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
  • the processor is the processor in the terminal device described in the foregoing embodiments.
  • the readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
  • the embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement each of the above-mentioned demonstration method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
  • chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
  • the embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the method embodiments shown above, and can achieve the same technical effect, To avoid repetition, details are not repeated here.
  • the embodiment of the present application further provides an electronic device, which is configured to execute the processes of the foregoing demonstration method embodiments, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
  • the term “comprising”, “comprising” or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase “comprising a " does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element.
  • the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.

Abstract

The present application belongs to the technical field of computers. Disclosed are a presentation method, and a presentation apparatus. The method comprises: performing global retrieval according to a query word, wherein the global retrieval comprises local retrieval and networking retrieval; acquiring a first retrieval result, wherein the first retrieval result is a retrieval result of the local retrieval; and on the basis of the query word and the first retrieval result, presenting the first retrieval result or a second retrieval result, wherein the second retrieval result is a retrieval result of the networking retrieval.

Description

展示方法和展示装置Display method and display device
交叉引用cross reference
本发明要求在2021年06月09日提交中国专利局、申请号为202110644685.3、发明名称为“展示方法和展示装置”的中国专利申请的优先权,该申请的全部内容通过引用结合在本发明中。The present invention claims the priority of the Chinese patent application submitted to the China Patent Office on June 9, 2021, with the application number 202110644685.3, and the title of the invention is "Display Method and Display Device", the entire content of which is incorporated by reference in this application .
技术领域technical field
本申请属于计算机技术领域,具体涉及一种展示方法和展示装置。The present application belongs to the technical field of computers, and in particular relates to a display method and a display device.
背景技术Background technique
随着计算机技术的发展,用户对数据检索的便捷性要求越来越高。目前,用户在移动终端进行全局检索时,移动终端会返回本地检索结果(短信、联系人、文件等)和联网检索结果(百科、视频、小说等)。但是,目前检索结果展示上屏的时候,没有明确用户点击意图在本地还是联网,这极大影响了用户体验,且联网检索结果受数据量与网络影响返回数据相比于本地结果较慢,这也影响了检索意图为本地结果的用户体验。With the development of computer technology, users have higher and higher requirements for the convenience of data retrieval. At present, when a user performs a global search on a mobile terminal, the mobile terminal will return local search results (text messages, contacts, files, etc.) and network search results (encyclopedias, videos, novels, etc.). However, when the current search results are displayed on the screen, it is not clear whether the user’s click intention is local or online, which greatly affects the user experience, and the online search results are affected by the amount of data and the network. The returned data is slower than the local results. It also affects the user experience when searching for local results.
针对于上述现象,部分应用给出了处理方案,但是给出的处理方案仍然难以满足用户在检索意图为联网或本地结果时,优先展示对应联网或本地检索相关结果,造成用户需要在每次点击查询词后,切换或者额外花时间等待结果,或展示不符合预期等繁琐操作。Aiming at the above phenomenon, some applications have provided solutions, but the given solutions are still difficult to satisfy the user when the search intention is online or local results, and the corresponding online or local search results are displayed first, causing users to need to click each time After querying words, switch or spend extra time waiting for results, or display cumbersome operations that do not meet expectations.
发明内容Contents of the invention
本申请实施例的目的是提供一种展示方法和展示装置,能够解决用户在进行全局检索时,移动终端无法根据用户检索意图优先展示本地检索或联网检索结果的问题。The purpose of the embodiments of the present application is to provide a display method and a display device, which can solve the problem that the mobile terminal cannot preferentially display local or networked search results according to the user's search intention when the user performs a global search.
第一方面,本申请实施例提供了一种展示方法,该方法包括:根据查询词进行全局检索,其中,所述全局检索包括本地检索和联网检索;获取第一检索结果,其中,所述第一检索结果为所述本地检索的检索结果;基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果,其中,所述第二检索结果为所述联网检索的检索结果。In the first aspect, the embodiment of the present application provides a presentation method, which includes: performing a global search based on query words, wherein the global search includes local search and network search; obtaining the first search result, wherein the second A search result is the search result of the local search; based on the query word and the first search result, the first search result or the second search result is displayed, wherein the second search result is the online search result The search results of the search.
第二方面,本申请实施例提供了一种展示装置,该装置包括检索模块,用于根据查询词进行全局检索,其中,所述全局检索包括本地检索和联网检索;获取模块,用于获取第一检索结果,其中,所述第一检索结果为所述本地检索的检索结果;显示模块,用于基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果,其中,所述第二检索结果为所述联网检索的检索结果。In the second aspect, an embodiment of the present application provides a display device, which includes a retrieval module for performing global retrieval based on query words, wherein the global retrieval includes local retrieval and network retrieval; an acquisition module for obtaining the first A search result, wherein, the first search result is the search result of the local search; a display module, configured to display the first search result or the second search result based on the query word and the first search result As a result, the second search result is the search result of the online search.
第三方面,本申请实施例提供了一种终端设备,该电子设备包括处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如第一方面所述的方法的步骤。In the third aspect, an embodiment of the present application provides a terminal device, the electronic device includes a processor, a memory, and a program or instruction stored in the memory and operable on the processor, and the program or instruction is The processor implements the steps of the method described in the first aspect when executed.
第四方面,本申请实施例提供了一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如第一方面所述的方法的步骤。In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or an 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 .
第五方面,本申请实施例提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如第一方面所述的方法。In the fifth aspect, the embodiment of the present application provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions, so as to implement the first aspect the method described.
第六方面,本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如第一方面所述的方法。In a sixth aspect, an embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the method described in the first aspect.
第七方面,本申请实施例提供一种电子设备,所述电子设备被配置成用于执行如第一方面所述的方法。In a seventh aspect, an embodiment of the present application provides an electronic device configured to execute the method described in the first aspect.
在本申请实施例中,根据查询词进行全局检索,并获取第一检索结果即 本地检索的检索结果,然后基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果,其中,所述第二检索结果为所述联网检索的检索结果,从而在用户进行全局检索时,能够优先展示本地检索或联网检索的检索结果,使得操作更加便捷,提升用户体验。In the embodiment of the present application, a global search is performed according to the query words, and the first search result, that is, the search result of the local search is obtained, and then based on the query words and the first search result, the first search result or the second search result is displayed. Two search results, wherein the second search result is the search result of the online search, so that when the user performs a global search, the search results of the local search or the network search can be preferentially displayed, making the operation more convenient and improving the user experience.
附图说明Description of drawings
图1是本申请实施例提供的展示方法的一种流程示意图;Fig. 1 is a schematic flow chart of the presentation method provided by the embodiment of the present application;
图2是本申请实施例提供的展示方法的另一种流程示意图;Fig. 2 is another schematic flowchart of the presentation method provided by the embodiment of the present application;
图3是本申请实施例提供的展示装置的一种结构示意图;Fig. 3 is a schematic structural view of a display device provided by an embodiment of the present application;
图4是本申请实施例提供的终端设备的一种结构示意图;FIG. 4 is a schematic structural diagram of a terminal device provided in an embodiment of the present application;
图5是本申请实施例提供的终端设备的一种硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a terminal device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员获得的所有其他实施例,都属于本申请保护的范围。The following will clearly describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, but not all of them. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments in this application belong to the protection scope of this application.
本申请的说明书和权利要求书中的术语“第一”、“第二”等是用于区别类似的对象,而不用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便本申请的实施例能够以除了在这里图示或描述的那些以外的顺序实施,且“第一”、“第二”等所区分的对象通常为一类,并不限定对象的个数,例如第一对象可以是一个,也可以是多个。此外,说明书以及权利要求中“和/或”表示所连接对象的至少其中之一,字符“/”,一般表示前后关联对象是一种“或”的关系。The terms "first", "second" and the like in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific sequence or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances such that the embodiments of the application can be practiced in sequences other than those illustrated or described herein, and that references to "first," "second," etc. distinguish Objects are generally of one type, and the number of objects is not limited. For example, there may be one or more first objects. In addition, "and/or" in the specification and claims means at least one of the connected objects, and the character "/" generally means that the related objects are an "or" relationship.
下面结合附图,通过具体的实施例及其应用场景对本申请实施例提供的展示方法进行详细地说明。The presentation method provided by the embodiment of the present application will be described in detail below through specific embodiments and application scenarios with reference to the accompanying drawings.
图1示出本申请实施例提供的展示方法的一种流程示意图,该方法100可以由终端设备执行。换言之,所述方法可以由安装在终端设备的软件或硬件来执行,如图1所示,该方法可以包括以下步骤。FIG. 1 shows a schematic flowchart of a presentation method provided by an embodiment of the present application, and the method 100 may be executed by a terminal device. In other words, the method may be executed by software or hardware installed in the terminal device. As shown in FIG. 1 , the method may include the following steps.
S110:根据查询词进行全局检索。S110: Perform a global search according to the query word.
其中,所述全局检索包括本地检索和联网检索。在具体应用中,进行全局检索时,用户在终端设备的检索框输入查询词,点击检索按钮后,终端设备根据查询词会同时执行本地检索与联网检索。Wherein, the global search includes local search and network search. In a specific application, when performing a global search, the user enters query words in the search box of the terminal device, and after clicking the search button, the terminal device will simultaneously perform local search and network search based on the query words.
在一种可能的实现方式中,根据查询词进行全局检索可以包括:在所述查询词的字符长度大于第一阈值的情况下,将所述查询词按字符切分;基于切分后的每个词进行所述全局检索。例如,查询词为“手机淘宝”,“手机淘宝”的字符长度大于第一阈值,对“手机淘宝”进行切分,切分后得到“手机”和“淘宝”两个词,然后根据“手机”和“淘宝”进行全局检索。In a possible implementation manner, performing the global search according to the query word may include: when the character length of the query word is greater than a first threshold, segmenting the query word by character; words for the global search. For example, if the query word is "Mobile Taobao", and the character length of "Mobile Taobao" is greater than the first threshold, "Mobile Taobao" is segmented to obtain two words "Mobile" and "Taobao", and then according to "Mobile " and "Taobao" for global search.
S120:获取第一检索结果。S120: Obtain the first retrieval result.
所述第一检索结果为所述本地检索的检索结果。在具体应用中,由于本地检索是在本地垂类(例如:文件、联系人、短信、应用等)中获取结果的,所以终端设备可优先获得本地检索的检索结果即第一检索结果。在本步骤中,终端设备在进行全局检索时,当本地检索返回检索结果时,优先获取本地检索的检索结果,不用等待联网检索返回检索结果。The first retrieval result is a retrieval result of the local retrieval. In a specific application, since the local search results are obtained in local vertical categories (such as files, contacts, short messages, applications, etc.), the terminal device can preferentially obtain the search results of the local search, that is, the first search result. In this step, when the terminal device is performing a global search, when the local search returns a search result, it will preferentially obtain the search result of the local search without waiting for the search result returned by the networked search.
S130:基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果。S130: Display the first search result or the second search result based on the query word and the first search result.
其中,第二检索结果为联网检索的检索结果。在本申请中,可以根据用户输入的查询词和本地检索返回的检索结果即第一检索结果确定向用户展示第一检索结果还是第二检索结果。Wherein, the second retrieval result is a retrieval result of online retrieval. In this application, it may be determined whether to display the first search result or the second search result to the user according to the query word input by the user and the search result returned by the local search, that is, the first search result.
在一种可能的实现方式中,基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果可以包括:基于所述查询词和所述第一检索结果预测用户检索意图;在所述用户检索意图为所述本地检索的情况下, 展示所述第一检索结果,在所述用户检索意图为所述联网检索的情况下,获取所述第二检索结果,并展示所述第二检索结果。In a possible implementation manner, based on the query word and the first search result, presenting the first search result or the second search result may include: predicting based on the query word and the first search result The user's retrieval intention; if the user's retrieval intention is the local retrieval, display the first retrieval result, and if the user's retrieval intention is the online retrieval, obtain the second retrieval result, And display the second retrieval result.
具体的,当预测到用户检索意图为本地检索时,结束还在进行的联网检索,向用户展示本地检索的检索结果,用户根据该返回结果筛选自己需要的数据信息;当预测到用户检索意图联网检索时,继续正在进行的联网检索,并向用户展示联网检索的检索结果,之后,用户根据该返回结果进行信息筛选,筛选出自己所需要的信息。当用户检索意图为本地检索时,通过该实现方式,能够减少不必要的联网检索,从而较少检索时间,提高显示检索结果的效率。Specifically, when it is predicted that the user's retrieval intention is local retrieval, the ongoing online retrieval is ended, and the local retrieval results are displayed to the user, and the user filters the data information he needs according to the returned results; when the user's retrieval intention is predicted to be online When retrieving, the ongoing online retrieval is continued, and the retrieval results of the online retrieval are displayed to the user. Afterwards, the user performs information screening according to the returned results to screen out the information he needs. When the user's search intention is local search, unnecessary online search can be reduced through this implementation, thereby reducing search time and improving the efficiency of displaying search results.
在一种可能的实现方式中,基于所述查询词和所述第一检索结果预测用户检索意图可以包括:确定用于表征所述查询词的第一特征向量;确定用于表征所述第一检索结果的第二特征向量;根据所述第一特征向量和所述第二特征向量预测用户检索意图。In a possible implementation manner, predicting the user's retrieval intention based on the query word and the first retrieval result may include: determining a first feature vector used to characterize the query word; determining a first feature vector used to characterize the first A second eigenvector of the retrieval result; predicting the user's retrieval intention according to the first eigenvector and the second eigenvector.
在具体应用中,可以使用词频-逆文档频率(Term Frequency-Inverse Document Frequency,TF-IDF)算法表征查询词的第一特征向量,例如:[0.1,0,0.2,0,0]。In a specific application, the Term Frequency-Inverse Document Frequency (TF-IDF) algorithm can be used to characterize the first feature vector of the query word, for example: [0.1,0,0.2,0,0].
由于查询词的字符长度可能大于第一阈值,因此,在一种具体的实现方式中,确定用于表征所述查询词的第一特征向量可以包括:在所述查询词的字符长度大于第一阈值的情况下,确定用于表征切分后的每个词的第一特征向量。例如,查询词是“手机淘宝”,切分后是“手机”和“淘宝”,确定用于表征“手机”和“淘宝”两个词的第一特征向量。Since the character length of the query word may be greater than the first threshold, therefore, in a specific implementation manner, determining the first feature vector used to characterize the query word may include: when the character length of the query word is greater than the first In the case of the threshold value, the first feature vector used to characterize each segmented word is determined. For example, the query word is "Mobile Phone Taobao", and after segmentation is "Mobile Phone" and "Taobao", the first feature vector used to characterize the two words "Mobile Phone" and "Taobao" is determined.
在一种可能实现的方式中,确定用于表征所述第一检索结果的第二特征向量可以包括:按照本地垂类是否出现所述查询词确定所述第二特征向量。其中,所述本地垂类可以包括:文件、联系人、短信、应用等。例如,第一检索结果的第二特征向量可以为[0,1,0,1],其中,第一个值0可以表示文件中未出现查询词,第二个值1可以表示联系人中出现查询词,第三个值0可 以表示短信中未出现查询词,第四个值1可以表示应用中出现查询词。In a possible implementation manner, determining the second feature vector used to characterize the first retrieval result may include: determining the second feature vector according to whether the query word appears in a local category. Wherein, the local categories may include: files, contacts, short messages, applications, and so on. For example, the second feature vector of the first retrieval result can be [0,1,0,1], wherein, the first value 0 can indicate that the query term does not appear in the file, and the second value 1 can indicate that the query word appears in the contact. Query word, the third value 0 can indicate that the query word does not appear in the SMS, and the fourth value 1 can indicate that the query word appears in the application.
在一种可能实现的方式中,根据所述第一特征向量和所述第二特征向量预测用户检索意图可以包括:基于所述第一特征向量和所述第二特征向量获取检索意图概率值;在所述检索意图概率值大于第二阈值的情况下,预测用户检索意图为所述本地检索,在所述检索意图概率值小于第二阈值的情况下,预测所述用户检索意图为所述联网检索。In a possible implementation manner, predicting the user's retrieval intention according to the first feature vector and the second feature vector may include: obtaining a retrieval intention probability value based on the first feature vector and the second feature vector; When the retrieval intention probability value is greater than the second threshold, it is predicted that the user retrieval intention is the local retrieval; when the retrieval intention probability value is smaller than the second threshold, it is predicted that the user retrieval intention is the online search. search.
在具体应用中,可以将第一特征向量和第二特征向量作为输入信息输入算法模型中,获取检索意图概率值。该算法模型可以为逻辑斯蒂回归(Logistic Regression,LR)算法模型,将第一特征向量和第二特征向量作为输入信息输入训练好的LR算法模型中,LR算法模型处理第一特征向量和第二特征向量,Sigmoid激活函数输出检索意图概率值,公式如下:In a specific application, the first eigenvector and the second eigenvector may be input into the algorithm model as input information to obtain the retrieval intention probability value. The algorithm model can be a logistic regression (Logistic Regression, LR) algorithm model, and the first eigenvector and the second eigenvector are input into the trained LR algorithm model as input information, and the LR algorithm model processes the first eigenvector and the second eigenvector Two eigenvectors, the Sigmoid activation function outputs the retrieval intent probability value, the formula is as follows:
Figure PCTCN2022097134-appb-000001
Figure PCTCN2022097134-appb-000001
该概率值P的计算结果范围在(0~1),当概率值P大于第二阈值时,预测用户检索意图为本地检索;当概率值P小于或者等于第二阈值时,预测用户检索意图为联网检索。在本申请实施例中,概率值P越接近1,则表明用户检索意图为本地检索的可能性更大,概率值P越接近0,则表明用户检索意图为联网检索的可能性更大。The calculation result of the probability value P ranges from (0 to 1). When the probability value P is greater than the second threshold, the user’s retrieval intention is predicted to be local retrieval; when the probability value P is less than or equal to the second threshold, the user’s retrieval intention is predicted to be Internet search. In the embodiment of the present application, the closer the probability value P is to 1, the more likely it is that the user's retrieval intention is local retrieval, and the closer the probability value P is to 0, the more likely it is that the user's retrieval intention is online retrieval.
在具体应用中,上述的算法模型是训练后的算法模型,在使用之前,可以使用样本数据对算法模型进行训练,其中,样本数据可以包括样本查询词对应的特征向量、样本查询词的本地检索结果对应的特征向量以及该样本查询词对应的用户检索意图的概率值,将所述样本查询词对应的特征向量以及所述样本查询词的本地检索结果对应的特征向量作为所述算法模型的输入,所述样本查询词对应的用户检索意图的概率值作为所述算法模型的输出,对所述算法模型进行训练。In a specific application, the above-mentioned algorithm model is a trained algorithm model. Before use, the algorithm model can be trained using sample data, wherein the sample data can include feature vectors corresponding to sample query words and local retrieval of sample query words. The feature vector corresponding to the result and the probability value of the user's retrieval intention corresponding to the sample query word, the feature vector corresponding to the sample query word and the feature vector corresponding to the local retrieval result of the sample query word are used as the input of the algorithm model , the probability value of the user's retrieval intention corresponding to the sample query word is used as an output of the algorithm model, and the algorithm model is trained.
图2为本申请实施例提供的展示方法的另一种流程示意图,如图2所示, 首先,响应用户的输入,启动全局检索,获取用户输入的查询词,响应用户的输入,本地检索与联网检索同时启动,本地检索优先返回检索结果,然后预测用户检索意图是否为本地检索,若是本地检索,则结束检索,向用户展示本地检索的检索结果,若不是本地检索,而是联网检索,则暂存本地检索的检索结果,并等待联网检索返回检索结果,最终将所有返回结果一起展示,并将联网检索的检索结果靠前展示。Fig. 2 is another schematic flow diagram of the display method provided by the embodiment of the present application. As shown in Fig. 2, firstly, in response to the user's input, start the global search, obtain the query words entered by the user, respond to the user's input, and perform the local search and The online search is started at the same time, and the local search returns the search results first, and then predicts whether the user's search intention is a local search. If it is a local search, the search is ended and the search results of the local search are displayed to the user. Temporarily store the search results of the local search, and wait for the return of the search results from the network search, and finally display all the returned results together, and display the search results of the network search first.
在本申请实施例提供的上述方法中,在进行全局检索时,提前根据查询词和第一检索结果预测用户检索意图,使得用户检索意图为本地检索时,优先展示本地检索的检索结果,不必等待联网检索结束再返回检索结果,从而节约了检索时间。当预测到用户检索意图为所述联网检索时,再继续正在进行的联网检索,待检索完成后展示联网检索的检索结果。由此可见,上述检索结果的展示方法相较于现有的技术操作更加便捷,用户体验更好。In the above method provided by the embodiment of the present application, when performing a global search, the user's search intention is predicted in advance based on the query word and the first search result, so that when the user's search intention is a local search, the search results of the local search are displayed first, without waiting After the online retrieval is completed, the retrieval results are returned, thus saving retrieval time. When it is predicted that the user's retrieval intention is the online retrieval, the ongoing online retrieval is continued, and the retrieval results of the online retrieval are displayed after the retrieval is completed. It can be seen that, compared with the existing technology, the display method of the above retrieval results is more convenient and has better user experience.
需要说明的是,本申请实施例提供的检索结果的展示方法,执行主体可以为检索结果的展示装置,或者该检索结果的展示装置中的用于执行检索结果的展示方法的控制模块。本申请实施例中以检索结果的展示装置执行检索结果的展示方法为例,说明本申请实施例提供的检索结果的展示装置。It should be noted that the execution subject of the method for displaying search results provided in the embodiment of the present application may be the device for displaying search results, or a control module in the device for displaying search results that is used to execute the method for displaying search results. In the embodiment of the present application, the method for displaying the search result performed by the device for displaying the search result is taken as an example to describe the device for displaying the search result provided in the embodiment of the present application.
图3是本申请实施例提供的展示装置的一种结构示意图。如图3所示,展示装置300包括:检索模块310、获取模块320、和展示模块330。Fig. 3 is a schematic structural diagram of a display device provided by an embodiment of the present application. As shown in FIG. 3 , the display device 300 includes: a retrieval module 310 , an acquisition module 320 , and a display module 330 .
检索模块310,用于根据查询词进行全局检索,其中,所述全局检索包括本地检索和联网检索;A retrieval module 310, configured to perform global retrieval according to query words, wherein the global retrieval includes local retrieval and network retrieval;
获取模块320,用于获取第一检索结果,其中,所述第一检索结果为所述本地检索的检索结果;An obtaining module 320, configured to obtain a first search result, wherein the first search result is a search result of the local search;
展示模块330,用于基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果,其中,所述第二检索结果为所述联网检索的检索结果。The display module 330 is configured to display the first search result or the second search result based on the query word and the first search result, wherein the second search result is a search result of the online search.
在一种实现方式中,所述展示模块330基于所述查询词和所述第一检索 结果,展示所述第一检索结果或第二检索结果包括:基于所述查询词和所述第一检索结果预测用户检索意图;在所述用户检索意图为所述本地检索的情况下,展示所述第一检索结果,在所述用户检索意图为所述联网检索的情况下,获取所述第二检索结果,并展示所述第二检索结果。In an implementation manner, the presenting module 330 displaying the first search result or the second search result based on the query word and the first search result includes: based on the query word and the first search result The result predicts the user's retrieval intention; if the user's retrieval intention is the local retrieval, display the first retrieval result, and if the user's retrieval intention is the online retrieval, obtain the second retrieval results, and display the second search result.
在一种实现方式中,所述检索模块310根据查询词进行全局检索包括:在所述查询词的字符长度大于第一阈值的情况下,将所述查询词按字符切分;基于切分后的每个词进行所述全局检索。In one implementation manner, the retrieval module 310 performing global retrieval according to the query includes: when the character length of the query is greater than a first threshold, segmenting the query by character; The global search is performed for each word of .
在一种实现方式中,所述展示模块330基于所述查询词和所述第一检索结果预测用户检索意图包括:确定用于表征所述查询词的第一特征向量;确定用于表征所述第一检索结果的第二特征向量;根据所述第一特征向量和所述第二特征向量预测用户检索意图。In one implementation, the presentation module 330 predicting the user's retrieval intention based on the query word and the first retrieval result includes: determining a first feature vector used to characterize the query word; determining a feature vector used to characterize the A second feature vector of the first search result; predicting a user's search intention according to the first feature vector and the second feature vector.
在一种实现方式中,所述展示模块330确定用于表征所述第一检索结果的第二特征向量包括:按照本地垂类是否出现所述查询词确定所述第二特征向量,所述本地垂类包括文件、联系人、短信和应用。In one implementation manner, the display module 330 determining the second feature vector used to characterize the first retrieval result includes: determining the second feature vector according to whether the query word appears in the local category, the local Vertical categories include files, contacts, text messages and applications.
在一种实现方式中,所述展示模块330根据所述第一特征向量和所述第二特征向量预测用户检索意图包括:基于所述第一特征向量和所述第二特征向量获取检索意图概率值;在所述获取检索意图概率值大于第二阈值的情况下,预测用户检索意图为所述本地检索,在所述获取检索意图概率值小于第二阈值的情况下,预测所述用户检索意图为所述联网检索。In an implementation manner, the display module 330 predicting the user's retrieval intention according to the first feature vector and the second feature vector includes: obtaining the retrieval intention probability based on the first feature vector and the second feature vector value; in the case where the retrieval intention probability value is greater than the second threshold, it is predicted that the user retrieval intention is the local retrieval, and in the case that the retrieval intention probability value is smaller than the second threshold, the user retrieval intention is predicted for the online search.
本申请实施例提供的上述展示装置300,检索模块310根据查询词进行全局检索,获取模块320获取第一检索结果,展示模块330基于查询词和第一检索结果,展示第一检索结果或第二检索结果。从而使用户在进行全局检索时,操作更加便捷,体验更好。In the above display device 300 provided in the embodiment of the present application, the retrieval module 310 performs a global search according to the query word, the acquisition module 320 obtains the first retrieval result, and the display module 330 displays the first retrieval result or the second retrieval result based on the query word and the first retrieval result. Search Results. In this way, the operation is more convenient and the user experience is better when performing a global search.
本申请实施例中的展示装置可以是装置,也可以是终端中的部件、集成电路、或芯片。该装置可以是移动终端设备,也可以为非移动终端设备。示例性的,移动电子设备可以为手机、平板电脑、笔记本电脑、掌上电脑、车 载电子设备、可穿戴设备、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本或者个人数字助理(personal digital assistant,PDA)等,非移动电子设备可以为服务器、网络附属存储器(Network Attached Storage,NAS)、个人计算机(personal computer,PC)、电视机(television,TV)、柜员机或者自助机等,本申请实施例不作具体限定。The display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The apparatus may be a mobile terminal device or a non-mobile terminal device. Exemplarily, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a handheld computer, a vehicle electronic device, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant). assistant, PDA), etc., non-mobile electronic devices can be servers, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (television, TV), teller machine or self-service machine, etc., this application Examples are not specifically limited.
本申请实施例中的展示装置可以为具有操作系统的装置。该操作系统可以为安卓(Android)操作系统,可以为ios操作系统,还可以为其他可能的操作系统,本申请实施例不作具体限定。The display device in the embodiment of the present application may be a device with an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, which are not specifically limited in this embodiment of the present application.
本申请实施例提供的展示装置能够实现图1至图2的方法实施例实现的各个过程,为避免重复,这里不再赘述。The display device provided in the embodiment of the present application can realize various processes realized by the method embodiments in FIG. 1 to FIG. 2 , and details are not repeated here to avoid repetition.
可选地,如图4所示,本申请实施例还提供一种终端设备400,包括处理器401,存储器402,存储在存储器402上并可在所述处理器401上运行的程序或指令,该程序或指令被处理器401执行时实现上述展示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。Optionally, as shown in FIG. 4 , the embodiment of the present application further provides a terminal device 400, including a processor 401, a memory 402, and programs or instructions stored in the memory 402 and operable on the processor 401, When the program or instruction is executed by the processor 401, the various processes of the above-described method embodiments are realized, and the same technical effect can be achieved. To avoid repetition, details are not repeated here.
需要说明的是,本申请实施例中的终端设备包括上述所述的移动终端设备和非移动终端设备。It should be noted that the terminal devices in the embodiments of the present application include the above-mentioned mobile terminal devices and non-mobile terminal devices.
图5为实现本申请实施例的一种终端设备的硬件结构示意图。FIG. 5 is a schematic diagram of a hardware structure of a terminal device implementing an embodiment of the present application.
该终端设备500包括但不限于:射频单元501、网络模块502、音频输出单元503、输入单元504、传感器505、显示单元506、用户输入单元507、接口单元508、存储器509、以及处理器510等部件。The terminal device 500 includes, but is not limited to: a radio frequency unit 501, a network module 502, an audio output unit 503, an input unit 504, a sensor 505, a display unit 506, a user input unit 507, an interface unit 508, a memory 509, and a processor 510, etc. part.
本领域技术人员可以理解,终端设备500还可以包括给各个部件供电的电源(比如电池),电源可以通过电源管理系统与处理器510逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。图5中示出的终端设备结构并不构成对终端设备的限定,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置,在此不再赘述。Those skilled in the art can understand that the terminal device 500 can also include a power supply (such as a battery) for supplying power to various components, and the power supply can be logically connected to the processor 510 through the power management system, so that the management of charging, discharging, and function can be realized through the power management system. Consumption management and other functions. The structure of the terminal device shown in FIG. 5 does not constitute a limitation on the terminal device. The terminal device may include more or fewer components than shown in the figure, or combine some components, or arrange different components, which will not be repeated here. .
应理解的是,本申请实施例中,输入单元504可以包括图形处理器 (Graphics Processing Unit,GPU)5041和麦克风5042,图形处理器5041对在视频捕获模式或图像捕获模式中由图像捕获装置(如摄像头)获得的静态图片或视频的图像数据进行处理。显示单元506可包括显示面板5061,可以采用液晶显示器、有机发光二极管等形式来配置显示面板5061。用户输入单元507包括触控面板5071以及其他输入设备5072。触控面板5071,也称为触摸屏。触控面板5071可包括触摸检测装置和触摸控制器两个部分。其他输入设备5072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。存储器509可用于存储软件程序以及各种数据,包括但不限于应用程序和操作系统。处理器510可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器510中。It should be understood that, in the embodiment of the present application, the input unit 504 may include a graphics processor (Graphics Processing Unit, GPU) 5041 and a microphone 5042, and the graphics processor 5041 is used for the image capture device ( Such as the image data of the still picture or video obtained by the camera) for processing. The display unit 506 may include a display panel 5061, and the display panel 5061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 507 includes a touch panel 5071 and other input devices 5072 . The touch panel 5071 is also called a touch screen. The touch panel 5071 may include two parts, a touch detection device and a touch controller. Other input devices 5072 may include, but are not limited to, physical keyboards, function keys (such as volume control keys, switch keys, etc.), trackballs, mice, and joysticks, which will not be repeated here. Memory 509 may be used to store software programs as well as various data, including but not limited to application programs and operating systems. The processor 510 may integrate an application processor and a modem processor, wherein the application processor mainly processes operating systems, user interfaces, and application programs, and the modem processor mainly processes wireless communications. It can be understood that the foregoing modem processor may not be integrated into the processor 510 .
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序或指令,该程序或指令被处理器执行时实现上述展示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of the above-mentioned embodiment of the method shown can be achieved, and can achieve the same Technical effects, in order to avoid repetition, will not be repeated here.
其中,所述处理器为上述实施例中所述的终端设备中的处理器。所述可读存储介质,包括计算机可读存储介质,如计算机只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。Wherein, the processor is the processor in the terminal device described in the foregoing embodiments. The readable storage medium includes computer readable storage medium, such as computer read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
本申请实施例另提供了一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现上述展示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement each of the above-mentioned demonstration method embodiments process, and can achieve the same technical effect, in order to avoid repetition, it will not be repeated here.
应理解,本申请实施例提到的芯片还可以称为系统级芯片、系统芯片、芯片系统或片上系统芯片等。It should be understood that the chips mentioned in the embodiments of the present application may also be called system-on-chip, system-on-chip, system-on-a-chip, or system-on-a-chip.
本申请实施例提供一种计算机程序产品,该程序产品被存储在存储介质 中,该程序产品被至少一个处理器执行以实现如上述展示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application provides a computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the various processes in the method embodiments shown above, and can achieve the same technical effect, To avoid repetition, details are not repeated here.
本申请实施例另提供了一种电子设备,电子设备被配置成用于执行上述展示方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application further provides an electronic device, which is configured to execute the processes of the foregoing demonstration method embodiments, and can achieve the same technical effect. To avoid repetition, details are not repeated here.
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。此外,需要指出的是,本申请实施方式中的方法和装置的范围不限按示出或讨论的顺序来执行功能,还可包括根据所涉及的功能按基本同时的方式或按相反的顺序来执行功能,例如,可以按不同于所描述的次序来执行所描述的方法,并且还可以添加、省去、或组合各种步骤。另外,参照某些示例所描述的特征可在其他示例中被组合。It should be noted that, in this document, the term "comprising", "comprising" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or apparatus comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or device. Without further limitations, an element defined by the phrase "comprising a ..." does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved. Functions are performed, for example, the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以计算机软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present application can be embodied in the form of computer software products, which are stored in a storage medium (such as ROM/RAM, magnetic disk, etc.) , optical disc), including several instructions to enable a terminal (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in various embodiments of the present application.
上面结合附图对本申请的实施例进行了描述,但是本申请并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本申请的启示下,在不脱离本申请宗旨和权利要求 所保护的范围情况下,还可做出很多形式,均属于本申请的保护之内。The embodiments of the present application have been described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementations. The above-mentioned specific implementations are only illustrative and not restrictive. Those of ordinary skill in the art will Under the inspiration of this application, without departing from the purpose of this application and the scope of protection of the claims, many forms can also be made, all of which belong to the protection of this application.

Claims (17)

  1. 一种展示方法,包括:A method of presentation comprising:
    根据查询词进行全局检索,其中,所述全局检索包括本地检索和联网检索;Carry out a global search according to the query words, wherein the global search includes local search and network search;
    获取第一检索结果,其中,所述第一检索结果为所述本地检索的检索结果;Acquiring a first search result, wherein the first search result is a search result of the local search;
    基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果,其中,所述第二检索结果为所述联网检索的检索结果。Based on the query word and the first search result, the first search result or the second search result is displayed, wherein the second search result is a search result of the online search.
  2. 根据权利要求1所述的方法,其中,所述基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果,包括:The method according to claim 1, wherein, displaying the first search result or the second search result based on the query word and the first search result comprises:
    基于所述查询词和所述第一检索结果预测用户检索意图;predicting user retrieval intentions based on the query words and the first retrieval result;
    在所述用户检索意图为所述本地检索的情况下,展示所述第一检索结果,在所述用户检索意图为所述联网检索的情况下,获取所述第二检索结果,并展示所述第二检索结果。If the user's search intent is the local search, display the first search result; if the user's search intent is the online search, obtain the second search result and display the Second search result.
  3. 根据权利要求1所述的方法,其中,所述根据查询词进行全局检索包括:The method according to claim 1, wherein said performing a global search according to the query comprises:
    在所述查询词的字符长度大于第一阈值的情况下,将所述查询词按字符切分;In the case where the character length of the query word is greater than a first threshold, the query word is segmented by character;
    基于切分后的每个词进行所述全局检索。The global search is performed based on each segmented word.
  4. 根据权利要求2所述的方法,其中,所述基于所述查询词和所述第一检索结果预测用户检索意图包括:The method according to claim 2, wherein said predicting user retrieval intention based on said query word and said first retrieval result comprises:
    确定用于表征所述查询词的第一特征向量;determining a first feature vector for characterizing the query;
    确定用于表征所述第一检索结果的第二特征向量;determining a second feature vector for characterizing the first retrieval result;
    根据所述第一特征向量和所述第二特征向量预测用户检索意图。Predicting the user's retrieval intention according to the first feature vector and the second feature vector.
  5. 根据权利要求4所述的方法,其中,所述确定用于表征所述第一检索结果的第二特征向量包括:The method according to claim 4, wherein said determining a second feature vector used to characterize said first retrieval result comprises:
    按照本地垂类是否出现所述查询词确定所述第二特征向量,所述本地垂类包括文件、联系人、短信和应用。The second feature vector is determined according to whether the query word appears in a local category, and the local category includes files, contacts, short messages, and applications.
  6. 根据权利要求4所述的方法,其中,所述根据所述第一特征向量和所述第二特征向量预测用户检索意图包括:The method according to claim 4, wherein said predicting user retrieval intention according to said first feature vector and said second feature vector comprises:
    基于所述第一特征向量和所述第二特征向量获取检索意图概率值;obtaining a retrieval intent probability value based on the first feature vector and the second feature vector;
    在所述检索意图概率值大于第二阈值的情况下,预测用户检索意图为所述本地检索,在所述检索意图概率值小于第二阈值的情况下,预测所述用户检索意图为所述联网检索。When the retrieval intention probability value is greater than the second threshold, it is predicted that the user retrieval intention is the local retrieval; when the retrieval intention probability value is smaller than the second threshold, it is predicted that the user retrieval intention is the online search. search.
  7. 一种展示装置,包括:A display device comprising:
    检索模块,用于根据查询词进行全局检索,其中,所述全局检索包括本地检索和联网检索;A retrieval module, configured to perform global retrieval according to query terms, wherein the global retrieval includes local retrieval and network retrieval;
    获取模块,用于获取第一检索结果,其中,所述第一检索结果为所述本地检索的检索结果;An acquisition module, configured to acquire a first search result, wherein the first search result is a search result of the local search;
    展示模块,用于基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果,其中,所述第二检索结果为所述联网检索的检索结果。A display module, configured to display the first search result or the second search result based on the query word and the first search result, wherein the second search result is a search result of the online search.
  8. 根据权利要求7所述的装置,其中,所述显示模块基于所述查询词和所述第一检索结果,展示所述第一检索结果或第二检索结果包括:The device according to claim 7, wherein, based on the query word and the first retrieval result, displaying the first retrieval result or the second retrieval result by the display module comprises:
    基于所述查询词和所述第一检索结果预测用户检索意图;predicting user retrieval intentions based on the query words and the first retrieval result;
    在所述用户检索意图为所述本地检索的情况下,展示所述第一检索结果, 在所述用户检索意图为所述联网检索的情况下,获取所述第二检索结果,并展示所述第二检索结果。If the user's search intent is the local search, display the first search result; if the user's search intent is the online search, obtain the second search result and display the Second search result.
  9. 根据权利要求7所述的装置,其中,所述检索模块根据查询词进行全局检索包括:The device according to claim 7, wherein said retrieval module performing global retrieval according to query words comprises:
    在所述查询词的字符长度大于第一阈值的情况下,将所述查询词按字符切分;In the case where the character length of the query word is greater than a first threshold, the query word is segmented by character;
    基于切分后的每个词进行所述全局检索。The global search is performed based on each segmented word.
  10. 根据权利要求8所述的装置,其中,所述展示模块基于所述查询词和所述第一检索结果预测用户检索意图包括:The device according to claim 8, wherein the display module predicting the user's retrieval intention based on the query word and the first retrieval result comprises:
    确定用于表征所述查询词的第一特征向量;determining a first feature vector for characterizing the query;
    确定用于表征所述第一检索结果的第二特征向量;determining a second feature vector for characterizing the first retrieval result;
    根据所述第一特征向量和所述第二特征向量预测用户检索意图。Predicting the user's retrieval intention according to the first feature vector and the second feature vector.
  11. 根据权利要求10所述的装置,其中,所述展示模块确定用于表征所述第一检索结果的第二特征向量包括:按照本地垂类是否出现所述查询词确定所述第二特征向量,所述本地垂类包括文件、联系人、短信和应用。The device according to claim 10, wherein the display module determining the second feature vector used to characterize the first retrieval result comprises: determining the second feature vector according to whether the query word appears in a local category, The local vertical categories include files, contacts, short messages and applications.
  12. 根据权利要求10所述的装置,其中,所述展示模块根据所述第一特征向量和所述第二特征向量预测用户检索意图包括:The device according to claim 10, wherein the display module predicting the user's retrieval intention according to the first feature vector and the second feature vector comprises:
    基于所述第一特征向量和所述第二特征向量获取检索意图概率值;obtaining a retrieval intent probability value based on the first feature vector and the second feature vector;
    在所述检索意图概率值大于第二阈值的情况下,预测用户检索意图为所述本地检索,在所述检索意图概率值小于第二阈值的情况下,预测所述用户检索意图为所述联网检索。When the probability value of the retrieval intention is greater than the second threshold, it is predicted that the user's retrieval intention is the local retrieval; search.
  13. 一种终端设备,包括处理器,存储器及存储在所述存储器上并可在 所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-6任一项所述的展示方法的步骤。A terminal device, comprising a processor, a memory, and a program or instruction stored on the memory and operable on the processor, when the program or instruction is executed by the processor, claims 1-6 are implemented The steps of any one of the display methods.
  14. 一种可读存储介质,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-6任一项所述的展示方法的步骤。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 presenting method according to any one of claims 1-6 are realized.
  15. 一种芯片,所述芯片包括处理器和通信接口,所述通信接口和所述处理器耦合,所述处理器用于运行程序或指令,实现如权利要求1-6任一项所述的展示方法。A chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to run programs or instructions, and implement the display method according to any one of claims 1-6 .
  16. 一种计算机程序产品,该程序产品被存储在存储介质中,该程序产品被至少一个处理器执行以实现如权利要求1-6任一项所述的展示方法。A computer program product, the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the presenting method according to any one of claims 1-6.
  17. 一种电子设备,所述电子设备被配置成用于执行如权利要求1-6任一项所述的展示方法。An electronic device configured to execute the presentation method according to any one of claims 1-6.
PCT/CN2022/097134 2021-06-09 2022-06-06 Presentation method and presentation apparatus WO2022257883A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110644685.3A CN113282830A (en) 2021-06-09 2021-06-09 Display method and display device
CN202110644685.3 2021-06-09

Publications (1)

Publication Number Publication Date
WO2022257883A1 true WO2022257883A1 (en) 2022-12-15

Family

ID=77284043

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/097134 WO2022257883A1 (en) 2021-06-09 2022-06-06 Presentation method and presentation apparatus

Country Status (2)

Country Link
CN (1) CN113282830A (en)
WO (1) WO2022257883A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113282830A (en) * 2021-06-09 2021-08-20 维沃移动通信有限公司 Display method and display device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104331465A (en) * 2014-10-30 2015-02-04 广东欧珀移动通信有限公司 Searching method and device for mobile terminal
CN105264528A (en) * 2014-03-26 2016-01-20 微软技术许可有限责任公司 Client intent in integrated search environment
US20210141839A1 (en) * 2017-07-20 2021-05-13 Beijing Sankuai Online Technology Co., Ltd. Information search method, apparatus, and system
CN113282830A (en) * 2021-06-09 2021-08-20 维沃移动通信有限公司 Display method and display device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8650173B2 (en) * 2010-06-23 2014-02-11 Microsoft Corporation Placement of search results using user intent
CN107315841A (en) * 2017-07-20 2017-11-03 北京三快在线科技有限公司 A kind of information search method, apparatus and system
CN108733800A (en) * 2018-05-17 2018-11-02 努比亚技术有限公司 A kind of global search method, terminal and computer readable storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105264528A (en) * 2014-03-26 2016-01-20 微软技术许可有限责任公司 Client intent in integrated search environment
CN104331465A (en) * 2014-10-30 2015-02-04 广东欧珀移动通信有限公司 Searching method and device for mobile terminal
US20210141839A1 (en) * 2017-07-20 2021-05-13 Beijing Sankuai Online Technology Co., Ltd. Information search method, apparatus, and system
CN113282830A (en) * 2021-06-09 2021-08-20 维沃移动通信有限公司 Display method and display device

Also Published As

Publication number Publication date
CN113282830A (en) 2021-08-20

Similar Documents

Publication Publication Date Title
WO2022048513A1 (en) Search display method and apparatus, and electronic device
WO2017181663A1 (en) Method and device for matching image to search information
WO2022063123A1 (en) Interface displaying method, device, and electronic device
JP2023526972A (en) Page switching method, device and electronic equipment
WO2022161431A1 (en) Display method, apparatus, and electronic device
WO2022233276A1 (en) Display method and apparatus, and electronic device
WO2023284799A1 (en) Search method and apparatus, and electronic device
WO2022194004A1 (en) Application icon arrangement method and apparatus, and electronic device
CN112988006A (en) Display method, display device, electronic equipment and storage medium
WO2023061276A1 (en) Data recommendation method and apparatus, electronic device, and storage medium
WO2022223002A1 (en) Page display method and apparatus, and electronic device
WO2022257916A1 (en) Recommendation method and apparatus
WO2022257883A1 (en) Presentation method and presentation apparatus
WO2022068721A1 (en) Screen capture method and apparatus, and electronic device
CN113114845B (en) Notification message display method and device
CN111857466B (en) Message display method and device
WO2023131092A1 (en) Information display method and apparatus
CN112783594A (en) Message display method and device and electronic equipment
WO2023138475A1 (en) Icon management method and apparatus, and device and storage medium
WO2023284750A1 (en) Multimedia file searching method and apparatus
WO2023134642A1 (en) Message processing method, message processing apparatus, and electronic device
WO2022237877A1 (en) Information processing method and apparatus, and electronic device
WO2022222821A1 (en) Information display method and apparatus
WO2023040710A1 (en) Information display method and apparatus, electronic device, and storage medium
WO2023046205A1 (en) Information display method and apparatus, electronic device, and storage medium

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: 22819481

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE