Text processing method and related products

CN116520999BActive Publication Date: 2026-08-07TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TENCENT TECHNOLOGY (SHENZHEN) CO LTD
Filing Date
2022-01-20
Publication Date
2026-08-07

AI Technical Summary

Technical Problem

在这个过程中,终端设备等待字符逐个输入,导致交流沟通的效率低下

Benefits of technology

[0014]在社交页面上显示N个提示文本,用户可以从N个提示文本中选择符合自己期望的目标提示文本,并在社交页面上以文本消息的形式显示目标提示文本。通过N个提示文本,可以丰富社交页面元素以及辅助用户沟通交流,相比终端接收用户输入语句,本申请方案用户不需要逐个字符依次输入,只需要选择文本,可以降低用户操作难度,以及降低用户和终端之间的交互频率,提高交流沟通的效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116520999B_ABST
    Figure CN116520999B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a text processing method and related products. The text processing method comprises: displaying a social page, the social page comprising N prompt texts, N being a positive integer; and displaying a target prompt text in the form of a text message in the social page when the target prompt text is selected from the N prompt texts. According to the present application, the social page elements can be enriched, and the communication efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a text processing method and related products. Background Technology

[0002] Through various instant messaging software, people can now chat and communicate with friends far away in real time without leaving home. This not only satisfies people's need for communication, but also keeps the time and economic costs of communication relatively low.

[0003] In instant messaging software, the chat process is as follows: the user enters characters into the input field and clicks the send button. The terminal device responds to the click and sends the text from the input field to the chat partner. During this process, the terminal device waits for characters to be entered one by one, resulting in low communication efficiency. Summary of the Invention

[0004] This application provides a text processing method, apparatus, computer device, storage medium, and computer program product, which can enrich social page elements and improve communication efficiency.

[0005] This application provides a text processing method, including:

[0006] Display a social page, which includes N prompt texts, where N is a positive integer;

[0007] When the target prompt text is selected from the N prompt texts, the target prompt text is displayed as a text message on the social page.

[0008] One embodiment of this application provides a text processing apparatus, including:

[0009] The first display module is used to display a social page, which includes N prompt texts, where N is a positive integer;

[0010] The second display module is used to display the target prompt text as a text message on the social page when the target prompt text among the N prompt texts is selected.

[0011] One aspect of this application provides a computer device, including a memory and a processor. The memory stores a computer program, and when the computer program is executed by the processor, the processor performs the methods described in the above embodiments.

[0012] One aspect of this application provides a computer storage medium storing a computer program, which includes program instructions. When the program instructions are executed by a processor, they perform the methods described in the above embodiments.

[0013] One embodiment of this application provides a computer program product, which includes a computer program / instruction stored in a computer-readable storage medium. When the computer program / instruction is executed by the processor of a computer device, it performs the methods described in the above embodiments.

[0014] This solution displays N prompt texts on a social media page, allowing users to select the desired prompt text. The selected prompt text is then displayed as a text message on the social media page. These N prompt texts enrich the social media page elements and facilitate user communication. Compared to a terminal receiving user input, this solution eliminates the need for users to input characters one by one; they only need to select text. This reduces the difficulty of user operation, decreases the frequency of interaction between the user and the terminal, and improves communication efficiency. Attached Figure Description

[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the 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.

[0016] Figure 1 This is a system architecture diagram for text processing provided in an embodiment of the present invention;

[0017] Figure 2 This is a schematic diagram of a text processing scenario provided by this application example;

[0018] Figure 3 This is an illustration of a text processing method provided in an embodiment of this application. Figure 1 ;

[0019] Figure 4 This is a schematic diagram of the interface of a language pack uploading system provided in an embodiment of this application;

[0020] Figure 5 This is a schematic diagram of a special effects animation provided in an embodiment of this application;

[0021] Figure 6 This is an illustration of a text processing method provided in an embodiment of this application. Figure 2 ;

[0022] Figure 7 This is a schematic diagram of an interface for downloading language packs provided in an embodiment of this application. Figure 1 ;

[0023] Figure 8This is a schematic diagram of an interface for downloading language packs provided in an embodiment of this application. Figure 2 ;

[0024] Figure 9 This is a schematic diagram of a text retrieval method provided in an embodiment of this application;

[0025] Figure 10 This is a schematic diagram illustrating an embodiment of obtaining search terms provided in this application;

[0026] Figure 11 This is a schematic diagram of a B+ tree provided in an embodiment of this application;

[0027] Figure 12a This is an illustration of a text processing method provided in an embodiment of this application. Figure 3 ;

[0028] Figure 12b This is a schematic diagram of a first display panel provided in an embodiment of this application;

[0029] Figure 13 This is an illustration of a recommended text provided in an embodiment of this application. Figure 1 ;

[0030] Figure 14 This is an illustration of a recommended text provided in an embodiment of this application. Figure 2 ;

[0031] Figure 15 This is a timing diagram of a text processing embodiment provided in this application;

[0032] Figure 16 This is a schematic diagram of a process for generating a language pack provided in an embodiment of this application;

[0033] Figure 17 This is a schematic diagram of the structure of a text processing device provided in an embodiment of this application;

[0034] Figure 18 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0035] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0036] It should be understood that in the specific implementation of this application, data such as session records and user-inputted characters are involved. When this application is used in specific products or technologies, user permission or consent is required, and the collection, use and processing of related data must comply with the relevant laws, regulations and standards of the relevant countries and regions.

[0037] Please see Figure 1 This is a system architecture diagram for text processing provided in an embodiment of the present invention. Server 10f establishes a connection with a cluster of terminal devices via switch 10e and communication bus 10d. The cluster of terminal devices may include: terminal device 10a, terminal device 10b, ..., terminal device 10c. Taking terminal device 10a and terminal device 10b as an example, user 1 (on terminal device 10a) and user 2 (on terminal device 10b) are having a conversation in the same social application. Terminal device 10a displays a social page containing N prompt texts. When user 1 selects the target prompt text from the N prompt texts, the target prompt text is displayed as a text message on the social page. Terminal device 10a also sends the target prompt text as a text message to terminal device 10b via server 10f.

[0038] Terminal equipment can also be referred to as terminal, user equipment (UE), access terminal, user unit, mobile device, user terminal, wireless communication equipment, user agent, or user device. Terminal equipment can be smart home appliances, handheld devices with wireless communication capabilities (such as smartphones and tablets), computing devices (such as personal computers (PCs), in-vehicle terminals, smart voice interaction devices, wearable devices, or other smart devices, but is not limited to these.

[0039] Server 10f can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0040] This application can be applied to social message editing scenarios (e.g., instant messaging message editing scenarios, comment message editing scenarios, etc.). By providing N prompt texts, it assists users in inputting text messages, enriching chat content (or comment content) and social page elements. This not only improves the efficiency of social communication but also increases the fun of the social process.

