Paper structure analysis device, paper structure analysis method, and program
The paper structure analysis device improves precision by converting PDF to HTML and detecting citation anchors, addressing misrecognition issues in conventional methods, enabling accurate extraction of chapter titles and cited references.
Patent Information
- Application Number
- JP2023030913
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Filing Date
- 2023-03-01
- Publication Date
- 2024-09-12
- Estimated Expiration
- 2043-03-01
AI Technical Summary
Conventional methods like GROBIT misrecognize figure and table text within main text and PDFBOT removes chapter titles and cited references, leading to inaccurate paper structure analysis.
A paper structure analysis device with an HTML conversion unit, citation anchor detection unit, and other components to accurately analyze document structure by converting PDF to HTML, detecting citation anchors, and associating them with corresponding documents.
Enhances the precision of paper structure analysis by accurately extracting chapter titles and cited references, outperforming conventional methods in accuracy.
Smart Images

Figure 2024123471000001
Abstract
Description
[Technical field]
[0001] The present disclosure relates to a paper structure analysis device, a paper structure analysis method, and a program that analyze the structure of a paper by taking into account a document structure determined by visual information. [Background technology]
[0002] Conventional techniques for extracting information from PDF-formatted papers include, for example, GROBIT (Non-Patent Document 1) and PDFBOT (Non-Patent Document 2). GROBIT can extract chapter titles, main text, and cited literature information, and associate them with citation anchors in the main text, allowing for highly accurate extraction of cited literature information. PDFBOT can extract only the main text of a paper by converting the paper in PDF format into HTML format. [Prior art documents] [Non-patent literature]
[0003] [Non-Patent Document 1] Patrice Lopez, “GROBID”, [online], [Retrieved January 30, 2023], Internet〈 URL: https: / / github.com / kermitt2 / grobid 〉 [Non-Patent Document 2] Changfeng Yu, Cheng Zhang, Jie Wang, “Extracting Body Text from Academic PDF Documents for Text Mining”, International Conference on Knowledge Discovery and Information Retrieval, 23 October 2020. Summary of the Invention [Problem to be solved by the invention]
[0004] GROBIT often misrecognizes figures and tables in the middle of the text, and PDFBOT has the problem of removing all chapter titles and cited chapters in papers.
[0005] Therefore, an object of the present disclosure is to provide a paper structure analysis device that can analyze the document structure of a paper with higher accuracy than conventional devices. [Means for solving the problem]
[0006] The paper structure analysis device of the present disclosure includes an HTML conversion unit and a citation anchor detection unit.
[0007] The HTML conversion unit converts the paper in PDF format to HTML format. The citation anchor detection unit detects citation anchors from the body of the paper converted to HTML format by setting a plurality of detection patterns related to the presence or absence of parentheses accompanying the author name, and, if parentheses have been inserted, the type and insertion position of the parentheses. Effect of the Invention
[0008] According to the paper structure analysis device of the present disclosure, it is possible to analyze the document structure of a paper with higher accuracy than before. [Brief description of the drawings]
[0009] [Figure 1] FIG. 1 is a block diagram showing the functional configuration of a paper structure analysis device according to a first embodiment. [Diagram 2] 4 is a flowchart showing the operation of the paper structure analysis device of the first embodiment. [Diagram 3] A diagram showing an example of a typical document structure of a paper. [Figure 4] 11A and 11B are diagrams showing an example of an operation of a chapter extraction unit to identify the beginning of a chapter. [Diagram 5] A figure showing an example of chapters of cited documents extracted (divided) by document. [Figure 6] A figure showing an example of GROBID output. [Figure 7] FIG. 13 is a diagram showing an example of detection pattern settings of a citation anchor detector. [Figure 8] A diagram showing the results of an experiment for evaluating the accuracy of chapter title extraction in the prior art and the apparatus of Example 1. [Figure 9] A diagram showing the results of an experiment for evaluating the accuracy of text extraction in the prior art and the apparatus of Example 1. [Figure 10] A diagram showing the results of an experiment for evaluating the accuracy of citation information extraction in the prior art and the apparatus of Example 1. [Figure 11] A diagram showing an example of the functional configuration of a computer.
Embodiments for Carrying Out the Invention
[0010] Hereinafter, embodiments of the present disclosure will be described in detail. Components having the same function are denoted by the same reference numerals, and redundant descriptions are omitted.
Examples
[0011] Hereinafter, with reference to FIG. 1, the functional configuration of the paper structure analysis apparatus of Example 1 will be described. As shown in the figure, the paper structure analysis apparatus 1 of the present embodiment includes a PDF paper database 10, an HTML conversion unit 11, a chapter extraction unit 12, a text cleaning unit 13, a citation information extraction unit 14, a citation anchor detection unit 15, a correlation unit 16, an external document data acquisition unit 17, and a dataset storage unit 18. Hereinafter, with reference to FIGS. 2-5, the operations of each component will be described.
[0012] <PDF paper database 10> A large number of papers in PDF format are stored in the PDF paper database 10. Note that the PDF paper database 10 is not an essential configuration, and for example, it may be configured to acquire paper data from the Internet 91.
[0013] <HTML conversion unit 11> The HTML conversion unit 11 converts a PDF-formatted paper into HTML format (S11) in order to acquire the feature amounts of the text. For example, the HTML conversion unit 11 can use pdf2htmlEX (Reference Non-Patent Document 1).
[0014] (Reference Non-Patent Document 1: “pdf2htmlEX”, [online], [searched on January 31, 2023], Internet〈 URL: https: / / github.com / pdf2htmlEX / pdf2htmlEX 〉) The HTML conversion unit 11 obtains the feature amount (coordinates, font type, size) of the text by HTML conversion. The feature amount of the text is text It is expressed in the following format: x1, y1 are the coordinates, ff1 is the font type, and fs1 is the font size.
[0015] The HTML conversion unit 11 uses the text features to obtain layout information of the paper, such as the paper's columns, the x-coordinate of the start point of the body text lines, the font size and type of the body text, and line spacing information of the body text (see the example in Figure 3).
[0016] <Chapter extraction part 12> The chapter extraction unit 12 first obtains text that is a predetermined keyword from the body of the paper converted into HTML format (S12). The predetermined keyword is preferably, for example, "Introduction". The subsequent processing differs depending on whether or not a chapter number is included. When a chapter number, i.e., a number in parentheses or a number without parentheses, is included immediately before a predetermined keyword (for example, "Introduction"), the chapter extraction unit 12 sets the line including the number in parentheses or the number without parentheses as the beginning of the chapter (S12, see the example with chapter number in FIG. 4). When there is no chapter number, the chapter extraction unit 12 sets the line written in a font size that matches the font size of the predetermined keyword as the beginning of the chapter, and extracts the body of the paper by chapter (S12, see the example without chapter number in FIG. 4).
[0017] <Text cleaning section 13> The main text cleaning unit 13 removes headers, footers, footnotes, figure and table captions, figures, and formulas using the rule-based method of Non-Patent Document 2, detects tables using image recognition (Reference Non-Patent Document 2) using a CNN trained on TableBank (Reference Non-Patent Document 3), converts the detected range into coordinates, and removes the target range (S13).
[0018] (Paper 2: Angela Casado-Garcia, Cesar Dominguez, Jonathan Heras, Eloy Mata, and Vico Pascual. The benefits of close-domain fine-tuning for table detection in document images. Springer, 2020) (Chapter 3:Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, Ming Zhou, and Zhoujun Li. Table-Bank: A table benchmark for image-based table detection and recognition. Marseille, France, May 2020. European Language Resources Association) <Specifications of the snowflake range 14> The process of the cited document information extraction unit 14 differs depending on whether or not there is a document number. When a line including a parenthesized number or a non-parenthesized number at the beginning of a line exists in the last chapter of the paper extracted by chapter, the cited document information extraction unit 14 extracts (divides) the last chapter for each document, inputting the corresponding line as the beginning of each document information to GROBID (Non-Patent Document 1), and extracts cited document information from the output of GROBID (S14). The division is performed, for example, as illustrated in FIG. 5. On the other hand, when there is no document number, that is, when there is no line including a parenthesized number or a non-parenthesized number at the beginning of a line in the last chapter of the paper extracted by chapter, the cited document information extraction unit 14 inputs the last chapter (PDF data of the last chapter) as it is to GROBID without dividing it, and extracts cited document information from the output of GROBID (S14). An example of the output of GROBID is shown in FIG. 6.
[0019] <Quote anchor detector 15> Step S15 is executed by partially improving the regular expressions in Reference Non-Patent Documents 4 and 5.
[0020] (Reference non-patent document 4: Riaz Ahmad and Muhammad Tanvir Afzal. CAD: an algorithm for citation-anchors detection in research papers. Scientometrics, Vol. 117, pp. 1405-1423, 2018.) (Reference non-patent document 5: Rakesh Gosangi, Ravneet Arora, Mohsen Gheisarieha, Debanjan Mahata, and Haimin Zhang. On the use of context for predicting citation worthiness of sentences in scholarly articles. In Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, pp. 4539-4545, 2021. Association for Computational Linguistics.) The citation anchor detection unit 15 detects citation anchors from the text of the paper converted into HTML format by setting multiple detection patterns related to whether parentheses have been inserted around the author's name, and, if parentheses have been inserted, the type and insertion position of the parentheses (S15).
[0021] The regex line in Figure 7 shows that [\(\[]? indicates that for the opening parenthesis, either a parenthesis “(” or a bracket “[” is allowed (represented by \), and that the parenthesis symbol is optional in this position (represented by []?). Similarly, for the closing parenthesis, [\)\]]? indicates that either a parenthesis “)” or a bracket “]” is allowed, and that the parenthesis symbol is optional in this position.
[0022] In addition, author in the regex line is the author name defined in the first line of the figure, additional is the co-author name defined in the third line of the figure, and year is the publication year defined in the seventh line of the figure. As for the variation of the position of the parentheses, as described in the seventh line of the figure, which is the definition of year, it is also possible to detect a format in which the publication year is surrounded by parentheses (small brackets) or brackets (square brackets). Since the citation anchor detection unit 15 additionally sets the detection pattern as described above, it is possible to detect citation anchors such as, for example, smith 2021, (Smith, 2021), (Smith and Jones, 2021), Smith et al. (2021a), (Smith et al., 2020, 2021a), [Smith et al., 2021; Jones et al., 2020].
[0023] <Correspondence section 16> When the citation anchor includes a symbol indicating a range, the association unit 16 converts the citation anchor into a format that lists the numbers indicated by the range (S16). For example, when the citation anchor is [1]-[3] and includes an en dash (hyphen) indicating a range, the association unit 16 converts the citation anchor into a format that lists the numbers, i.e., [1], [2], [3]. For example, when the citation anchor is [1, 3-5], the association unit 16 converts the citation anchor into a format that lists the numbers, i.e., [1], [3], [4], [5]. The association unit 16 associates the citation anchor in the main text with the corresponding document in the cited documents chapter at the end. For example, when the citation anchor [1] is in the main text, the association unit 16 associates the document information starting with [1] in the cited documents chapter at the end with the citation anchor [1]. If the citation anchor does not include a number, the associating unit 16 associates the document information including all of the character strings included in the citation anchor with the citation anchor. For example, if the citation anchor is (Sato, 2021), the associating unit associates the document information including both “Sato” and “2021” in the cited document chapter at the end with the citation anchor (Sato, 2021).
[0024] Conventionally, it was possible to create a PDF in which a citation anchor and a cited literature column were linked in advance, but it was not possible to create a link later for paper data in which such a link had not been created. The paper structure analysis device 1 of this embodiment can associate the citation anchor with the literature information after the fact by executing step S16.
[0025] <External Literature Data Acquisition Section 17> The external document data acquisition unit 17 searches for the title of the cited document in an external API (Application Programming Interface, for example, the arXiv API), and acquires any matching documents (S17). For example, it is preferable to set the conditions as ignoring uppercase and lowercase letters and an exact match.
[0026] <Data Set Storage Unit 18> The dataset storage unit 18 pairs the paper data converted and optimized in steps S11, S12, S13, S14, S15, and S16 with the cited document data acquired in S17, and stores the resulting pair as a dataset.
[0027] <Evaluation experiment> The results of three evaluation experiments in which the conventional technique and the technique of the first embodiment were compared will be described below with reference to FIGS.
[0028] <Comparison between evaluation experiments 1 and 2> The first comparison target is a previous study based on Tex (Reference Non-Patent Document 6, hereinafter also referred to as Narimatsu et al.).
[0029] (Reference non-patent document 6: Hiromi Narimatsu, Kohei Koyama, Kohji Dohsaka, Ryuichiro Higashinaka, Yasuhiro Minami, and Hirotoshi Taira. Task definition and integration for scientific-document writing support. In Proceedings of the Second Workshop on Scholarly Document Processing, pp. 18-26, 2021. Association for Computational Linguistics.) The second comparison target is the paper PDF analysis tool GROBID in Non-Patent Document 1 (hereinafter, also referred to as GROBID).
[0030] <Evaluation data for evaluation experiments 1 and 2> The evaluation data consisted of 113 papers selected from the Axcell (Reference Non-Patent Document 7) paper list that was used to construct a dataset in previous research using Tex as the source.
[0031] (Reference non-patent document 7: Marcin Kardas, Piotr Czapla, Pontus Stenetorp, Sebastian Ruder, Sebastian Riedel, Ross Taylor, and Robert Stojnic. AxCell: Automatic extraction of results from machine learning papers.In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 8580-8594, 2020.) <Evaluation experiment 1: Results of chapter title extraction accuracy evaluation experiment> As shown in FIG. 8, the method according to the embodiment 1 failed to extract chapter titles in three cases. Note that since Narimatsu et al. is a method that uses tags of chapter titles included in papers in Tex format, failure to extract chapter titles usually does not occur. Therefore, Narimatsu et al. corresponds to the target value. As shown in the figure, it was found that the method according to the embodiment 1 is more accurate than GROBID, and can extract chapter titles with an accuracy equivalent to that of Narimatsu et al., which is the target value.
[0032] <Evaluation experiment 2: Results of text extraction accuracy evaluation experiment> In the evaluation experiment 2, the accuracy of text extraction was evaluated under two conditions: one in which all citation anchors in the text were deleted, and one in which citation anchors in the text were not deleted. As shown in Figure 9, the method in Example 1 showed the best results in both Word Error Rate (WER) and Sentence Error Rate (SER).
[0033] <Comparison subject of evaluation experiment 3> This is a previous study based on Tex (Narimatsu et al., Reference Non-Patent Document 6). <Evaluation data for evaluation experiment 3> These are 2,786 papers included in a dataset of previous research sourced from Tex. <Evaluation experiment 3: Evaluation method> First, a dataset is created using the evaluation data. Next, the titles of cited documents that could be associated with citation anchors are searched for using the arXiv API. Finally, the number of matching documents found is compared. However, it is assumed that a search will not be performed unless the titles match exactly. Note that Narimatsu et al. can use Tex \cite{} tags and bib and bbl files, so complete cited document titles can be easily extracted. Therefore, as in evaluation experiment 1, Narimatsu et al. corresponds to the target value. Note that in the method of Example 1, papers in PDF format without tags or files are analyzed. <Evaluation experiment 3: Results of the experiment to evaluate the accuracy of citation information extraction> As shown in FIG. 10, the number of cited documents extracted by the method of Example 1 was 4225, which was about 87% (4225 / 4874) of the number of cited documents extracted by the previous study (Narimatsu et al.) using TeX as the source. Of the results of extracting cited document information by the method of Example 1, 3591 out of 4225 had titles that were an exact match with Narimatsu et al., which was about 85%. Therefore, by combining the method of Example 1, the dataset using TeX as the source can be improved.
[0034] <Summary of evaluation results> The method of Example 1 showed higher performance than any of the previous studies in terms of accuracy of body text extraction. Also, the method of Example 1 showed performance close to that of the method using TeX as the source (Narimatsu et al.) in terms of chapter title extraction accuracy and citation information extraction accuracy.
[0035] <Additional Notes> The device of the present disclosure has, as a single hardware entity, an input unit to which a keyboard or the like can be connected, an output unit to which a liquid crystal display or the like can be connected, a communication unit to which a communication device (e.g., a communication cable) capable of communicating with the outside of the hardware entity can be connected, a CPU (which may also have a central processing unit, cache memory, registers, etc.), memories such as RAM and ROM, an external storage device such as a hard disk, and buses connecting the input unit, output unit, communication unit, CPU, RAM, ROM, and external storage device so that data can be exchanged between them. If necessary, the hardware entity may also be provided with a device (drive) capable of reading and writing a recording medium such as a CD-ROM. A physical entity equipped with such hardware resources is, for example, a general-purpose computer.
[0036] The external storage device of the hardware entity stores the programs required to realize the above-mentioned functions and the data required in the processing of these programs (not limited to the external storage device, but for example the programs may be stored in a ROM, which is a read-only storage device). Data obtained by the processing of these programs is stored appropriately in the RAM, the external storage device, etc.
[0037] In the hardware entity, each program stored in an external storage device (or ROM, etc.) and the data required to process each program are loaded into memory as necessary, and interpreted, executed, and processed by the CPU as appropriate, so that the CPU realizes a predetermined function (each of the components represented as the above, "units," "means," etc.).
[0038] The present disclosure is not limited to the above-described embodiment, and can be modified as appropriate without departing from the spirit of the present disclosure. In addition, the processes described in the above embodiment are not limited to being executed in chronological order according to the order described, but may be executed in parallel or individually depending on the processing capacity of the device that executes the processes or as necessary.
[0039] As described above, when the processing functions of the hardware entities (apparatuses of the present disclosure) described in the above embodiments are realized by a computer, the processing contents of the functions that the hardware entities should have are described by a program. Then, the processing functions of the hardware entities are realized on the computer by executing the program.
[0040] The various processes described above can be implemented by loading a program for executing each step of the above method into the recording unit 10020 of the computer shown in FIG. 11 and operating the control unit 10010, input unit 10030, output unit 10040, etc.
[0041] The program describing the processing contents can be recorded on a computer-readable recording medium. The computer-readable recording medium may be, for example, a magnetic recording device, an optical disk, a magneto-optical recording medium, a semiconductor memory, or any other suitable medium. Specifically, for example, a hard disk drive, a flexible disk, a magnetic tape, or the like can be used as the magnetic recording device, a DVD (Digital Versatile Disc), a DVD-RAM (Random Access Memory), a CD-ROM (Compact Disc Read Only Memory), a CD-R (Recordable) / RW (ReWritable), or the like can be used as the optical disk, an MO (Magneto-Optical disc), or the like can be used as the magneto-optical recording medium, and an EEP-ROM (Electrically Erasable and Programmable-Read Only Memory) or the like can be used as the semiconductor memory.
[0042] The program may be distributed, for example, by selling, transferring, lending, etc. portable recording media such as DVDs and CD-ROMs on which the program is recorded. Furthermore, the program may be distributed by storing the program in a storage device of a server computer and transferring the program from the server computer to other computers via a network.
[0043] A computer that executes such a program, for example, first stores the program recorded on a portable recording medium or the program transferred from a server computer in its own storage device. Then, when executing a process, the computer reads the program stored in its own recording medium and executes a process according to the read program. As another execution form of the program, the computer may directly read the program from the portable recording medium and execute a process according to the program, or may execute a process according to the received program each time a program is transferred from the server computer to the computer. The above-mentioned process may be executed by a so-called ASP (Application Service Provider) type service that realizes a processing function only by issuing an execution instruction and obtaining a result, without transferring a program from the server computer to the computer. Note that the program in this embodiment includes information used for processing by an electronic computer and equivalent to a program (data that is not a direct command to the computer but has a nature that specifies the processing of the computer, etc.).
[0044] In addition, in this embodiment, a hardware entity is configured by executing a specific program on a computer, but at least a part of the processing contents may be realized by hardware.
Claims
1. an HTML conversion unit for converting a paper in PDF format into an HTML format; A citation anchor detection unit detects citation anchors by setting a plurality of detection patterns related to the presence or absence of insertion of parentheses accompanying the author's name and, if the parentheses have been inserted, the type and insertion position of the parentheses, from the body of the paper converted into HTML format. Paper structure analysis device.
2. 2. The apparatus for analyzing paper structure according to claim 1, and a mapping unit that converts the citation anchor into a format that lists numbers indicated by a range when the citation anchor includes a symbol indicating a range. Paper structure analysis device.
3. The apparatus for analyzing paper structure according to claim 2, a chapter extraction unit that detects a predetermined keyword from the text of the paper converted into HTML format, and when a parenthesized number or a number without parentheses is included immediately before the predetermined keyword, extracts the text of the paper by chapter by setting a line including the parenthesized number or the number without parentheses as the beginning of a chapter, or a line written in a font size that matches the font size of the predetermined keyword as the beginning of a chapter. Paper structure analysis device.
4. The apparatus for analyzing paper structure according to claim 3, A cited document information extraction unit extracts the last chapter of the paper extracted by chapter, and inputs the last chapter to GLOBALID with the corresponding line as the beginning of each document information when the last chapter of the paper extracted by chapter has a line including a number with or without parentheses at the beginning of the line. Paper structure analysis device.
5. A paper structure analysis method executed by a paper structure analysis device, comprising: converting the article in PDF format into HTML format; and detecting citation anchors from the body of the paper converted into HTML format by setting a plurality of detection patterns relating to the presence or absence of insertion of parentheses accompanying the author's name, and, if said parentheses have been inserted, the type and insertion position of said parentheses. Paper structure analysis method.
6. A program for causing a computer to function as the paper structure analysis device according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method and system to detect page number of document
JP2008123528A
Machine translation device and program
JP2009075748A
