Search processing methods, devices, terminals, and storage media for use in chat applications
By displaying a toolbar and word segmentation processing within the chat session interface of a chat application, users can directly select message content and perform searches within the chat interface, solving the problem of complex operations in existing technologies and achieving efficient chat message content searching.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-09-09
- Publication Date
- 2026-04-03
AI Technical Summary
In existing chat applications, users need to select content in the chat message and then switch to the search application to perform the search operation, which is complicated and inefficient.
Display a toolbar in the chat session interface of the chat application, which includes a search tool option. Users can directly select message content in the chat interface and trigger the search function. It supports word segmentation and word selection to realize the search operation.
The search process has been simplified, eliminating the need for users to switch applications or enter keywords, thus improving the efficiency and ease of searching chat messages.
Smart Images

Figure CN112084305B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the fields of computer and internet technology, and in particular to a search processing method, apparatus, terminal and storage medium for use in chat applications. Background Technology
[0002] Chat apps are among the most commonly used applications, allowing people to send and receive messages with friends, colleagues, classmates, and others.
[0003] After receiving a chat message in a chat application, if a user wants to perform a search operation on certain content in the chat message, they often need to open another search application with search functionality (such as a browser), then manually enter the corresponding keywords in that search application, and then trigger the search application to perform the search operation.
[0004] However, the above methods are relatively complex and inefficient. Summary of the Invention
[0005] This application provides a search processing method, apparatus, terminal, and storage medium for chat applications, which can improve the efficiency of performing operations on certain content in chat messages and reduce operational complexity. The technical solution is as follows:
[0006] According to one aspect of the embodiments of this application, a search processing method applied to a chat application is provided, the method comprising:
[0007] Display a chat session interface, which includes chat messages;
[0008] In response to a content selection operation on the chat message, a toolbar corresponding to the selected message content in the chat message is displayed, the toolbar including a search tool option;
[0009] In response to the selection operation of the search tool option, a search interface corresponding to the selected message content is displayed, and the search interface is used to implement search functions related to the selected message content.
[0010] According to one aspect of the embodiments of this application, a search processing method is provided, the method comprising:
[0011] Display user interface;
[0012] In response to a content selection operation on the user interface, the selected interface content in the user interface is determined;
[0013] The selected interface content is displayed as a word selection interface, which includes words obtained after word segmentation of the selected interface content.
[0014] In response to a word selection operation on the word selection interface, the target word that is selected is determined;
[0015] Perform the corresponding search operation for the target words.
[0016] According to one aspect of the embodiments of this application, a processing method applied to a chat application is provided, the method comprising:
[0017] Display a chat session interface, which includes chat messages;
[0018] In response to a content selection operation on the chat message, the selected message content in the chat message is determined;
[0019] The selected message content is displayed in a word selection interface, which includes words obtained after word segmentation of the selected message content.
[0020] In response to a word selection operation on the word selection interface, the target word that is selected is determined;
[0021] Perform the corresponding operation for the target word.
[0022] Optionally, the word selection operation is a sliding selection operation, and the step of determining the target word in the selected state in response to the word selection operation on the word selection interface includes:
[0023] In response to the sliding selection operation on the word selection interface, determine the sliding trajectory of the sliding selection operation;
[0024] The words that the sliding trajectory passes through are identified as the target words that are in the selected state.
[0025] Optionally, determining the words traversed by the sliding trajectory as the selected target words includes:
[0026] When the sliding trajectory comprises multiple segments, determine the words that each segment of the sliding trajectory passes through;
[0027] Identify the target words that are in the selected state; wherein, the target words include the words that each segment of the sliding trajectory passes through.
[0028] Optionally, performing the corresponding operation on the target word includes:
[0029] Perform a search operation on the target words;
[0030] Alternatively, a forwarding operation can be performed on the target words;
[0031] Alternatively, a sharing operation can be performed on the target words;
[0032] Alternatively, perform a save operation on the target words;
[0033] Alternatively, a copy operation can be performed on the target words;
[0034] Alternatively, a translation operation can be performed on the target words;
[0035] Alternatively, perform a document creation operation on the target words.
[0036] Optionally, the method further includes:
[0037] Multiple operation options are displayed, and different operation options correspond to different operations;
[0038] The operation performed on the target word includes:
[0039] In response to the selection of a target operation option among the plurality of operation options, an operation corresponding to the target operation option is performed on the target word.
[0040] Optionally, after displaying the chat session interface, the method further includes:
[0041] In response to a content selection operation on the chat message, a toolbar corresponding to the selected message content in the chat message is displayed, the toolbar including a search tool option;
[0042] In response to the selection operation of the search tool option, a search interface corresponding to the selected message content is displayed, and the search interface is used to implement search functions related to the selected message content;
[0043] In response to a specified trigger operation on the search interface, the step of displaying the word selection interface corresponding to the selected message content is executed.
[0044] Optionally, the chat messages include at least one of the following: text messages, image messages, and voice messages.
[0045] Optionally, the method further includes:
[0046] When the chat message includes the text message, the text content contained in the text message is segmented to obtain the words;
[0047] or,
[0048] When the chat message includes the image message, the text content contained in the image message is identified, and the identified text content is segmented to obtain the words.
[0049] or,
[0050] When the chat message includes the voice message, the voice message is processed by speech recognition to obtain the corresponding text content; the recognized text content is then processed by word segmentation to obtain the words.
[0051] Optionally, before displaying the word selection interface corresponding to the selected message content, the method further includes:
[0052] Identify the key words and non-key words in the given words;
[0053] The keywords are displayed on the word selection interface, while the non-keywords are not displayed on the word selection interface.
[0054] Optionally, after determining the target word in the selected state, the method further includes:
[0055] Display a text editing box, the text editing box containing the target words;
[0056] In response to an editing operation on the target word, the modified target word is displayed in the text editing box;
[0057] The operation performed on the target word includes:
[0058] Perform the corresponding operation on the modified target words.
[0059] According to one aspect of the embodiments of this application, a search processing apparatus for use in a chat application is provided, the apparatus comprising:
[0060] A conversation interface display module is used to display a chat conversation interface, which includes chat messages;
[0061] The toolbar display module is used to display a toolbar corresponding to the selected message content in the chat message in response to the content selection operation of the chat message. The toolbar includes a search tool option.
[0062] The search interface display module is used to display the search interface corresponding to the selected message content in response to the selection operation of the search tool option. The search interface is used to implement the search function related to the selected message content.
[0063] According to one aspect of the embodiments of this application, a search processing apparatus is provided, the apparatus comprising:
[0064] User interface display module, used to display the user interface;
[0065] The interface content determination module is used to determine the selected interface content in the user interface in response to a content selection operation for the user interface.
[0066] The word selection interface display module is used to display the word selection interface corresponding to the selected interface content. The word selection interface includes words obtained after word segmentation of the selected interface content.
[0067] The target word determination module is used to determine the target word that is selected in response to the word selection operation on the word selection interface.
[0068] The search operation execution module is used to perform corresponding search operations on the target words.
[0069] According to one aspect of the embodiments of this application, a processing apparatus for use in a chat application is provided, the apparatus comprising:
[0070] A conversation interface display module is used to display a chat conversation interface, which includes chat messages;
[0071] The message content determination module is used to determine the selected message content in the chat message in response to the content selection operation of the chat message.
[0072] The word selection interface display module is used to display the word selection interface corresponding to the selected message content. The word selection interface includes words obtained after word segmentation of the selected message content.
[0073] The target word determination module is used to determine the target word that is selected in response to the word selection operation on the word selection interface.
[0074] The operation execution module is used to perform corresponding operations on the target words.
[0075] According to one aspect of the embodiments of this application, a terminal is provided, the terminal including a processor and a memory, the memory storing at least one instruction, at least one program, code set or instruction set, the at least one instruction, the at least one program, the code set or instruction set being loaded and executed by the processor to implement the methods described above.
[0076] According to one aspect of the embodiments of this application, a computer-readable storage medium is provided, the storage medium storing at least one instruction, at least one program, code set, or instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the methods described above.
[0077] According to one aspect of the embodiments of this application, a computer program product or computer program is provided, which includes computer instructions stored in a computer-readable storage medium. A terminal's processor reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the methods described above.
[0078] The technical solution provided in this application can bring the following beneficial effects:
[0079] After selecting content from a chat message within the chat session interface, a toolbar corresponding to the selected message content is displayed, allowing users to choose the desired action and enriching the functionality. Furthermore, a search tool option is provided in the toolbar, offering an entry point for search functionality. Users simply select the message content in the chat session interface and click the search tool option to trigger the search, eliminating the need for application switching or keyword input. This significantly improves the efficiency of searching specific content within chat messages and reduces operational complexity. Attached Figure Description
[0080] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0081] Figure 1 This is a schematic diagram of an application runtime environment provided in one embodiment of this application;
[0082] Figure 2 This is a flowchart of a search processing method for a chat application provided in one embodiment of this application;
[0083] Figures 3 to 6 yes Figure 2 A schematic diagram of the interface involved in the embodiment;
[0084] Figure 7 This is a flowchart of a search processing method for a chat application provided in another embodiment of this application;
[0085] Figures 8 to 9 yes Figure 7 A schematic diagram of the interface involved in the embodiment;
[0086] Figure 10 This is a flowchart of a processing method applied to a chat application provided in another embodiment of this application;
[0087] Figures 11 to 12 yes Figure 10 A schematic diagram of the interface involved in the embodiment;
[0088] Figure 13 This is a flowchart of a search processing method provided in another embodiment of this application;
[0089] Figure 14 This is a schematic diagram illustrating the process of obtaining and displaying search results according to an embodiment of this application;
[0090] Figure 15 This is a block diagram of a search processing device for a chat application provided in one embodiment of this application;
[0091] Figure 16 This is a block diagram of a processing device for a chat application provided in another embodiment of this application;
[0092] Figure 17 This is a block diagram of a search processing apparatus provided in another embodiment of this application;
[0093] Figure 18 This is a structural block diagram of a terminal provided in one embodiment of this application. Detailed Implementation
[0094] To make the objectives, technical solutions, and advantages of this application clearer, the embodiments of this application will be described in further detail below with reference to the accompanying drawings.
[0095] Please refer to Figure 1 This diagram illustrates an application runtime environment provided in one embodiment of this application. The application runtime environment may include: terminal 10 and server 20.
[0096] Terminal 10 can be an electronic device such as a mobile phone, tablet computer, game console, e-book reader, multimedia playback device, wearable device, or PC (Personal Computer). Optionally, a chat application client can be installed on terminal 10.
[0097] In this embodiment, a chat application refers to any application capable of sending and receiving chat messages, such as social applications, instant messaging applications, shopping applications, game applications, office applications, live video streaming applications, etc. The chat messages can be between two user accounts, within a group, or between a user account and a system account (such as the account corresponding to an AI (Artificial Intelligence) question-and-answer system). This embodiment does not limit the scope of the application.
[0098] Server 20 provides a backend server for terminal 10 to support terminal 10 in implementing the various functions provided in the embodiments of this application. Optionally, server 20 may be a backend server for the chat application described above, providing backend services for the chat application client in terminal 10. Server 20 may be a single server, a server cluster consisting of multiple servers, or a cloud computing service center. Optionally, server 20 may provide backend services for multiple terminals 10 simultaneously.
[0099] Optionally, terminal 10 and server 20 can communicate with each other via network 30.
[0100] Please refer to Figure 2 The diagram illustrates a flowchart of a message processing method for a chat application according to an embodiment of this application. This method can be applied to a terminal, where the executing entity for each step can be... Figure 1 The terminal 10 in the application runtime environment shown can also be a client of a chat application installed on terminal 10. The method may include the following steps (210-230):
[0101] Step 210: Display the chat session interface, which includes chat messages.
[0102] The chat session interface is a user interface used to display sent and received chat messages and to implement the function of sending and receiving chat messages. The chat session interface can be an interface for private chat between two user accounts, an interface for group chat between multiple user accounts, or an interface for sending and receiving messages between user accounts and other accounts (such as system accounts, public accounts, etc.).
[0103] The chat session interface includes chat messages. Optionally, chat messages include at least one of the following: text messages, image messages, and voice messages. The message content of a text message can be a single character, a word, a sentence, or a combination of multiple sentences. The message content of an image message can include one or more images. The message content of a voice message can include one or more audio clips. Optionally, message bubbles are displayed in the chat session interface, displaying the message content of the chat messages.
[0104] Optionally, chat messages also include file messages. File messages refer to messages corresponding to files transmitted by users through the chat session interface. The message content of a file message includes one or more files, which can be text, tables, images, or other types of files; this embodiment does not limit this. For example, user A sends a document file to user B through a chat application. Optionally, the chat session interface also includes information such as avatars and nicknames of the accounts participating in the chat session.
[0105] Step 220: In response to the content selection operation of the chat message, display the toolbar corresponding to the selected message content in the chat message.
[0106] The aforementioned content selection operation refers to the operation of selecting message content in a chat message. Users can select all message content in a chat message as the selected message content, or they can select a portion of the message content as the selected message content. Optionally, the content selection operation includes touch operations. The aforementioned touch operations include single-click operations, long-press operations, double-click operations, etc., and this application embodiment does not limit these types.
[0107] The toolbar described above is an interface element used to provide users with various operation tool options. Optionally, the toolbar can be displayed as a rectangle or a rounded rectangle, etc. Optionally, the toolbar can be displayed at the top of the chat session interface or next to the selected message content for user operation. Optionally, the toolbar includes a search tool option, which is a selection item corresponding to the search tool and used to implement the search function provided by the search tool.
[0108] Optionally, the toolbar may also include at least one of the following operation tool options: forwarding tool option, favorite tool option, delete tool option, citation tool option, copy tool option, translation tool option, etc., which are not limited in this embodiment.
[0109] Optionally, content selection can be performed on multiple chat messages. That is, the selected message content can include the content of a single chat message or the content of multiple chat messages.
[0110] Optionally, the toolbar will contain different operation tool options depending on the selected message content.
[0111] Step 230: In response to the selection operation for the search tool option, display the search interface corresponding to the selected message content.
[0112] Optionally, the above selection operation includes a click operation, but other operations are also possible, and this application embodiment does not limit this. The above search interface is used to implement a search function related to the selected message content. Optionally, the search interface includes recommended search results related to the selected message content. These recommended search results can be search results related to the keywords obtained by the chat application after intelligently identifying and extracting keywords from the selected message content. Recommended search results can include web pages, articles, public accounts, mini-programs, etc., and this application embodiment does not limit this.
[0113] In one example, such as Figure 3 As shown, the chat session interface 30 displays chat message 31 and a toolbar 32 that appears after selecting chat message 31. After the user clicks the search tool option 33 in the toolbar 32, a search interface 34 is displayed, which shows search results 35 related to chat message 31.
[0114] In summary, the technical solution provided in this application enriches the operational functionality by displaying a toolbar corresponding to the selected message content after the user performs a content selection operation on the chat session interface, allowing the user to choose the desired operation. Furthermore, by setting a search tool option in the toolbar, an entry point for implementing the search function is provided. Users only need to select the message content in the chat session interface and click the search tool option to trigger the search function, without needing to switch applications or input keywords. This significantly improves the efficiency of performing search operations on certain content in chat messages and reduces operational complexity.
[0115] In an exemplary embodiment, the above method further includes the following steps:
[0116] Step 231: In response to the selection operation for the search tool option, determine multiple search terms based on the selected message content.
[0117] The search terms mentioned above are words from the selected message content that may serve as the subject of the search. Optionally, multiple search terms may include the words the user wants to search for.
[0118] Optionally, the process of determining multiple search terms based on the selected message content is as follows: The selected message content is segmented into words to obtain the segmentation results. This segmentation refers to dividing text content into characters or words. The segmentation results of the selected message content can be obtained through this process. These segmentation results include single characters or single words. Optionally, a neural network model can be used to segment the selected message content. This application embodiment does not limit the technical means used to implement the segmentation.
[0119] Optionally, the selected message content can be pre-filtered before word segmentation. This filtering process involves removing special characters or spaces from the selected message content. For example, filtering can remove emoticons or redundant symbols from the selected message content. This allows for subsequent word segmentation of the filtered selected message content, improving the accuracy of the segmentation process.
[0120] The following is an example of one possible word segmentation method, but word segmentation solutions are not limited to this method.
[0121] When chat messages include text messages, the text content within the text messages is segmented to obtain words. Optionally, the text content is segmented using Natural Language Processing (NLP).
[0122] When chat messages include image messages, the text content contained in the image messages is recognized; the recognized text content is then segmented into words. Optionally, the text content contained in the image messages is recognized through text recognition processing, and then the recognized text content is segmented as described above. Optionally, the text content contained in the image messages is recognized through Optical Character Recognition (OCR).
[0123] When chat messages include voice messages, speech recognition processing is performed on the voice messages to obtain the corresponding text content; the recognized text content is then segmented into words. Optionally, the text content contained in the voice information is obtained through speech recognition processing, and then the recognized text content is segmented as described above. Optionally, Automatic Speech Recognition (ASR) is used to perform speech recognition processing on the voice messages to obtain the corresponding text content.
[0124] Optionally, after segmenting the selected message content into multiple words, each word is scored for recommendation, and words with recommendation scores higher than a threshold are selected as the search terms. The recommendation score can be calculated by considering multiple dimensions such as the search popularity of each word and the user's historical search records; this embodiment does not limit the specific calculation method used.
[0125] Step 232: Display multiple search terms determined based on the selected message content in the search interface corresponding to the selected message content.
[0126] Optionally, the search interface may include multiple search terms determined based on the selected message content.
[0127] Optionally, the search interface includes search results related to multiple search terms. Optionally, the search results related to multiple search terms are arranged according to their relevance to the multiple search terms. Optionally, the search results related to multiple search terms are arranged according to pageviews. Optionally, the arrangement of the search results related to multiple search terms can be changed as needed, such as for ad placement.
[0128] In an exemplary embodiment, one possible way to display search terms in the search interface is as follows:
[0129] 1. Detect the number of search terms.
[0130] 2. If the number of search terms determined based on the selected message content is greater than the threshold number, initialize and display the recommended search terms and search term display control of the threshold number in the search interface.
[0131] Optionally, the above threshold number is a preset value, such as 5 or 6, and this application embodiment does not limit it.
[0132] Optionally, the recommended search terms are determined from multiple search terms based on at least one condition, such as the user's search history (which could be the current user's search history or the search history of all users), semantic information of words, and contextual information. This improves interface simplicity, saves interface space, and ensures that normal user operation is not affected.
[0133] 3. In response to a trigger action on the search term display control, display other search terms in the search interface besides the recommended search terms.
[0134] In one example, such as Figure 4As shown, the search interface 40 displays multiple recommended search terms 41 and search results 42 corresponding to the multiple recommended search terms 41. The search interface 40 also displays a search term display control 43. When the user clicks the search term display control 43, other search terms 44 besides the recommended search terms 41 are displayed in the search interface 40. The search interface 40 also displays the text content 45 corresponding to the selected message content and a word selection control 46. The word selection control 46 can be used to trigger the display of the word selection interface (not shown in the figure). For a detailed description of the word selection interface and the word selection control 46, please refer to the following embodiment.
[0135] In one example, such as Figure 5 As shown, it provides an example of another search interface. Figure 5 (a) shows the search interface 51 and loading prompt icon 54 in the loading state; Figure 5 (b) Shows the search interface 52 and error message 55 in the error state; Figure 5 (c) shows the search interface 53 and refresh control 56 in refresh state.
[0136] Step 233: In response to the search trigger operation for the target search term among multiple search terms, display the search results interface corresponding to the target search term.
[0137] Optionally, the aforementioned target search term refers to any one of multiple search terms. The search results display interface includes search results related to the target search term, such as search results containing the target search term.
[0138] In one example, such as Figure 6 As shown, the chat session interface 30 displays chat messages 31 and a toolbar 32 that appears after selecting chat message 31. After the user clicks the search tool option 33 in the toolbar 32, a search interface 34 is displayed. The search interface 34 displays search results 35 related to chat message 31, as well as a search term display control 61. After the user clicks the search term display control 61, a search result display interface 62 corresponding to the target search term is displayed. The search result display interface 62 displays search results 63 related to the target search term.
[0139] In summary, the technical solution provided by the embodiments of this application, by displaying search terms in the search interface, allows users to perform touch operations on the search terms to achieve fast searching, reducing operational complexity and improving search efficiency and flexibility.
[0140] Please refer to Figure 7 This document illustrates a flowchart of a message processing method for a chat application according to another embodiment of this application. This method can be applied to a terminal, where the executing entity for each step can be... Figure 1 The terminal 10 in the application runtime environment shown can also be a client of a chat application installed on terminal 10. The method may include the following steps (701-708):
[0141] Step 701: Display the chat session interface, which includes chat messages.
[0142] Step 702: In response to the content selection operation of the chat message, display the toolbar corresponding to the selected message content in the chat message.
[0143] Optionally, the toolbar includes at least one operation tool option, such as a search tool option, a forward tool option, a favorite tool option, a delete tool option, a quote tool option, a copy tool option, a translation tool option, etc., which are not limited in this embodiment.
[0144] In an exemplary embodiment, step 702 includes the following two implementation methods:
[0145] Method 1: In response to the default selection action for chat messages, identify the message content that is selected by default in the chat messages; display the toolbar corresponding to the selected message content in the chat messages.
[0146] Optionally, the default selection operation mentioned above includes a long press operation, but other operations are also possible, and this application embodiment does not limit this. Optionally, the message content in the default selected state includes all message content corresponding to the chat message. In this case, the selected message content includes the message content in the default selected state.
[0147] Optionally, when the chat message includes text messages, the message content in the default selected state includes the entire text content of that text message. When the chat message includes image messages, the message content in the default selected state includes the entire text content obtained by image recognition processing of that image message. When the chat message includes voice messages, the message content in the default selected state includes the entire text content obtained by speech recognition processing of that voice message.
[0148] Method 2: In response to a manual selection action in a chat message, identify the message content that is manually selected in the chat message; display the toolbar corresponding to the selected message content in the chat message.
[0149] The aforementioned manual selection operation refers to manually adjusting the selected message content in a chat message. In this case, the selected message content includes message content in a manually selected state. Optionally, the manually selected message content includes multiple discontinuous segments of words within a single chat message. By directly selecting multiple discontinuous segments of words in the chat message and then performing the corresponding operation, the number of operation steps is effectively reduced, greatly improving the flexibility of the operation.
[0150] In an exemplary embodiment, the above-described content selection operation for chat messages also includes a multi-selection operation for multiple chat messages. In response to the multi-selection operation for multiple chat messages, the message content corresponding to the multiple chat messages is merged, and the merged message content is determined as the selected message content; a toolbar corresponding to the selected message content in the chat messages is displayed. In this case, the user can select multiple chat messages and then perform corresponding operations on the selected message content. For example, if a user receives two messages, namely "XX City XX District XX Street XX Community" and "Recipient XXX, Phone XXXX", the user can select both messages simultaneously and then perform corresponding operations on the merged message "XX City XX District XX Street XX Community, Recipient XXX, Phone XXXX", such as mailing or copying, improving operational flexibility.
[0151] In an exemplary embodiment, the chat session interface displays the text content corresponding to the chat message. In Method 2, the step of determining the message content in the chat message that is in a manually selected state in response to a manual selection operation on a chat message includes the following sub-steps:
[0152] a) Receive at least one selection operation for the text content corresponding to the chat message.
[0153] Each selection operation is used to select one item from the chat message. For example, the selection operation can be a swipe selection operation, where the user performs a swipe selection operation on the text content corresponding to the chat message, and the words that the swipe selection operation passes through are the selected message content, or the words between the start and end points of the swipe selection operation are the selected message content.
[0154] Optionally, if the chat message includes a text message, the text content corresponding to the chat message includes the text content contained in the text message.
[0155] Optionally, if the chat message includes an image message, the text content corresponding to the chat message includes the text content obtained by image recognition processing of the image message.
[0156] Optionally, if the chat messages include voice messages, the text content corresponding to the chat messages includes the text content obtained by performing speech recognition processing on the voice messages.
[0157] For example, when a chat message is an image or voice message, the corresponding text content can be displayed next to the message, as shown below. This allows users to manually select all or part of the message content as needed by performing the manual selection operation described above.
[0158] b. Determine the message content selected by at least one selection operation as the message content that is manually selected in the chat message.
[0159] Step 703: In response to the selection operation for the search tool option, the selected message content is segmented to obtain the segmented words of the selected message content.
[0160] Step 704: Identify multiple search terms among the words in the segmented text of the selected message content.
[0161] Step 705: Display the search interface corresponding to the selected message content. The search interface includes the aforementioned search terms.
[0162] The search interface is used to perform a search function related to the selected message content. Optionally, the search interface includes a word selection control, which triggers the display of the word selection interface. Optionally, the search interface includes search results related to the chat message. The search results related to the chat message include preliminary search results obtained after intelligent searching based on the chat message. The search interface corresponding to the selected message content can also be understood as a display interface for preliminary search results obtained after intelligent searching of key content in the chat message. Optionally, if the chat message does not contain key content, the above intelligent search operation is not performed, and the search results are not displayed in the search interface.
[0163] Step 706: In response to a specified trigger operation on the search interface, display the word selection interface corresponding to the selected message content.
[0164] Optionally, the aforementioned specified triggering operation can be a triggering operation for the word selection control in the search interface. Of course, in some other embodiments, it can also be a triggering operation for a specified area in the search interface, such as when the user clicks on the specified area to trigger the display of the word selection interface. This application embodiment does not limit this.
[0165] The word selection interface includes words obtained after segmenting the selected message content. Optionally, the word selection interface can be a standalone interface or a window. For example, the word selection interface may be displayed above the search interface, superimposed on top of it. Optionally, the word selection interface may be a floating window, displayed above the search interface, which can be dragged and moved by the user.
[0166] Optionally, keywords and non-keywords are determined from the selected message content. Keywords are displayed in the word selection interface, while non-keywords are not. Keywords include words that reflect user intent or contain key information, such as the subject, verb, and noun in a sentence. Non-keywords include words without actual meaning or that do not affect user understanding, such as "um" or "ah." Optionally, non-keywords include modal particles. Optionally, non-keywords do not contain key information. After determining the keywords and non-keywords, the keywords are displayed in the word selection interface or search interface. By actively excluding non-keywords, user interface space is saved, user intent is more accurately analyzed, and the user experience is improved.
[0167] Optionally, the step of determining the keywords and non-keywords in the selected message content can be performed after step 703. In this case, the keywords can be displayed in the search interface, while the non-keywords are not displayed in the search interface.
[0168] Step 707: In response to the word selection operation on the word selection interface, determine the target word that is selected.
[0169] Optionally, the word selection operation is a sliding selection operation. In an exemplary embodiment, one implementation of step 707 is as follows: In response to a sliding selection operation on the word selection interface, the words traversed by the sliding trajectory of the sliding selection operation are determined as target words in the selected state.
[0170] A swipe trajectory refers to the path traversed by an object (such as a user's finger) performing a swipe selection operation. When a terminal receives a swipe selection operation, it can record the position coordinates of the touch points in real time; the swipe trajectory is thus formed by the sequential connection of multiple touch points. The words traversed by the swipe trajectory refer to the areas where the display area of the words intersects with the swipe trajectory.
[0171] Step 708: Perform a search operation related to the target words.
[0172] For example, a search is performed to find search results containing the target words, and the search results are displayed. Optionally, the search results display interface mentioned in the above embodiment displays the search results obtained from the above search, and the target words are displayed in the text editing box (i.e., the search box) in the search results display interface, and the target words are editable text. In this way, the needs of users to modify the target words and then search again when they are not satisfied with the search results can be effectively met, making the search operation more flexible.
[0173] Optionally, search keywords are determined based on target words, and search results related to the search keywords are obtained. When there are multiple target words, in one example, the search keywords can be determined based on the target words and a preset logical relationship, such as an "AND" relationship, in which case the search results need to include all target words. In another example, the search keywords can be obtained by concatenating multiple target words in a set order. For example, if the target words include "game" and "video," concatenating these two target words yields "game video" as the search keyword. Furthermore, the aforementioned set order can be the selection order of the target words or the arrangement order of the target words in the word selection interface; this embodiment does not limit this.
[0174] In one example, such as Figure 8 As shown, the chat session interface 30 displays chat messages 31 and a toolbar 32 that appears after selecting chat message 31. After the user clicks the search tool option 33 in the toolbar 32, a search interface 34 is displayed. The search interface 34 displays search results 35 related to chat message 31, a search term display control 61, and a word selection control 81. When the user clicks the word selection control 81, a word selection interface 82 is displayed, where the user can select a target word 83 by sliding a selection. Then, the user clicks the search button 84 to trigger a search operation related to the target word 83.
[0175] In an exemplary embodiment, if step 702 is performed in mode 2, a search results display interface corresponding to the selected message content in the chat message is displayed in response to the selection operation for the search tool option.
[0176] like Figure 9 As shown, the chat session interface 30 displays chat messages 31. After the user selects word 91, a toolbar 32 is displayed. After the user clicks the search tool option 33 in the toolbar 32, a search results display interface 62 for word 91 is displayed. The search results display interface 62 displays search results 63 related to word 91. The user can also edit word 91 in the text editing box 92 in the search results display interface 62.
[0177] In summary, the technical solution provided by the embodiments of this application allows users to quickly select the desired search terms to trigger the corresponding search operation by displaying multiple search terms determined based on the selected message content in the search interface, without requiring users to manually select and input search terms, which is efficient and fast.
[0178] In addition, if users want to conduct further searches, the word segmentation results of the selected message content can be displayed in the word selection interface. Users can also select target words in the word selection interface to perform corresponding search operations on the target words. This enables flexible and customized selection of search terms and better meets the actual search needs of users.
[0179] Please refer to Figure 10 The diagram illustrates a flowchart of a processing method for a chat application according to another embodiment of this application. This method can be applied to a terminal, where the executing entity for each step can be... Figure 1 The terminal 10 in the application runtime environment shown can also be a client of a chat application installed on terminal 10. The method may include the following steps (1001-1005):
[0180] Step 1001: Display the chat session interface, which includes chat messages.
[0181] Step 1002: In response to the content selection operation for the chat message, determine the selected message content in the chat message.
[0182] The selected message content mentioned above can be either message content that is selected by default in the chat message or message content that is manually selected in the chat message. For details, please refer to the description in the above embodiment, which will not be repeated here.
[0183] Optionally, in response to a content selection action on a chat message, a toolbar is displayed, which may include at least one action tool option, such as a search tool option.
[0184] Step 1003: Display the word selection interface corresponding to the selected message content.
[0185] The word selection interface includes words obtained after segmenting the selected message content.
[0186] Optionally, step 1003 above is performed in response to a selection of a search tool option in the toolbar. By directly displaying the word selection interface, the user's operation steps are simplified, and the operation complexity is reduced.
[0187] Step 1004: In response to the word selection operation on the word selection interface, determine the target word that is selected.
[0188] Optionally, the word selection operation is a sliding selection operation. The sliding trajectory formed by the sliding selection operation is determined by the starting position, passing position, and ending position of the sliding selection operation. Optionally, in response to the sliding selection operation on the words displayed in the word selection interface, the display style of the selected target word is changed. Optionally, the selected target word is highlighted. The aforementioned selected target word is the word selected by the user through the sliding selection operation. Of course, the method of selecting target words is not limited to the sliding selection operation; it can also be achieved through clicking or other operations, which are not limited in this embodiment.
[0189] Optionally, the words traversed by the sliding trajectory are identified as the target words in the selected state. Determining the selected target words by the words traversed by the sliding trajectory is more convenient and faster, and avoids selecting words outside the sliding trajectory, improving the flexibility and accuracy of selecting multiple discontinuous word segments while reducing operational complexity and better aligning with user habits. From a technical implementation perspective, it is also simpler. Optionally, a single sliding selection operation can determine one word, or multiple consecutive or discontinuous words.
[0190] In one possible implementation, the sliding trajectory may include multiple segments. When the sliding trajectory includes multiple segments, the words traversed by each segment are determined; the target words in the selected state are determined; wherein, the target words include the words traversed by each segment of the sliding trajectory.
[0191] Optionally, users can perform multiple swipe selection operations in the word selection interface. Optionally, the word selection interface can support users performing multiple swipe selection operations and record the resulting multiple swipe trajectories. Optionally, multiple swipe selection operations can determine multiple segments of words. In this method, users can simultaneously select multiple non-contiguous words in a text as target words, and then perform corresponding operations on the target words, such as a search operation.
[0192] Step 1005: Perform the corresponding operation on the target words.
[0193] Optionally, the operation performed in step 1005 above includes at least one of the following operation methods:
[0194] Operation Method 1: Perform a search operation on the target words;
[0195] Operation Method 2: Perform a forwarding operation targeting the target words;
[0196] Operation Method 3: Perform a sharing operation on the target words;
[0197] Method 4: Add the target words to your favorites list;
[0198] Operation Method 5: Perform a copy operation on the target words;
[0199] Operation Method Six: Perform translation operations on the target words;
[0200] Operation Method 7: Perform document creation operation for the target words.
[0201] In an exemplary embodiment, after step 1004, a text editing box is displayed in the word selection interface, and the following step is further included: displaying the target word in the text editing box. That is, the text editing box includes the target word. The text editing box refers to a control that allows text editing. Optionally, the target word in a selected state is displayed in the text editing box, and the selected target word is editable text. In the text editing box, the user can edit the selected target word.
[0202] In response to editing operations performed on the target word, the modified target word is displayed in the text editing box. The aforementioned editing operations refer to actions such as adding or deleting from the target word. The modified target word refers to the word obtained after modifying the target word through editing operations.
[0203] Optionally, step 1005 above can be performed as follows: Perform the corresponding operation on the modified target word. Optionally, performing the corresponding operation on the modified target word can be achieved by long-pressing the modified target word, or by clicking the operation option in the word selection interface. By providing the function of further editing the selected target word, more user needs can be met, user operations can be simplified, and users do not need to edit the search text separately.
[0204] In an exemplary embodiment, after step 1004 described above, the following steps are also included:
[0205] 1. Display multiple operation options. Different operation options correspond to different operations. Optionally, the above multiple operation options can also be directly displayed in the word selection interface displayed in step 1003, without waiting for the target word to be selected before displaying them. Optionally, the above multiple operation options can be displayed in the word selection interface, or they can be displayed in a separate interface. Optionally, the above separate interface can be a pop-up window that displays multiple operation options.
[0206] 2. In response to a selection operation for a target operation option among multiple operation options, an operation corresponding to the target operation option is performed on the target word. The above-mentioned target operation option refers to any one of the multiple operation options. The user can select the target operation option according to their own intention, and then perform the operation corresponding to the target operation option to achieve the user's purpose. The above operation options include, but are not limited to, search operation options, forwarding operation options, sharing operation options, favorite operation options, copy operation options, translation operation options, and document creation operation options.
[0207] In an exemplary embodiment, the application program that performs the operation and the application program that displays the chat session interface are the same application program, that is, the above-mentioned chat application. The method flow provided in the embodiments of the present application is applied to the same application program. When the user wants to implement a certain function, there is no need to switch back and forth between multiple application programs, which can effectively reduce the operation complexity.
[0208] In one example, as Figure 11 shown, the chat session interface 30 displays chat messages 31 and a toolbar 32 displayed after the user selects the chat message 31. After the user clicks the search tool option 33 in the toolbar 32, a word selection interface 82 is displayed, and the user can select the target word 83 through a sliding selection operation in the word selection interface 82. In addition, a search control 84 is also displayed in the word selection interface 82.
[0209] In an exemplary embodiment, each word in the word selection interface is displayed with a word segmentation display effect. That is, there is a certain degree of differentiation between each word. For example, the word selection result includes multiple word options, and each word option displays a word. A word option can be a rectangular or other shaped interface element area.
[0210] In one example, as Figure 12 shown, the word selection interface 120 displays a word segmentation display effect. For example, the character "你" corresponds to a display box 121, indicating that "你" is a single character after word segmentation; the word "喝茶" corresponds to a display box 122, indicating that "喝茶" is a two-character word after word segmentation.
[0211] In summary, the technical solution provided in the embodiments of the present application performs word segmentation processing on the text content corresponding to the chat message, displays the word segmentation result in the word selection interface, and can select the target word from the word segmentation result through a word selection operation, thereby implementing the function of performing corresponding operations on the target word, improving the flexibility, convenience, and accuracy of performing operations on chat messages, reducing the operation complexity, and enriching the functions that can be performed in the chat session interface.
[0212] Please refer to Figure 13The diagram illustrates a flowchart of a search processing method provided in another embodiment of this application. This method can be applied to a terminal, where the executing entity for each step can be... Figure 1 The terminal 10 in the application runtime environment shown can be the operating system of the terminal 10, or the client of an application (such as a chat application or other application) installed and running on the terminal 10. This method may include the following steps (1301-1305):
[0213] Step 1301: Display the user interface.
[0214] The user interface can be any display interface shown on the terminal. For example, it can be the user interface displayed by the operating system, such as the desktop or settings interface, or it can be the user interface displayed by an application installed on the terminal, such as the chat session interface of a chat application, the game interface of a game application, the video playback interface of a video application, and so on.
[0215] Step 1302: In response to a content selection operation on the user interface, determine the selected interface content in the user interface.
[0216] This content selection operation is used to select interface content within the user interface. It should be noted that the interface content can be visible within the user interface, such as text; or it can be invisible within the interface, such as audio content.
[0217] The selected interface content can be all or part of the interface content. Furthermore, the selected interface content can include text, images, or voice, etc., and this application embodiment does not limit this.
[0218] Step 1303: Display the word selection interface corresponding to the selected interface content. The word selection interface includes words obtained after word segmentation of the selected interface content.
[0219] When the selected interface content is in text format, the selected text content is directly segmented to obtain words.
[0220] When the selected interface content is in a non-text format (such as an image or voice), the non-text selected interface content is recognized to obtain the text selected interface content. Then, the text selected interface content is segmented to obtain words. The above recognition processing includes, but is not limited to, image recognition processing and voice recognition processing.
[0221] Step 1304: In response to the word selection operation on the word selection interface, determine the target word that is selected.
[0222] Word selection can be a sliding selection, a clicking selection, or other forms of selection. For example, in the case of a sliding selection, the words that the sliding path passes through are identified as the selected target words; or, the words within the closed shape formed by the sliding path are identified as the selected target words.
[0223] Step 1305: Perform the corresponding search operation for the target words.
[0224] Optionally, search keywords are determined based on target words, and search results related to the search keywords are obtained. When there are multiple target words, in one example, the search keywords can be determined based on the target words and a preset logical relationship, such as an "AND" relationship, in which case the search results need to include all target words. In another example, the search keywords can be obtained by concatenating multiple target words in a set order. For example, if the target words include "game" and "video," concatenating these two target words yields "game video" as the search keyword. Furthermore, the aforementioned set order can be the selection order of the target words or the arrangement order of the target words in the word selection interface; this embodiment does not limit this.
[0225] In summary, the technical solution provided in this application embodiment performs word segmentation on the selected interface content, displays the segmentation results in the word selection interface, and allows the user to select target words from the segmentation results through word selection operations, thereby realizing the function of performing search operations on target words. This significantly improves the efficiency of performing search operations on certain content in the interface and reduces the complexity of operations.
[0226] Below, in conjunction with Figure 14 This paper describes the methods for obtaining and displaying search results in the embodiments of this application. The process can be as follows:
[0227] 1. Perform intent analysis on the input search terms.
[0228] In one example, an intent classification model is used to determine the intent category corresponding to the search term. The intent classification model can be a pre-trained machine learning model used for intent classification. When training this model, training samples can be manually labeled and then used to train the model. The output of the intent classification model can include the weight of the search term in each intent category.
[0229] Optionally, the above-mentioned intent classification includes, but is not limited to, articles, public accounts, mini-programs, videos, etc., which can be set according to actual needs, and this application embodiment does not limit this.
[0230] 2. Perform result recall for each intent category to obtain the recall results for each category.
[0231] Optionally, recall methods include, but are not limited to, inverted index recall, term recall, vector recall, and pattern matching recall. Recall refers to retrieving search results related to the search term from a database.
[0232] 3. Sort the recall results for each category separately.
[0233] For the recall results of each category, a relevance ranking algorithm can be used to rank them within that category. For example, the recall results can be scored based on dimensions such as timeliness and relevance, and then ranked according to the scores.
[0234] 4. Combine the recall results from all categories and sort the results for output.
[0235] After sorting the recall results for each category, a few of the top-ranked results can be selected, and then further sorted. This sorting can also be done by comprehensively scoring the recall results based on dimensions such as timeliness, relevance, intent weighting, and diversity. Finally, a few results with scores above a threshold are selected as the final search results.
[0236] It should be noted that, in order to simplify the description, only a few exemplary embodiments are described in this application. The various embodiments of this application can be combined arbitrarily, that is, the relevant description in one embodiment can be applied to another embodiment, and this application does not limit this.
[0237] The following are embodiments of the apparatus of this application, which can be used to execute embodiments of the method of this application. For details not disclosed in the apparatus embodiments of this application, please refer to the embodiments of the method of this application.
[0238] Please refer to Figure 15 This diagram illustrates a block diagram of a search processing apparatus for a chat application according to an embodiment of this application. The apparatus has the functionality to implement the method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The apparatus 1500 may include: a conversation interface display module 1501, a toolbar display module 1502, and a search interface display module 1503.
[0239] The conversation interface display module 1501 is used to display a chat conversation interface, which includes chat messages.
[0240] The toolbar display module 1502 is used to display a toolbar corresponding to the selected message content in the chat message in response to the content selection operation of the chat message, the toolbar including a search tool option.
[0241] The search interface display module 1503 is used to display the search interface corresponding to the selected message content in response to the selection operation of the search tool option. The search interface is used to implement the search function related to the selected message content.
[0242] In an exemplary embodiment, the search interface includes multiple search terms determined based on the selected message content. The search interface display module 1503 is further configured to, in response to a search trigger operation for a target search term among the multiple search terms, display a search results display interface corresponding to the target search term, the search results display interface including search results related to the target search term.
[0243] In an exemplary embodiment, the search interface display module 1503 is further configured to:
[0244] If the number of search terms determined based on the selected message content is greater than a threshold number, the recommended search terms and search term display controls of the threshold number are initialized and displayed in the search interface.
[0245] In response to a trigger operation on the search term display control, other search terms besides the recommended search terms are displayed in the search interface.
[0246] In an exemplary embodiment, the device 1500 further includes: a word selection interface display module, a target word determination module, and a search operation execution module.
[0247] The word selection interface display module is used to respond to a specified trigger operation on the search interface and display the word selection interface corresponding to the selected message content. The word selection interface includes words obtained after word segmentation of the selected message content.
[0248] The target word determination module is used to determine the target word that is selected in response to the word selection operation on the word selection interface.
[0249] The search operation execution module is used to perform search operations related to the target words.
[0250] In an exemplary embodiment, the word selection operation is a sliding selection operation.
[0251] The target word determination module is used to determine the words that are selected in response to the sliding selection operation of the word selection interface.
[0252] In an exemplary embodiment, the device 1500 further includes a keyword determination module, configured to determine keyword words and non-keyword words among the words; wherein the keyword words are displayed on the word selection interface, and the non-keyword words are not displayed on the word selection interface.
[0253] In an exemplary embodiment, the toolbar display module 1502 is used for:
[0254] In response to a default selection operation for the chat message, determine the message content in the chat message that is in a default selected state; display a toolbar corresponding to the selected message content in the chat message, wherein the selected message content includes the message content in the default selected state;
[0255] or,
[0256] In response to a manual selection operation on the chat message, the message content in the chat message that is in a manually selected state is determined; a toolbar corresponding to the selected message content in the chat message is displayed, the selected message content including the message content in the manually selected state.
[0257] In an exemplary embodiment, the chat session interface displays the text content corresponding to the chat message.
[0258] The toolbar display module 1502 is further configured to receive at least one selection operation for the text content corresponding to the chat message, each selection operation being used to select a message content in the chat message; and to determine the message content selected by the at least one selection operation as the message content in the chat message that is in a manually selected state.
[0259] In an exemplary embodiment, when the chat message includes a text message, the text content corresponding to the chat message includes the text content contained in the text message; when the chat message includes an image message, the text content corresponding to the chat message includes the text content obtained by performing image recognition processing on the image message; when the chat message includes a voice message, the text content corresponding to the chat message includes the text content obtained by performing voice recognition processing on the voice message.
[0260] In summary, the technical solution provided in this application enriches the operational functionality by displaying a toolbar corresponding to the selected message content after the user performs a content selection operation on the chat session interface, allowing the user to choose the desired operation. Furthermore, by setting a search tool option in the toolbar, an entry point for implementing the search function is provided. Users only need to select the message content in the chat session interface and click the search tool option to trigger the search function, without needing to switch applications or input keywords. This significantly improves the efficiency of performing search operations on certain content in chat messages and reduces operational complexity.
[0261] Please refer to Figure 16 This diagram illustrates a block diagram of a processing apparatus for a chat application according to another embodiment of this application. The apparatus has the functionality to implement the method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The apparatus 1600 may include: a conversation interface display module 1601, a message content determination module 1602, a word selection interface display module 1603, a target word determination module 1604, and an operation execution module 1605.
[0262] The conversation interface display module 1601 is used to display a chat conversation interface, which includes chat messages.
[0263] The message content determination module 1602 is used to determine the selected message content in the chat message in response to the content selection operation of the chat message.
[0264] The word selection interface display module 1603 is used to display the word selection interface corresponding to the selected message content. The word selection interface includes words obtained after word segmentation of the selected message content.
[0265] The target word determination module 1604 is used to determine the target word in the selected state in response to the word selection operation of the word selection interface.
[0266] The operation execution module 1605 is used to perform corresponding operations on the target words.
[0267] In an exemplary embodiment, the word selection operation is a sliding selection operation, and the target word determination module 1604 is used to determine the sliding trajectory of the sliding selection operation in response to the sliding selection operation on the word selection interface; and to determine the words that the sliding trajectory passes through as the target words that are in the selected state.
[0268] In an exemplary embodiment, the target word determination module 1604 is configured to determine the words passed through each segment of the sliding trajectory when the sliding trajectory includes multiple segments; and to determine the target word in the selected state; wherein the target word includes the words passed through each segment of the sliding trajectory.
[0269] In an exemplary embodiment, the operation execution module 1605 is configured to: perform a search operation on the target word; or, perform a forwarding operation on the target word; or, perform a sharing operation on the target word; or, perform a bookmarking operation on the target word; or, perform a copying operation on the target word; or, perform a translation operation on the target word; or, perform a document creation operation on the target word.
[0270] In an exemplary embodiment, the device 1600 further includes an option display module for displaying multiple operation options, each operation option corresponding to a different operation.
[0271] The operation execution module 1605 is used to perform an operation corresponding to the target operation option in response to the selection operation of the target operation option among the plurality of operation options.
[0272] In an exemplary embodiment, the device 1600 further includes a toolbar display module and a search interface display module.
[0273] The toolbar display module is used to display a toolbar corresponding to the selected message content in the chat message in response to the content selection operation of the chat message. The toolbar includes a search tool option.
[0274] The search interface display module is used to display the search interface corresponding to the selected message content in response to the selection operation of the search tool option. The search interface is used to implement the search function related to the selected message content.
[0275] The word selection interface display module 1603 is also used to execute the step of displaying the word selection interface corresponding to the selected message content in response to a specified trigger operation for the search interface.
[0276] In an exemplary embodiment, the chat message includes at least one of the following: text message, image message, and voice message.
[0277] In an exemplary embodiment, the device 1600 further includes: a word segmentation processing module, used for:
[0278] When the chat message includes the text message, the text content contained in the text message is segmented to obtain the words;
[0279] When the chat message includes the image message, the text content contained in the image message is identified, and the identified text content is segmented to obtain the words.
[0280] When the chat message includes the voice message, the voice message is processed by speech recognition to obtain the corresponding text content; the recognized text content is then processed by word segmentation to obtain the words.
[0281] In an exemplary embodiment, the device 1600 further includes a keyword determination module, configured to determine keyword words and non-keyword words among the words; wherein the keyword words are displayed on the word selection interface, and the non-keyword words are not displayed on the word selection interface.
[0282] In an exemplary embodiment, the device 1600 further includes a text box display module and a word editing module.
[0283] A text box display module is used to display a text editing box, which includes the target words.
[0284] The word editing module is used to display the modified target word in the text editing box in response to the editing operation on the target word.
[0285] The operation execution module 1605 is used to perform corresponding operations on the modified target words.
[0286] In an exemplary embodiment, the application that performs the operation and the application that displays the chat session interface are the same application.
[0287] In summary, the technical solution of the embodiments provided in this application performs word segmentation on the text content corresponding to the chat message, displays the word segmentation results in the word selection interface, and allows the target word to be selected in the word segmentation results through word selection operation, thereby realizing the function of performing corresponding operations on the target word, improving the flexibility, convenience and accuracy of performing operations on the chat message, reducing the complexity of operation, and enriching the functions that can be performed in the chat session interface.
[0288] Please refer to Figure 17This diagram illustrates a block diagram of a search processing apparatus according to another embodiment of this application. The apparatus has the functionality to implement the method example described above; this functionality can be implemented in hardware or by hardware executing corresponding software. The apparatus 1700 may include: a user interface display module 1701, an interface content determination module 1702, a word selection interface display module 1703, a target word determination module 1704, and a search operation execution module 1705.
[0289] User interface display module 1701 is used to display the user interface.
[0290] The interface content determination module 1702 is used to determine the selected interface content in the user interface in response to a content selection operation for the user interface.
[0291] The word selection interface display module 1703 is used to display the word selection interface corresponding to the selected interface content. The word selection interface includes words obtained after word segmentation processing of the selected interface content.
[0292] The target word determination module 1704 is used to determine the target word in the selected state in response to the word selection operation of the word selection interface.
[0293] The search operation execution module 1705 is used to perform corresponding search operations for the target words.
[0294] In an exemplary embodiment, the search operation execution module 1705 is used to determine search keywords based on the target words and obtain search results related to the search keywords.
[0295] In an exemplary embodiment, the word selection operation is a sliding selection operation. The target word determination module 1704 is configured to, in response to the sliding selection operation on the word selection interface, determine the sliding trajectory of the sliding selection operation; and determine the words traversed by the sliding trajectory as the target words in a selected state.
[0296] In an exemplary embodiment, the target word determination module 1704 is configured to determine the words passed through each segment of the sliding trajectory when the sliding trajectory includes multiple segments; and to determine the target word in the selected state; wherein the target word includes the words passed through each segment of the sliding trajectory.
[0297] In an exemplary embodiment, the device 1700 further includes a keyword determination module, configured to determine keyword words and non-keyword words among the words; wherein the keyword words are displayed on the word selection interface, and the non-keyword words are not displayed on the word selection interface.
[0298] In an exemplary embodiment, the device 1700 further includes a text box display module and a word editing module.
[0299] A text box display module is used to display a text editing box, which includes the target words.
[0300] The word editing module is used to display the modified target word in the text editing box in response to the editing operation on the target word.
[0301] The search operation execution module 1705 is also used to perform a corresponding search operation on the modified target words.
[0302] In summary, the technical solution provided in this application embodiment performs word segmentation on the selected interface content, displays the segmentation results in the word selection interface, and allows the user to select target words from the segmentation results through word selection operations, thereby realizing the function of performing search operations on target words. This significantly improves the efficiency of performing search operations on certain content in the interface and reduces the complexity of operations.
[0303] Please refer to Figure 18 This diagram illustrates a structural block diagram of a terminal 1800 provided in one embodiment of this application. The terminal 1800 may be... Figure 1 Terminal 10 is shown in the application runtime environment. This terminal is used to implement the methods provided in the above embodiments. Specifically:
[0304] Typically, terminal 1800 includes a processor 1801 and a memory 1802.
[0305] Processor 1801 may include one or more processing cores, such as a quad-core processor, an octa-core processor, etc. Processor 1801 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field Programmable Gate Array), and PLA (Programmable Logic Array). Processor 1801 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 1801 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 1801 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.
[0306] Memory 1802 may include one or more computer-readable storage media, which may be non-transitory. Memory 1802 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in memory 1802 is used to store at least one instruction, at least one program, code set, or instruction set, which is configured to be executed by one or more processors to implement the methods described above.
[0307] In some embodiments, the terminal 1800 may also optionally include a peripheral device interface 1803 and at least one peripheral device. The processor 1801, memory 1802, and peripheral device interface 1803 can be connected via a bus or signal line. Each peripheral device can be connected to the peripheral device interface 1803 via a bus, signal line, or circuit board. Specifically, the peripheral device includes at least one of the following: a radio frequency circuit 1804, a display screen 1805, a camera assembly 1806, an audio circuit 1807, a positioning assembly 1808, and a power supply 1809.
[0308] Those skilled in the art will understand that Figure 18The structure shown does not constitute a limitation on terminal 1800 and may include more or fewer components than shown, or combine certain components, or use different component arrangements.
[0309] In an exemplary embodiment, a computer-readable storage medium is also provided, the storage medium storing at least one instruction, at least one program, code set, or instruction set, the at least one instruction, the at least one program, the code set, or the instruction set being executed by a processor to implement the methods described above.
[0310] Optionally, the computer-readable storage medium may include: ROM (Read Only Memory), RAM (Random Access Memory), SSD (Solid State Drives), or optical disc, etc. The random access memory may include ReRAM (Resistance Random Access Memory) and DRAM (Dynamic Random Access Memory).
[0311] In an exemplary embodiment, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the terminal to perform the methods described above.
[0312] It should be understood that "multiple" as used herein refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. Furthermore, the step numbers described herein are merely illustrative of one possible execution order. In some other embodiments, the steps may not be executed in numerical order, such as two steps with different numbers being executed simultaneously, or two steps with different numbers being executed in the reverse order of the illustration. This application does not limit this.
[0313] The above description is merely an exemplary embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A search processing method for use in chat applications, characterized in that, The method includes: Display a chat session interface, which includes chat messages; The system receives at least one swipe selection operation for the text content corresponding to the chat message, wherein the chat message includes at least one of the following: text message, image message, and voice message, and the text content includes at least one of the following: text content contained in the text message, text content obtained by image recognition processing of the image message, and text content obtained by speech recognition processing of the voice message; The words that the sliding trajectory of the at least one sliding selection operation passes through, or the words between the start and end points of the at least one sliding selection operation, are determined as the message content in the chat message that is in a manually selected state. The message content in the manually selected state includes multiple discontinuous words in a chat message. Display a toolbar corresponding to the selected message content in the chat messages. The toolbar includes a search tool option. The selected message content includes the message content that is in a manually selected state. In response to the selection operation of the search tool option, a search interface corresponding to the selected message content is displayed, and the search interface is used to implement search functions related to the selected message content; In response to a specified trigger operation on the search interface, a word selection interface corresponding to the selected message content is displayed. The word selection interface includes words obtained after word segmentation of the selected message content. The word selection interface includes multiple word options, each word option displays one word, and each word option corresponds to a section of interface elements. In response to a sliding selection operation on the word selection interface, the words that the sliding trajectory of the sliding selection operation passes through, or the words within the closed shape formed by the sliding trajectory corresponding to the sliding selection operation, are determined as target words in the selected state; one sliding selection operation is used to determine one word, or multiple consecutive or non-consecutive words. Perform a search operation related to the target word.
2. The method according to claim 1, characterized in that, The search interface includes multiple search terms determined based on the selected message content; After displaying the search interface corresponding to the selected message content, the method further includes: In response to a search trigger operation for a target search term among the plurality of search terms, a search results display interface corresponding to the target search term is displayed, the search results display interface including search results related to the target search term.
3. The method according to claim 2, characterized in that, The method further includes: If the number of search terms determined based on the selected message content is greater than a threshold number, the recommended search terms and search term display controls of the threshold number are initialized and displayed in the search interface. In response to a trigger operation on the search term display control, other search terms besides the recommended search terms are displayed in the search interface.
4. The method according to claim 1, characterized in that, Before displaying the word selection interface corresponding to the selected message content, the method further includes: Identify the key words and non-key words in the given words; The keywords are displayed on the word selection interface, while the non-keywords are not displayed on the word selection interface.
5. The method according to any one of claims 1 to 4, characterized in that, The method further includes: In response to a default selection operation for the chat message, determine the message content in the chat message that is in a default selected state; display a toolbar corresponding to the selected message content in the chat message, the selected message content including the message content in the default selected state.
6. A search processing method, characterized in that, The method includes: Display user interface; In response to a content selection operation on the user interface, the selected interface content in the user interface is determined; wherein, when the user interface is a chat session interface, at least one swipe selection operation is received for the text content corresponding to a chat message, the chat message including at least one of the following: text message, image message, voice message, the text content including at least one of the following: text content contained in the text message, text content obtained by image recognition processing of the image message, text content obtained by speech recognition processing of the voice message; the words traversed by the swipe trajectory of the at least one swipe selection operation, or the words between the start and end points of the at least one swipe selection operation, are determined as the message content in the chat message that is in a manually selected state, the message content in the manually selected state including multiple discontinuous words in a chat message, and the selected interface content including the message content in the manually selected state; The selected interface content is displayed as a word selection interface. The word selection interface includes words obtained after word segmentation of the selected interface content. The word selection interface includes multiple word options, each word option displays one word, and each word option corresponds to a section of interface elements. In response to a sliding selection operation on the word selection interface, the words that the sliding trajectory of the sliding selection operation passes through, or the words within the closed shape formed by the sliding trajectory corresponding to the sliding selection operation, are determined as target words in the selected state; one sliding selection operation is used to determine one word, or multiple consecutive or non-consecutive words. Perform the corresponding search operation for the target words.
7. The method according to claim 6, characterized in that, The step of performing the corresponding search operation for the target words includes: Determine search keywords based on the target words; Obtain search results related to the search keywords.
8. A search processing device for use in chat applications, characterized in that, The device includes: A conversation interface display module is used to display a chat conversation interface, which includes chat messages; The toolbar display module is used to receive at least one swipe selection operation on the text content corresponding to the chat message. The chat message includes at least one of the following: text message, image message, and voice message. The text content includes at least one of the following: text content contained in the text message, text content obtained by image recognition processing of the image message, and text content obtained by speech recognition processing of the voice message. The module determines the words traversed by the swipe trajectory of the at least one swipe selection operation, or the words between the start and end points of the at least one swipe selection operation, as the message content in the chat message that is in a manually selected state. The message content in the manually selected state includes multiple discontinuous words in the chat message. The module displays a toolbar corresponding to the selected message content in the chat message, the toolbar including a search tool option, and the selected message content including the message content in the manually selected state. The search interface display module is used to display the search interface corresponding to the selected message content in response to the selection operation of the search tool option. The search interface is used to implement the search function related to the selected message content. The word selection interface display module is used to respond to a specified trigger operation on the search interface and display the word selection interface corresponding to the selected message content. The word selection interface includes words obtained after word segmentation of the selected message content. The word selection interface includes multiple word options, each word option displays one word, and one word option corresponds to a section of interface elements. The target word determination module is used to respond to a sliding selection operation on the word selection interface, and to determine the words that the sliding trajectory of the sliding selection operation passes through, or the words within the closed shape formed by the sliding trajectory corresponding to the sliding selection operation, as target words in the selected state; one sliding selection operation is used to determine one word, or multiple consecutive or non-consecutive words. The search operation execution module is used to perform search operations related to the target words.
9. A search processing device, characterized in that, The device includes: User interface display module, used to display the user interface; The interface content determination module is used to determine the selected interface content in the user interface in response to a content selection operation on the user interface; wherein, when the user interface is a chat session interface, it receives at least one sliding selection operation on the text content corresponding to a chat message, the chat message including at least one of the following: text message, image message, voice message, the text content including at least one of the following: text content contained in the text message, text content obtained by image recognition processing of the image message, and text content obtained by speech recognition processing of the voice message; the words traversed by the sliding trajectory of the at least one sliding selection operation, or the words between the start and end points of the at least one sliding selection operation, are determined as the message content in the chat message that is in a manually selected state, the message content in the manually selected state including multiple discontinuous words in a chat message, and the selected interface content including the message content in the manually selected state; The word selection interface display module is used to display the word selection interface corresponding to the selected interface content. The word selection interface includes words obtained after word segmentation of the selected interface content. The word selection interface includes multiple word options, each word option displays one word, and one word option corresponds to a block of interface elements. The target word determination module is used to respond to a sliding selection operation on the word selection interface, and to determine the words that the sliding trajectory of the sliding selection operation passes through, or the words within the closed shape formed by the sliding trajectory corresponding to the sliding selection operation, as target words in the selected state; one sliding selection operation is used to determine one word, or multiple consecutive or non-consecutive words. The search operation execution module is used to perform corresponding search operations on the target words.
10. A terminal, characterized in that, The terminal includes a processor and a memory, the memory storing at least one program, the at least one program being loaded and executed by the processor to implement the search processing method for a chat application as described in any one of claims 1 to 5, or to implement the search processing method as described in claim 6 or 7.
11. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one program, which is loaded and executed by a processor to implement the search processing method for a chat application as described in any one of claims 1 to 5, or to implement the search processing method as described in claim 6 or 7.
12. A computer program product, characterized in that, The computer program product includes computer instructions stored in a computer-readable storage medium. The processor of the terminal reads the computer instructions from the computer-readable storage medium and executes the computer instructions to implement the search processing method for a chat application as described in any one of claims 1 to 5, or to implement the search processing method as described in claim 6 or 7.
Citation Information
Patent Citations
Search method and terminal
CN103294363A
Information searching method and device
CN106777249A
User interaction interface searching method and device based on mobile terminal
CN107357577A