Text information processing method and device, electronic equipment and storage medium

CN117252170BActive Publication Date: 2026-10-27JIAHE MEIKANG BEIJING TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311216482.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-09-20
Publication Date
2026-10-27
Estimated Expiration
2043-09-20

AI Technical Summary

Technical Problem

[0002]为了便于阅读人员快速了解文字内容,可以将文字信息转换为可视化图表,目前,相关技术提出,可以通过文字处理工具和表格制作工具等办公软件,人工对文字信息进行排版,得到可视化图表,但该方案中由于办公软件的功能限制,导致图表的种类有限、风格单一,并且,通过人工排版处理将文字信息转换为可视化图表消耗的时间较多

Benefits of technology

[0015]本发明实施例提供的一种文字信息处理方法、装置、电子设备及存储介质,该方法在获取待处理的文字信息后,对文字信息进行文字优化处理,确定标准化文字信息,并将标准化文字信息发送至组件式文字优化模板;获取可视化调整指令,并根据可视化调整指令,从组件式文字优化模板的组件集合中,确定目标组件和组件样式信息,利用目标组件和组件样式信息,对标准化文字信息进行可视化处理,确定目标页面数据,并根据目标页面数据生成标准化文字信息对应的目标图片,本发明实施例通过文字信息处理平台,基于可视化调节指令,对组件式文字优化模板进行自动化配置,从而对文字信息进行自动化处理,可以显著提升文字信息处理效率。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117252170B_ABST
    Figure CN117252170B_ABST
Patent Text Reader

Abstract

The application provides a kind of literal information processing method, device, electronic equipment and storage medium, it is related to the technical field of literal figure conversion, comprising: obtaining the literal information to be processed;Text optimization processing is carried out to literal information, determine the standardized literal information, and send the standardized literal information to component type literal optimization template;Obtain visual adjustment instruction, and according to visual adjustment instruction, from the component set of component type literal optimization template, determine target component and component style information;Standardized literal information is carried out visual processing using target component and component style information, determine target page data, and generate target picture corresponding to standardized literal information according to target page data.The application can be based on visual adjustment instruction, and the component type literal optimization template is automatically configured, so as to automatically process literal information, which can significantly improve the efficiency of literal information processing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the technical field of text-to-graphic conversion, and in particular to a text information processing method, apparatus, electronic device, and storage medium. Background Technology

[0002] To facilitate readers' quick understanding of text content, text information can be converted into visual charts. Currently, related technologies suggest that text information can be manually formatted using office software such as word processing tools and spreadsheet creation tools to obtain visual charts. However, due to the functional limitations of office software, this solution results in a limited variety of charts and a monotonous style. Furthermore, manually formatting text information to convert it into visual charts consumes a significant amount of time. Summary of the Invention

[0003] In view of this, the purpose of the present invention is to provide a text information processing method, apparatus, electronic device and storage medium, which automatically configures component-based text optimization templates based on visual adjustment instructions through a text information processing platform, thereby automatically processing text information and significantly improving the efficiency of text information processing.

[0004] In a first aspect, embodiments of the present invention provide a text information processing method. The method is applied to a text information processing platform, which includes a component-based text optimization template. The method includes: acquiring text information to be processed; performing text optimization processing on the text information to determine standardized text information, and sending the standardized text information to the component-based text optimization template; acquiring a visualization adjustment instruction, and determining a target component and component style information from the component set of the component-based text optimization template according to the visualization adjustment instruction; performing visualization processing on the standardized text information using the target component and component style information to determine target page data, and generating a target image corresponding to the standardized text information based on the target page data.

[0005] In one embodiment, before the step of optimizing the text information, the method includes: performing page layout processing on the component-based text optimization template according to preset initialization configuration information, determining the initialization page data, and storing the initialization page data in a database, wherein the initialization page data includes: the number of elements in each text line, initialization background information, and initialization font information.