[0041] The following are Figure 2 For example, this section explains how to assist users in inputting text messages in an instant messaging message editing scenario. Please refer to [link / reference]. Figure 2 , Figure 2 This is a schematic diagram illustrating a text processing scenario provided in this application example. Figure 2 The page shown is the instant messaging conversation between the user and their friend "Xiaoming". When the user wants to send a text message to "Xiaoming", they can click button 201, and the instant messaging conversation page will display three prompt texts. From Figure 2 As can be seen, the specific content of prompt text 1 is: "The bright moon rises over the sea, we share this moment though we are far apart.", the specific content of prompt text 2 is: "The dew is white tonight, the moon is brighter in my hometown.", and the specific content of prompt text 3 is: "When will the bright moon appear? I raise my cup to ask the blue sky."

[0042] These three texts can be downloaded actively by the user from the text library, set by the instant messaging application's operators, or matched by the instant messaging application from the text library based on the user's historical conversation records with their friend "Xiaoming". In addition to classical Chinese poems, the text library can also provide famous quotes, song lyrics, internet slang, fables, and more.

[0043] Users can choose the text they need from these three text options. For example, if a user needs text 3, they can click on the area containing text 3. Text 3 will then be displayed in the input field 202 of the instant messaging session. After the user clicks the "Send" button, text 3 will be displayed as a text message in the message display area of ​​the instant messaging session, specifically text message 203, which contains text 3.

[0044] Optionally, after a user clicks on the area containing text 3, text 3 will not be displayed in the input field 202, but will instead be displayed directly as a text message in the message display area of ​​the instant messaging session page.

[0045] Of course, in addition to displaying text message 203 in the message display area of ​​the instant messaging session page, text 3 should also be sent to the friend "Xiaoming" as a text message.

[0046] The specific process of displaying a social page (such as the instant messaging session page in the above embodiment) and displaying the target prompt text (such as text message 203 in the above embodiment) in the form of a text message can be found in the following. Figures 3-16 Corresponding implementation examples.

[0047] Please see Figure 3 This is an illustration of a text processing method provided in an embodiment of this application. Figure 1Since this application involves user-side visualization, the following steps are described with terminal devices (e.g., smartphones, tablets, smart bracelets, etc.) as the execution subject. Text processing may include the following steps:

[0048] Step S301: Display a social page, which includes N prompt texts, where N is a positive integer.

