Text data processing method and device, electronic device and readable storage medium
Processing text data through multi-text markup language tags and preset rules solves the problem of difficulty in synchronous update of text file reference content, and improves processing efficiency and accuracy.
Patent Information
- Application Number
- CN202211133993.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-16
- Publication Date
- 2025-09-02
- Estimated Expiration
- 2042-09-16
AI Technical Summary
The prior art cannot realize synchronous update of text file reference content, resulting in the inability to guarantee processing efficiency and accuracy.
Using multi-text markup language labels and preset rules, candidate text data are determined and processed through text block labels, and text data to be referenced is generated to realize synchronous update of text data.
It improves the organization efficiency and accuracy of text files, automatically realizes the processing of text data, and overcomes the problem of difficulty in synchronous updates.
Smart Images

Figure CN115438632B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the fields of computer technology and financial technology, and more specifically, to a text data processing method and device, an electronic device, a computer-readable storage medium, and a computer program product. Background Art
[0002] With the development of computer technology, computer files are generated during computer use. Computer files can include text files and binary files. Text files can refer to computer files consisting of several lines of characters and are usually stored in computer file systems.
[0003] In the process of realizing the concept of the present disclosure, the inventors discovered that there are at least the following problems in the related art: since it is impossible to synchronously update the referenced content of the text file, the efficiency and accuracy of processing the text file cannot be guaranteed. Summary of the Invention
[0004] In view of this, the present disclosure provides a text data processing method and apparatus, an electronic device, a computer-readable storage medium, and a computer program product.
[0005] According to one aspect of the present disclosure, a text data processing method is provided, comprising:
[0006] In response to receiving a text data processing request, determining multiple text markup language tags based on the text data to be processed in the text data processing request, wherein the multiple text markup language tags include a text block group tag, the text block group tag includes at least one text block tag, each of the at least one text block tag includes a text data tag to be referenced and a rule tag, and the rule tag corresponds to a preset rule;
[0007] Determining candidate text data corresponding to each of the text block labels according to the at least one text block label;
[0008] Processing the candidate text data according to the preset rules corresponding to each of the text block labels to obtain the text data to be cited; and
[0009] The processed text data is determined according to the text data to be processed and the text data to be cited corresponding to each of the text block tags.
[0010] According to an embodiment of the present disclosure, each of the text block tags further includes a permission change tag and a position tag, the permission change tag corresponds to the permission change content, and the position tag corresponds to the position information of the permission change content.
[0011] According to an embodiment of the present disclosure, the above method further includes:
[0012] In response to detecting that a change has occurred in the permitted change content, determining the changed target change content and target position information corresponding to the target change content; and
[0013] The text data to be referenced is replaced according to the target position information and the target change content to obtain updated text data.
[0014] According to an embodiment of the present disclosure, the above-mentioned text data to be referenced is replaced according to the above-mentioned target location information and the above-mentioned target change content to obtain updated text data, which includes:
[0015] According to the target change content, determine the target text block label corresponding to the target change content;
[0016] According to the target text block label, determining the target preset rule corresponding to the target text block label;
[0017] Filtering the target change content according to the target preset rules to obtain processed target change content; and
[0018] The to-be-referenced text data is replaced according to the processed target change content and the target position information to obtain the updated text data.
[0019] According to an embodiment of the present disclosure, the to-be-referenced text data tag includes at least one of a preceding text data tag and a following text data tag, and the candidate text data includes at least one of a candidate preceding text data and a candidate following text data;
[0020] The preceding text data label corresponds to the candidate preceding text data, and the following text data label corresponds to the candidate following text data.
[0021] According to an embodiment of the present disclosure, each of the above text block tags further includes address information and encoding information.
[0022] According to an embodiment of the present disclosure, determining the candidate text data corresponding to each of the text block labels according to the at least one text block label includes:
[0023] Determine the text files corresponding to each of the text block labels according to the address information;
[0024] Parsing the text file according to the encoding information to obtain parsed text files corresponding to each of the text block labels;
[0025] Determining the candidate preceding text data according to the preceding text data label and the parsed text file; and
[0026] The candidate post-text data is determined based on the post-text data tag and the parsed text file.
[0027] According to an embodiment of the present disclosure, the preset rule includes at least one of a pre-rule and a post-rule, the pre-rule is used to process the candidate pre-text data, and the post-rule is used to process the candidate post-text data.
[0028] According to an embodiment of the present disclosure, the candidate text data is processed according to the preset rules corresponding to each of the text block labels to obtain the text data to be cited, including:
[0029] According to the above-mentioned pre-placement rules, the candidate pre-placement text data is filtered to obtain the pre-placement text data to be referenced; and
[0030] According to the post-position rule, the candidate post-position text data are filtered to obtain the post-position text data to be referenced.
[0031] According to an embodiment of the present disclosure, the multi-text markup language tag further includes a file tag, the file tag includes a name subtag, a suffix subtag, a permission subtag, and a path subtag, and the method further includes:
[0032] A text file is generated based on the processed text data, the name subtag, the suffix subtag, the permission subtag and the path subtag, wherein the name subtag corresponds to the name of the text file, the suffix subtag corresponds to the suffix name of the text file, the permission subtag corresponds to the access rights of the text file, and the path subtag corresponds to the generation location of the text file.
[0033] According to another aspect of the present disclosure, there is provided a text data processing apparatus, comprising:
[0034] A first determining module is configured to, in response to receiving a text data processing request, determine a multiple text markup language tag based on the text data to be processed in the text data processing request, wherein the text data to be processed is in an extensible markup language format, the multiple text markup language tag includes a text block group tag, the text block group tag includes at least one text block tag, each of the at least one text block tag includes a text data tag to be referenced and a rule tag, and the rule tag corresponds to a preset rule;
[0035] A second determining module is configured to determine candidate text data corresponding to each of the text block labels according to the at least one text block label;
[0036] a processing module, configured to process the candidate text data according to the preset rules corresponding to each of the text block labels to obtain the text data to be referenced; and
[0037] The third determining module is configured to determine the processed text data based on the text data to be processed and the text data to be referenced corresponding to each of the text block labels.
[0038] According to another aspect of the present disclosure, there is provided an electronic device, comprising:
[0039] one or more processors;
[0040] a memory for storing one or more instructions,
[0041] When the one or more instructions are executed by the one or more processors, the one or more processors implement the method described above.
[0042] According to another aspect of the present disclosure, a computer-readable storage medium is provided, on which executable instructions are stored. When the executable instructions are executed by a processor, the processor implements the method described above.
[0043] According to another aspect of the present disclosure, a computer program product is provided. The computer program product includes computer-executable instructions. When the computer-executable instructions are executed, they are used to implement the method described above.
[0044] According to an embodiment of the present disclosure, after receiving a text data processing request, multiple text markup language tags are determined based on the text data to be processed, and then candidate text data corresponding to each text block tag is determined based on at least one text block tag in the multiple text markup language tags. Since the text data is referenced in a tag-based manner, the technical problem of the related art that the reference content of the text file cannot be synchronously updated is at least partially overcome, and the synchronous update of the text data can be achieved. In addition, since the text data to be referenced is obtained by processing the candidate text data according to preset rules corresponding to each text block tag, and the processed text data is determined based on the text data to be processed and the text data to be referenced corresponding to each text block tag, the text data can be automatically processed, at least partially overcoming the technical problem of the related art that the efficiency and accuracy of text file processing cannot be guaranteed, and the organization efficiency and accuracy of text files are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:
[0046] Figure 1 The system architecture to which the text data processing method according to an embodiment of the present disclosure can be applied is schematically shown;
[0047] Figure 2 The flowchart of the text data processing method according to the embodiment of the present disclosure is schematically shown;
[0048] Figure 3 Schematically illustrates an example schematic diagram of a multi-text markup language tag according to an embodiment of the present disclosure;
[0049] Figure 4 The following schematically illustrates an example of a text data processing method according to an embodiment of the present disclosure;
[0050] Figure 5 An example diagram schematically illustrates a method for processing text data according to another embodiment of the present disclosure;
[0051] Figure 6 A block diagram schematically shows a text data processing apparatus according to an embodiment of the present disclosure; and
[0052] Figure 7 The block diagram schematically shows an electronic device suitable for implementing the text data processing method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0053] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.
[0054] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.
[0055] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.
[0056] When expressions such as “at least one of A, B, and C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, and C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.). When expressions such as “at least one of A, B, or C, etc.” are used, they should generally be interpreted in accordance with the meaning commonly understood by those skilled in the art (e.g., “a system having at least one of A, B, or C” should include but is not limited to systems having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, and C, etc.).
[0057] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.
[0058] In the technical solution disclosed herein, the user's authorization or consent is obtained before obtaining or collecting the user's personal information.
[0059] Text files may include ASCII (American Standard Code for Information Interchange), MIME (Multipurpose Internet Mail Extensions), TXT (Text File), etc.
[0060] Text files can be edited by entering character information or copying and pasting content from other text files. For example, when editing text file A, if you need to reference part of text file B, you can paste the content of text file B into text file A. However, if the referenced part of text file B is subsequently updated, text file A will need to be manually edited or pasted to synchronize the update.
[0061] Furthermore, since text file C doesn't represent the content that can be modified, users cannot tell which content in text file C is modifiable and which is not. For non-program files, it's impossible to distinguish between normal text content and declared content. For program files, comments are required to describe the content, and only when the program is running can the user determine whether the changes meet the requirements.
[0062] In summary, in the prior art, since a text file needs to reference the contents of another text file by copying and pasting, it is impossible to achieve synchronous update of the contents of the referenced text file. In addition, since the existing text file reference method cannot indicate the scope of the text that can be modified, it is relatively labor-intensive and time-consuming.
[0063] In order to at least partially solve the technical problems existing in the related art, the present disclosure provides a text data processing method and device, an electronic device and a readable storage medium, which can be applied to the fields of computer technology and financial technology. The text data processing method includes: in response to receiving a text data processing request, determining a multi-text markup language tag according to the text data to be processed in the text data processing request, wherein the multi-text markup language tag includes a text block group tag, the text block group tag includes at least one text block tag, each text block tag in the at least one text block tag includes a text data tag to be referenced and a rule tag, and the rule tag corresponds to a preset rule; according to the at least one text block tag, determining the candidate text data corresponding to each text block tag; according to the preset rules corresponding to each text block tag, processing the candidate text data to obtain the text data to be referenced; and determining the processed text data according to the text data to be processed and the text data to be referenced corresponding to each text block tag.
[0064] It should be noted that the text data processing methods and apparatuses provided in the embodiments of the present disclosure can be used in the fields of computer technology and financial technology, for example, in the processing of text data. The text data processing methods and apparatuses provided in the embodiments of the present disclosure can also be used in any field other than computer technology and financial technology, for example, in the field of operations and maintenance. The application fields of the text data processing methods and apparatuses provided in the embodiments of the present disclosure are not limited.
[0065] Figure 1 The system architecture to which the text data processing method according to the embodiment of the present disclosure can be applied is schematically shown. It should be noted that, Figure 1 The examples shown are merely examples of system architectures to which the embodiments of the present disclosure may be applied, to help those skilled in the art understand the technical content of the present disclosure, but do not mean that the embodiments of the present disclosure may not be used in other devices, systems, environments or scenarios.
[0066] like Figure 1 As shown, the system architecture 100 according to this embodiment may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired and / or wireless communication links, etc.
[0067] Users can use terminal devices 101, 102, and 103 to interact with server 105 via network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, and 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, and / or social platform software (for example only).
[0068] The terminal devices 101 , 102 , and 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0069] The server 105 may be a server that provides various services, such as a background management server (for example only) that supports websites browsed by users using the terminal devices 101, 102, and 103. The background management server may analyze and process received data such as user requests, and feed back processing results (such as web pages, information, or data obtained or generated according to user requests) to the terminal device.
[0070] It should be noted that the text data processing method provided in the embodiments of the present disclosure can generally be executed by the server 105. Accordingly, the text data processing apparatus provided in the embodiments of the present disclosure can generally be located in the server 105. The text data processing method provided in the embodiments of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and that is capable of communicating with the terminal devices 101, 102, 103 and / or the server 105. Accordingly, the text data processing apparatus provided in the embodiments of the present disclosure can also be located in a server or server cluster that is different from the server 105 and that is capable of communicating with the terminal devices 101, 102, 103 and / or the server 105.
[0071] Alternatively, the text data processing method provided in the embodiment of the present disclosure may also be generally executed by the terminal device 101, 102, or 103. Accordingly, the text data processing apparatus provided in the embodiment of the present disclosure may also be provided in the terminal device 101, 102, or 103.
[0072] For example, the text file may be originally stored in any one of the terminal devices 101, 102, or 103 (for example, the terminal device 101, but not limited thereto), or stored on an external storage device and imported into the terminal device 101. The terminal device 101 may then locally execute the text data processing method provided by the embodiment of the present disclosure, or send the text file to another terminal device, server, or server cluster, and the other terminal device, server, or server cluster that receives the text file may execute the text data processing method provided by the embodiment of the present disclosure.
[0073] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.
[0074] It should be noted that the sequence numbers of the operations in the following method are only used to indicate the operation for the purpose of description, and should not be regarded as indicating the order in which the operations should be performed. Unless explicitly stated, the method does not need to be performed in the order shown.
[0075] Figure 2 The flowchart of the text data processing method according to the embodiment of the present disclosure is schematically shown.
[0076] like Figure 2 As shown, the text data processing method 200 may include operations S210 to S240.
[0077] In operation S210, in response to receiving a text data processing request, a multi-text markup language tag is determined based on the text data to be processed in the text data processing request, wherein the multi-text markup language tag includes a text block group tag, the text block group tag includes at least one text block tag, each text block tag in the at least one text block tag includes a text data tag to be referenced and a rule tag, and the rule tag corresponds to a preset rule.
[0078] In operation S220 , candidate text data corresponding to each text block tag is determined based on at least one text block tag.
[0079] In operation S230 , the candidate text data is processed according to preset rules corresponding to each text block label to obtain text data to be referenced.
[0080] In operation S240 , processed text data is determined based on the text data to be processed and the text data to be cited corresponding to each text block tag.
[0081] According to an embodiment of the present disclosure, the code for generating a text data processing request can be pre-written into a script. When text data processing is required, the user can run the script through a terminal device to generate a text data processing request message, and send the text data processing request message to a server, so that the server can process the text data processing request according to the text data processing request message to obtain processed text data.
[0082] According to an embodiment of the present disclosure, the text data to be processed may be in an Extensible Markup Language (XML) format. Multiple text markup language tags, text block group tags, text block tags, to-be-referenced text data tags, and rule tags may be defined based on the XML.
[0083] According to an embodiment of the present disclosure, after receiving a text data processing request, a Multiple Text Markup Language (MTML) tag can be determined based on the text data to be processed in the text data processing request. The Multiple Text Markup Language (MTML) tag can be characterized as <mtml>Label. <mtml>The tag may include at least one of a text block group tag, a file tag, a property tag, and a version tag.
[0084] According to an embodiment of the present disclosure, a text block group tag may include at least one text block tag, wherein each of the at least one text block tag may include a to-be-referenced text data tag, a rule tag, a permission change tag, and a position tag.
[0085] According to an embodiment of the present disclosure, XML Schema can describe the structure of an extensible markup language document and define the elements, attributes, sub-elements, sub-element order, number of sub-elements, data types, default values, fixed values, and whether text can be contained in the document.
[0086] According to an embodiment of the present disclosure, after determining multiple text markup language tags, candidate text data corresponding to each text block tag can be determined based on at least one text block tag in the multiple text markup language tags. The candidate text data can be used to represent text data in a text file corresponding to each text block tag. The candidate text data can include at least one of candidate preceding text data and candidate following text data.
[0087] According to an embodiment of the present disclosure, after determining the candidate text data, the candidate text data can be processed according to preset rules corresponding to each text block tag to obtain the text data to be cited. The text data to be cited can be used to represent the candidate text data after filtering and processing according to the preset rules. The preset rules include at least one of a pre-rule and a post-rule. The specific content of the preset rules can be set by those skilled in the art according to actual needs.
[0088] According to an embodiment of the present disclosure, after obtaining the text data to be referenced, the processed text data can be determined based on the text data to be processed and the text data to be referenced corresponding to each text block tag. The processed text data can be used to represent the text data of the text file to be generated.
[0089] According to an embodiment of the present disclosure, after receiving a text data processing request, multiple text markup language tags are determined based on the text data to be processed, and then candidate text data corresponding to each text block tag is determined based on at least one text block tag in the multiple text markup language tags. Since the text data is referenced in a tag-based manner, the technical problem of the related art that the reference content of the text file cannot be synchronously updated is at least partially overcome, and the synchronous update of the text data can be achieved. In addition, since the text data to be referenced is obtained by processing the candidate text data according to preset rules corresponding to each text block tag, and the processed text data is determined based on the text data to be processed and the text data to be referenced corresponding to each text block tag, the text data can be automatically processed, at least partially overcoming the technical problem of the related art that the efficiency and accuracy of text file processing cannot be guaranteed, and the organization efficiency and accuracy of text files are improved.
[0090] Reference below Figures 3 to 5 , the text data processing method 200 according to an embodiment of the present invention is further described.
[0091] According to an embodiment of the present disclosure, the multi-text markup language tag further includes a file tag, and the file tag includes a name subtag, a suffix subtag, a permission subtag, and a path subtag.
[0092] According to an embodiment of the present disclosure, the text data processing method 200 may further include the following operations.
[0093] A text file is generated based on the processed text data, the name subtag, the suffix subtag, the permission subtag and the path subtag, wherein the name subtag corresponds to the name of the text file, the suffix subtag corresponds to the suffix name of the text file, the permission subtag corresponds to the access rights of the text file, and the path subtag corresponds to the generation location of the text file.
[0094] According to an embodiment of the present disclosure, a text block group tag can be characterized as <tbs>Tags are used to define a text block group, including at least one text block tag. File tags can be characterized as <file>Tags are used to define the attribute information of the text file to be generated. Attribute tags can be represented as <properties>Tags are used to define user-defined attribute values, which can be globally referenced in subsequent writing. Version tags can be represented as <version>Tag used to define the version of a text file.
[0095] According to an embodiment of the present disclosure, <mtml>The tag may include attributes Xmlns, xmlns:xsi and xsi:schemaLocation, which may be used to define parsing and validation of an Extensible Markup Language document.
[0096] According to an embodiment of the present disclosure, the Xmlns (XML NameSpace) attribute can be used to distinguish various tags. The xmlns:xsi attribute can be understood as a custom syntax or format checker for an Extensible Markup Language document. The xsi:schemaLocation attribute can be used to define a key-value pair. For example, you can define xsi:schemaLocation="key""value", where key is used to represent the value assigned when defining a namespace, and value is used to represent the address information of the text file that needs to be referenced.
[0097] According to an embodiment of the present disclosure, a file tag may include a name subtag, a suffix subtag, a permission subtag, and a path subtag. The name subtag may be characterized as <name>Tag, used to define the name of the text file to be generated. The suffix subtag can be represented as <extension>Tag, used to define the suffix of the text file to be generated, such as .txt, .java, .c, .py, etc. The permission subtag can be represented as <permission>Tags are used to define the permissions of the text files to be generated. The path subtag can be represented as <path>Tag, used to define the location where the text file to be generated is generated.
[0098] Figure 3 An example schematic diagram of a multi-text markup language tag according to an embodiment of the present disclosure is schematically shown.
[0099] like Figure 3 As shown, the multi-text markup language tag 300 may include an attribute tag 301, a file tag 302, and a text block group tag 303. The file tag 302 may include a name subtag 302_1, a suffix subtag 302_2, a permission subtag 302_3, and a path subtag 302_4.
[0100] The text block group tag 303 may include at least one text block tag, for example, text block tag 303_1, text block tag 303_2, ..., text block tag 303_n, ..., text block tag 303_N, where N may be an integer greater than 1, n∈{1, 2, ..., (N-1), N}. Each of the at least one text block tag may include a preceding text data tag, a following text data tag, a position tag, and a permission change tag.
[0101] For example, a text block tag 303_1 may include a pre-text data tag 303_11, a post-text data tag 303_12, a position tag 303_13, and a permission change tag 303_14. The pre-text data tag 303_11 may include a rule tag 303_111 and a content tag 303_112. The rule tag 303_111 may correspond to a pre-rule, and the content tag 303_112 may correspond to candidate pre-text data. The post-text data tag 303_12 may include a rule tag 303_121 and a content tag 303_122. The rule tag 303_121 may correspond to a post-rule, and the content tag 303_122 may correspond to candidate post-text data.
[0102] Based on the pre-text data tag 303_11, candidate pre-text data corresponding to the content tag 303_112 can be determined, and the candidate pre-text data can be processed according to the pre-rule corresponding to the rule tag 303_111 to obtain the pre-text data to be cited. Based on the post-text data tag 303_12, candidate post-text data corresponding to the content tag 303_122 can be determined, and the candidate post-text data can be processed according to the post-rule corresponding to the rule tag 303_121 to obtain the post-text data to be cited.
[0103] After obtaining the preceding text data to be referenced and the following text data to be referenced, the processed text data may be determined based on the text data to be processed and the preceding text data to be referenced and the following text data to be referenced corresponding to the text block tag 303_11.
[0104] According to an embodiment of the present disclosure, the to-be-referenced text data tag includes at least one of a preceding text data tag and a following text data tag, and the candidate text data includes at least one of candidate preceding text data and candidate following text data. The preceding text data tag corresponds to the candidate preceding text data, and the following text data tag corresponds to the candidate following text data.
[0105] According to an embodiment of the present disclosure, each text block tag further includes address information and encoding information.
[0106] According to an embodiment of the present disclosure, operation S220 may include the following operations.
[0107] Based on the address information, the text file corresponding to each text block tag is determined. The text file is parsed based on the encoding information to obtain a parsed text file corresponding to each text block tag. Based on the pre-text data tag and the parsed text file, candidate pre-text data is determined. Based on the post-text data tag and the parsed text file, candidate post-text data is determined.
[0108] According to an embodiment of the present disclosure, the preset rule includes at least one of a pre-rule and a post-rule, the pre-rule is used to process candidate pre-text data, and the post-rule is used to process candidate post-text data.
[0109] According to an embodiment of the present disclosure, operation S230 may include the following operations.
[0110] According to the pre-placement rule, the candidate pre-placement text data is filtered to obtain the pre-placement text data to be referenced. According to the post-placement rule, the candidate post-placement text data is filtered to obtain the post-placement text data to be referenced.
[0111] According to an embodiment of the present disclosure, each text block tag may further include address information and encoding information. The address information may be used to represent the storage address of the text file to be parsed. The encoding information may be used to represent the encoding method of the text file to be parsed.
[0112] According to an embodiment of the present disclosure, the to-be-referenced text data tag includes at least one of a preceding text data tag and a following text data tag. Each text block tag may include a preceding text data tag, a following text data tag, a permission change tag, and a position tag.
[0113] According to an embodiment of the present disclosure, the pre-text data tag may include a rule tag and a content tag. The rule tag may be characterized as <rep>Tags can be defined with prefix rules. Content tags can include candidate prefix text data. Prefix text data tags can be represented as tags, and candidate prefix text data corresponding to the tags can be inserted before the referenced text.
[0114] According to an embodiment of the present disclosure, the post-text data tag may include a rule tag and a content tag. The rule tag may be characterized as <rep>Tags can be defined with post-placement rules, and content tags can include candidate post-placement text data. Post-placement text data tags can be represented as <tail>Tags, with <tail>The candidate post-text data corresponding to the tag can be inserted after the quoted text.
[0115] According to an embodiment of the present disclosure, a rule tag may correspond to a preset rule. The preset rule includes at least one of a pre-rule and a post-rule. The preset rule may be a regular expression, and regular matching may be performed on candidate text data based on the preset rule to obtain text data to be referenced that conforms to the regular expression.
[0116] According to an embodiment of the present disclosure, the text files corresponding to each text block label can be determined based on the address information, and then the text files can be parsed based on the encoding information to obtain the parsed text files corresponding to each text block label. The candidate text data can then be determined based on the text data label to be referenced, and the candidate text data can be processed according to preset rules to filter out content that does not comply with the rules, so as to complete the filtering of the candidate text data and obtain the text data to be referenced.
[0117] According to an embodiment of the present disclosure, candidate text data is determined based on the to-be-cited text data label and the parsed text file, and the candidate text data is processed according to preset rules to obtain the to-be-cited text data. Because the leading text data label, the candidate leading text data, and the leading rules correspond, and the trailing text data label, the candidate trailing text data, and the trailing rules correspond, the accuracy of text data processing can be improved.
[0118] Figure 4 An example diagram of a text data processing method according to an embodiment of the present disclosure is schematically shown.
[0119] like Figure 4 As shown, in response to receiving a text data processing request 401, multiple text markup language tags can be determined based on the to-be-processed text data 401_1 in the text data processing request 401. The multiple text markup language tags can include text block group tags, and the text block group tags can include at least one text block tag 402. The text block tag 402 can include address information 402_1, encoding information 402_2, a pre-text data tag 402_3, a post-text data tag 402_4, a pre-rule 402_5, and a post-rule 402_6.
[0120] A text file 403 corresponding to the text block tag 402 can be determined based on the address information 402_1. The text file 403 can be parsed based on the encoding information 402_2 to obtain a parsed text file 404 corresponding to the text block tag. Prefix text data candidate 405 can be determined based on the prefix text data tag 402_3 and the parsed text file 404. Postfix text data candidate 406 can be determined based on the postfix text data tag 402_4 and the parsed text file 404.
[0121] According to the pre-rule 402_5, the candidate pre-text data 405 can be filtered to obtain the pre-text data to be referenced 407. According to the post-rule 402_6, the candidate post-text data 406 can be filtered to obtain the post-text data to be referenced 408.
[0122] After obtaining the to-be-referenced preceding text data 407 and the to-be-referenced following text data 408 , the processed text data 409 can be determined based on the to-be-processed text data 401_1 and the to-be-referenced preceding text data 407 and the to-be-referenced following text data 408 corresponding to the text block tag 402 .
[0123] According to an embodiment of the present disclosure, each text block tag further includes a permission change tag and a position tag, the permission change tag corresponds to the permission change content, and the position tag corresponds to the position information of the permission change content.
[0124] According to an embodiment of the present disclosure, the text data processing method 200 may further include the following operations.
[0125] In response to detecting that the permitted change content has changed, the target change content and target location information corresponding to the target change content are determined. The referenced text data is replaced according to the target location information and the target change content to obtain updated text data.
[0126] According to an embodiment of the present disclosure, replacing the referenced text data according to the target location information and the target changed content to obtain the updated text data may include the following operations.
[0127] Determine a target text block tag corresponding to the target changed content based on the target changed content. Determine a target preset rule corresponding to the target text block tag based on the target text block tag. Filter the target changed content based on the target preset rule to obtain processed target changed content. Replace the to-be-referenced text data based on the processed target changed content and the target location information to obtain the updated text data.
[0128] According to an embodiment of the present disclosure, a permission change tag can be defined based on a key-value pair. The value of the key can be used to define the keyword of the permission change content. When a text block tag includes the keyword in the value, the referenced text data corresponding to the text block tag can be replaced. The permission change tag can be provided with an md5 attribute, which can be used to verify whether the permission change content has changed. The location tag can be characterized as <free>Tags that can be used to define the location of permitted changes.
[0129] According to an embodiment of the present disclosure, the target change content can be used to represent the changed permission change content, and the target text block tag corresponding to the target change content can be determined based on the target change content. The target location information can be used to represent the location information corresponding to the changed permission change content, and the target preset rule corresponding to the target text block tag can be determined based on the target text block tag.
[0130] According to an embodiment of the present disclosure, the target preset rule includes at least one of a target pre-rule and a target post-rule. The target preset rule may be a regular expression, and regular matching may be performed on the target change content based on the target preset rule to obtain processed target change content that conforms to the regular expression. The processed target change content may be used to replace the text data corresponding to the target location information in the to-be-referenced text data to obtain updated text data.
[0131] According to the embodiments of the present disclosure, after detecting a change in the permitted content, the referenced text data is replaced based on the target location information and the target content, resulting in updated text data. Because the scope of the permitted changes can be represented by defined permitted change tags and location tags, this avoids the technical issues of related technologies that are unable to represent the scope of the changes, resulting in significant labor and time costs, thereby improving the efficiency of text data processing.
[0132] Figure 5 An example diagram of a text data processing method according to another embodiment of the present disclosure is schematically shown.
[0133] like Figure 5 As shown, in response to receiving a text data processing request 501, multiple text markup language tags can be determined based on the text data to be processed 501_1 in the text data processing request 501. The multiple text markup language tags can include text block group tags, and the text block group tags can include text block tags 502. Based on the text block tags 502, candidate text data 503 corresponding to the text block tags can be determined. The candidate text data 503 can be processed according to preset rules corresponding to the text block tags to obtain text data to be referenced 504.
[0134] The text block tag 502 may include a permission change tag 502_1 and a position tag 502_2. In response to detecting that the permission change content has changed, the changed target change content 505 is determined. Target position information 506 corresponding to the target change content may be determined based on the target change content 505 and the position tag 502_2.
[0135] After determining the target changed content 505 and the target location information 506, a target text block tag 507 corresponding to the target changed content 505 can be determined based on the target changed content 505. A target preset rule 508 corresponding to the target text block tag 507 can be determined based on the target text block tag 507. The target changed content 505 can be filtered based on the target preset rule 508 to obtain processed target changed content 509. The processed target changed content 509 can be used to replace the text data corresponding to the target location information 506 in the text data to be referenced 504 to obtain updated text data 510.
[0136] The above are merely exemplary embodiments, but are not limited thereto. Other text data processing methods known in the art may also be included as long as they can process text data.
[0137] Figure 6 The block diagram schematically shows a text data processing apparatus according to an embodiment of the present disclosure.
[0138] like Figure 6 As shown, the text data processing apparatus 600 may include a first determining module 601 , a second determining module 602 , a processing module 603 and a third determining module 604 .
[0139] The first determination module 601 is used to determine, in response to receiving a text data processing request, a multi-text markup language tag based on the text data to be processed in the text data processing request, wherein the text data to be processed is in an extensible markup language format, the multi-text markup language tag includes a text block group tag, the text block group tag includes at least one text block tag, each text block tag in the at least one text block tag includes a text data tag to be referenced and a rule tag, and the rule tag corresponds to a preset rule.
[0140] The second determining module 602 is configured to determine candidate text data corresponding to each text block tag according to at least one text block tag.
[0141] The processing module 603 is used to process the candidate text data according to the preset rules corresponding to each text block label to obtain the text data to be referenced.
[0142] The third determining module 604 is configured to determine the processed text data based on the text data to be processed and the text data to be referenced corresponding to each text block tag.
[0143] According to an embodiment of the present disclosure, each text block tag further includes a permission change tag and a position tag, the permission change tag corresponds to the permission change content, and the position tag corresponds to the position information of the permission change content.
[0144] According to an embodiment of the present disclosure, the text data processing apparatus 600 may further include a fourth determining module and a replacing module.
[0145] The fourth determining module is configured to determine the target changed content and target position information corresponding to the target changed content in response to detecting that the permitted change content has changed.
[0146] The replacement module is used to replace the referenced text data according to the target location information and the target change content to obtain the updated text data.
[0147] According to an embodiment of the present disclosure, the replacement module may include a first determining unit, a second determining unit, a first processing unit, and a replacement unit.
[0148] The first determining unit is configured to determine a target text block label corresponding to the target changed content according to the target changed content.
[0149] The second determining unit is configured to determine a target preset rule corresponding to the target text block label according to the target text block label.
[0150] The first processing unit is configured to filter the target change content according to a preset target rule to obtain the processed target change content.
[0151] The replacement unit is used to replace the referenced text data according to the processed target change content and target position information to obtain updated text data.
[0152] According to an embodiment of the present disclosure, the to-be-cited text data tag includes at least one of a preceding text data tag and a following text data tag, and the candidate text data includes at least one of candidate preceding text data and candidate following text data.
[0153] According to an embodiment of the present disclosure, the preceding text data label corresponds to the candidate preceding text data, and the following text data label corresponds to the candidate following text data.
[0154] According to an embodiment of the present disclosure, each text block tag further includes address information and encoding information.
[0155] According to an embodiment of the present disclosure, the second determining module 602 may include a third determining unit, a parsing unit, a fourth determining unit, and a fifth determining unit.
[0156] The third determining unit is configured to determine the text files corresponding to each text block tag according to the address information.
[0157] The parsing unit is used to parse the text file according to the encoding information to obtain the parsed text file corresponding to each text block label.
[0158] The fourth determining unit is configured to determine candidate preceding text data according to the preceding text data label and the parsed text file.
[0159] The fifth determining unit is configured to determine candidate post-text data according to the post-text data label and the parsed text file.
[0160] According to an embodiment of the present disclosure, the preset rule includes at least one of a pre-rule and a post-rule, the pre-rule is used to process candidate pre-text data, and the post-rule is used to process candidate post-text data.
[0161] According to an embodiment of the present disclosure, the processing module 603 may include a second processing unit and a third processing unit.
[0162] The second processing unit is used to filter the candidate preceding text data according to the preceding rule to obtain the preceding text data to be referenced.
[0163] The third processing unit is configured to filter the candidate post-text data according to the post-position rule to obtain the post-text data to be referenced.
[0164] According to an embodiment of the present disclosure, the multi-text markup language tag further includes a file tag, and the file tag includes a name subtag, a suffix subtag, a permission subtag, and a path subtag.
[0165] According to an embodiment of the present disclosure, the text data processing apparatus 600 may further include a generating module.
[0166] The generation module is used to generate a text file based on the processed text data, the name subtag, the suffix subtag, the permission subtag and the path subtag, wherein the name subtag corresponds to the name of the text file, the suffix subtag corresponds to the suffix name of the text file, the permission subtag corresponds to the access rights of the text file, and the path subtag corresponds to the generation location of the text file.
[0167] According to the modules, submodules, units, and subunits of the embodiments of the present invention, any multiple or at least part of the functions of any multiple thereof can be implemented in one module. According to the modules, submodules, units, and subunits of the embodiments of the present invention, any one or more thereof can be split into multiple modules for implementation. According to the modules, submodules, units, and subunits of the embodiments of the present invention, any one or more thereof can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware of any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware or in an appropriate combination of any of them. Alternatively, according to the modules, submodules, units, and subunits of the embodiments of the present invention, one or more thereof can be at least partially implemented as a computer program module, which can perform the corresponding function when the computer program module is run.
[0168] For example, any multiple of the first determining module 601, the second determining module 602, the processing module 603, and the third determining module 604 can be combined in one module / unit / sub-unit to be implemented, or any one of the modules / units / sub-units can be split into multiple modules / units / sub-units. Alternatively, at least part of the functions of one or more modules / units / sub-units in these modules / units / sub-units can be combined with at least part of the functions of other modules / units / sub-units and implemented in one module / unit / sub-unit. According to an embodiment of the present disclosure, at least one of the first determining module 601, the second determining module 602, the processing module 603, and the third determining module 604 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation modes of software, hardware, and firmware or in an appropriate combination of any of them. Alternatively, at least one of the first determination module 601 , the second determination module 602 , the processing module 603 and the third determination module 604 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.
[0169] It should be noted that the text data processing device part in the embodiment of the present disclosure corresponds to the text data processing method part in the embodiment of the present disclosure. The description of the text data processing device part specifically refers to the text data processing method part and will not be repeated here.
[0170] Figure 7 The block diagram schematically shows an electronic device suitable for implementing the text data processing method according to an embodiment of the present disclosure. Figure 7 The electronic device shown is only an example and should not limit the functions and scope of use of the embodiments of the present disclosure.
[0171] like Figure 7 As shown, the computer electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 709 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (such as a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (such as an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for executing different actions of the method flow according to an embodiment of the present disclosure.
[0172] Various programs and data required for the operation of the electronic device 700 are stored in the RAM 703. The processor 701, ROM 702, and RAM 703 are connected to each other via a bus 704. The processor 701 executes the various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 702 and / or RAM 703. It should be noted that the programs may also be stored in one or more memories other than the ROM 702 and RAM 703. The processor 701 may also execute the various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in the one or more memories.
[0173] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and a speaker; a storage portion 708 including a hard disk; and a communication portion 709 including a network interface card such as a LAN card or a modem. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed in the drive 710 as needed, so that a computer program read therefrom can be installed into the storage portion 708 as needed.
[0174] According to an embodiment of the present disclosure, the method flow according to an embodiment of the present disclosure can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above-mentioned functions defined in the system of the embodiment of the present disclosure are executed. According to an embodiment of the present disclosure, the system, equipment, device, module, unit, etc. described above can be implemented by a computer program module.
[0175] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.
[0176] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium. For example, it may include, but is not limited to: 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), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
[0177] For example, according to an embodiment of the present disclosure, the computer-readable storage medium may include the ROM 702 and / or the RAM 703 described above and / or one or more memories other than the ROM 702 and the RAM 703 .
[0178] An embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method provided by the embodiment of the present disclosure. When the computer program product runs on an electronic device, the program code is used to enable the electronic device to implement the text data processing method provided by the embodiment of the present disclosure.
[0179] When the computer program is executed by the processor 701, the above functions defined in the system / device of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.
[0180] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 709, and / or installed from a removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.
[0181] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages include, but are not limited to, languages such as Java, C++, Python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).
[0182] The flowcharts and block diagrams in the accompanying drawings illustrate the possible architectures, functions, and operations of the systems, methods, and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the boxes may occur in an order different from that marked in the accompanying drawings. For example, two boxes shown in succession may actually be executed substantially in parallel, or they may sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, as well as the combination of boxes in the block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or may be implemented using a combination of dedicated hardware and computer instructions. It will be understood by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in various ways, even if such combinations or couplings are not explicitly described in the present disclosure. In particular, without departing from the spirit and teachings of the present disclosure, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or coupled in various ways, and all such combinations and / or couplings fall within the scope of the present disclosure.
[0183] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.< / free> < / tail> < / tail> < / rep> < / rep> < / path> < / permission> < / extension> < / name> < / mtml> < / version> < / properties> < / file> < / tbs> < / mtml> < / mtml>
Claims
1. A text data processing method, comprising: In response to receiving a text data processing request, determining multiple text markup language tags based on the text data to be processed in the text data processing request, wherein the multiple text markup language tags include a text block group tag, the text block group tag includes at least one text block tag, each of the at least one text block tag includes a text data tag to be referenced and a rule tag, and the rule tag corresponds to a preset rule; Determining candidate text data corresponding to each of the text block labels according to the at least one text block label; Processing the candidate text data according to the preset rules corresponding to each text block label to obtain the text data to be cited; and Processed text data is determined according to the text data to be processed and the text data to be cited corresponding to each text block tag.
2. The method according to claim 1, wherein Each text block tag further includes a permission change tag and a position tag. The permission change tag corresponds to the permission change content, and the position tag corresponds to the position information of the permission change content.
3. The method according to claim 1, further comprising: In response to detecting that the permitted change content has changed, determining the changed target change content and target position information corresponding to the target change content; as well as The text data to be referenced is replaced according to the target position information and the target change content to obtain updated text data.
4. The method according to claim 3, wherein: The replacing the to-be-referenced text data according to the target location information and the target change content to obtain updated text data includes: Determining a target text block label corresponding to the target changed content according to the target changed content; According to the target text block label, determining a target preset rule corresponding to the target text block label; Filtering the target change content according to the target preset rule to obtain processed target change content; and The to-be-referenced text data is replaced according to the processed target change content and the target position information to obtain the updated text data.
5. The method according to claim 1, wherein The to-be-cited text data tag includes at least one of a preceding text data tag and a following text data tag, and the candidate text data includes at least one of candidate preceding text data and candidate following text data; The preceding text data label corresponds to the candidate preceding text data, and the following text data label corresponds to the candidate following text data.
6. The method according to claim 5, wherein: Each text block tag also includes address information and encoding information; The determining, based on the at least one text block label, candidate text data corresponding to each text block label comprises: Determining, based on the address information, text files corresponding to each of the text block tags; Parsing the text file according to the encoding information to obtain parsed text files corresponding to each text block label; Determining the candidate preceding text data according to the preceding text data label and the parsed text file; and The candidate post-text data is determined according to the post-text data tag and the parsed text file.
7. The method according to claim 5 or 6, wherein: The preset rule includes at least one of a pre-rule and a post-rule, wherein the pre-rule is used to process the candidate pre-text data, and the post-rule is used to process the candidate post-text data; The processing of the candidate text data according to the preset rules corresponding to each text block label to obtain the text data to be referenced includes: Filtering the candidate preceding text data according to the preceding rule to obtain the preceding text data to be referenced; as well as According to the post-position rule, the candidate post-position text data is filtered to obtain the post-position text data to be referenced.
8. The method according to claim 1, wherein The multi-text markup language tag further includes a file tag, and the file tag includes a name subtag, a suffix subtag, a permission subtag, and a path subtag. The method further includes: A text file is generated based on the processed text data, the name subtag, the suffix subtag, the permission subtag and the path subtag, wherein the name subtag corresponds to the name of the text file, the suffix subtag corresponds to the suffix name of the text file, the permission subtag corresponds to the access rights of the text file, and the path subtag corresponds to the generation location of the text file.
9. A text data processing device comprising: A first determining module is configured to, in response to receiving a text data processing request, determine a multiple text markup language tag based on the text data to be processed in the text data processing request, wherein the text data to be processed is in an extensible markup language format, the multiple text markup language tag includes a text block group tag, the text block group tag includes at least one text block tag, each of the at least one text block tag includes a text data tag to be referenced and a rule tag, and the rule tag corresponds to a preset rule; A second determining module is configured to determine candidate text data corresponding to each text block label according to the at least one text block label; a processing module, configured to process the candidate text data according to the preset rules corresponding to each text block label to obtain the text data to be referenced; and The third determining module is configured to determine the processed text data according to the text data to be processed and the text data to be referenced corresponding to each text block label.
10. An electronic device comprising: one or more processors; a memory for storing one or more instructions, Wherein, when the one or more instructions are executed by the one or more processors, the one or more processors are enabled to implement the method according to any one of claims 1 to 8.
11. A computer-readable storage medium having executable instructions stored thereon, wherein when the executable instructions are executed by a processor, the processor is enabled to implement the method according to any one of claims 1 to 8.
12. A computer program product comprising computer executable instructions, wherein the computer executable instructions are used to implement the method according to any one of claims 1 to 8 when executed.
Citation Information
Patent Citations
Extensive makeup language (XML) template-based message analysis method
CN102096710A
Method and device for extraction of knowledge entries
CN103136258A