[0006] In one implementation, the steps of optimizing text information, determining standardized text information, and sending the standardized text information to a component-based text optimization template include: converting the format of the text information into a table format through a preset format conversion module to obtain standardized text information; and entering the standardized text information line by line into the component-based text optimization template in a preset table format layout, wherein the preset layout includes: the number of child elements in each row, column width, and row height.

[0007] In one implementation, after the step of entering standardized text information line by line into the component-based text optimization template in a tabular layout, the method includes: obtaining text optimization information and determining target background information and target font information based on the text optimization information; configuring text styles for the text configuration selector and background selector in the component-based text optimization template based on the target background information and target font information, and determining target text configuration selector and target background selector; and configuring the standardized text information using the target text configuration selector and target background selector to determine the first-level page data.

[0008] In one implementation, the step of determining target background information and target font information based on text optimization information includes: when the text optimization information is in text format, performing information extraction processing on the text optimization information to determine target background information and target font information; when the text optimization information is in image format, sending the text optimization information to a preset image processing unit for image analysis processing to determine target background information and target font information.

[0009] In one implementation, the target component includes one or more components from a component set, the component set including a chart insertion component, a flowchart insertion component, a concept map insertion component, and a timeline insertion component. The step of visualizing standardized text information using the target component and component style information to determine the target page data includes: using the component style information to determine a target configuration chart style, or a target configuration flowchart style, or a target configuration concept map style, or a target configuration timeline style from the target components; determining a target layout scheme based on the target configuration chart style, target configuration flowchart style, target configuration concept map style, and target configuration timeline style; and visualizing the first-level page data using the target layout scheme to determine the target page data.

[0010] In one implementation, after determining the target page data, the process includes: storing the target page data in a database; when retrieving the next set of current text information to be processed and the current visualization adjustment instructions, if the visualization adjustment instructions and the current user information are different types of requirements, then after retrieving the initial page data from the database to configure the component-based text optimization template, the configured component-based text optimization template still needs to be configured according to the current visualization adjustment instructions; if the visualization adjustment instructions and the current user information are the same type of requirements, then the target page data from the database is retrieved to configure the component-based text optimization template, and the configured component-based text optimization template is directly used to perform text optimization and visualization processing on the current text information.

[0011] Secondly, embodiments of the present invention also provide a text information processing device. The device is applied to a text information processing platform, which includes a component-based text optimization template. The device includes: an information acquisition module for acquiring text information to be processed; a text optimization module for performing text optimization processing on the text information, determining standardized text information, and sending the standardized text information to the component-based text optimization template; a component confirmation module for acquiring a visualization adjustment instruction, and determining a target component and component style information from the component set of the component-based text optimization template according to the visualization adjustment instruction; and a visualization processing module for performing visualization processing on the standardized text information using the target component and component style information, determining target page data, and generating a target image corresponding to the standardized text information based on the target page data.

[0012] Thirdly, embodiments of the present invention also provide an electronic device, including a processor and a memory, wherein the memory stores computer-executable instructions that can be executed by the processor, and the processor executes the computer-executable instructions to implement any of the methods provided in the first aspect.

[0013] Fourthly, embodiments of the present invention also provide a computer-readable storage medium storing computer-executable instructions, which, when invoked and executed by a processor, cause the processor to implement any of the methods provided in the first aspect.

[0014] The embodiments of the present invention bring the following beneficial effects:

[0015] This invention provides a text information processing method, apparatus, electronic device, and storage medium. The method, after acquiring text information to be processed, performs text optimization processing to determine standardized text information and sends the standardized text information to a component-based text optimization template. It then acquires visual adjustment instructions and, based on these instructions, determines target components and component style information from the component set of the component-based text optimization template. Using the target components and component style information, it performs visual processing on the standardized text information to determine target page data and generates a target image corresponding to the standardized text information based on the target page data. This invention, through a text information processing platform, automates the configuration of the component-based text optimization template based on visual adjustment instructions, thereby automating text information processing and significantly improving text information processing efficiency.

[0016] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.

[0017] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description

[0018] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.