[0049] Specifically, a social page is a page within a social application. A social page can be a social conversation page (e.g., an instant messaging page) or a social comment page (e.g., a comment page where you comment on your friends' posts).

[0050] There are three ways to trigger the display of a social media page containing N prompt texts:

[0051] One method is user-downloaded display, where the user actively downloads N texts (referred to as prompt texts) from the social application's text library. The terminal device then displays a social page containing these N prompt texts. These N prompt texts can belong to the same language pack, meaning they have the same text type. Text types can include: lyrics, classical Chinese poetry, trending internet slang, and famous quotes, etc. Of course, the text types of these N prompt texts can also be different. The text library can be stored on the social server corresponding to the social page.

[0052] Secondly, there is the user search display. After the user enters a search term in the search bar, the terminal device searches the text library for N texts that match the search term (the N matched texts are called prompt texts). The terminal device displays a social page containing the N prompt texts. During the display of the N prompt texts, overlapping characters between the prompt texts and the search term are displayed using the first character display method, and the remaining non-overlapping characters are displayed using the second character display method. The first character display method can be highlighted, bolded, or displayed at the first character size, etc. Correspondingly, the second character display method can be non-highlighted, non-bolded, or displayed at the second character size, etc. The first character size is larger than the second character size.

[0053] Thirdly, there is automatic recommendation display on the terminal. When the user enters characters into the input field, the terminal device searches for N texts that match the input characters from the text library (the N matching texts are called prompt texts). The terminal device displays a social page containing the N prompt texts to recommend to the user. When displaying the N prompt texts, overlapping characters between the prompt texts and the characters in the input field are displayed using the first character display method, and the remaining non-overlapping characters are displayed using the second character display method.

[0054] The text library can include one or more language packs, each containing one or more texts. The texts in the text library can be uploaded by the operators of the social application corresponding to the social page, by users of the social application, or by both. For example, an operator might edit a language pack containing one or more texts in the backend and store it in the text library; or, for another example, a user of the social application might edit text (referred to as user input text) and send it to the social server. The social server would then package a preset number of user input texts into a language pack and store the language pack in the text library.

[0055] Of course, a text library may not contain a language pack; in this case, the text library simply includes one or more text files.

[0056] Please see Figure 4 , Figure 4 This is a schematic diagram of the interface of a language pack uploading system provided in an embodiment of this application. Operators can... Figure 4 The interface displays the language pack type for the current language pack creation process, the language pack name, one or more texts included in the language pack, and a topic tag for each text. The topic tags are used for subsequent matching with search terms (or characters in the input field) to find texts that match the search terms (or characters in the input field). For example... Figure 4 As shown, the currently created language pack type is: lyrics, the language pack name is: XXX, and three lyric texts have been set for this language pack, with a theme tag set for each lyric text. After the operator clicks the "Complete" button, Figure 4 The terminal displaying the interface packages these three lyric texts, along with the corresponding hashtags for each lyric text, into a lyric-type language pack and sends it to the social server.

[0057] As shown in Table 1 below, the language packs and texts in the text library can be stored according to the data structure shown in Table 1 below, where the poem ID corresponds to the text ID of this application, the poem content corresponds to the text content of this application, and the user ID can correspond to the ID of the operator in this application.

[0058] User ID Language pack ID Language pack name Poetry ID Poem content Upload time

[0059] Step S302: When the target prompt text among the N prompt texts is selected, the target prompt text is displayed as a text message on the social page.

[0060] Specifically, users can select one or more prompt texts from N prompt texts; the selected prompt text can be called the target prompt text. When the terminal device detects that the target prompt text has been selected, it displays the target prompt text as a text message in the message display area of ​​the social page, that is, it displays the target text message in the message display area (as described above). Figure 2 In the corresponding embodiment, text message 203 includes target prompt text. The message display area of ​​the social page is used to display the communication message flow between users.

[0061] Optionally, the social page is a conversational social page within a social application for the target user. Besides displaying the target prompt text and text message in the message display area of ​​the social page, it also needs to send the target prompt text to the target user as a text message. Since the target prompt text is sent as a text message, the terminal device calls the text message sending interface to send the target prompt text to the social server. The social server then forwards the target prompt text as a text message to the target user's terminal device, which then displays the target prompt text as a text message on the social application's page.

[0062] In addition to displaying the target prompt text as a text message in the message display area, the terminal device can also play special effects animations that match the target prompt text to enrich the elements of the social scene and increase the fun of the user's social process. The specific process is as follows: The terminal device obtains the special effects animation that matches the target prompt text, plays the special effects animation that matches the target prompt text on the social page, and sends the animation identifier of the special effects animation to the terminal device of the target user. The terminal device of the target user also plays the special effects animation on the page of the social application according to the animation identifier.

[0063] Please see Figure 5 , Figure 5 This is a schematic diagram of a special effects animation provided in an embodiment of this application, such as... Figure 5 As shown, after the user selects the target prompt text "When will the moon be clear and bright? I raise my cup to ask the blue sky," the target prompt text is sent as a text message to the message display area of ​​the social page, and a special effect animation matching the target prompt text plays on the social page. Figure 5 In the video, the special effects animation is multiple moon icons falling from the top to the bottom of the social page at different speeds.

[0064] As described above, this solution eliminates the need for users to input characters one by one; they only need to select text. This reduces the difficulty of user operation, decreases the frequency of interaction between the user and the terminal, and improves communication efficiency. Operators can create and upload language packs through the language pack upload system interface, simplifying the language pack creation process and improving upload efficiency. Furthermore, displaying special effects animations matching the target prompt text on the social page enriches the elements of the social page and increases the fun of the user's social interaction.

[0065] Please see Figure 6 , Figure 6 This is an illustration of a text processing method provided in an embodiment of this application. Figure 2 This embodiment mainly describes the first method (i.e., display when the user downloads) and the second method (i.e., display when the user searches) for triggering the display of N prompt texts. The text processing includes the following steps:

[0066] Step S601: Display the social page in the social application. The social page includes a language pack access point.

[0067] Specifically, the terminal device displays a social page within the social application. This page includes a text library access point, which can be a button. After the user clicks the text library access point, a pop-up window displays multiple language packs and a download link for each language pack. Each language pack contains at least one text. Each language pack corresponds to a language pack type, which can include: lyrics, classical Chinese poetry, trending internet slang, and famous quotes, etc. The language pack type matches the text type of the text contained within that language pack.

[0068] Users can select a language pack to download by clicking the download entry. When the download entry for the target language pack is triggered, the terminal device downloads the target language pack to the local database. After the download is complete, a language pack access entry is added to the social page. It should be noted that the language pack access entry can be set in the social page's function option bar or the emoji bar. The emoji bar entry is only displayed after the emoji access entry is triggered, while the emoji access entry is set in the function option bar. The local database is used to store downloaded text, which can include text downloaded from a text library and text created by the user, or the local database can only store text downloaded from a text library.

[0069] To summarize the above process, the language pack access point will only appear in the function bar or emoticon bar of the social page if the user has downloaded at least one language pack (or if at least one text exists in the local database).

[0070] Please see Figure 7 , Figure 7 This is a schematic diagram of an interface for downloading language packs provided in an embodiment of this application. Figure 1 The social page includes a function options bar. Users can click the emoticon access point 701 in the function options bar, and the terminal device will display multiple emoticons and an emoticon bar. Users can click the emoticon addition point 702 in the emoticon bar, and the terminal device will display the "Emoticon Shop" button and the "Language Pack Shop" button. After the user clicks the "Language Pack Shop" button, a pop-up window will appear (i.e., the corresponding...). Figure 7 A pop-up window appears in the language pack store, displaying three language packs (300 Tang and Song Dynasty Poems, lyrics, and famous quotes) and a download button for each. Users can click the download button for the "300 Tang and Song Dynasty Poems" language pack to download it on their device. After the download is complete, a language pack access entry (703) is added to the emoticon bar. Figure 7 The "Language Pack Store" button corresponds to the text library access entry in this application. Figure 7 The download button for each language pack corresponds to the download entry for this application.

[0071] Please see Figure 8 , Figure 8 This is a schematic diagram of an interface for downloading language packs provided in an embodiment of this application. Figure 2 After the user clicks the download button for the "Three Hundred Tang and Song Poems" language pack, the terminal device downloads the language pack. Once the download is complete, a language pack access entry (801) is added to the function options bar.

[0072] In general, Figure 7 This means that after a terminal device downloads at least one language pack, the language pack access point is set in the emoji bar. Figure 8 This means that after a terminal device downloads at least one language pack, the language pack access point is set in the function options bar.

[0073] Step S602: When the language pack access entry is triggered, the N prompt texts are displayed on the social page.

[0074] The first method for triggering the display is as follows:

[0075] When the language pack access point is triggered, N texts (called N prompt texts) contained in the local database are displayed on the third display panel of the social page. In simpler terms, when a user clicks the language pack access point, all texts from the local database (which includes text downloaded from the text library and can also include user-created text) are displayed on the social page, or all texts downloaded from the text library are displayed on the social page.

[0076] N prompt texts can be displayed on the social media page in order of their popularity. Text popularity refers to the degree of attention a text receives (or its reach), and is determined by factors such as text exposure, discussion volume, and number of comments. Naturally, the higher the text's popularity, the higher it will appear on the social media page.

[0077] The social page is a conversation page with the target user. N prompt texts are displayed on the social page based on their match with the target conversation record. The target conversation record refers to the conversation record corresponding to the social page; that is, the conversation record between the user on the terminal device and the target user. Naturally, the higher the match with the target conversation record, the higher the corresponding prompt text will be displayed on the social page. For example, if the target conversation record mainly contains greetings and expressions of concern between friends, and if the N prompt texts include both love-related and friendship-related prompt texts, then the friendship-related prompt texts can be displayed first, and the love-related prompt texts can be displayed later.

[0078] N notification texts can be displayed on the social page according to their download time. The later the download time, the higher the corresponding notification text will be displayed on the social page.

[0079] The second method for triggering the display is as follows:

[0080] When the language pack access point is triggered, a third display panel is shown on the social media page. This third display panel includes a search bar and a search entry point. The search bar is used to retrieve search terms. Users can enter characters into the search bar and click the search entry point after completion. When the search entry point is triggered, the terminal device combines the characters in the search bar into a search term. The terminal device then retrieves N texts (called N suggestion texts) that match the search term from multiple texts contained in the text library, and downloads these N suggestion texts. These N suggestion texts can be downloaded to the local database. The terminal device then displays the N suggestion texts on the third display panel of the social media page. Of course, if some suggestion texts are already stored in the local database, it is not necessary to download those.

[0081] The text library can be stored on the social application's server. Therefore, matching suggestion texts based on search terms can be accomplished through interaction between the terminal device and the social server. Specifically, the terminal device sends the search terms to the social server, which then matches and generates N suggestion texts, which are then transmitted back to the terminal device. Besides the text library, the search scope can also be a local database. This means the terminal device matches the search terms with texts in its local database, searching for N suggestion texts that match the search terms.

[0082] Optionally, after the user clicks the language pack access entry, the third display panel, in addition to showing the search bar and search entry, can first display all text stored in the terminal device's local database (referred to as downloaded text; the local database can include text downloaded from a text library as well as text created by the user). Once N prompt texts have been matched based on the search terms and downloaded, the text displayed in the third display panel will change from the downloaded text to the N prompt texts.

[0083] In addition to users entering characters in the search bar to obtain search terms, if characters already exist in the input bar, they can be directly used as search terms for retrieval. The specific process is as follows: The social page includes an input bar. When at least one character is detected in the input bar and the search entry is triggered, the terminal device adds the characters from the input bar to the search bar and combines the characters from the search bar into search terms. If the input bar is empty when the search entry is triggered, after adding the characters from the search bar to the input bar, both the search bar and the input bar will display the same characters.

[0084] Please see Figure 9 , Figure 9 This is a schematic diagram of a text retrieval method provided in an embodiment of this application. After the user clicks on the language pack access entry, a third display panel is displayed on the social page. From Figure 9 As can be seen, the third display panel includes two download texts (Text 1: "Famous Quotes 1", and Text 2: "Famous Quotes 2"), a search bar, and a search entry (the search entry is...). Figure 9 (The magnifying glass button in the image). Users can enter the characters "bright moon" into the search bar and click the magnifying glass button after entering the information. The terminal device will use "bright moon" as a search term and match it with the text in the text library. Assuming two texts are matched (called two prompt texts), namely prompt text 1 "The bright moon rises over the sea, we share this moment though far apart" and prompt text 2 "The dew is white tonight, the moon is bright in my hometown", these two prompt texts will be displayed on the third display panel. That is, the third display panel will no longer show the two download texts, but instead show the two prompt texts.

[0085] Please see Figure 10 , Figure 10It is a schematic diagram for obtaining a retrieval phrase provided by an embodiment of the present application. The current input field contains 2 characters: "Bright Moon". When the user clicks the magnifying glass button, the terminal device adds the characters "Bright Moon" in the input field to the retrieval bar, combines the characters "Bright Moon" into a retrieval phrase, and matches the retrieval phrase "Bright Moon" with the texts in the text library. Suppose 2 texts (referred to as 2 prompt texts) are matched, namely prompt text 1 "A bright moon rises over the sea, at this time we share this moment across the ends of the earth", and prompt text 2 "Dew turns white tonight, the moon is brightest in my hometown".

[0086] Taking the retrieval range as the text library (the retrieval range can also be the local database) as an example, the specific process of retrieving N prompt texts according to the retrieval phrase is as follows: The text library includes multiple texts, and each text corresponds to a theme label. The terminal device matches the retrieval phrase with all the theme labels, and takes the matched theme label as the target theme label. Query the K text IDs (Identity Document) corresponding to the target theme label. Among them, each theme label corresponds to one or more text IDs, as well as the correlation weight between the theme label and each text ID. Select the N text IDs with the largest relevant weight from the K text IDs, and retrieve the N texts corresponding to the N text IDs through the B+ tree. The retrieved N texts are used as N prompt texts. Subsequently, when displaying the N prompt texts on the third display panel, the N prompt texts can be displayed arranged according to the size of the relevant weight. Of course, the greater the relevant weight, the more forward the corresponding prompt text is displayed on the third display panel.

[0087] If the retrieval range is the local database, N prompt texts can be retrieved from the local database according to the theme label in the same way as above.

[0088] The relationships among data such as theme labels and text IDs can be referred to Tables 1 and 2 below. As shown in Table 1 below, each theme label corresponds to one or more language pack ID - text ID - correlation weights. As shown in the second row of Table 1, the theme label is: XXX, the text ID corresponding to this theme label is 10001, and the correlation weight between this theme label and the text with ID 10001 is 98.

[0089] Convert the content of Table 2 into a B+ tree, and the text content corresponding to a certain text ID can be retrieved on this B+ tree.

[0090] Table 1

[0091] 1001 XXX 101-10001-98,101-10002-95 1002 YYY 102-10003-98,102-10004-95

[0092] Table 2

[0093] 101 lyrics 10001 Lyrics 1 Lyrics 1 101 lyrics 10002 Lyrics 2 Lyrics 2 102 Ancient poems 10003 Ancient Poem 1 Ancient Poem 2 102 Ancient poems 10004 Ancient poem 1 Ancient poem 2

[0094] Non-leaf nodes of a B+ tree do not store data, only key-value pairs. In this application, non-leaf nodes store only text IDs, not text. During retrieval, the tree is traversed starting from the root node. If the current text ID is greater than the root node's key, the traversal begins from the right subtree; if the current text ID is less than the root node's key, the traversal begins from the left subtree. This traversal continues until a leaf node's key matches the current text ID. The text stored in this leaf node is then used as the prompt text corresponding to the current text ID. By repeating the retrieval N times on the B+ tree, N prompt texts corresponding to N text IDs can be retrieved.

[0095] Please see Figure 11 , Figure 11 This is a schematic diagram of a B+ tree provided in an embodiment of this application. In a B+ tree, all nodes except leaf nodes contain only a key value, while leaf nodes contain both a key value and data. In this application, the key value in a node is the text ID, and the data contained in the leaf node is the text corresponding to the text ID. Assuming the text ID of the text to be retrieved is 56, traversing from the root node of the B+ tree, the key value of the root node is 40. Traversing from the right subtree, the key value of the current root node of the right subtree is 45, and traversing from the right subtree continues. The key values ​​of the current root node of the right subtree are 48 and 54. Since 56 > 54, traversing from the right subtree continues. At this point, the traversal reaches the rightmost leaf node, whose key values ​​include 54 and 56, and traversal stops. The terminal device reads the text pointed to by the pointer of the leaf node with key value 56; this text is the text with text ID 56.

[0096] Step S603: When the target prompt text among the N prompt texts is selected, the target prompt text is displayed as a text message on the social page.

[0097] The specific process of step S603 can be found in [reference needed]. Figure 3 Step S302 in the corresponding embodiment will not be repeated here.

[0098] As mentioned above, due to the high retrieval performance of B+ trees, text retrieval using B+ trees can quickly match prompt texts, reducing user waiting time and improving the display efficiency of prompt texts on social media pages. Furthermore, when displaying N prompt texts, they are arranged according to the relevance weight between topic tags and prompt texts, ensuring that prompt texts that meet user expectations are placed first, thus improving recommendation accuracy.

[0099] Please see Figure 12a , Figure 12a This is an illustration of a text processing method provided in an embodiment of this application. Figure 3This embodiment mainly describes the third way to trigger the display of N prompt texts (i.e., automatic terminal recommendation). The text processing includes the following steps:

[0100] Step S1201: Display the social page in the social application, the social page including an input field.

[0101] Step S1202: When at least one character is detected in the input field, the N prompt texts are displayed on the social page, and all N prompt texts match the characters in the input field.

[0102] Specifically, in a social application, a social page is displayed, which includes an input field where users can enter characters. When the terminal device detects at least one character in the input field, it searches for N texts (called prompt texts) that match the character in the input field from a text library, downloads the N matching prompt texts, and displays the N matching prompt texts on the social page.

[0103] It should be noted that the second trigger display method mentioned above can use exact matching to find N suggestion texts that match the search phrase; the third trigger display method can use fuzzy matching to find N suggestion texts that match the characters in the input field. Fuzzy matching is faster than exact matching, but correspondingly, the matching results of fuzzy matching are less accurate than those of exact matching.

[0104] In one alternative approach, besides using the aforementioned fuzzy matching or precise matching to match N prompt texts, a trained artificial intelligence model can be used to extract text features and then match N prompt texts. The specific process is as follows:

[0105] The terminal device obtains the input character sequence from the social media page. This input character sequence can be the search terms mentioned earlier, or characters from the input field. A trained semantic feature extraction model is invoked to extract features from the input character sequence (referred to as target character sequence features). These target character sequence features are matched against multiple candidate text features corresponding to multiple candidate texts to find N matching candidate text features. These candidate text features are also output by the semantic feature extraction model after the candidate texts are input. The terminal device uses the N matching candidate text features and their corresponding candidate texts as N prompt texts and displays these N prompt texts on the social media page. During the display of the N prompt texts, overlapping characters between the prompt text and the input character sequence are displayed using the first character display method, while non-overlapping characters are displayed using the second character display method. Texts in the text library can be referred to as candidate texts.

[0106] To minimize user disruption, after receiving N prompt texts, the terminal device can initially display a portion of them. Only if the user requests more prompt texts will all N prompt texts be displayed. The specific process is as follows: When at least one character is detected in the input field, a first display panel is shown on the social media page, displaying M prompt texts and a tiled entry point. The M prompt texts are part of the N prompt texts, and M is less than or equal to N. The user can trigger the tiled entry point. When the terminal device detects the tiled entry point being triggered, the first display panel is closed, and a second display panel is shown on the social media page, displaying N prompt texts. The size of the first display panel is smaller than the size of the second display panel. When displaying M prompt texts on the first display panel, they can be arranged according to their matching degree with the characters in the input field; similarly, when displaying N prompt texts on the second display panel, they can be arranged according to their matching degree with the characters in the input field.

[0107] Furthermore, the first display panel includes a text panel and an emoji panel. M prompt texts are displayed in the text panel, and the emoji panel displays emojis that match the characters in the input field. When a trigger action is detected on a target emoji in the emoji panel, the target emoji is displayed as an image message in the message display area of ​​the social page. It should be noted that if no emoji matches the characters in the input field, the text panel overwrites the emoji panel, and M prompt texts are also displayed on the text panel.

[0108] Please see Figure 12b , Figure 12b This is a schematic diagram of a first display panel provided in an embodiment of this application. The first display panel includes an emoji recommendation layer (which can correspond to the emoji panel of this application) and a poetry recommendation layer (which can correspond to the text panel of this application). The emoji recommendation layer has a high priority and its UI (User Interface) attribute is left-aligned, while the poetry recommendation layer has a low priority and its UI attribute is left-aligned. The poetry recommendation layer is located to the right of the emoji recommendation layer. When the emoji recommendation layer is empty, because the UI attribute of the poetry recommendation layer is left-aligned, the poetry recommendation layer will automatically fill the position of the emoji recommendation layer.

[0109] Please see Figure 13 , Figure 13 This is an illustration of a recommended text provided in an embodiment of this application. Figure 1 The user enters characters in the input field, and the terminal device matches these characters with text in a text library. Assuming two texts are matched (called suggestion texts), the device can select the text from the suggestion texts that has a higher match probability with the characters in the input field (i.e.,...). Figure 13The text in the input field is displayed in the text panel of the first display panel. Simultaneously, the emoticon panel in the first display panel displays the emoticon that best matches the character in the input field. If the user clicks on the text in the text panel, the text is displayed as a text message in the message display area of ​​the social page.

[0110] Please see Figure 14 , Figure 14 This is an illustration of a recommended text provided in an embodiment of this application. Figure 2 The user enters characters in the input field, and the terminal device matches these characters with text in a text library. Assuming two texts are matched (called suggestion texts), the suggestion text with the higher match probability to the characters in the input field (i.e.,...) can be selected. Figure 14 The text 1) is displayed on the text panel in the first display panel, which also includes a tiled entry (the tiled entry is...). Figure 14 (The triangle button in the middle is clicked). After the user clicks the tiled entry, two matching prompt texts are displayed on the second display panel (these two prompt texts are: Prompt Text 1: "Text 1 Text 1 Text 1 Text 1", and Prompt Text 2: "Text 2 Text 2 Text 2 Text 2"). When the user clicks Prompt Text 2, Prompt Text 2 is displayed as a text message in the message display area of ​​the social page.

