Interaction information display method and apparatus, and device and storage medium
The interactive information is compressed, discarded and segmented through the pre-installed target plug-in, and the large text is divided into multiple small texts and abstract text is generated, which solves the problem that interactive text exceeds the number of words limit for the model, realizes the complete display of large-capacity text, and improves the user experience.
Patent Information
- Application Number
- PCT/CN2024/132703
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-29
- Filing Date
- 2024-11-18
- Publication Date
- 2025-09-04
AI Technical Summary
The size of the interactive text entered by the user exceeds the number of words limit of the model, resulting in the inability to output interactive reply information, and the user experience is poor.
Through the pre-installed target plug-in, the target tool group is selected to divide the interactive information, including compression, discarding and segmentation, divide the large text into multiple small texts, and generate summary text for splicing to display the reply information.
It realizes the input of large-capacity text, improves the user experience, and ensures that interactive information can be fully displayed.
Smart Images

Figure CN2024132703_04092025_PF_FP_ABST
Abstract
Description
Interactive information display method, device, equipment and storage medium
[0001] This application claims priority to Chinese Patent Application No. 202410233178.4 filed on February 29, 2024, and the contents of the above-mentioned Chinese patent application disclosure are hereby incorporated by reference in their entirety as a part of this application. Technical Field
[0002] The embodiments of the present disclosure relate to an interactive information display method, apparatus, device, and storage medium. Background Art
[0003] With the development of artificial intelligence technology, more and more users are acquiring knowledge or answering questions through artificial intelligence platforms.
[0004] In related technologies, users can input interactive text in the interactive interface of an artificial intelligence APP (Application). The artificial intelligence APP uses a model to obtain interactive reply information corresponding to the interactive text and displays the interactive reply information in the interactive interface.
[0005] However, the inventors have found that when the interactive text input by the user is large in size, it may exceed the word limit of the model, resulting in an inability to output interactive reply information, thereby poor user experience. Summary of the Invention
[0006] The embodiments of the present disclosure provide an interactive information display method, apparatus, device, and storage medium, which can rewrite user questions, thereby improving the effectiveness of the questions and thereby enhancing the user experience.
[0007] In a first aspect, an embodiment of the present disclosure provides an interactive information display method, comprising:
[0008] In response to first interaction information input by a user, determining a text size of the first interaction information, and if the text size of the first interaction information is greater than or equal to a first preset threshold, selecting a target tool group from pre-installed target plug-ins;
[0009] dividing the first interaction information into a plurality of second interaction information by using at least one target tool in the target tool group;
[0010] Generate summary texts corresponding to each of the multiple second interactive messages, splice the summary texts corresponding to each of the multiple second interactive messages to obtain interactive reply information corresponding to the first interactive message, and display the interactive reply information on the interactive interface.
[0011] In a second aspect, an embodiment of the present disclosure provides an interactive information display device, comprising:
[0012] a determination module, configured to determine, in response to first interactive information input by a user, a text size of the first interactive information, and select a target tool group from pre-installed target plug-ins if the text size of the first interactive information is greater than or equal to a first preset threshold;
[0013] a division module, configured to divide the first interaction information into a plurality of second interaction information by using at least one target tool in the target tool group;
[0014] A display module is used to generate summary texts corresponding to each of the multiple second interactive messages, splice the summary texts corresponding to each of the multiple second interactive messages, obtain interactive reply information corresponding to the first interactive information, and display the interactive reply information on the interactive interface.
[0015] In a third aspect, an embodiment of the present disclosure provides an electronic device, including:
[0016] a processor, and a memory communicatively connected to the processor;
[0017] The memory stores computer-executable instructions;
[0018] The processor executes the computer-executable instructions stored in the memory to implement the interactive information display method as described in the first aspect above.
[0019] In a fourth aspect, an embodiment of the present disclosure provides a computer-readable storage medium, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the interactive information display method described in the first aspect above is implemented.
[0020] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the interactive information display method described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present disclosure, a brief introduction will be given below to the drawings required for use in the description of the embodiments. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.
[0022] FIG1 is a schematic diagram of an application scenario of an interactive information display method provided by some embodiments of the present disclosure;
[0023] FIG2 is a flow chart of an interactive information display method provided by some embodiments of the present disclosure;
[0024] FIG3 is a schematic diagram of an interactive information display method provided by some embodiments of the present disclosure;
[0025] FIG4 is a flow chart of an interactive information display method provided by some embodiments of the present disclosure;
[0026] FIG5 is a structural block diagram of an interactive information display device provided in some embodiments of the present disclosure; and
[0027] FIG6 is a schematic diagram of the hardware structure of an electronic device provided in some embodiments of the present disclosure. DETAILED DESCRIPTION
[0028] To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure more clear, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments of the present disclosure without making any creative efforts shall fall within the scope of protection of the present disclosure.
[0029] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0030] With the development of artificial intelligence technology, more and more users are acquiring knowledge or answering questions through artificial intelligence platforms.
[0031] In related technologies, users can enter interactive text into the interactive interface of an artificial intelligence app (Application). The artificial intelligence app uses a model to obtain interactive response information corresponding to the interactive text and display the interactive response information in the interactive interface. However, if the interactive text entered by the user is large, it may exceed the word limit of the model, resulting in the inability to output the interactive response information, thus poor user experience.
[0032] Therefore, how to make the interactive text input by the user not limited by the number of words in the model and realize the input of large-capacity text is a technical problem that needs to be solved urgently.
[0033] In order to solve the above problems, this embodiment proposes the following technical concept: a target plug-in can be pre-installed. When the text size of the interactive text input by the user is large, a target tool group can be selected from the pre-installed target plug-in, and the target tool group can be used to divide the interactive text into smaller interactive texts, thereby realizing the input of large-capacity text.
[0034] The specific steps may include: first, in response to the first interactive information input by the user, determining the text size of the first interactive information; if the text size of the first interactive information is greater than or equal to a first preset threshold, selecting a target tool group from a pre-installed target plug-in. Then, using at least one target tool in the target tool group, dividing the first interactive information into a plurality of second interactive information. Finally, generating summary texts corresponding to each of the plurality of second interactive information, concatenating the summary texts corresponding to each of the plurality of second interactive information to obtain interactive reply information corresponding to the first interactive information, and displaying the interactive reply information on the interactive interface.
[0035] In this case, by calling at least one target tool in the target plug-in, the interactive information input by the user can be divided, so that the first interactive information input by the user is not limited by the number of model words, thereby realizing the input of large-capacity text, and then being able to generate interactive reply information corresponding to the large-capacity text, thereby improving the user experience.
[0036] The following explains the application scenarios of the embodiments of the present disclosure:
[0037] The interactive information display method provided by the embodiments of the present disclosure can be applied to application scenarios in which interactive information is displayed in various ways. For example, the interactive information can be read by an artificial intelligence APP on a mobile terminal or a computer terminal, and corresponding interactive reply information can be generated. Exemplarily, the artificial intelligence APP can be an AI smart assistant APP. Figure 1 is a schematic diagram of the application scenario of the interactive information display method provided by some embodiments of the present disclosure. As shown in Figure 1, the user can input interactive information: "XX" novel text through the interactive interface of the artificial intelligence APP or artificial intelligence web page. Through the interactive information display method provided by the embodiments of the present disclosure, the "XX" novel text is divided into smaller interactive texts, thereby realizing the input of large-capacity texts and obtaining corresponding interactive reply information, thereby improving the user experience.
[0038] The interactive information display method provided by the embodiment of the present disclosure is described in detail below using a detailed embodiment.
[0039] FIG2 is a flow chart of an interactive information display method provided by some embodiments of the present disclosure. In this embodiment, the interactive information display method is described as an example in which the execution subject is an electronic device. Referring to FIG2 , the method includes:
[0040] S201: In response to first interactive information input by a user, determine the text size of the first interactive information; if the text size of the first interactive information is greater than or equal to a first preset threshold, select a target tool set from pre-installed target plug-ins.
[0041] In the disclosed embodiments, the first interactive information can be any type of information, such as text information, image information, or video information. For example, as shown in FIG3 , the first interactive information is a long text whose text size is greater than a first preset threshold. The formats of the text information, image information, and video information are not specifically limited. For example, the first interactive information is the text of the novel "XX," which can be in PDF format.
[0042] In some embodiments, interactive reply information corresponding to the first interactive information is generated using a preset model. Optionally, the first preset threshold may be a maximum limit on the interactive information that can be input by the preset model. Exemplarily, the maximum limit is 128kb. In the embodiments of the present disclosure, the value of the first preset threshold is not specifically limited and can be set and modified as needed.
[0043] It should be noted that the pre-installed target plug-in may include multiple tool groups, each of which can implement corresponding functions. The pre-installed target plug-in may also include multiple tools, and relevant tools can be selected to form a target tool group based on the first interaction information input by the user. The target tool group can divide the first interaction information into multiple second interaction information that meets the maximum limit of the preset model, that is, multiple second interaction information whose text size is less than a first preset threshold.
[0044] S202: Divide the first interaction information into a plurality of second interaction information using at least one target tool in the target tool group.
[0045] In the embodiment of the present disclosure, the target tool group may include a segmentation tool, a compression tool, and a discarding tool; accordingly, as shown in FIG4 , this step may include the following steps S401 to S403:
[0046] S401: If the text size of the first interactive information is greater than or equal to a second preset threshold, compress the first interactive information using a compression tool to obtain third interactive information.
[0047] In the disclosed embodiment, the second preset threshold may be n times the maximum limit of interactive information that can be input by the preset model, where n is a positive integer. For example, if the maximum limit is 128 kb, the second preset threshold is n*128 kb. In the disclosed embodiment, the value of the second preset threshold is not specifically limited and may be set and modified as needed.
[0048] In some embodiments, the first interactive information includes multiple characters. Accordingly, the first interactive information is compressed by a compression tool to obtain the third interactive information, including: filtering out at least one preset character string from the first interactive information by the compression tool; for each preset character string, obtaining the target compressed character corresponding to the preset character string from the correspondence between the stored compressed characters and the preset character string, and obtaining the target compressed character corresponding to at least one preset character string; replacing at least one preset character string with the corresponding target compressed character to obtain the third interactive information. It should be noted that characters can be sub-information that constitutes the interactive information. In the embodiments of the present disclosure, the meaning of the characters is not specifically limited. Optionally, the character can represent a symbol, such as a, b, c, etc.; the character can also represent a root, such as re-, im-, etc.; the character can also represent a word, such as good.
[0049] In the disclosed embodiment, a correspondence between compressed characters and a preset character string can be pre-set and stored. For example, the preset character string is "xyz." From the stored correspondence between compressed characters and the preset character string, the target compressed character corresponding to the preset character string is obtained as "a." The preset character string "xyz" is replaced with the target compressed character "a." In this case, "xyz" consists of three characters, and the target compressed character "a" consists of one character. After the replacement, compression processing of the first interactive information is achieved.
[0050] Optionally, to improve compression efficiency, a pre-set string with a high frequency of occurrence may be filtered and compressed. Accordingly, filtering at least one pre-set string from the first interactive information using a compression tool may include: determining multiple strings included in the first interactive information; and for each string, determining the number of occurrences of the string; if the number of occurrences is greater than or equal to the pre-set number, determining the string as a pre-set string.
[0051] In the embodiment of the present disclosure, the value of the preset number of times is not specifically limited and can be set and modified as needed. For example, the preset number of times is 10 times, 50 times, 100 times, etc.
[0052] It should be noted that, as shown in Figure 3, if the text size of the first interactive information (for example, text) is smaller than the second preset threshold, there is no need to execute steps S401 and S402, and step S403 is directly executed to segment the first interactive information through the segmentation tool to obtain multiple second interactive information.
[0053] S402. Determine the text size of the third interactive information. If the text size of the third interactive information is greater than or equal to a second preset threshold, discard some characters in the third interactive information using a discarding tool to obtain fourth interactive information with a text size smaller than the second preset threshold.
[0054] In some embodiments, part of the characters in the third interactive information are discarded through a discarding tool to obtain fourth interactive information with a text size smaller than a second preset threshold, including: dividing the multiple characters included in the third interactive information into multiple character groups through the discarding tool; deleting one character group every preset number of character groups to obtain fourth interactive information with a text size smaller than the second preset threshold.
[0055] Optionally, the third text information can be divided by the number of characters or by punctuation marks. Accordingly, dividing the plurality of characters included in the third interactive information into a plurality of character groups by using the discarding tool includes: dividing the plurality of characters included in the third interactive information into a plurality of character groups by using the discarding tool according to a preset number of characters; or dividing the plurality of characters included in the third interactive information into a plurality of character groups by using the discarding tool according to a preset mark.
[0056] In the embodiments of the present disclosure, the preset number of characters and the numerical value of the preset quantity are not specifically limited and can be set and modified as needed. For example, the preset number of characters is 5, 10, 20, etc. The preset quantity is 5, 10, 20, etc. The preset mark can be punctuation marks, letters, numbers, etc. The number of preset marks can be one or more. For example, the preset mark is punctuation marks, which can include exclamation marks and periods.
[0057] For example, the preset number of characters is 5 and the preset quantity is 10. The third interactive information is divided into M groups of 5 characters each, and some of the groups are evenly discarded. For example, if M is 100, the 1st, 11th, 21st, 31st, 41st, 51st, 61st, 71st, 81st, and 91st groups may be discarded.
[0058] In some embodiments, the preset number can be determined based on the ratio of the text size of the third interactive information to the second preset threshold to ensure that one character group is deleted every preset number of character groups to obtain the fourth interactive information with a text size smaller than the second preset threshold.
[0059] Exemplarily, the second preset threshold is 256kb, the text size of the third interactive information is 384kb, and the ratio of the text size of the third interactive information to the second preset threshold is 1.5. In this case, in order to obtain the fourth interactive information with a text size smaller than the second preset threshold, the preset number can be set to 1, 2 or 3.
[0060] It should be noted that, as shown in Figure 3, if the text size of the third interactive information (i.e., the compressed text) is smaller than the second preset threshold, step S402 does not need to be executed, and step S403 is directly executed to segment the third interactive information using a segmentation tool to obtain multiple second interactive information.
[0061] S403: Use a segmentation tool to segment the fourth interaction information to obtain multiple pieces of second interaction information.
[0062] In some embodiments, this step may include: using a segmentation tool to segment the fourth interaction information according to a preset text size to obtain a plurality of second interaction information of the preset text size.
[0063] Optionally, the preset text size is less than or equal to the maximum limit of interactive information that can be input by the preset model. For example, the maximum limit is 128kb, and the preset text size can be 128kb, 100kb, 110kb, etc. In the embodiments of the present disclosure, there is no specific limitation on the value of the preset text size and it can be set and modified as needed.
[0064] In some embodiments, in order to reduce the number of divisions and improve the efficiency of the segmentation process, the preset text size can be set to be equal to the maximum limit of interactive information that can be input by the preset model.
[0065] It should be noted that the method for segmenting the first mutual information and the method for segmenting the third mutual information obtained by compression are the same as the method for segmenting the fourth interactive information, and are not described in detail here.
[0066] S203: Generate summary texts corresponding to the plurality of second interactive messages, concatenate the summary texts corresponding to the plurality of second interactive messages to obtain interactive reply information corresponding to the first interactive message, and display the interactive reply information on the interactive interface.
[0067] Optionally, to improve the efficiency of obtaining interactive reply messages, a preset language model may be concurrently invoked to generate summary text corresponding to each of the multiple second interactive messages. Accordingly, generating summary text corresponding to each of the multiple second interactive messages may include: determining the number of the multiple second interactive messages; using the number of second interactive messages as a concurrency count, and concurrently invoking the preset language model to generate summary text corresponding to each of the multiple second interactive messages. Exemplarily, the summary text may be summary text corresponding to the second interactive messages. The preset language model may be an information summarization model.
[0068] The embodiment of the present disclosure provides a method for displaying interactive information: in response to first interactive information input by a user, determining the text size of the first interactive information, if the text size of the first interactive information is greater than or equal to a first preset threshold, selecting a target tool group from a pre-installed target plug-in; dividing the first interactive information into a plurality of second interactive information by at least one target tool in the target tool group; generating summary texts corresponding to each of the plurality of second interactive information, splicing the summary texts corresponding to each of the plurality of second interactive information to obtain interactive reply information corresponding to the first interactive information, and displaying the interactive reply information on an interactive interface. In the embodiment of the present disclosure, since the interactive information input by the user can be divided by calling at least one target tool in the target plug-in, the first interactive information input by the user is not limited by the number of words in the model, thereby realizing the input of large-capacity texts, and then being able to generate interactive reply information corresponding to the large-capacity texts, thereby improving the user experience.
[0069] FIG5 is a structural block diagram of an interactive information display device provided by an embodiment of the present disclosure. Referring to FIG5 , the device includes: a determination module 501 , a division module 502 , and a display module 503 .
[0070] A determination module 501 is configured to determine, in response to first interaction information input by a user, a text size of the first interaction information, and select a target tool group from pre-installed target plug-ins if the text size of the first interaction information is greater than or equal to a first preset threshold;
[0071] a division module 502 for dividing the first interaction information into a plurality of second interaction information by using at least one target tool in the target tool group;
[0072] The display module 503 is used to generate summary texts corresponding to the multiple second interactive messages, splice the summary texts corresponding to the multiple second interactive messages, obtain interactive reply information corresponding to the first interactive information, and display the interactive reply information on the interactive interface.
[0073] According to one or more embodiments of the present disclosure, the target tool group includes a segmentation tool, a compression tool and a discarding tool; accordingly, the division module 502 divides the first interactive information into multiple second interactive information through at least one target tool in the target tool group, specifically including: if the text size of the first interactive information is greater than or equal to the second preset threshold, compressing the first interactive information through the compression tool to obtain third interactive information; determining the text size of the third interactive information, if the text size of the third interactive information is greater than or equal to the second preset threshold, discarding part of the characters in the third interactive information through the discarding tool to obtain fourth interactive information with a text size smaller than the second preset threshold; segmenting the fourth interactive information through the segmentation tool to obtain multiple second interactive information.
[0074] According to one or more embodiments of the present disclosure, it also includes: a processing module; the processing module is used to segment the first interactive information through the segmentation tool to obtain multiple second interactive information if the text size of the first interactive information is smaller than the second preset threshold.
[0075] According to one or more embodiments of the present disclosure, the processing module is further configured to segment the third interactive information using the segmentation tool to obtain multiple second interactive information if the text size of the third interactive information is smaller than the second preset threshold.
[0076] According to one or more embodiments of the present disclosure, the first interactive information includes multiple characters; accordingly, the division module 502 compresses the first interactive information through a compression tool to obtain third interactive information, specifically including: filtering out at least one preset character string from the first interactive information through the compression tool; for each preset character string, obtaining the target compressed character corresponding to the preset character string from the correspondence between the stored compressed characters and the preset character string, to obtain the target compressed character corresponding to each of the at least one preset character string; replacing the at least one preset character string with the corresponding target compressed character to obtain the third interactive information.
[0077] According to one or more embodiments of the present disclosure, the division module 502 filters out at least one preset string from the first interactive information through a compression tool, specifically including: determining multiple strings included in the first interactive information; for each string, determining the number of occurrences of the string, and if the number of occurrences is greater than or equal to the preset number, determining the string as the preset string.
[0078] According to one or more embodiments of the present disclosure, the division module 502 discards part of the characters in the third interactive information through a discarding tool to obtain fourth interactive information with a text size smaller than the second preset threshold, including: dividing the multiple characters included in the third interactive information into multiple character groups through a discarding tool; deleting one character group every preset number of character groups to obtain fourth interactive information with a text size smaller than the second preset threshold.
[0079] According to one or more embodiments of the present disclosure, the division module 502 divides the multiple characters included in the third interactive information into multiple character groups through a discarding tool, specifically including: dividing the multiple characters included in the third interactive information into multiple character groups according to a preset number of characters through a discarding tool; or dividing the multiple characters included in the third interactive information into multiple character groups according to preset marks through a discarding tool.
[0080] According to one or more embodiments of the present disclosure, the division module 502 divides and processes the fourth interactive information through the segmentation tool to obtain a plurality of second interactive information, specifically including: dividing and processing the fourth interactive information according to a preset text size through the segmentation tool to obtain a plurality of second interactive information of the preset text size.
[0081] According to one or more embodiments of the present disclosure, the display module 503 generates summary texts corresponding to each of the multiple second interactive information, specifically including: determining the number of the multiple second interactive information; taking the number as the concurrency number, concurrently calling the preset language model to generate summary texts corresponding to each of the multiple second interactive information.
[0082] Referring to FIG6 , a schematic diagram of the structure of an electronic device 600 suitable for implementing an embodiment of the present disclosure is shown. The electronic device 600 may be a terminal device or a server. The terminal device may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, personal digital assistants (PDAs), tablet computers (Portable Android Devices, PADs), portable multimedia players (PMPs), vehicle-mounted terminals (e.g., vehicle-mounted navigation terminals), and fixed terminals such as digital TVs and desktop computers. The electronic device shown in FIG6 is merely an example and should not limit the functionality and scope of use of the embodiments of the present disclosure.
[0083] As shown in Figure 6, the electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 601, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 602 or a program loaded from a storage device 608 into a random access memory (RAM) 603. Various programs and data required for the operation of the electronic device 600 are also stored in the RAM 603. The processing device 601, the ROM 602, and the RAM 603 are connected to each other via a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0084] Typically, the following devices may be connected to the I / O interface 605: an input device 606 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 607 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 608 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 609. The communication device 609 may allow the electronic device 600 to communicate with other devices wirelessly or by wire to exchange data. Although FIG. 6 shows an electronic device 600 having various devices, it should be understood that it is not required to implement or have all of the devices shown. More or fewer devices may be implemented or have alternatively.
[0085] According to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network via the communication device 609, or installed from the storage device 608, or installed from the ROM 602. When the computer program is executed by the processing device 601, the above-mentioned functions defined in the method of the embodiment of the present disclosure are performed.
[0086] It should be noted that the computer-readable medium mentioned above in the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the two. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. Such a propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium may be transmitted using any suitable medium, including but not limited to wires, optical cables, RF (radio frequency), etc., or any suitable combination thereof.
[0087] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0088] The computer-readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device executes the method shown in the above embodiment.
[0089] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet Service Provider).
[0090] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0091] The units involved in the embodiments described in this disclosure may be implemented in software or hardware. In some cases, the name of a unit does not limit the unit itself. For example, the first acquisition unit may also be described as a "unit for acquiring at least two Internet Protocol addresses."
[0092] The functions described above in the present disclosure may be performed at least in part by one or more hardware logic components. For example, and without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0093] In the context of the present disclosure, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in conjunction with an instruction execution system, device or equipment. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium can include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0094] In a first aspect, according to one or more embodiments of the present disclosure, a method for displaying interactive information is provided, comprising:
[0095] In response to first interaction information input by a user, determining a text size of the first interaction information, and if the text size of the first interaction information is greater than or equal to a first preset threshold, selecting a target tool group from pre-installed target plug-ins;
[0096] dividing the first interaction information into a plurality of second interaction information by using at least one target tool in the target tool group;
[0097] Generate summary texts corresponding to each of the multiple second interactive messages, splice the summary texts corresponding to each of the multiple second interactive messages to obtain interactive reply information corresponding to the first interactive message, and display the interactive reply information on the interactive interface.
[0098] According to one or more embodiments of the present disclosure, the target tool group includes a segmentation tool, a compression tool and a discarding tool; accordingly, the first interactive information is divided into multiple second interactive information through at least one target tool in the target tool group, including: if the text size of the first interactive information is greater than or equal to the second preset threshold, the first interactive information is compressed by the compression tool to obtain third interactive information; the text size of the third interactive information is determined, and if the text size of the third interactive information is greater than or equal to the second preset threshold, part of the characters in the third interactive information is discarded by the discarding tool to obtain fourth interactive information with a text size smaller than the second preset threshold; the fourth interactive information is segmented by the segmentation tool to obtain multiple second interactive information.
[0099] According to one or more embodiments of the present disclosure, the method further includes: if the text size of the first interactive information is smaller than the second preset threshold, segmenting the first interactive information using the segmentation tool to obtain a plurality of second interactive information.
[0100] According to one or more embodiments of the present disclosure, the method further includes: if the text size of the third interactive information is smaller than the second preset threshold, segmenting the third interactive information using the segmentation tool to obtain a plurality of second interactive information.
[0101] According to one or more embodiments of the present disclosure, the first interactive information includes multiple characters; accordingly, the compression processing of the first interactive information by a compression tool to obtain the third interactive information includes: filtering out at least one preset character string from the first interactive information by the compression tool; for each preset character string, obtaining the target compressed character corresponding to the preset character string from the correspondence between the stored compressed characters and the preset character string, to obtain the target compressed character corresponding to each of the at least one preset character string; replacing the at least one preset character string with the corresponding target compressed character to obtain the third interactive information.
[0102] According to one or more embodiments of the present disclosure, filtering out at least one preset string from the first interactive information by using a compression tool includes: determining multiple strings included in the first interactive information; for each string, determining the number of occurrences of the string, and if the number of occurrences is greater than or equal to a preset number, determining the string as the preset string.
[0103] According to one or more embodiments of the present disclosure, the discarding tool is used to discard part of the characters in the third interactive information to obtain the fourth interactive information with a text size smaller than the second preset threshold, including: dividing the multiple characters included in the third interactive information into multiple character groups through the discarding tool; deleting one character group every preset number of character groups to obtain the fourth interactive information with a text size smaller than the second preset threshold.
[0104] According to one or more embodiments of the present disclosure, dividing the multiple characters included in the third interactive information into multiple character groups by using a discarding tool includes: dividing the multiple characters included in the third interactive information into multiple character groups according to a preset number of characters by using a discarding tool; or dividing the multiple characters included in the third interactive information into multiple character groups according to preset marks by using a discarding tool.
[0105] According to one or more embodiments of the present disclosure, the segmentation tool is used to segment the fourth interactive information to obtain multiple second interactive information, including: the segmentation tool is used to segment the fourth interactive information according to a preset text size to obtain multiple second interactive information of the preset text size.
[0106] According to one or more embodiments of the present disclosure, generating summary texts corresponding to each of the multiple second interaction messages includes: determining the number of the multiple second interaction messages; taking the number as the concurrency number, concurrently calling a preset language model to generate summary texts corresponding to each of the multiple second interaction messages.
[0107] In a second aspect, according to one or more embodiments of the present disclosure, an interactive information display device is provided, comprising:
[0108] a determination module, configured to determine, in response to first interactive information input by a user, a text size of the first interactive information, and select a target tool group from pre-installed target plug-ins if the text size of the first interactive information is greater than or equal to a first preset threshold;
[0109] a division module, configured to divide the first interaction information into a plurality of second interaction information by using at least one target tool in the target tool group;
[0110] A display module is used to generate summary texts corresponding to each of the multiple second interactive messages, splice the summary texts corresponding to each of the multiple second interactive messages, obtain interactive reply information corresponding to the first interactive information, and display the interactive reply information on the interactive interface.
[0111] According to one or more embodiments of the present disclosure, the target tool group includes a segmentation tool, a compression tool and a discarding tool; accordingly, the segmentation module divides the first interactive information into multiple second interactive information through at least one target tool in the target tool group, specifically including: if the text size of the first interactive information is greater than or equal to the second preset threshold, compressing the first interactive information through the compression tool to obtain third interactive information; determining the text size of the third interactive information, if the text size of the third interactive information is greater than or equal to the second preset threshold, discarding part of the characters in the third interactive information through the discarding tool to obtain fourth interactive information with a text size smaller than the second preset threshold; segmenting the fourth interactive information through the segmentation tool to obtain multiple second interactive information.
[0112] According to one or more embodiments of the present disclosure, it also includes: a processing module; the processing module is used to segment the first interactive information through the segmentation tool to obtain multiple second interactive information if the text size of the first interactive information is smaller than the second preset threshold.
[0113] According to one or more embodiments of the present disclosure, the processing module is further configured to segment the third interactive information using the segmentation tool to obtain multiple second interactive information if the text size of the third interactive information is smaller than the second preset threshold.
[0114] According to one or more embodiments of the present disclosure, the first interactive information includes multiple characters; accordingly, the division module compresses the first interactive information through a compression tool to obtain third interactive information, which specifically includes: filtering out at least one preset character string from the first interactive information through the compression tool; for each preset character string, obtaining the target compressed character corresponding to the preset character string from the correspondence between the stored compressed characters and the preset character string, and obtaining the target compressed character corresponding to each of the at least one preset character string; replacing the at least one preset character string with the corresponding target compressed character to obtain the third interactive information.
[0115] According to one or more embodiments of the present disclosure, the segmentation module filters out at least one preset string from the first interactive information through a compression tool, specifically including: determining multiple strings included in the first interactive information; for each string, determining the number of occurrences of the string, and if the number of occurrences is greater than or equal to the preset number, determining the string as the preset string.
[0116] According to one or more embodiments of the present disclosure, the division module discards part of the characters in the third interactive information through a discarding tool to obtain fourth interactive information with a text size smaller than the second preset threshold, including: dividing the multiple characters included in the third interactive information into multiple character groups through a discarding tool; deleting one character group every preset number of character groups to obtain fourth interactive information with a text size smaller than the second preset threshold.
[0117] According to one or more embodiments of the present disclosure, the division module divides the multiple characters included in the third interactive information into multiple character groups through a discarding tool, specifically including: dividing the multiple characters included in the third interactive information into multiple character groups according to a preset number of characters through a discarding tool; or dividing the multiple characters included in the third interactive information into multiple character groups according to preset marks through a discarding tool.
[0118] According to one or more embodiments of the present disclosure, the division module divides and processes the fourth interactive information through the segmentation tool to obtain multiple second interactive information, specifically including: dividing and processing the fourth interactive information according to a preset text size through the segmentation tool to obtain multiple second interactive information of the preset text size.
[0119] According to one or more embodiments of the present disclosure, the display module generates summary texts corresponding to each of the multiple second interactive information, specifically including: determining the number of the multiple second interactive information; taking the number as the concurrency number, concurrently calling the preset language model to generate summary texts corresponding to each of the multiple second interactive information.
[0120] In a third aspect, according to one or more embodiments of the present disclosure, there is provided an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0121] The memory stores computer-executable instructions;
[0122] The processor executes the computer-executable instructions stored in the memory to implement the interactive information display method described in the first aspect and various possible designs of the first aspect.
[0123] In a fourth aspect, according to one or more embodiments of the present disclosure, a computer-readable storage medium is provided, in which computer-executable instructions are stored. When a processor executes the computer-executable instructions, the interactive information display method described in the first aspect and various possible designs of the first aspect is implemented.
[0124] In a fifth aspect, an embodiment of the present disclosure provides a computer program product, including a computer program, which, when executed by a processor, implements the interactive information display method described in the first aspect and various possible designs of the first aspect.
[0125] The above description is merely an example of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned disclosed concepts. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
[0126] In addition, although each operation is described in a specific order, this should not be understood as requiring these operations to be performed in the specific order shown or in a sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although some specific implementation details have been included in the above discussion, these should not be interpreted as limiting the scope of the present disclosure. Some features described in the context of a separate embodiment can also be implemented in a single embodiment in combination. On the contrary, the various features described in the context of a single embodiment can also be implemented in multiple embodiments individually or in any suitable sub-combination mode.
[0127] Although the present disclosure has been described in language specific to structural features and / or methodological logical acts, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are merely example forms of implementing the claims.
Claims
1. An interactive information display method, comprising: In response to first interaction information input by a user, determining a text size of the first interaction information, and if the text size of the first interaction information is greater than or equal to a first preset threshold, selecting a target tool group from pre-installed target plug-ins; dividing the first interaction information into a plurality of second interaction information by using at least one target tool in the target tool group; Generate summary texts corresponding to each of the multiple second interactive messages, splice the summary texts corresponding to each of the multiple second interactive messages to obtain interactive reply information corresponding to the first interactive message, and display the interactive reply information on the interactive interface.
2. The method according to claim 1, wherein The target tool set includes a segmentation tool, a compression tool, and a discard tool; Accordingly, the first interaction information is divided into a plurality of second interaction information by at least one target tool in the target tool group, including: If the text size of the first interactive information is greater than or equal to a second preset threshold, compressing the first interactive information using a compression tool to obtain third interactive information; determining a text size of the third interactive information; and if the text size of the third interactive information is greater than or equal to a second preset threshold, discarding some characters in the third interactive information using a discarding tool to obtain a fourth interactive information having a text size less than the second preset threshold; The fourth interactive information is segmented using the segmentation tool to obtain a plurality of second interactive information.
3. The method according to claim 2, further comprising: If the text size of the first interactive information is smaller than the second preset threshold, the first interactive information is segmented using the segmentation tool to obtain a plurality of second interactive information.
4. The method according to claim 2 or 3, further comprising: If the text size of the third interactive information is smaller than the second preset threshold, the third interactive information is segmented using the segmentation tool to obtain a plurality of second interactive information.
5. The method according to any one of claims 2 to 4, wherein: The first interactive information includes a plurality of characters; Accordingly, compressing the first interactive information by using a compression tool to obtain third interactive information includes: Filtering at least one preset character string from the first interactive information using a compression tool; For each preset character string, obtaining a target compressed character corresponding to the preset character string from the stored correspondence between compressed characters and the preset character string, thereby obtaining a target compressed character corresponding to each of the at least one preset character string; The at least one preset character string is replaced with the corresponding target compressed character to obtain third interactive information.
6. The method according to claim 5, wherein: The step of filtering out at least one preset character string from the first interactive information using a compression tool includes: determining a plurality of character strings included in the first interactive information; For each character string, the number of occurrences of the character string is determined, and if the number of occurrences is greater than or equal to a preset number, the character string is determined to be the preset character string.
7. The method according to any one of claims 2 to 6, wherein: The discarding of some characters in the third interactive information by the discarding tool to obtain fourth interactive information with a text size smaller than the second preset threshold includes: dividing the plurality of characters included in the third interactive information into a plurality of character groups by a discarding tool; A character group is deleted every preset number of character groups to obtain fourth interactive information with a text size smaller than the second preset threshold.
8. The method according to claim 7, wherein: The step of dividing the plurality of characters included in the third interactive information into a plurality of character groups by using a discarding tool includes: dividing the plurality of characters included in the third interactive information into a plurality of character groups according to a preset number of characters by using a discarding tool; or, The plurality of characters included in the third interactive information are divided into a plurality of character groups according to preset marks by a discarding tool.
9. The method according to any one of claims 2 to 8, wherein: The fourth interactive information is segmented by the segmentation tool to obtain a plurality of second interactive information, including: The fourth interactive information is segmented by the segmentation tool according to a preset text size to obtain a plurality of second interactive information of the preset text size.
10. The method according to any one of claims 1 to 9, wherein: Generating summary texts corresponding to the plurality of second interactive information includes: determining the number of the plurality of second interaction information; The number is used as the concurrency number, and the preset language model is concurrently called to generate summary texts corresponding to each of the plurality of second interactive information.
11. An interactive information display device, comprising: a determination module configured to, in response to first interaction information input by a user, determine a text size of the first interaction information, and select a target tool group from pre-installed target plug-ins if the text size of the first interaction information is greater than or equal to a first preset threshold; a division module configured to divide the first interaction information into a plurality of second interaction information by using at least one target tool in the target tool group; The display module is configured to generate summary texts corresponding to each of the multiple second interactive information, splice the summary texts corresponding to each of the multiple second interactive information, obtain interactive reply information corresponding to the first interactive information, and display the interactive reply information on the interactive interface.
12. An electronic device comprising: a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instruction to implement the interactive information display method according to any one of claims 1 to 10.
13. A computer-readable storage medium storing computer-executable instructions, wherein: When the processor executes the computer-executable instruction, the interactive information display method according to any one of claims 1 to 10 is implemented.
14. A computer program product comprising a computer program, wherein When the computer program is executed by a processor, the interactive information display method according to any one of claims 1 to 10 is implemented.
Citation Information
Patent Citations
Self-supervised conversation text abstracting method and system
CN111639175A
Target content display method and device, equipment, readable storage medium and product
CN113253885A
Method and device for generating information report
CN117574168A
Interactive information display method and device, equipment and storage medium
CN118013028A
Answer generation method and apparatus based on artificial intelligence, and computer device and medium
WO2022105122A1