[0019] Figure 1 This is a flowchart illustrating a text information processing method provided in an embodiment of the present invention.

[0020] Figure 2 This is a schematic diagram illustrating a specific process of a text information processing method provided in an embodiment of the present invention;

[0021] Figure 3 This is a schematic diagram of the structure of a text information processing device provided in an embodiment of the present invention;

[0022] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention. Detailed Implementation

[0023] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0024] Currently, most text content is recorded in office software (OFFICE, WPS) or directly posted in WeChat groups in the form of chat. Office software is a universal and popular tool for word processing and spreadsheet creation, which can effectively record various text information. However, text content recorded using office software is difficult to achieve a memorable effect, while text content with graphics is easier to remember. Therefore, text content needs to be visualized. However, office software often cannot meet the needs of visualization graphics. The built-in chart styles are relatively simple and the types of charts are limited. Furthermore, while it is easy to process text and create tables using office software, it is difficult to create a well-organized and memorable layout. Achieving satisfactory text layout using office software also takes a lot of time. Based on this, the present invention provides a method for graphically presenting text. After the text content is formatted in a certain way, visual charts, flowcharts, and timeline components are added as needed, and finally it is converted into an image output. In order to enable readers to quickly understand the text content, the text content can be optimized according to the set format and style. At the same time, text information can be extracted for visual display and finally converted into an image. Therefore, the text information processing method provided by the present invention, through a text information processing platform, automatically configures component-based text optimization templates based on visual adjustment instructions, thereby automating the processing of text information and significantly improving the efficiency of text information processing.

[0025] See Figure 1 The diagram shows a flowchart of a text information processing method. The method is applied to a text information processing platform, which includes a component-based text optimization template. The method mainly includes the following steps S102 to S108:

[0026] Step S102: Obtain the text information to be processed.

[0027] Step S104: Optimize the text information, determine the standardized text information, and send the standardized text information to the component-based text optimization template. In one embodiment, the component-based text optimization template includes a text input component. The text input component can only recognize text information in table layout. Therefore, before optimizing the text information, it is necessary to convert the format of the text information into a table format through a preset format conversion module to obtain the standardized text information.

[0028] Step S106: Obtain visualization adjustment instructions, and based on the visualization adjustment instructions, determine the target component and component style information from the component set of the component-based text optimization template. The target component includes one or more components in the component set, which includes a chart insertion component, a flowchart insertion component, a concept map insertion component, and a timeline insertion component. In one embodiment, the visualization adjustment instructions may include text instructions and image instructions. For text instructions, the information can be directly entered into a preset input text box or the information of each component in the component set can be adjusted to the value corresponding to the text instruction. For image instructions, image analysis processing is performed on the image instructions by a preset image processing unit to determine the text information of the image instructions. Additionally, visualization adjustment instructions may also include voice instructions. This invention does not limit the above-mentioned visualization adjustment instructions. Furthermore, those skilled in the art should understand that the above-mentioned component set is not intended to limit this invention, and other components used to display text information are also within the scope of protection of this invention.

[0029] Step S108: Using the target component and component style information, perform visualization processing on the standardized text information, determine the target page data, and generate the target image corresponding to the standardized text information based on the target page data. The target image is the exported image of the current page obtained by formatting the text information after the component-based text optimization template has completed all configurations according to the visualization adjustment instructions.

[0030] The text information processing method provided in this embodiment of the invention, through a text information processing platform, automatically configures component-based text optimization templates based on visual adjustment instructions, thereby automating text information processing and significantly improving text information processing efficiency.

[0031] This invention also provides an implementation method for text information processing, see [link to implementation details]. Figure 2 The following is a detailed flowchart of a text information processing method, specifically shown in (1) to (4):