[0111] Of course, if there are many matched texts, the second display panel cannot display them all at once. Users can view all the matched prompt texts by clicking the drop-down button or sliding the display area of ​​the second display panel.

[0112] Optionally, during the display of M prompt texts on the first display panel, if auxiliary prompt texts (such as...) are displayed among the M prompt texts... Figure 13 The selected text will display the auxiliary prompt text as a text message in the message display area of ​​the social page.

[0113] Optionally, the display panel can be either a first display panel or a second display panel. The terminal device tracks the display duration of the target display panel. When the tracked display duration exceeds a preset duration threshold, or when the input field continuously receives characters (referred to as input characters), the target display panel is closed. This indicates that the text recommendation made by the terminal device based on the characters in the input field does not meet the user's expectations, or the user does not currently need the prompt text. Therefore, the first or second display panel is closed to reduce user interference. If the rate at which the input field receives input characters exceeds a preset rate threshold, it indicates that the input field is continuously receiving input characters.

[0114] Step S1203: When the target prompt text among the N prompt texts is selected, the target prompt text is displayed as a text message on the social page.

[0115] The specific process of step S1203 can be found in [reference needed]. Figure 3 Step S302 in the corresponding embodiment will not be repeated here.

[0116] Optionally, the text in the text library can be manually set by the social application's operators. However, relying solely on operators for setting text not only increases their workload but may also result in a limited variety of text types in the text library. Therefore, to enrich the quantity and variety of language packs in the text library, all users can participate in creating language packs. The specific process is as follows: The social page also includes a text creation entry point, which users can trigger. When the entry point is triggered, the terminal device displays a blank panel and a "complete" button. This blank panel is used to retrieve multiple user-input texts. Users can input text on the blank panel and click the "complete" button after completion. The terminal device combines the characters on the blank panel into the user-input text and sends it to the social server corresponding to the social page. This process can be executed multiple times, allowing the terminal device to retrieve and send multiple user-input texts to the social server. After receiving multiple user-input texts, the social server identifies the user-input text to determine its text type and packages other user-input texts belonging to that text type into a language pack. The type of this language pack is consistent with the text type of the user-input text. The language pack is stored in a text library for other users to download or for matching with input characters (or search terms). In addition to sending multiple user-input texts to the social server, the terminal device can also store multiple user-input texts in a local database for later display on a third-party display panel. Alternatively, the social server can directly package these multiple user-input texts into a language pack for other users to download or for matching with input characters (or search terms).

