Text processing method and device, equipment, medium and program
By displaying target keywords in text data and storing data according to needs, the problems of poor readability and low processing efficiency of text data are solved, and more efficient data processing and user experience are achieved.
Patent Information
- Application Number
- CN202411917078.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-24
- Publication Date
- 2025-04-08
AI Technical Summary
In the prior art, text data has poor readability and low data processing efficiency, so it is impossible to effectively analyze large amounts of text data.
By obtaining the original text data, determining multiple target keywords corresponding to it, and matching the target keywords stored in the keyword database, the target keywords are displayed in the original text data using the target display method, and the target storage location is determined according to the data storage instructions and the corresponding data is stored.
It improves the readability of text data, improves data processing efficiency, can be processed and stored according to different data usage needs, and improves user experience.
Smart Images

Figure CN119782450A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a text processing method, device, equipment, medium and program. Background Art
[0002] With the development of the Internet and digital technology, the amount of data generated in production and life continues to increase, of which text data accounts for an increasing proportion. Text data contains a lot of valuable information, but due to the large amount of data, it is impossible to effectively analyze this data.
[0003] In the prior art, the keywords extraction algorithm is generally used to extract the words with high frequency in the text data, and then the extracted results are determined as keywords, and the extracted results are displayed. However, this simple extraction and display method has poor readability when users process data, and cannot provide users with intuitive and effective help, and the efficiency of data processing is low. Summary of the invention
[0004] The present invention provides a text processing method, device, equipment, medium and program to solve the problems of poor readability of text data and low data processing efficiency.
[0005] According to one aspect of the present invention, there is provided a text processing method, comprising: acquiring original text data, determining a plurality of target keywords corresponding to the original text data; for each of the target keywords, displaying the target keyword in the original text data in a target display manner according to the keywords stored in a keyword database and the target keywords; in response to a data storage instruction for the original text data, determining a target storage location corresponding to the original text data according to the data storage instruction; determining target storage data corresponding to the original text data according to the target storage location, and storing the target storage data at the target storage location.
[0006] According to another aspect of the present invention, there is provided a text processing device, comprising:
[0007] A keyword determination module, used to obtain original text data and determine a plurality of target keywords corresponding to the original text data;
[0008] a display mode determination module, configured to display each target keyword in the original text data in a target display mode according to keywords stored in a keyword database and the target keyword;
[0009] A storage location determination module, configured to respond to a data storage instruction for the original text data and determine a target storage location corresponding to the original text data according to the data storage instruction;
[0010] The data storage module is used to determine the target storage data corresponding to the original text data according to the target storage location, and store the target storage data in the target storage location.
[0011] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0012] at least one processor; and
[0013] a memory communicatively connected to the at least one processor; wherein,
[0014] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the text processing method described in any embodiment of the present invention.
[0015] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the text processing method described in any embodiment of the present invention when executed.
[0016] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the text processing method described in any embodiment of the present invention is implemented.
[0017] The technical solution of the embodiment of the present invention determines multiple target keywords corresponding to the original text data by acquiring original text data; for each target keyword, the target keyword is displayed in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword, which can improve the readability of the original text data and improve the data processing efficiency. In response to a data storage instruction for the original text data, a target storage location corresponding to the original text data is determined according to the data storage instruction; the target storage data corresponding to the original text data is determined according to the target storage location, and the target storage data is stored in the target storage location, which can process and store data according to different data usage requirements, which can improve data processing efficiency and enhance user experience.
[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0020] Figure 1 is a flowchart of a text processing method provided according to Embodiment 1 of the present invention;
[0021] Figure 2 is a flowchart of another text processing method provided according to Embodiment 2 of the present invention;
[0022] Figure 3 is a structural schematic diagram of a text processing device provided according to Embodiment 3 of the present invention;
[0023] Figure 4 It is a schematic diagram of the structure of an electronic device for implementing the text processing method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0026] Embodiment 1
[0027] Figure 1A flowchart of a text processing method is provided for the first embodiment of the present invention. This embodiment can be applied to determine the target storage data corresponding to the original text data according to the target storage location of the target keyword, and store the target storage data in the target storage location. The method can be executed by a text processing device, which can be implemented in the form of hardware and / or software, and the text processing device can be configured in an electronic device. Figure 1 As shown, the method includes:
[0028] S110: Acquire original text data, and determine a plurality of target keywords corresponding to the original text data.
[0029] The original text data may be text data that needs to be processed or analyzed. The target keywords may be words or phrases with specific meanings or importance extracted from the original text data. The target keywords may be used to represent key information of the original text data.
[0030] For example, the keywords in the original text data can be extracted by the TextRank algorithm (a graph-based ranking algorithm that can be used for keyword extraction and text summarization in text processing), and multiple target keywords corresponding to the original text data can be determined based on the algorithm. By extracting the keywords in the original text data and processing them, it is more helpful for readers or analysts to understand the main content of the text.
[0031] S120 . For each target keyword, display the target keyword in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword.
[0032] Wherein, the target display mode can be determined according to the matching situation between the keywords stored in the keyword database and the target keywords, and the display mode of the target keywords can include a first display mode and a second display mode, and the first display mode can include a hyperlink form, and the second display mode can be other forms different from the hyperlink form, such as bolding or italicizing the target keywords. The hyperlink form can be a display mode of the target keywords. By displaying the target keywords in the form of hyperlinks, the target keywords can be distinguished from the remaining non-keywords. The other end of the hyperlink can be connected to the interpretation information of the target keywords or other information associated with the target keywords that is easy to understand the target keywords.
[0033] The keyword database may be a database system that pre-stores a large number of keywords. The keywords stored in the keyword database may be collected from multiple sources, including but not limited to keywords from multiple sources such as user input, domain knowledge, or expert annotations. The keyword database includes multiple keyword data tables, each of which has its corresponding importance level. The importance level is used to characterize the importance of the keywords stored in each keyword data table in the keyword database.
[0034] Exemplarily, after determining a plurality of target keywords corresponding to the original text data, a target display mode of the target keyword can be determined according to the matching of the keywords stored in the keyword database and the target keyword. When the keywords in the keyword database include the target keyword, the first display mode is determined as the target display mode of the target keyword; when the keywords in the keyword database do not include the target keyword, the second display mode is determined as the target display mode of the target keyword.
[0035] Optionally, the target keyword is displayed in the original text data in a target display manner based on the keywords and the target keyword stored in the keyword database, including: when the target keyword is included in the keywords in the keyword database, the target keyword is displayed in the original text data in a first display manner, wherein the first display manner includes a hyperlink form.
[0036] Specifically, after determining a plurality of target keywords corresponding to the original text data, the target display mode of the target keyword can be determined according to the matching conditions between the keywords stored in the keyword database and the target keyword. When the keywords in the keyword database include the target keyword, the hyperlink form is determined as the target display mode of the target keyword, the target keyword in the original text data is updated through the hyperlink form, and the updated target keyword is displayed in the original text data.
[0037] Optionally, the first display method also includes a keyword display color; displaying the target keyword in the original text data in the first display method includes: determining an importance level of the target keyword based on a storage location of a keyword identical to the target keyword in a keyword database, and determining a keyword display color of the target keyword based on the importance level; converting the target keyword into a hyperlink form, and displaying the target keyword in the hyperlink form in the original text data in the keyword display color.
[0038] The storage location may be a specific location of the target keyword in a keyword database. The storage location may be used to determine the importance level corresponding to the target keyword, and the importance level may be a level used to characterize the importance of the keyword. The keyword display color may be determined according to the importance level of the target keyword, and the font display color of the target keyword in the original text data is used to highlight the target keyword in the original text data according to the different levels of the keyword.
[0039] Exemplarily, when it is determined that the target keyword is included in the keywords in the keyword database, the importance level corresponding to the target keyword can be determined according to the specific position of the target keyword in the keyword database, the font display color of the target keyword in the original text data can be determined according to the importance level corresponding to the target keyword, and the target keyword in the form of a hyperlink can be displayed in the original text data with the determined keyword display color. By converting the target keyword into a hyperlink form, the importance of the target keyword can be highlighted, and more information about the keyword can be obtained by clicking on these hyperlinks, thereby increasing the richness and interactivity of the user experience. By assigning different display colors to the target keywords, readers can be helped to more quickly identify important information of different levels in the text.
[0040] Optionally, displaying the target keyword in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword includes: when the target keyword is not included in the keywords in the keyword database, displaying the target keyword in the original text data in a second display manner.
[0041] Exemplarily, when it is determined that the target keyword is not included in the keywords in the keyword database, the target keyword can be bolded or italicized, and then the target keyword that is not included in the keyword database in the original text data is displayed so that it can be distinguished from the non-keywords in the original text data. By bolding or italicizing the target keyword, the importance of the target keyword can be highlighted, and it can be distinguished from the target keyword included in the keyword database, which can help readers identify key information in the text more quickly.
[0042] S130 . In response to a data storage instruction for the original text data, determine a target storage location corresponding to the original text data according to the data storage instruction.
[0043] Among them, the data storage instruction may be an instruction for storing the original text data after the keyword is extracted. The data storage instruction may be an instruction determined after the user selects the identification information corresponding to the target storage location through the visual interface, or may be a storage instruction for the original text data issued in other ways. Through the data storage instruction, the target storage location for storing the original text data may be determined. The target storage location may be the storage location of the original text data determined according to the data storage instruction. The target storage location may include at least one of a file-type database, a relational database, a cache database, and a middleware database. A file-type database may be a database that stores data in the form of files. A relational database may be a database based on a relational model, which may organize data through tables and columns, and connect different tables through keys and relationships. A cache database may be a database for temporarily storing data, located between the main memory and the persistent storage, and may improve the data access speed. A middleware database is a database located between an application and a database. The middleware database may abstract the details of the underlying database and provide a unified interface and data access layer for different applications or access users.
[0044] Exemplarily, the target keywords in the original text data can be displayed on a preset display interface according to their corresponding target display mode, and in response to a data storage instruction issued by a user for the original text data, a target storage location corresponding to the original text data is determined, and the original text data is stored in the corresponding target storage location. By determining the storage location of the data according to the use requirements of the data and the target keywords in the original text data, and issuing a data storage instruction to store the original text data in the corresponding target storage location, it is convenient for users to access and use the data.
[0045] S140. Determine target storage data corresponding to the original text data according to the target storage location, and store the target storage data in the target storage location.
[0046] The target storage data may be data stored in the target storage location determined based on the target storage location for the original text data and information associated with the original text data, and different target storage locations may correspond to different target storage data. For example, when the target storage location is a file-based database, the target keywords may be marked or indexed so that the text content containing these keywords can be quickly located in subsequent file retrieval and search. When the target storage location is a relational database, the target keywords in the original text data may be determined as index fields and associated with other target keywords through a relational table, thereby supporting complex query and retrieval operations.
[0047] Specifically, after determining the target storage location of the original text data, the original text data can be processed according to the data format corresponding to the target storage location to obtain target storage data corresponding to the original text data, and then the target storage data is stored in the target storage location.
[0048] The technical solution of the embodiment of the present invention determines multiple target keywords corresponding to the original text data by acquiring original text data; for each target keyword, the target keyword is displayed in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword, which can improve the readability of the original text data and improve the data processing efficiency. In response to a data storage instruction for the original text data, a target storage location corresponding to the original text data is determined according to the data storage instruction; the target storage data corresponding to the original text data is determined according to the target storage location, and the target storage data is stored in the target storage location, which can process and store data according to different data usage requirements, which can improve data processing efficiency and enhance user experience.
[0049] Embodiment 2
[0050] Figure 2 This is a flowchart of a text processing method provided in the second embodiment of the present invention. Based on the above embodiment, this embodiment further refines the following steps: responding to a data storage instruction for original text data, determining a target storage location corresponding to the original text data according to the data storage instruction; determining target storage data corresponding to the original text data according to the target storage location, and storing the target storage data at the target storage location. The same terms as those in the above embodiment are not repeated here. Figure 2 As shown, the method includes:
[0051] S210: Acquire original text data, and determine a plurality of target keywords corresponding to the original text data.
[0052] S220 . For each target keyword, display the target keyword in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword.
[0053] S230: Display database identifiers corresponding to a plurality of preset databases, and in response to an identifier triggering operation on the database identifiers, determine a target database corresponding to the original text data according to the identifier triggering operation.
[0054] Among them, the preset database can be a database that is pre-set according to factors such as business needs, data types or storage requirements, and is used to store or process data. The preset database may include databases such as relational databases, non-relational databases, file-based databases or graph databases. The database identifier may be different identification information corresponding to multiple preset databases displayed on the display interface. The identifier trigger operation may be a click operation on the database identifier or a trigger operation in other ways. The target database may be a database corresponding to the database identifier triggered by the identifier trigger operation. By triggering the database identifier through the trigger operation, the database corresponding to the database identifier can be determined as the target database.
[0055] Exemplarily, database identifiers corresponding to multiple preset databases can be displayed in a preset display interface, and the user can determine the target database of the original text data based on the displayed database identifiers and multiple target keywords in the original text data. By triggering the trigger operation of the database identifier, the target database corresponding to the original text data is determined. By storing data in different storage locations, subsequent access and processing of the data can be facilitated, data access efficiency can be improved, and user experience can be enhanced.
[0056] S240: Determine target storage data corresponding to the original text data according to the target database, and store the target storage data in the target database.
[0057] Optionally, the target database includes a text database, and the target storage data includes first target storage data; the target storage data corresponding to the original text data is determined according to the target storage location, including: determining the target text information corresponding to the original text data according to the original text data and the target display method of each target keyword, and determining the first target storage data according to the target text information.
[0058] The target text information may be text information corresponding to the original text data obtained by updating the original text data according to the target display mode corresponding to the target keyword in the original text data. The first target storage data may be the target text information or data stored in the target database after marking or indexing the keywords in the target text information.
[0059] Exemplarily, if the target storage location is a text database, the original text data can be updated according to the target display method corresponding to the target keywords in the original text data, the updated original text data can be determined as the target text information, and then the target text information can be determined as the target storage data and stored in the text database to improve the readability of the data and improve the efficiency of data processing; the target keywords can also be marked or indexed so that the text content containing these keywords can be quickly located in subsequent file retrieval and search.
[0060] Optionally, the target storage location includes a relational database, and the target storage data includes second target storage data; determining the target storage data corresponding to the original text data according to the target storage location, and storing the target storage data at the target storage location, including: obtaining context information corresponding to each target keyword, determining association information of each target keyword according to the context information, wherein the association information is used to characterize the interpretation of the target keyword in the original text data; determining the target keyword in the original text data and the association information of each target keyword as second target storage data, and storing the second target storage data in the relational database.
[0061] The context information may be text content adjacent to or related to the target keyword in the original text data. By combining the context information of the target keyword, the environment and background in which the target keyword appears can be more accurately determined. The associated information may be the interpretation or related information of the target keyword in the original text data determined based on the context information. The associated information may be used for the interpretation of the target keyword in the original text data. The second target storage data may be data including the target keyword and the associated information of the target keyword.
[0062] Exemplarily, if the target storage location is a relational database, the target keyword in the original text data and the information associated with the target keyword can be determined as the target storage data, and the target keyword and the information associated with the target keyword can be stored in the relational database in the form of a key-value pair, and a connection relationship can be established between multiple target keywords. When the target storage location is a relational database, the target keyword in the original text data can be determined as an index field and associated with other target keywords through a relational table, thereby supporting complex query and retrieval operations.
[0063] The technical solution of the embodiment of the present invention obtains original text data and determines multiple target keywords corresponding to the original text data; for each target keyword, the target keyword is displayed in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword, which can improve the readability of the original text data and enhance the user experience. By displaying the processed text data on the display interface, the storage method of the data can be quickly determined, and a data storage instruction for the original text data can be issued. In response to the data storage instruction for the original text data, the target storage location corresponding to the original text data is determined according to the data storage instruction. The original text data is processed according to the target storage location, the target storage data corresponding to the original text data is determined, and the target storage data is stored at the target storage location. The data processing efficiency can be improved and the user experience can be enhanced.
[0064] Embodiment 3
[0065] Figure 3 This is a schematic diagram of the structure of a text processing device provided by Embodiment 3 of the present invention. Figure 3 As shown, the device includes: a keyword determination module 310, a display mode determination module 320, a storage location determination module 330 and a data storage module 340.
[0066] Furthermore, a keyword determination module 310 is used to obtain original text data and determine multiple target keywords corresponding to the original text data; a display method determination module 320 is used to display the target keyword in the original text data in a target display method according to the keywords and target keywords stored in the keyword database for each target keyword; a storage location determination module 330 is used to respond to a data storage instruction for the original text data and determine a target storage location corresponding to the original text data according to the data storage instruction; a data storage module 340 is used to determine target storage data corresponding to the original text data according to the target storage location and store the target storage data at the target storage location.
[0067] Furthermore, the display mode determination module 320 is specifically configured to: when the keywords in the keyword database include the target keyword, display the target keyword in the original text data in a first display mode, wherein the first display mode includes a hyperlink form.
[0068] Furthermore, the display method determination module 320 is also specifically used to: determine the importance level of the target keyword based on the storage location of the keyword identical to the target keyword in the keyword database, and determine the keyword display color of the target keyword based on the importance level; convert the target keyword into a hyperlink form, and display the target keyword in the hyperlink form in the original text data with the keyword display color.
[0069] Furthermore, the display mode determination module 320 is further specifically configured to: when the target keyword is not included in the keywords in the keyword database, display the target keyword in the original text data in a second display mode.
[0070] The target storage location includes a target database, the target database includes a text database and a relational database, and the target storage data includes first target storage data and second target storage data.
[0071] Furthermore, the storage location determination module 330 is specifically used to: display database identifiers corresponding to multiple preset databases, respond to an identifier trigger operation for the database identifier, and determine a target database corresponding to the original text data according to the identifier trigger operation.
[0072] Furthermore, the data storage module 340 is specifically used to: determine the target text information corresponding to the original text data according to the original text data and the target display mode of each target keyword, and determine the first target storage data according to the target text information.
[0073] Furthermore, the data storage module 340 is specifically used to: obtain context information corresponding to each target keyword, determine the associated information of each target keyword based on the context information, wherein the associated information is used to characterize the interpretation of the target keyword in the original text data; determine the target keyword in the original text data and the associated information of each target keyword as second target storage data, and store the second target storage data in a relational database.
[0074] The text processing device provided in the embodiment of the present invention can execute the text processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0075] Embodiment 4
[0076] Figure 4 A schematic diagram of the structure of an electronic device 10 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0077] like Figure 4As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0078] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0079] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as a text processing method.
[0080] In some embodiments, the text processing method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the text processing method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the text processing method in any other appropriate manner (e.g., by means of firmware).
[0081] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0082] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0083] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may 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.
[0084] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0085] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0086] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0087] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0088] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A text processing method, characterized in that: include: Acquire original text data, and determine a plurality of target keywords corresponding to the original text data; For each of the target keywords, display the target keyword in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword; In response to a data storage instruction for the original text data, determining a target storage location corresponding to the original text data according to the data storage instruction; The target storage data corresponding to the original text data is determined according to the target storage location, and the target storage data is stored in the target storage location.
2. The method according to claim 1, characterized in that: The step of displaying the target keyword in the original text data in a target display manner according to the keywords stored in the keyword database and the target keyword includes: In the case where the target keyword is included in the keywords in the keyword database, the target keyword is displayed in the original text data in a first display manner, wherein the first display manner includes a hyperlink form.
3. The method according to claim 2, characterized in that The first display method also includes keyword display color; Displaying the target keyword in the original text data in a first display manner includes: Determine the importance level of the target keyword according to the storage position of the keyword identical to the target keyword in the keyword database, and determine the keyword display color of the target keyword according to the importance level; The target keyword is converted into a hyperlink form, and the target keyword in the hyperlink form is displayed in the original text data in the keyword display color.
4. The method according to claim 1, characterized in that The step of displaying the target keyword in the original text data in the target display manner according to the keywords stored in the keyword database and the target keyword includes: In a case where the target keyword is not included in the keywords in the keyword database, the target keyword is displayed in the original text data in a second presentation manner.
5. The method according to claim 1, characterized in that The target storage location includes a target database; The step of responding to the data storage instruction for the original text data and determining the target storage location corresponding to the original text data according to the data storage instruction comprises: Database identifiers corresponding to a plurality of preset databases are displayed, and in response to an identifier triggering operation for the database identifiers, a target database corresponding to the original text data is determined according to the identifier triggering operation.
6. The method according to claim 1, characterized in that The target database includes a text database, and the target storage data includes first target storage data; and determining the target storage data corresponding to the original text data according to the target storage location includes: The target text information corresponding to the original text data is determined according to the original text data and the target display mode of each target keyword, and the first target storage data is determined according to the target text information.
7. The method according to claim 1, characterized in that The target storage location includes a relational database, and the target storage data includes second target storage data; determining the target storage data corresponding to the original text data according to the target storage location, and storing the target storage data in the target storage location, comprises: Acquire context information corresponding to each of the target keywords, and determine association information of each of the target keywords according to the context information, wherein the association information is used to characterize the interpretation of the target keyword in the original text data; The target keyword in the original text data and the associated information of each target keyword are determined as second target storage data, and the second target storage data is stored in the relational database.
8. An electronic device, characterized in that: The electronic device comprises: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the text processing method according to any one of claims 1 to 7.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the text processing method described in any one of claims 1 to 7 when executed.
10. A computer program product comprising a computer program / instructions, wherein: When the computer program / instructions are executed by a processor, the text processing method according to any one of claims 1 to 7 is implemented.