[0032] (1) Based on the preset initialization configuration information, the page layout of the component-based text optimization template is processed to determine the initial page data and store it in the database. The initial page data includes: the number of elements in each text line, the initial background information, and the initial font information. That is, when performing the above initialization configuration, the style attributes of the entire page and the data to be displayed need to be encapsulated in the page object, including the title line and the text line. The text line can be infinitely expanded, and the number of elements in each line is customizable. Each element, each text line, the title line, and the page object have custom line styles, background colors, font sizes, font colors, and other attributes. The page object has a background image attribute, and each element, each text line, and the title line can be configured with an icon. In addition, the text lines and the objects in the element collection have sorting attributes.

[0033] In one implementation, the initial page data is the preset basic component-based text optimization template page data. Initialization configuration is only required when text information is processed for the first time through the text information processing platform. For any subsequent processing of any set of text information, the initial page data can be directly retrieved from the database, skipping the initialization configuration stage. That is, when retrieving the next set of current text information to be processed and the current visualization adjustment instruction, if the visualization adjustment instruction and the current user information are different types of requirements, after retrieving the initial page data from the database to configure the component-based text optimization template, it is still necessary to configure the configured component-based text optimization template according to the current visualization adjustment instruction.

[0034] (2) Obtain text optimization information, and determine target background information and target font information based on the text optimization information. Based on the target background information and target font information, perform text style configuration processing on the text configuration selector and background selector in the component-based text optimization template, determine the target text configuration selector and target background selector, and use the target text configuration selector and target background selector to perform first-level page configuration on the standardized text information, and determine the first-level page data. Among them, the target background information includes: background color and background image attribute information, and the target font information includes: font size, font color and font style, etc. The text configuration selector and background selector are both text input components. The text input component can only recognize text information in table layout. Therefore, before performing text optimization processing on the text information, it is necessary to first convert the format of the text information into a table format through the preset format conversion module to obtain standardized text information. Enter the standardized text information into the component-based text optimization template line by line in the preset layout of the table format. Among them, the preset layout includes: the number of child elements in each row, column width and row height. In one implementation, when standardized text information is entered line by line into a component-based text optimization template in a preset table format, it is specifically necessary to configure the number of columns that can be defined separately for each row, i.e., the number of child elements in each row. The width and height of each column of child elements (the height follows the row height) are set. Each row uses the "display:table" layout, and the sum of the widths of the child elements in each row must be equal to 100%.

[0035] In one implementation, when the optimized text information is in text format, information extraction processing is performed on the optimized text information to determine the target background information and target font information; when the optimized text information is in image format, the optimized text information is sent to a preset image processing unit for image analysis processing to determine the target background information and target font information. That is, when the optimized text information is in text format, text records are entered through an Input text box, and the text content is bound as page data to the text property of the element object. The background color, background image, and other styles of the page are configured. When the optimized text information is in image format, an image upload control is used to upload the background image. Finally, the background color, background image, and other style attributes are bound to a container (DIV) for parsing. In one implementation, the background color can be selected through a "color picker" or implemented using "CSS code". If the background color attribute is configured in both the CSS custom input and the background picker, only the configuration in the background picker takes effect.

[0036] (3) Using component style information, determine the target configuration chart style, or target configuration flowchart style, or target configuration concept map style, or target configuration timeline style from the target components. Based on the target configuration chart style, target configuration flowchart style, target configuration concept map style, and target configuration timeline style, determine the target layout scheme, and use the target layout scheme to visualize the first-level page data to determine the target page data. The target layout scheme includes: selecting the component category from the chart insertion component, flowchart insertion component, concept map insertion component, and timeline insertion component, and the specific configuration scheme of the component. The target page data is the overall page data of the component-based text optimization template finally configured according to the visualization adjustment instructions. In one implementation, if the component style information of the visualization adjustment instructions is text information, it can be directly input through the Input text box, and then each component is configured according to the text information input through the text box; if the component style information of the visualization adjustment instructions is image information, it is necessary to parse the image information through the built-in component, and then configure each component according to the parsed image information. For the specific configuration methods of each component in practical applications, please refer to (a) to (d) below:

[0037] (a) For the chart insertion component, charts can be imported as needed, such as generating a word cloud based on keywords appearing in the text content record, or generating a pie chart based on a certain state of the text content record. That is, add a new rowList object. Assuming the added row is the nth row, the object of this row is rowList[n]. Assuming that two charts need to be added to this row, the number of dataList elements configured for the rowList[n] object is 2, the style property of the dataList[0] element object needs to be set to a width of 50%, the type is selected as chart, and the chart component is called. The chart component supports selecting several built-in chart schemes, or it can be implemented by importing the Option object script of the "Echarts" chart. The former only requires selecting a preset chart scheme and filling in the chart data to generate the chart. The preset chart scheme is based on Echarts and encapsulates several commonly used charts. The latter requires copying the debugged script from the "Echarts" official website to generate the chart. The principle is to pass the input Option content to the chart component for parsing. The style property of the dataList[1] element object is also set to a width of 50%, the type is selected as chart, and the chart is added in the above way.

[0038] (b) For the flowchart insertion component, to more intuitively understand the meaning or ideas conveyed by the text record, a "flowchart" display can be added. That is, a new rowList object is added. Assuming the added row is the nth row, then the object for this row is rowList[n]. The number of dataList elements configured for the rowList[n] object is 1. Edit the dataList child element, select the type as flowchart, and call the built-in flowchart component, which is based on the JointJS wrapper.

[0039] (c) For the concept map insertion component, concept maps (one-to-many connections) can be inserted according to the content record requirements. A new rowList object is added to append a row. Assuming the added row is the nth row, the object for this row is rowList[n]. The number of dataList elements configured for the rowList[n] object is 2. The style property of the dataList[0] element object needs to be set to a width of 25%, while the style property of the dataList[1] element object needs to be set to a width of 75%. Text content is inserted into the dataList[0] element, and concept map (one-to-many connection) content is inserted into the dataList[1] element. The text content can be directly entered through the Input text box, while the concept map needs to be implemented through the built-in component of this invention. The data form of this component is a oneToLineManyObj object, including title and rightList properties. The title property is entered and edited through the Input text box. The rightList supports addition and deletion. Each time an object is added, a corresponding Input text box will appear in the component.

[0040] (d) For the timeline insertion component, add a new rowList object. Assuming the added row is the nth row, the object for this row is rowList[n]. Configure the rowList[n] object with 1 dataList element. Edit the dataList child element and select the type as timeline component. This invention is based on ElementUI's TimeLine timeline control, which encapsulates various style timelines, which can be selected within the timeline component.

[0041] (4) After completing the above configuration, the overall layout of the page can be adjusted to make it more visually appealing. Adjust the vertical position of each line, the width of each line's sub-elements, and the content style of the sub-elements. Store the target page data in the database. If the visual adjustment instruction is the same type of requirement as the current user information, retrieve the target page data from the database to configure the component-based text optimization template. Then, directly use the configured component-based text optimization template to perform text optimization and visualization processing on the current text information. The target page data can be used to obtain the page layout, font color, font size, icon, background color, and background image settings. In one implementation, the target page data is determined, and the page data is encapsulated into an object and saved to the database. The page data object includes attributes such as title object, scheme name, custom page style, background image, background color, font size, font color, icon, and line information. The title object contains custom line styles, background color, font size, font color, and icons. Each line object contains custom line styles, a collection of child elements, background color, sorting, and other attributes. Each child element object contains display type (e.g., text, chart, flowchart, etc.), text content, rendering data for components such as charts, flowcharts, and timelines, background color, font size, font color, icons, custom child element styles, sorting, and other attributes. When you need to generate records of the same type of content again, you only need to open this scheme, modify the text content, or adjust the layout as needed.

[0042] In summary, this invention allows for the free configuration of background, font, icon, and other styles of components through customizable processes, timelines, and chart components. It also enables customization of text appearance through form attributes or text boxes. Furthermore, it allows for the encapsulation of page configurations (page layout, text style configuration, and component configurations) for interaction with the backend, improving the readability of text descriptions and facilitating convenient image saving.