[0117] As mentioned above, matching and recommending prompts and emojis based on the characters entered by the user in the input field can enrich the recommended elements. In addition, displaying part of the prompt text on the social page first, and then displaying the full text after the user interacts with it, reduces interference for the user. Furthermore, in addition to operators, users can also participate in the creation of language packs, which can enrich the number and types of language packs in the text library.

[0118] The foregoing Figure 6 Corresponding embodiments and Figure 12aThe corresponding embodiments describe in detail three ways to trigger the display of N prompt texts. These three trigger display methods (or any two trigger display methods) can be superimposed and appear sequentially on the social page. For example, when a user clicks the language pack access entry, all texts included in the local database (referred to as downloaded texts) are displayed on the third display panel. The third display panel also includes a search bar and a search entry. The user enters characters in the search bar and clicks the search entry after completion. The downloaded texts are no longer displayed on the third display panel; instead, texts matching the characters in the search bar (referred to as first matching texts) are displayed. The user can close the third display panel by clicking a blank area on the social page. When a user enters characters in the input field on the social page, and the terminal device detects at least one character in the input field, M texts matching the characters in the input field (referred to as prompt texts) are displayed on the first display panel. After the user clicks the tiling entry, N prompt texts matching the characters in the input field are displayed on the second display panel, where M ≤ N. The above process first displays the downloaded texts according to trigger display method one, then displays the first matching texts according to trigger display method two, and finally displays N prompt texts according to trigger display method three.

