Toolbook analysis method, apparatus and device, and medium
By labeling and structuring elements in the reference book, a knowledge graph is established, which solves the problem of expanding the entry content in the reference book and enables multi-dimensional data retrieval and efficient data utilization.
Patent Information
- Application Number
- CN202410483699.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-22
- Publication Date
- 2024-09-03
AI Technical Summary
The existing reference book digital publishing model is difficult to fully expand the attributes of the same entry into multiple books, fields, and elements, and cannot meet the high-efficiency and intelligent learning and scientific research needs of modern society.
By obtaining the target bibliography, element tag annotation and structured file generation are performed, the association between elements is determined, classification display and format unification are performed, and the XML structuring of the entry content and the establishment of the knowledge map are realized.
It realizes multi-dimensional data retrieval and query of entry content, improves the efficiency and accuracy of data mining, and enhances resource utilization and usage value.
Smart Images

Figure CN118586359A
Abstract
Description
[Technical field]
[0001] The present application relates to the field of data processing technology, and in particular to a reference book parsing method, device, equipment and medium. [Background technology]
[0002] In the field of reference book publishing, the same entry has different meanings in different eras, disciplines, and industries. Therefore, in the digital and integrated publishing model of reference books, more and more attention is paid to data aggregation and subject-based value-added services based on entries, and the use and expansion of data are becoming increasingly diverse.
[0003] The common practice is to ensure the completeness of the search process and provide explanations of the same term in different reference books. In essence, this is only data clustering from the perspective of search. Reading is still piecemeal reading, and the content is limited to a certain book or a certain field. The common XMLization is only the annotation of article titles and chapter tables, not the mining and structural analysis of content, and lacks the annotation of the attribute relationship between terms and elements. In the product application field, it is impossible to achieve the comprehensive expansion of the attributes of the same term to multiple books, multiple fields, and multiple elements. The current method of obtaining comprehensive information about terms by relying on multiple openings, multiple readings, and multiple extractions obviously does not meet the needs of modern society for efficient and intelligent learning and scientific research. [Summary of the invention]
[0004] The embodiments of the present application provide a reference book parsing method, device, equipment and medium, which are intended to solve the technical problem that it is impossible to fully expand the attributes of multiple books, multiple fields and multiple elements for the same entry in the related technology.
[0005] In a first aspect, an embodiment of the present application provides a reference book parsing method, comprising:
[0006] Obtaining a target bibliography, parsing the target bibliography and its entry contents to perform element tagging;
[0007] Determining the structured file corresponding to the target bibliography according to the element tag annotation;
[0008] Performing element tag classification and format unification processing on the structured file to obtain a processed structured file;
[0009] Determine the association relationship between the elements, and display the processed structured file in categories according to the association relationship.
[0010] In one embodiment, optionally, the acquiring of the target bibliography and parsing of the target bibliography and its entry contents to perform element tagging include:
[0011] Get the target bibliography;
[0012] Obtaining a target regular expression corresponding to the target bibliography;
[0013] The target bibliography and its entry contents are parsed by the target regular expression to batch-mark the relationship between elements and entry names, and the attribute relationship between elements.
[0014] In one embodiment, optionally, the step of obtaining a target regular expression corresponding to the target bibliography includes:
[0015] receiving a target regular expression corresponding to the target bibliography input by a user; or
[0016] Generate a regular expression corresponding to the target bibliography according to the target bibliography and expression generation rules;
[0017] The regular expression is manually verified, and the manually verified regular expression is determined as the target regular expression.
[0018] In one embodiment, optionally, the structured file includes an XML structured file, and the step of determining the structured file corresponding to the target bibliography according to the element tag annotation includes:
[0019] Get the element tag annotation file;
[0020] Perform xmlspy verification on the element tag annotation file;
[0021] The element tag annotation file verified by xmlspy is constructed into a structured file according to the element tags.
[0022] In one embodiment, optionally, the method further comprises:
[0023] Correct the element tag annotation files that have not passed the xmlspy verification to obtain the corrected element tag annotation files;
[0024] Perform xmlspy verification on the corrected element tag annotation file again until the xmlspy verification passes.
[0025] In one embodiment, optionally, the method further comprises:
[0026] The jar package is used to classify the element tags and unify the format of the structured file to obtain the processed structured file.
[0027] In one embodiment, optionally, the method further comprises:
[0028] Calculate the matching degree between different elements;
[0029] Determining, according to the matching degree, an extended element corresponding to the target element;
[0030] When displaying the structured document of the target element, the structured document of the corresponding extended element is displayed in a preset display mode.
[0031] In one embodiment, optionally, the method further comprises:
[0032] Receiving an input query command for a target term;
[0033] Determine all target structured documents corresponding to the target term according to the association relationship between the query command and the element;
[0034] According to the matching degree between the target structured document and the target term, all target structured documents are arranged in descending order and displayed.
[0035] In a second aspect, an embodiment of the present application provides a reference book parsing device, comprising:
[0036] A labeling module is used to obtain a target bibliography, parse the target bibliography and its entry content, and label the element;
[0037] A determination module, used to determine the structured file corresponding to the target bibliography according to the element tag annotation;
[0038] A processing module, used for classifying element tags and unifying the format of the structured file to obtain a processed structured file;
[0039] The display module is used to determine the association relationship between elements and display the processed structured file according to the association relationship.
[0040] In a third aspect, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned reference book parsing method when executing the computer program.
[0041] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned reference book parsing method are implemented.
[0042] In the scheme implemented by the above-mentioned reference book parsing method, device, equipment and medium, a target bibliography is obtained, and the target bibliography and its entry content are parsed to perform element labeling; based on the element labeling, a structured file corresponding to the target bibliography is determined; the structured file is classified and formatted in an element label manner to obtain a processed structured file; the association relationship between elements is determined, and the processed structured file is displayed by classification based on the association relationship. In the present invention, element mining and attribute relationship between elements are annotated on the entry content, XML structuring of entries and entry mining content is implemented at the data layer, and it is ensured that the computer language is readable and parsable, and structured presentation of entry content is implemented at the product end, comprehensive knowledge aggregation and expansion are performed, and a knowledge graph is established, so as to facilitate comprehensive multi-dimensional data retrieval and query based on the knowledge graph, improve the efficiency and accuracy of data mining, and improve resource utilization and use value.
Brief Description of the Drawings
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 A schematic flow chart of a reference book parsing method according to an embodiment of the present application is shown.
[0045] Figure 2 A schematic flow chart of step S101 in a reference book parsing method according to an embodiment of the present application is shown.
[0046] Figure 3 A schematic diagram of a reference book parsing process according to an embodiment of the present application is shown.
[0047] Figure 4 A schematic flow chart of step S102 in the reference book parsing method according to an embodiment of the present application is shown.
[0048] Figure 5 A schematic diagram showing failure of xmlspy verification according to an embodiment of the present application is shown.
[0049] Figure 6 A schematic diagram showing a secondary xmlspy verification according to an embodiment of the present application is shown.
[0050] Figure 7 A logical diagram of term merging according to an embodiment of the present application is shown.
[0051] Figure 8 A schematic diagram of displaying term query results according to an embodiment of the present application is shown.
[0052] Fig. 9 A block diagram of a reference book parsing device according to an embodiment of the present application is shown.
[0053] Fig.10 A schematic structural diagram of a computer device according to an embodiment of the present application is shown.
[0054] Fig.11 Another structural schematic diagram of a computer device according to an embodiment of the present application is shown. [Specific implementation method]
[0055] In order to better understand the technical solution of the present application, the embodiments of the present application are described in detail below with reference to the accompanying drawings.
[0056] It should be clear that the described embodiments are only part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.
[0057] The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The singular forms "a", "said" and "the" used in the embodiments of the present application and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings.
[0058] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0059] See also Figure 1 , Figure 1 A schematic flow chart of a reference book parsing method according to an embodiment of the present application is shown. The reference book parsing method is used to solve the technical problem in the related art that it is impossible to fully expand the attributes of multiple books, multiple fields, and multiple elements for the same entry.
[0060] like Figure 1 As shown, according to a reference book parsing method according to an embodiment of the present application, the method includes:
[0061] Step S101, obtaining a target bibliography, parsing the target bibliography and its entry contents to perform element tagging;
[0062] In this embodiment, the target bibliography may be multiple books in multiple fields and multiple categories. In this way, after parsing the specific contents of the entries of multiple books in multiple fields and multiple categories and labeling the elements, a more comprehensive relationship between the elements can be obtained, thereby performing comprehensive knowledge aggregation and expansion and establishing a knowledge graph.
[0063] like Figure 2 As shown, in one embodiment, optionally, step S101 includes:
[0064] Step S201, obtaining a target bibliography;
[0065] Step S202, obtaining a target regular expression corresponding to the target bibliography;
[0066] In one embodiment, optionally, the step of obtaining a target regular expression corresponding to the target bibliography includes:
[0067] receiving a target regular expression corresponding to the target bibliography input by a user; or
[0068] Generate a regular expression corresponding to the target bibliography according to the target bibliography and expression generation rules;
[0069] The regular expression is manually verified, and the manually verified regular expression is determined as the target regular expression.
[0070] Step S203, parsing the target bibliography and its entry contents by using the target regular expression, so as to batch-label the relationship between elements and entry names, and the attribute relationship between elements.
[0071] In this embodiment, in order to ensure the accuracy and comprehensiveness of the analysis of the entry content, different regular expressions are required for different bibliographies, and regular expressions are used to implement batch annotation of the attribute relationships between elements and entries, and between elements.
[0072] Among them, the regular expression is manually input or manually verified, so that some words that cannot be accurately recognized by the computer can be better parsed and recognized.
[0073] Among them, bibliographic analysis and term analysis are the main steps of parsing. The compilation styles of reference books are different. Analyzing their compilation styles is a prerequisite for content mining, determining the element range, and determining the relationship between elements and term names. Term analysis is the core of XML analysis and content mining. The basic structure of terms is determined according to the bibliographic compilation style, but the tag elements and attribute annotations are determined according to the specific content of the terms. Specifically, <rec>The focus of the text is on element mining and attribute annotation of the interpreted text paragraphs.
[0074] Step S102, determining the structured file corresponding to the target bibliography according to the element tag annotation;
[0075] like Figure 3 As shown, for example, when parsing the term name Li, the term name and the term interpretation can be parsed through regular expressions to obtain element tags and attributes as shown in the figure.
[0076] like Figure 4 As shown, in one embodiment, optionally, the structured file includes an XML structured file, and step S102 includes:
[0077] Step S401, obtaining an element tag annotation file;
[0078] The element tag annotation file can be Figure 3 As shown, it includes entries, entry names, multiple element tags and attribute contents, etc.
[0079] Step S402, performing xmlspy verification on the element tag annotation file;
[0080] After obtaining the element tag annotation file, xmlspy verification is required to ensure that the content mining conforms to the XMLSchema structure and can be read and parsed by computer language. If an incorrect structure occurs, it must be corrected.
[0081] XMLspy verification includes but is not limited to verifying whether the start and end fields of an element are complete, whether the tag attribute annotations are valid, etc.
[0082] Step S403, construct the element tag annotation file verified by xmlspy into a structured file according to the element tags.
[0083] like Figure 5 As shown, in one embodiment, optionally, the method further includes:
[0084] Correct the element tag annotation files that have not passed the xmlspy verification to obtain the corrected element tag annotation files;
[0085] like Figure 6 As shown, the corrected element tag annotation file is verified again by xmlspy until the xmlspy verification passes.
[0086] The above verification process ensures the compliance of XML tags and the entire file, which is a prerequisite for the normal use of subsequent data.
[0087] Step S103, classifying element tags and unifying the format of the structured file to obtain a processed structured file;
[0088] In one embodiment, optionally, the method further comprises:
[0089] The jar package is used to classify the element tags and unify the format of the structured file to obtain the processed structured file.
[0090] In this embodiment, according to the tag elements and mining characteristics, the XML structure of the reference book bibliography and entry content is constructed to achieve the classification of tag attributes and the unification of the overall format, ensuring the reading and parsing of computer language. Figure 7 shown.
[0091] Step S104, determining the association relationship between the elements, and displaying the processed structured file by classification according to the association relationship.
[0092] In one embodiment, optionally, the method further comprises:
[0093] Receiving an input query command for a target term;
[0094] Determine all target structured documents corresponding to the target term according to the association relationship between the query command and the element;
[0095] According to the matching degree between the target structured document and the target term, all target structured documents are arranged in descending order and displayed.
[0096] like Figure 8 As shown, for each entry, the entry can be comprehensively displayed according to the association between elements, such as displaying the category corresponding to itself, and the extended category expanded according to the association between the entries, etc., so that users can quickly and comprehensively understand the multi-field information corresponding to the same entry.
[0097] In one embodiment, optionally, the method further comprises:
[0098] Calculate the matching degree between different elements;
[0099] Determining, according to the matching degree, an extended element corresponding to the target element;
[0100] When displaying the structured document of the target element, the structured document of the corresponding extended element is displayed in a preset display mode.
[0101] In this embodiment, the matching degree between different elements can be calculated. If the matching degree is greater than a preset value, it can be considered to be an extended element corresponding to the target element. In this way, when querying the target element, the structure file corresponding to the extended element can be displayed according to the matching degree between the elements.
[0102] In the scheme implemented by the above-mentioned reference book parsing method, device, equipment and medium, a target bibliography is obtained, and the target bibliography and its entry content are parsed to perform element labeling; based on the element labeling, a structured file corresponding to the target bibliography is determined; the structured file is classified and formatted in an element label manner to obtain a processed structured file; the association relationship between elements is determined, and the processed structured file is displayed by classification based on the association relationship. In the present invention, element mining and attribute relationship between elements are annotated on the entry content, XML structuring of entries and entry mining content is implemented at the data layer, and it is ensured that the computer language is readable and parsable, and structured presentation of entry content is implemented at the product end, comprehensive knowledge aggregation and expansion are performed, and a knowledge graph is established, so as to facilitate comprehensive multi-dimensional data retrieval and query based on the knowledge graph, improve the efficiency and accuracy of data mining, and improve resource utilization and use value.
[0103] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.
[0104] Fig. 9 A block diagram of a reference book parsing device according to an embodiment of the present application is shown.
[0105] like Fig. 9 As shown, in a second aspect, an embodiment of the present application provides a reference book parsing device 80, comprising:
[0106] The labeling module 91 is used to obtain a target bibliography, parse the target bibliography and its entry content, and label the element;
[0107] A determination module 92, for determining the structured file corresponding to the target bibliography according to the element tag annotation;
[0108] A processing module 93 is used to classify element tags and unify the format of the structured file to obtain a processed structured file;
[0109] The display module 94 is used to determine the association relationship between elements and display the processed structured file according to the association relationship.
[0110] In one embodiment, optionally, the annotation module includes:
[0111] A first acquisition unit, used for acquiring a target bibliography;
[0112] A second acquisition unit, used for acquiring a target regular expression corresponding to the target bibliography;
[0113] The parsing unit is used to parse the target bibliography and its entry contents through the target regular expression to batch mark the relationship between elements and entry names, and the attribute relationship between elements.
[0114] In one embodiment, optionally, the second acquiring unit is used to:
[0115] receiving a target regular expression corresponding to the target bibliography input by a user; or
[0116] Generate a regular expression corresponding to the target bibliography according to the target bibliography and expression generation rules;
[0117] The regular expression is manually verified, and the manually verified regular expression is determined as the target regular expression.
[0118] In one embodiment, optionally, the structured file includes an XML structured file, and the determining module includes:
[0119] A third acquisition unit is used to acquire an element tag annotation file;
[0120] A verification unit, used for performing xmlspy verification on the element tag annotation file;
[0121] The construction unit is used to construct the element tag annotation file verified by xmlspy into a structured file according to the element tags.
[0122] In one embodiment, optionally, the device further comprises:
[0123] A correction module is used to correct the element tag annotation file that fails the xmlspy verification to obtain a corrected element tag annotation file;
[0124] The verification module is used to perform xmlspy verification on the corrected element tag annotation file again until the xmlspy verification passes.
[0125] In one embodiment, optionally, the processing module is used to:
[0126] The jar package is used to classify the element tags and unify the format of the structured file to obtain the processed structured file.
[0127] In one embodiment, optionally, the device further comprises:
[0128] A calculation module, used to calculate the matching degree between different elements;
[0129] An extension module, used to determine an extension element corresponding to the target element according to the matching degree;
[0130] The display module is also used to: when displaying the structured file of the target element, display the structured file of the corresponding extended element in a preset display manner.
[0131] In one embodiment, optionally, the device further comprises:
[0132] A receiving module, used for receiving an input query command for a target term;
[0133] A query module, used to determine all target structured documents corresponding to the target term according to the association relationship between the query command and the element;
[0134] The sorting module is used to sort and display all target structured documents in descending order according to the matching degree between the target structured documents and the target terms.
[0135] The specific definition of the reference book parsing device can be found in the definition of the reference book parsing method above, which will not be repeated here. Each module in the above-mentioned reference book parsing device can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
[0136] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, a network interface and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile and / or volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external client via a network connection. When the computer program is executed by the processor, it implements the functions or steps of a reference book parsing method server side.
[0137] In one embodiment, a computer device is provided. The computer device may be a client, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, a network interface, a display screen and an input device connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external server through a network connection. When the computer program is executed by the processor, it realizes the functions or steps of a client side of a reference book parsing method.
[0138] It should be understood that the processor may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0139] The computer device of the embodiment of the present application exists in various forms, including but not limited to:
[0140] (1) Mobile communication devices: These devices are characterized by their mobile communication functions and their main purpose is to provide voice and data communications. These terminals include: smart phones (such as iPhone), multimedia phones, functional phones, and low-end phones.
[0141] (2) Ultra-mobile personal computer devices: These devices fall into the category of personal computers, have computing and processing capabilities, and generally also have mobile Internet access features. These terminals include: PDA, MID and UMPC devices, such as iPad.
[0142] (3) Portable entertainment devices: These devices can display and play multimedia content. They include audio and video players (such as iPods), handheld game consoles, e-books, as well as smart toys and portable car navigation devices.
[0143] (4) Server: A device that provides computing services. The server consists of a processor, hard disk, memory, system bus, etc. The server is similar to a general computer architecture, but because it needs to provide highly reliable services, it has higher requirements in terms of processing power, stability, reliability, security, scalability, and manageability.
[0144] (5) Other electronic devices with data interaction functions.
[0145] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the following steps when executing the computer program:
[0146] Obtaining a target bibliography, parsing the target bibliography and its entry contents to perform element tagging;
[0147] Determining the structured file corresponding to the target bibliography according to the element tag annotation;
[0148] Performing element tag classification and format unification processing on the structured file to obtain a processed structured file;
[0149] Determine the association relationship between the elements, and display the processed structured file in categories according to the association relationship.
[0150] In one embodiment, optionally, the acquiring of the target bibliography and parsing of the target bibliography and its entry contents to perform element tagging include:
[0151] Get the target bibliography;
[0152] Obtaining a target regular expression corresponding to the target bibliography;
[0153] The target bibliography and its entry contents are parsed by the target regular expression to batch-mark the relationship between elements and entry names, and the attribute relationship between elements.
[0154] In one embodiment, optionally, the step of obtaining a target regular expression corresponding to the target bibliography includes:
[0155] receiving a target regular expression corresponding to the target bibliography input by a user; or
[0156] Generate a regular expression corresponding to the target bibliography according to the target bibliography and expression generation rules;
[0157] The regular expression is manually verified, and the manually verified regular expression is determined as the target regular expression.
[0158] In one embodiment, optionally, the structured file includes an XML structured file, and the step of determining the structured file corresponding to the target bibliography according to the element tag annotation includes:
[0159] Get the element tag annotation file;
[0160] Perform xmlspy verification on the element tag annotation file;
[0161] The element tag annotation file verified by xmlspy is constructed into a structured file according to the element tags.
[0162] In one embodiment, optionally, the method further comprises:
[0163] Correct the element tag annotation files that have not passed the xmlspy verification to obtain the corrected element tag annotation files;
[0164] Perform xmlspy verification on the corrected element tag annotation file again until the xmlspy verification passes.
[0165] In one embodiment, optionally, the method further comprises:
[0166] The jar package is used to classify the element tags and unify the format of the structured file to obtain the processed structured file.
[0167] In one embodiment, optionally, the method further comprises:
[0168] Calculate the matching degree between different elements;
[0169] Determining, according to the matching degree, an extended element corresponding to the target element;
[0170] When displaying the structured document of the target element, the structured document of the corresponding extended element is displayed in a preset display mode.
[0171] In one embodiment, optionally, the method further comprises:
[0172] Receiving an input query command for a target term;
[0173] Determine all target structured documents corresponding to the target term according to the association relationship between the query command and the element;
[0174] According to the matching degree between the target structured document and the target term, all target structured documents are arranged in descending order and displayed.
[0175] It should be noted that the above functions or steps that can be implemented by the computer-readable storage medium or electronic device can refer to the relevant description in the aforementioned method embodiment. To avoid repetition, they will not be described one by one here.
[0176] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0177] It should be understood that, although the terms first, second, etc. may be used to describe the setting unit in the embodiments of the present application, these setting units should not be limited to these terms. These terms are only used to distinguish the setting units from each other. For example, without departing from the scope of the embodiments of the present application, the first setting unit may also be referred to as the second setting unit, and similarly, the second setting unit may also be referred to as the first setting unit.
[0178] The word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0179] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0180] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0181] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0182] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.< / rec>
Claims
1. A reference book analysis method, characterized in that: include: Obtaining a target bibliography, parsing the target bibliography and its entry contents to perform element tagging; Determining the structured file corresponding to the target bibliography according to the element tag annotation; Performing element tag classification and format unification processing on the structured file to obtain a processed structured file; Determine the association relationship between the elements, and display the processed structured file in categories according to the association relationship.
2. The method according to claim 1, characterized in that The step of obtaining the target bibliography and parsing the target bibliography and its entry contents to perform element tagging includes: Get the target bibliography; Obtaining a target regular expression corresponding to the target bibliography; The target bibliography and its entry contents are parsed by the target regular expression to batch-mark the relationship between elements and entry names, and the attribute relationship between elements.
3. The method according to claim 2, characterized in that The step of obtaining a target regular expression corresponding to the target bibliography includes: receiving a target regular expression corresponding to the target bibliography input by a user; or Generate a regular expression corresponding to the target bibliography according to the target bibliography and expression generation rules; The regular expression is manually verified, and the manually verified regular expression is determined as the target regular expression.
4. The method according to claim 1, characterized in that: The structured file includes an XML structured file, and the step of determining the structured file corresponding to the target bibliography according to the element tag annotation includes: Get the element tag annotation file; Perform xmlspy verification on the element tag annotation file; The element tag annotation file verified by xmlspy is constructed into a structured file according to the element tags.
5. The method according to claim 4, characterized in that The method further comprises: Correct the element tag annotation files that have not passed the xmlspy verification to obtain the corrected element tag annotation files; Perform xmlspy verification on the corrected element tag annotation file again until the xmlspy verification passes.
6. The method according to claim 1, characterized in that The method further comprises: The jar package is used to classify the element tags and unify the format of the structured file to obtain the processed structured file.
7. The method according to claim 1, characterized in that The method further comprises: Calculate the matching degree between different elements; Determining, according to the matching degree, an extended element corresponding to the target element; When displaying the structured document of the target element, the structured document of the corresponding extended element is displayed in a preset display mode.
8. A reference book analysis device, characterized in that: include: A labeling module is used to obtain a target bibliography, parse the target bibliography and its entry content, and label the element; A determination module, used to determine the structured file corresponding to the target bibliography according to the element tag annotation; A processing module, used for classifying element tags and unifying the format of the structured file to obtain a processed structured file; The display module is used to determine the association relationship between elements and display the processed structured file according to the association relationship.
9. A computer device, characterized in that: include: at least one processor; and, a memory communicatively coupled to the at least one processor; The memory stores instructions executable by the at least one processor, wherein the instructions are configured to execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: Computer executable instructions are stored, and the computer executable instructions are used to execute the method according to any one of claims 1 to 7.