[0043] Regarding the text information processing method provided in the foregoing embodiments, this invention provides a text information processing apparatus. This apparatus is applied to a text information processing platform, which includes: a component-based text optimization template (see [link]). Figure 3 The diagram shows a structural schematic of a text information processing device, which includes the following parts:

[0044] Information acquisition module 302 acquires text information to be processed;

[0045] The text optimization module 304 performs text optimization processing on the text information, determines the standardized text information, and sends the standardized text information to the component-based text optimization template.

[0046] The component confirmation module 306 obtains the visual adjustment instructions and, based on the visual adjustment instructions, determines the target component and component style information from the component set of the component-based text optimization template;

[0047] The visualization processing module 308 uses the target component and component style information to perform visualization processing on standardized text information, determine the target page data, and generate the target image corresponding to the standardized text information based on the target page data.

[0048] The text information processing device provided in this application embodiment automatically configures component-based text optimization templates through a text information processing platform based on visual adjustment instructions, thereby automatically processing text information and significantly improving text information processing efficiency.

[0049] In one embodiment, before the step of optimizing the text information, the text optimization module 304 is further configured to: perform page layout processing on the component-based text optimization template according to the preset initialization configuration information, determine the initialization page data, and store the initialization page data in the database, wherein the initialization page data includes: the number of elements in each text line, the initialization background information, and the initialization font information.

[0050] In one embodiment, when performing text optimization processing on text information, determining standardized text information, and sending the standardized text information to the component-based text optimization template, the text optimization module 304 is further configured to: convert the format of the text information into a table format through a preset format conversion module to obtain standardized text information; and input the standardized text information into the component-based text optimization template line by line in a preset table format layout, wherein the preset layout includes: the number of child elements in each row, column width, and row height.

[0051] In one embodiment, after the step of entering standardized text information line by line into the component-based text optimization template in a table format, the text optimization module 304 is further configured to: obtain text optimization information and determine target background information and target font information based on the text optimization information; perform text style configuration processing on the text configuration selector and background selector in the component-based text optimization template based on the target background information and target font information, and determine the target text configuration selector and target background selector; and use the target text configuration selector and target background selector to perform first-level page configuration on the standardized text information, and determine the first-level page data.

[0052] In one embodiment, when performing the step of determining target background information and target font information based on text optimization information, the text optimization module 304 is further configured to: when the text optimization information is in text format, perform information extraction processing on the text optimization information to determine target background information and target font information; when the text optimization information is in image format, send the text optimization information to a preset image processing unit for image analysis processing to determine target background information and target font information.

[0053] In one embodiment, the target component includes one or more components from a component set, the component set including a chart insertion component, a flowchart insertion component, a concept map insertion component, and a timeline insertion component. When performing the step of visualizing standardized text information using the target component and component style information to determine the target page data, the visualization processing module 308 is further configured to: use the component style information to determine the target configuration chart style, or the target configuration flowchart style, or the target configuration concept map style, or the target configuration timeline style from the target component; determine the target layout scheme based on the target configuration chart style, target configuration flowchart style, target configuration concept map style, and target configuration timeline style; and use the target layout scheme to visualize the first-level page data to determine the target page data.

[0054] In one embodiment, after determining the target page data, the visualization processing module 308 is further configured to: store the target page data in a database; when retrieving the next set of current text information to be processed and the current visualization adjustment instructions, if the visualization adjustment instructions and the current user information are different types of requirements, then after retrieving the initial page data from the database to configure the component-based text optimization template, the configured component-based text optimization template still needs to be configured according to the current visualization adjustment instructions; if the visualization adjustment instructions and the current user information are the same type of requirements, then the target page data from the database is retrieved to configure the component-based text optimization template, and the configured component-based text optimization template is directly used to perform text optimization processing and visualization processing on the current text information.

[0055] The device provided in this embodiment of the invention has the same implementation principle and technical effect as the aforementioned method embodiment. For the sake of brevity, any parts not mentioned in the device embodiment can be referred to the corresponding content in the aforementioned method embodiment.