[0119] For example, when a user enters characters in the input field of a social media page, and the terminal device detects at least one character in the input field, M texts matching the characters in the input field (referred to as second matching texts) are displayed on the first display panel. After the user clicks the tiled entry, the first display panel closes, and P texts matching the characters in the input field (referred to as second matching texts) are displayed on the second display panel, where M is less than or equal to P. The user can click on a blank area of ​​the social media page to close the second display panel. If the user clicks the language pack access entry on the social media page, N texts from the local database (referred to as N prompt texts) are displayed on the third display panel. The above process first displays the texts matching the characters in the input field according to trigger display method three, and then displays the N prompt texts according to trigger display method one.

[0120] For example, when a user enters characters in the input field of a social networking page, and the terminal device detects at least one character in the input field, M matching texts (referred to as second matching texts) are displayed on the first display panel. After the user clicks the tiled entry, the first display panel closes, and P matching texts (referred to as second matching texts) are displayed on the second display panel. The user can click on a blank area of ​​the social networking page to close the second display panel. Clicking the language pack access entry on the social networking page displays a third display panel, which includes a search bar and a search entry. The user enters characters in the search bar and, after completing the input, clicks the search entry, displaying N matching texts (referred to as N prompt texts) on the third display panel. The above process first displays the matching texts according to trigger display method three, and then displays the N prompt texts according to trigger display method two.

[0121] Please see Figure 15 , Figure 15 This is a sequence diagram of text processing provided in an embodiment of this application. A user inputs characters into the input field of a social application's user interface. The terminal device matches the characters in the input field with multiple topic tags in a tag database to obtain the poem ID corresponding to the matched topic tag. The terminal device sends a request to the poetry database, carrying the poem ID corresponding to the matched topic tag. The poetry database returns the poem corresponding to that poem ID to the terminal device. The terminal device displays the returned poem on the user interface.

[0122] Please see Figure 16 , Figure 16 This is a schematic diagram of a process for generating a language pack according to an embodiment of this application. Generating a language pack includes the following steps:

[0123] Step S1601: Obtain the user input text.

[0124] Step S1602: Whether to package the user input text into a language pack.

[0125] Specifically, the social server determines whether to package the user input text into a language pack. If yes, it proceeds to step S1603; otherwise, it proceeds to step S1604. The decision to package the text into a language pack can be based on business needs or the quantity of user input text to be packaged.

[0126] Step S1603: Package the user input text into a language pack, create a language pack identifier for the language pack, associate the language pack and the language pack identifier, and insert them into the database.

[0127] Step S1604: Insert the user-input text into the database.

[0128] For further details, please see Figure 17 This is a schematic diagram of the structure of a text processing device provided in an embodiment of this application. Figure 17 As shown, the text processing device 1 can be applied to the above-mentioned... Figures 2-16 The terminal device in the corresponding embodiment. Specifically, the text processing device 1 can be a computer program (including program code) running on a computer device, for example, the text processing device 1 is an application software; the text processing device 1 can be used to execute the corresponding steps in the method provided in the embodiments of this application.

[0129] The text processing device 1 may include: a first display module 11 and a second display module 12.

[0130] The first display module 11 is used to display a social page, which includes N prompt texts, where N is a positive integer;

[0131] The second display module 12 is used to display the target prompt text in the form of a text message on the social page when the target prompt text among the N prompt texts is selected.

[0132] In one possible implementation, the social page is a page within a social application, and the first display module 11, when displaying the social page, is specifically used for:

[0133] The social page is displayed in the social application, and the social page includes a language pack access point;

[0134] When the language pack access point is triggered, the N prompt texts are displayed on the social page.

[0135] In one possible implementation, the text processing device 1 further includes a download module 13.

[0136] Download module 13 is used to display multiple language packs and download entry for each language pack. When the download entry for a target language pack among the multiple language packs is triggered, the target language pack is downloaded to the local database. After the target language pack is downloaded, the language pack access entry is added to the social page.

[0137] The local database includes the N prompt texts. When the first display module 11 is used to display the N prompt texts on the social page, it is specifically used to: display the N prompt texts contained in the local database on the social page.

[0138] In one possible implementation, the N prompt texts are displayed on the social media page in order of text popularity; or...

[0139] The N prompt texts are displayed on the social page in order of their matching degree with the target conversation record, where the target conversation record is the conversation record corresponding to the social page; or,

[0140] The N notification texts are displayed on the social media page according to their download time.

[0141] In one possible implementation, the first display module 11, when used to display the N prompt texts on the social page, is specifically configured to:

[0142] A search bar is displayed on the social page;

[0143] When the search bar retrieves a search term, the N prompt texts are displayed on the social page. All N prompt texts match the search term. The overlapping characters between the prompt texts and the search term are displayed using the first character display method, and the remaining characters are displayed using the second character display method.

[0144] In one possible implementation, the social page further includes an input field and a search entry, and the text processing device 1 further includes an adding module 14.

[0145] The addition module 14 is used to add the characters in the input field to the search field and combine the characters in the search field into the search terms when at least one character is detected in the input field and the search entry is triggered.

[0146] In one possible implementation, the social page is a page within the social application, and the first display module 11, when displaying the social page, is specifically used for:

[0147] The social page, including an input field, is displayed in the social application.

[0148] When at least one character is detected in the input field, the N prompt texts are displayed on the social page. All N prompt texts match the characters in the input field. The overlapping characters between the prompt texts and the characters in the input field are displayed using a first character display method, and the remaining characters are displayed using a second character display method.

[0149] In one possible implementation, the first display module 11, when used to display the N prompt texts on the social page, is specifically configured to:

[0150] The social page displays M prompt texts and tiled entry points, wherein the M prompt texts belong to the N prompt texts;

[0151] When the tiled entry is triggered, the N prompt texts are displayed on the social page.

[0152] In one possible implementation, the M prompt texts and the tiled entrance are displayed on a first display panel of the social page, and the N prompt texts are displayed on a second display panel of the social page, wherein the size of the first display panel is smaller than the size of the second display panel.

[0153] In one possible implementation, the M prompt texts are displayed on the first display panel in order of their matching degree with the characters in the input field, and the N prompt texts are displayed on the second display panel in order of their matching degree with the characters in the input field.

[0154] In one possible implementation, the text processing device 1 further includes a closing module 15.

[0155] The closing module 15 is used to close the target display panel when the display duration of the target display panel exceeds a duration threshold; or, when the input bar is detected to continuously receive input characters, close the target display panel; wherein the target display panel is a first display panel or a second display panel.

[0156] In one possible implementation, the first display panel includes a text panel and an emoticon panel, wherein the M texts are displayed on the text panel and the emoticon panel is used to display emoticons that match the characters in the input field.

[0157] In one possible implementation, the social page further includes a text creation entry, and the text processing device 1 further includes a sending module 16.

[0158] Sending module 16 is used to display a blank panel when the text creation entry is triggered, the blank panel being used to acquire multiple user-input texts;

[0159] The sending module 16 is also used to send the user input text to the social server corresponding to the social page when the multiple user input texts are obtained, so that the social server packages the multiple input texts into a language pack.