[0056] This invention provides an electronic device, specifically, the electronic device includes a processor and a storage device; the storage device stores a computer program, and the computer program, when run by the processor, executes the method described in any of the above embodiments.

[0057] Figure 4The present invention provides a schematic diagram of the structure of an electronic device 100, which includes a processor 40, a memory 41, a bus 42 and a communication interface 43. The processor 40, the communication interface 43 and the memory 41 are connected through the bus 42. The processor 40 is used to execute executable modules, such as computer programs, stored in the memory 41.

[0058] The memory 41 may include high-speed random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Communication between this system network element and at least one other network element is achieved through at least one communication interface 43 (which can be wired or wireless), such as the Internet, wide area network, local area network, metropolitan area network, etc.

[0059] Bus 42 can be an ISA bus, PCI bus, or EISA bus, etc. The bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 4 The symbol is represented by a single double-headed arrow, but this does not mean that there is only one bus or one type of bus.

[0060] The memory 41 is used to store programs. After receiving an execution instruction, the processor 40 executes the program. The method executed by the device for defining the flow process disclosed in any of the foregoing embodiments of the present invention can be applied to the processor 40 or implemented by the processor 40.

[0061] Processor 40 may be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method can be completed by the integrated logic circuitry in the hardware of processor 40 or by instructions in software form. Processor 40 can be a general-purpose processor, including a Central Processing Unit (CPU), a Network Processor (NP), etc.; it can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. It can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the methods disclosed in the embodiments of this invention can be directly embodied in the execution of a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules can reside in random access memory, flash memory, read-only memory, programmable read-only memory, electrically erasable programmable memory, registers, or other mature storage media in the art. The storage medium is located in memory 41. The processor 40 reads the information in memory 41 and, in conjunction with its hardware, completes the steps of the above method.

[0062] The computer program product of the readable storage medium provided in the embodiments of the present invention includes a computer-readable storage medium storing program code. The instructions included in the program code can be used to execute the methods described in the foregoing method embodiments. For specific implementation, please refer to the foregoing method embodiments, which will not be repeated here.

[0063] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0064] Finally, it should be noted that the above-described embodiments are merely specific implementations of the present invention, used to illustrate the technical solutions of the present invention, and not to limit it. The scope of protection of the present invention is not limited thereto. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that any person skilled in the art can still modify or easily conceive of changes to the technical solutions described in the foregoing embodiments within the technical scope disclosed in the present invention, or make equivalent substitutions for some of the technical features; and these modifications, changes, or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.

Claims

1. A text information processing method, characterized in that, The method is applied to a text information processing platform, which includes: a component-based text optimization template, and the method includes: Retrieve the text information to be processed; The text information is optimized to determine standardized text information, and the standardized text information is sent to the component-based text optimization template. Obtain visual adjustment instructions, and determine the target component and component style information from the component set of the component-based text optimization template according to the visual adjustment instructions; Using the target component and the component style information, the standardized text information is visualized to determine the target page data, and a target image corresponding to the standardized text information is generated based on the target page data. The step of optimizing the text information, determining standardized text information, and sending the standardized text information to the component-based text optimization template includes: converting the format of the text information into a table format through a preset format conversion module to obtain the standardized text information; and entering the standardized text information line by line into the component-based text optimization template in a preset table layout, wherein the preset layout includes: the number of child elements in each row, column width, and row height. The step, following the step of entering the standardized text information line by line into the component-based text optimization template in a table format, includes: obtaining text optimization information and determining target background information and target font information based on the text optimization information; configuring text styles for the text selection selector and background selection selector in the component-based text optimization template based on the target background information and target font information, and determining target text selection selector and target background selection selector; and configuring the standardized text information using the target text selection selector and target background selection selector to determine the first-level page data. The step of determining the target background information and the target font information based on the text optimization information includes: when the text optimization information is in text format, performing information extraction processing on the text optimization information to determine the target background information and the target font information; when the text optimization information is in image format, sending the text optimization information to a preset image processing unit for image analysis processing to determine the target background information and the target font information. The target component includes one or more components from the component set, which includes a chart insertion component, a flowchart insertion component, a concept map insertion component, and a timeline insertion component. The step of visualizing the standardized text information using the target component and the component style information to determine the target page data includes: using the component style information to determine a target configuration chart style, or a target configuration flowchart style, or a target configuration concept map style, or a target configuration timeline style from the target component; determining a target layout scheme based on the target configuration chart style, the target configuration flowchart style, the target configuration concept map style, and the target configuration timeline style; and visualizing the first-level page data using the target layout scheme to determine the target page data.