[0160] In one possible implementation, the social page is a conversational social page with the target user in a social application, and the sending module 16 is further configured to: send the target prompt text to the target user in the form of a text message, so that the terminal device where the target user is located displays the target prompt text in the form of a text message on the page of the social application.

[0161] In one possible implementation, the text processing device 1 further includes a playback module 17.

[0162] Playback module 17 is used to play special effects animations that match the target prompt text on the social page;

[0163] The playback module 17 is also used to send the animation identifier of the special effects animation to the target user, so that the terminal device where the target user is located plays the special effects animation on the page of the social application according to the animation identifier.

[0164] In one possible implementation, when the first display module 11 is used to display a social page, it is specifically used to: obtain an input character sequence from the social page; call a semantic feature extraction model to extract target character sequence features from the input character sequence; find N candidate text features that match the target character sequence features among candidate text features that correspond one-to-one with multiple candidate texts; use the N candidate texts corresponding to the N candidate text features found as N prompt texts respectively, and display the N prompt texts on the social page, wherein overlapping characters between the prompt texts and the input character sequence are displayed using a first character display method, and the remaining characters are displayed using a second character display method.

[0165] According to an embodiment of the present invention, Figures 2-16 Each step involved in the method shown can be performed by... Figure 17 The text processing device shown is executed by various modules within it. For example, Figure 3 Steps S101-S102 shown Figure 6 Steps S601-S603 are shown. Figure 12a Steps S1201-S1203 shown can be respectively generated by Figure 17 The first display module 11, the second display module 12, the download module 13, the add module 14, the close module 15, the send module 16, and the play module 17 shown in the figure are used to perform this action.

[0166] Further, please see Figure 18 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The above... Figures 2-16 In the corresponding embodiment, the terminal device can be a computer device 1000. For example... Figure 18As shown, computer device 1000 may include a user interface 1002, a processor 1004, an encoder 1006, and a memory 1008. A signal receiver 1016 is used to receive or transmit data via a cellular interface 1010, a Wi-Fi interface 1012, ..., or an NFC interface 1014. The encoder 1006 encodes the received data into a data format that can be processed by a computer. The memory 1008 stores a computer program, and the processor 1004 is configured to execute the steps in any of the above method embodiments via the computer program. The memory 1008 may include volatile memory (e.g., dynamic random access memory DRAM) and may also include non-volatile memory (e.g., one-time programmable read-only memory OTPROM). In some instances, the memory 1008 may further include memory remotely located relative to the processor 1004, which can be connected to the computer device 1000 via a network. The user interface 1002 may include a keyboard 1018 and a display 1020.

[0167] exist Figure 18 In the computer device 1000 shown, the processor 1004 can be used to call computer programs stored in the memory 1008 to achieve:

[0168] Display a social page, which includes N prompt texts, where N is a positive integer;

[0169] When the target prompt text is selected from the N prompt texts, the target prompt text is displayed as a text message on the social page.

[0170] In one embodiment, the social page is a page in a social application, and when the processor 1004 displays the social page, it specifically performs the following steps:

[0171] The social page is displayed in the social application, and the social page includes a language pack access point;

[0172] When the language pack access point is triggered, the N prompt texts are displayed on the social page.

[0173] In one embodiment, the processor 1004 further performs the following steps:

[0174] Displays multiple language packs and download links for each language pack;

[0175] When the download entry for the target language pack among the multiple language packs is triggered, the target language pack is downloaded to the local database;

[0176] After the target language pack is downloaded, add an access point for the language pack to the social page;

[0177] The local database includes the N prompt texts. When the processor 1004 executes the step of displaying the N prompt texts on the social page, it specifically performs the following steps: displaying the N prompt texts contained in the local database on the social page.

[0178] In one embodiment, the N prompt texts are displayed on the social media page in order of text popularity; or...

[0179] The N prompt texts are displayed on the social page in order of their matching degree with the target conversation record, where the target conversation record is the conversation record corresponding to the social page; or,

[0180] The N notification texts are displayed on the social media page according to their download time.

[0181] In one embodiment, when the processor 1004 displays the N prompt texts on the social page, it specifically performs the following steps:

[0182] A search bar is displayed on the social page;

[0183] When the search bar retrieves a search term, the N prompt texts are displayed on the social page. All N prompt texts match the search term. The overlapping characters between the prompt texts and the search term are displayed using the first character display method, and the remaining characters are displayed using the second character display method.

[0184] In one embodiment, the social page further includes an input field and a search entry, and the processor 1004 further performs the following steps:

[0185] When at least one character is detected in the input field and the search entry is triggered, the character in the input field is added to the search field, and the characters in the search field are combined into the search term.

[0186] In one embodiment, the social page is a page within the social application, and when the processor 1004 executes the step of displaying the social page, it specifically performs the following steps:

[0187] The social page, including an input field, is displayed in the social application.

[0188] When at least one character is detected in the input field, the N prompt texts are displayed on the social page. All N prompt texts match the characters in the input field. The overlapping characters between the prompt texts and the characters in the input field are displayed using a first character display method, and the remaining characters are displayed using a second character display method.

[0189] In one embodiment, when the processor 1004 displays the N prompt texts on the social page, it specifically performs the following steps:

[0190] The social page displays M prompt texts and tiled entry points, wherein the M prompt texts belong to the N prompt texts;

[0191] When the tiled entry is triggered, the N prompt texts are displayed on the social page.

[0192] In one embodiment, the M prompt texts and the tiled entrance are displayed on a first display panel of the social page, and the N prompt texts are displayed on a second display panel of the social page, wherein the size of the first display panel is smaller than the size of the second display panel.

[0193] In one embodiment, the M prompt texts are displayed on the first display panel in order of their matching degree with the characters in the input field, and the N prompt texts are displayed on the second display panel in order of their matching degree with the characters in the input field.

[0194] In one embodiment, the processor 1004 further performs the following steps:

[0195] When the display duration of the target display panel exceeds a duration threshold, the target display panel is closed; or, when the input field continuously receives input characters, the target display panel is closed; wherein, the target display panel is a first display panel or a second display panel.

[0196] In one embodiment, the first display panel includes a text panel and an emoji panel, wherein the M texts are displayed on the text panel and the emoji panel is used to display emojis that match the characters in the input field.

[0197] In one embodiment, the social page also includes a text creation entry point, and the processor 1004 further performs the following steps:

[0198] When the text creation entry is triggered, a blank panel is displayed, which is used to acquire multiple pieces of user-input text.

[0199] When the multiple user input texts are obtained, the user input texts are sent to the social server corresponding to the social page, so that the social server can package the multiple input texts into a language pack.

[0200] In one embodiment, the social page is a conversational social page with a target user in a social application, and the processor 1004 further performs the following steps: sending the target prompt text to the target user in the form of a text message, so that the terminal device where the target user is located displays the target prompt text in the form of a text message on the page of the social application.

[0201] In one embodiment, the processor 1004 further performs the following steps:

[0202] Play special effects animations that match the target prompt text on the social page;

[0203] The animation identifier of the special effects animation is sent to the target user, so that the target user's terminal device plays the special effects animation on the page of the social application according to the animation identifier.

[0204] In one embodiment, when the processor 1004 displays a social page, it specifically performs the following steps:

[0205] Obtain the input character sequence from the social page;