2. The text information processing method according to claim 1, characterized in that, Before the step of performing text optimization processing on the text information, the following is included: Based on the preset initialization configuration information, the component-based text optimization template is processed for page layout, the initialization page data is determined, and the initialization page data is stored in the database. The initialization page data includes: the number of elements in each text line, initialization background information, and initialization font information.

3. The text information processing method according to claim 1, characterized in that, Following the step of determining the target page data, the following is included: The target page data is stored in the database; When re-acquiring the next set of current text information to be processed and the current visualization adjustment instructions, if the visualization adjustment instructions are different types of requirements from the current user information, after retrieving the initial page data from the database to configure the component-based text optimization template, it is still necessary to configure the configured component-based text optimization template according to the current visualization adjustment instructions. If the visualization adjustment instruction is of the same type as the current user information, then the target page data is obtained from the database to configure the component-based text optimization template, and the configured component-based text optimization template is directly used to perform the text optimization processing and visualization processing on the current text information.

4. A text information processing device, characterized in that, The device is applied to a text information processing platform, the text information processing platform including: a component-based text optimization template, and the device including: The information acquisition module acquires the text information to be processed. The text optimization module performs text optimization processing on the text information, determines standardized text information, and sends the standardized text information to the component-based text optimization template. The component confirmation module obtains visual adjustment instructions and, based on the visual adjustment instructions, determines the target component and component style information from the component set of the component-based text optimization template. The visualization processing module uses the target component and the component style information to perform visualization processing on the standardized text information, determine the target page data, and generate the target image corresponding to the standardized text information based on the target page data; The step of optimizing the text information to determine standardized text information and sending the standardized text information to the component-based text optimization template includes: converting the format of the text information into a table format through a preset format conversion module to obtain the standardized text information; and entering the standardized text information line by line into the component-based text optimization template in a preset table layout, wherein the preset layout includes: the number of child elements in each row, column width, and row height. The process, after entering the standardized text information line by line into the component-based text optimization template in a table format, includes: acquiring text optimization information and determining target background information and target font information based on the text optimization information; configuring text styles for the text selection selector and background selection selector in the component-based text optimization template based on the target background information and target font information, and determining target text selection selector and target background selection selector; and configuring the standardized text information using the target text selection selector and target background selection selector to determine the first-level page data. The process of determining target background information and target font information based on the text optimization information includes: when the text optimization information is in text format, performing information extraction processing on the text optimization information to determine the target background information and the target font information; when the text optimization information is in image format, sending the text optimization information to a preset image processing unit for image analysis processing to determine the target background information and the target font information. The target component includes one or more components from the component set, which includes a chart insertion component, a flowchart insertion component, a concept map insertion component, and a timeline insertion component. The step of visualizing the standardized text information using the target component and its style information to determine the target page data includes: using the component style information to determine a target configuration chart style, or a target configuration flowchart style, or a target configuration concept map style, or a target configuration timeline style from the target component; determining a target layout scheme based on the target configuration chart style, the target configuration flowchart style, the target configuration concept map style, and the target configuration timeline style; and visualizing the first-level page data using the target layout scheme to determine the target page data.

5. An electronic device, characterized in that, The method includes a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the method of any one of claims 1 to 3.

6. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions that, when invoked and executed by a processor, cause the processor to perform the method described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Data visualization display making system

    CN114706584A

  • Picture generation method and device, terminal equipment and computer medium

    CN115496649A