[0206] The semantic feature extraction model is invoked to extract the target character sequence features from the input character sequence;

[0207] Among the candidate text features that correspond one-to-one with multiple candidate texts, find N candidate text features that match the target character sequence features;

[0208] The N candidate texts corresponding to the N candidate text features found are respectively used as N prompt texts, and the N prompt texts are displayed on the social page. The overlapping characters between the prompt texts and the input character sequence are displayed using the first character display method, and the remaining characters are displayed using the second character display method.

[0209] It should be understood that the computer device 1000 described in the embodiments of this application can execute the foregoing text. Figures 2-16 The description of the text processing method in the corresponding embodiments can also be performed as described above. Figure 17 The description of the text processing device 1 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated here.

[0210] Furthermore, it should be noted that this application embodiment also provides a computer storage medium, which stores a computer program executed by the aforementioned text processing device 1. The computer program includes program instructions, and when the processor executes the program instructions, it can execute the aforementioned... Figures 2-16The description of the text processing method in the corresponding embodiments is already provided and will not be repeated here. Similarly, the beneficial effects of using the same method will not be repeated here either. For technical details not disclosed in the embodiments of the computer storage medium involved in this application, please refer to the description of the method embodiments of this application. As an example, program instructions can be deployed and executed on a single computer device, or on multiple computer devices located in one location, or on multiple computer devices distributed across multiple locations and interconnected via a communication network. Multiple computer devices distributed across multiple locations and interconnected via a communication network can be combined to form a blockchain network.

[0211] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the aforementioned... Figures 2 to 16 The methods described in the corresponding embodiments are therefore not repeated here.

[0212] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0213] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A text processing method, characterized in that, The method includes: Display a social page, which includes an input field; When a target prompt text is selected from N prompt texts, the target prompt text is displayed as a text message on the social page, where N is a positive integer. The social display page includes: When at least one character is detected in the input field, M prompt texts matching the characters in the input field are displayed on the first display panel, where M is a positive integer and M is less than N; When the tiled entrance is detected to be clicked, the first display panel is closed, and N prompt texts matching the characters in the input field are displayed on the second display panel, wherein the M prompt texts belong to the N prompt texts; When the language pack access point on the social page is triggered, N prompt texts from the local database are displayed on the third display panel, or N prompt texts matching the characters in the search bar included on the social page are displayed on the third display panel.

2. The method according to claim 1, characterized in that, The method further includes: Displays multiple language packs and download links for each language pack; When the download entry for the target language pack among the multiple language packs is triggered, the target language pack is downloaded to the local database; After the target language pack is downloaded, add an access point for the language pack to the social page; The local database includes the N prompt texts, and displaying the N prompt texts on the social page includes: displaying the N prompt texts contained in the local database on the social page.

3. The method according to claim 2, characterized in that, The N prompt texts are displayed on the social media page in order of text popularity; or... The N prompt texts are displayed on the social page in order of their matching degree with the target conversation record, where the target conversation record is the conversation record corresponding to the social page; or, The N notification texts are displayed on the social media page according to their download time.

4. The method according to claim 1, characterized in that, The display of the N prompt texts on the social page includes: A search bar is displayed on the social page; When the search bar retrieves a search term, the N prompt texts are displayed on the social page. All N prompt texts match the search term. The overlapping characters between the prompt texts and the search term are displayed using the first character display method, and the remaining characters are displayed using the second character display method.

5. The method according to claim 4, characterized in that, The method further includes: When at least one character is detected in the input field and the search entry is triggered, the character in the input field is added to the search field, and the characters in the search field are combined into the search term.

6. The method according to claim 1, characterized in that, The overlapping characters between the prompt text and the characters in the input field are displayed using the first character display method, and the remaining characters are displayed using the second character display method.

7. The method according to claim 1, characterized in that, The size of the first display panel is smaller than the size of the second display panel.

8. The method according to claim 1, characterized in that, The M prompt texts are displayed on the first display panel in order of their matching degree with the characters in the input field, and the N prompt texts are displayed on the second display panel in order of their matching degree with the characters in the input field.

9. The method according to claim 1, characterized in that, The method further includes: When the display duration of the target display panel exceeds the duration threshold, the target display panel is closed; or, when the input field continuously receives input characters, the target display panel is closed; wherein, the target display panel is a first display panel or a second display panel.

10. The method according to claim 1, characterized in that, The first display panel includes a text panel and an emoticon panel. The M texts are displayed on the text panel, and the emoticon panel is used to display emoticons that match the characters in the input field.

11. The method according to claim 1, characterized in that, The social page also includes a text creation entry point, and the method further includes: When the text creation entry is triggered, a blank panel is displayed, which is used to acquire multiple pieces of user-input text. When the multiple user input texts are obtained, the user input texts are sent to the social server corresponding to the social page, so that the social server can package the multiple input texts into a language pack.

12. The method according to claim 1, characterized in that, The social page is a conversational social page with a target user in a social application. The method further includes: sending the target prompt text to the target user in the form of a text message, so that the target user's terminal device displays the target prompt text in the form of a text message on the page of the social application.

13. The method according to claim 12, characterized in that, The method further includes: Play special effects animations that match the target prompt text on the social page; The animation identifier of the special effects animation is sent to the target user, so that the target user's terminal device plays the special effects animation on the page of the social application according to the animation identifier.

14. The method according to claim 1, characterized in that, The social page display includes: Obtain the input character sequence from the social page; The semantic feature extraction model is invoked to extract the target character sequence features from the input character sequence; Among the candidate text features that correspond one-to-one with multiple candidate texts, find N candidate text features that match the target character sequence features; The N candidate texts corresponding to the N candidate text features found are used as N prompt texts, and the N prompt texts are displayed on the social page.

15. A text processing device, characterized in that, include: The first display module is used to display a social page, which includes an input field; The second display module is used to display the target prompt text in the form of a text message on the social page when the target prompt text is selected from N prompt texts, where N is a positive integer. Wherein, when the first display module is used to display the social page, it is used for: When at least one character is detected in the input field, M prompt texts matching the characters in the input field are displayed on the first display panel, where M is a positive integer and M is less than N; When the tiled entrance is detected to be clicked, the first display panel is closed, and N prompt texts matching the characters in the input field are displayed on the second display panel, wherein the M prompt texts belong to the N prompt texts; When the language pack access point on the social page is triggered, N prompt texts from the local database are displayed on the third display panel, or N prompt texts matching the characters in the search bar included on the social page are displayed on the third display panel.

16. A computer device, characterized in that, It includes a memory and a processor, the memory storing a computer program that, when executed by the processor, causes the processor to perform the steps of the method according to any one of claims 1-14.

17. A computer storage medium, characterized in that, The computer storage medium stores a computer program, the computer program including program instructions, which, when executed by a processor, cause a computer device having the processor to perform the steps of the method according to any one of claims 1-14.

18. A computer program product comprising a computer program / instructions, characterized in that, When the computer program / instructions are executed by the processor, they implement the steps of the method according to any one of claims 1-14.

Citation Information

Patent Citations

  • Method and equipment for issuing session messages

    CN111309937A

  • Expression element display method, device and equipment and computer readable storage medium

    CN112799748A