A content analysis and extraction method, system and storage medium for drug experimental documents

Through keyword and approximate dictionary table matching technology, the tabular data in drug experimental documents are automatically extracted, which solves the problems of low efficiency and high error rate of table data extraction in the existing technology, and realizes automatic analysis, extraction and organization of different types of tables .

CN114186543BActive Publication Date: 2024-12-13MINGDU ZHIYUN (ZHEJIANG) TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111481771.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-06
Publication Date
2024-12-13
Estimated Expiration
2041-12-06

AI Technical Summary

Technical Problem

In drug experiments, it is difficult for the prior art to efficiently extract and organize tabular data in multiple PDF files, which easily leads to transcription errors and inefficiency, and it is impossible to realize automatic analysis and extraction of data belonging to some keywords in different types of table documents.

Method used

The table content of the drug experiment document is retrieved and matched through keywords, and the approximate words are used to match the approximate words, determine the data format, and obtain the table type according to the data format to automatically extract the data value, which solves the problem that in the existing technology, it can only be based on presets. Problems of template parsing or all parsing.

Benefits of technology

Automatic analysis and extraction of data of designated categories of tables in various types of tables in drug experimental documents is realized, data sorting efficiency is improved, human errors are reduced, and it can be reorganized into new record forms.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114186543B_ABST
    Figure CN114186543B_ABST
Patent Text Reader

Abstract

The present invention discloses a content analysis and extraction method, system and storage medium of a drug experiment document. The method comprises obtaining the first text of the corresponding drug experiment document, searching and matching the contents of each cell of a keyword, and querying the data format to which the keyword belongs if the keyword is matched; otherwise, retrieving the approximate dictionary table for matching, and obtaining the data format to which the corresponding keyword belongs for the matched approximate word; according to the data format, starting from the cell where the keyword or the approximate word is located, querying the data format in each cell in the same column or row, and obtaining the distribution area of ​​the cells having the same data format as the keyword; finally, obtaining the table type and the corresponding data value of each keyword according to the distribution area. The method can realize the analysis and extraction of data under the specified category or keyword of various types of tables in the drug experiment document, and can be used for subsequent rearrangement and induction into a new record table.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of software technology, and in particular to a method, system and storage medium for content analysis and extraction of drug experiment documents. Background Art

[0002] In the process of medical research, whether in the pharmacy or R&D stage, drug synthesis or purchased samples need to be analyzed, including impurities, liquid phase, appearance, protein concentration, insoluble particles, osmotic pressure and other inspection items. The analysis process will use a lot of testing equipment and generate a lot of data. Some of them need to be transcribed by experimenters on the on-site equipment, and some equipment can fully record the original data in the process, but to finally become a usable experimental record result, the experimenter needs to further calculate. At this time, the original data needs to be exported into Excel, PDF and other format documents. Due to compliance requirements, various types of equipment often choose PDF format for transmission, and multiple files need to be transcribed and summarized by experimenters separately, which will cause transcription errors, omissions and other problems. For example, under the traditional experimental steps, when an experimental record uses data in a PDF report, it is necessary to open the PDF report, find multiple data from multiple data, and then transcribe and enter them in the experimental record, which is easy to lead to low efficiency, high error rate and high experimental rework rate. Summary of the invention

[0003] In view of the deficiencies in the prior art, the present invention provides a method for content analysis and extraction of drug experimental documents, comprising the following steps:

[0004] S1, obtaining a first text corresponding to a drug experiment document, searching and matching the contents of each cell of the first text by using keywords, wherein the first text includes a table and data in the table in the drug experiment document;

[0005] S2, if the keyword is matched, then query the data format to which the keyword belongs; otherwise, retrieve the approximate dictionary table, use the approximate words of the keyword in turn for matching, and obtain the data format to which the corresponding keyword belongs for the matched approximate words;

[0006] S3, starting from the cell where the keyword or similar word is located, querying the data formats of the cells below the same column and the cells to the right of the same row according to the data format, and obtaining the distribution area of ​​cells having the same data format as that of the keyword;

[0007] S4, obtaining the table type of the first text according to the distribution area, and determining the cells where the data values ​​of the matched keywords are located according to the table type and obtaining the corresponding data values.

[0008] Preferably, the content analysis and extraction method of the drug experiment document further includes the following steps:

[0009] S5, if the keyword and the similar word are not matched, then retrieve the data format of each keyword, and check whether there are multiple cells in the table that are connected horizontally or vertically in sequence and conform to the same data format;

[0010] S6, if there are multiple cells that are connected in sequence horizontally or vertically and conform to the same data format, then obtain the data of each cell in the row or column; if the data formats in the cells other than the first cell are the same or blank, then obtain the data values ​​and arrangement order of each cell in the row or column;

[0011] S7, obtaining the text in the first cell of the row or column as a post-complement word, using the data values ​​of the remaining cells of the row or column as the corresponding data values ​​of the post-complement word, and establishing a correspondence between the post-complement word and a keyword with the same data format.

[0012] Preferably, the step S7 further comprises: adding the post-complement word into the approximate dictionary table as an approximate word of the keyword with the same data format as the post-complement word.

[0013] Preferably, the table type includes but is not limited to a first table and a second table, the data types in the first table are arranged vertically and the data value cells belonging to each data type are arranged horizontally at the back, and the data types in the second table are arranged horizontally and the data value cells belonging to each data type are arranged vertically at the back.

[0014] Preferably, the step S3 further comprises:

[0015] Among the matched keywords or approximate words, find out the first category keywords or keywords similar to them that are approximate words of the first category keywords, obtain the data format of one or more of the first category keywords or keywords similar to them that are approximate words of the first category keywords, take the cell where the corresponding keyword or approximate word is located as the starting point, query the data format of each cell below the same column and the data format of each cell on the right side of the same row, and obtain the distribution area of ​​cells having the same data format as the keyword or approximate word.

[0016] The present invention also discloses a content analysis and extraction system for drug experiment documents, comprising: a text analysis module, used to obtain a first text corresponding to the drug experiment document, and retrieve and match the contents of each cell of the first text through keywords, wherein the first text includes a table in the drug experiment document and data in the table; a matching module, used to query the data format to which the keyword belongs after matching the keyword, and to retrieve an approximate dictionary table when the keyword is not matched, and to sequentially match the approximate words of the keyword, and to obtain the data format to which the corresponding keyword belongs for the matched approximate words; a distribution analysis module, used to query the data format in each cell below the same column and the data format in each cell on the right side of the same row based on the data format and taking the cell where the keyword or the approximate word is located as the starting point, and to obtain the distribution area of ​​cells having the same data format as the keyword; a data extraction module, used to obtain the table type of the first text based on the distribution area, and to determine the cell where the data value to which each matched keyword belongs is located based on the table type and to obtain the corresponding data value.

[0017] Preferably, the content analysis and extraction system of drug experiment documents also includes: a data format query module, which is used to retrieve the data format of each keyword when no keywords and similar words are matched, and query whether there are multiple cells in the table that are connected horizontally or vertically in sequence and conform to the same data format; a data acquisition module, which is used to obtain the data of each cell in the row or column when there are multiple cells in the row or column that are connected horizontally or vertically in sequence and conform to the same data format; when the data formats in other cells except the first cell are the same or blank, obtain the data values ​​and arrangement order of each cell in the row or column; a post-complement word data module, which is used to obtain the text in the first cell of the row or column as the post-complement word, and the data values ​​of the remaining cells of the row or column as the data values ​​corresponding to the post-complement word, and establish a correspondence between the post-complement word and the keywords with the same data format.

[0018] Preferably, the post-complement word data module is further configured to add the post-complement word into the approximate dictionary table as an approximate word of the keyword with the same data format as the post-complement word.

[0019] The present invention also discloses a device for content analysis and extraction of drug experiment documents, comprising 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 aforementioned method for content analysis and extraction of drug experiment documents when executing the computer program.

[0020] The present invention also discloses a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the aforementioned content analysis and extraction method of drug experiment documents are implemented.

[0021] The content analysis and extraction method and system of the drug experiment document disclosed by the present invention retrieves and matches the contents of each cell of the first text through keywords. If there is no matching keyword, the approximate dictionary table is retrieved, and the approximate words of the keyword are used in turn for matching, and the data format corresponding to the keyword is obtained for the matched approximate words. If there is no match, the approximate words of the keyword are used for matching, and the data format corresponding to the keyword is obtained for the matched approximate words. Then, starting from the cell where the keyword or the approximate word is located, the data format in each cell below the same column and the data format in each cell on the right side of the same row are queried to obtain the distribution area of ​​the cells with the same data format as the keyword, so as to finally determine the table type of the first text according to the obtained distribution area, and query and determine the data values ​​of each matched keyword according to the table type. The existing problem that when extracting table data in PDF drug experiment documents, only specific data in the table can be selectively parsed and obtained according to a preset table template is solved. Or, it can only parse and obtain all the table data in the entire experimental document, and then manually filter some of the items in the parsed table data, but it is impossible to automatically analyze and extract the data belonging to some keywords in different types of table documents, that is, the data under specific categories in the table. It can analyze and extract data under specified categories (keywords) of various types of tables in drug experimental documents, and reorganize and summarize them into new record tables.

[0022] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0024] Figure 1 The present invention is a flowchart of a method for content analysis and extraction of drug experiment documents disclosed in an embodiment.

[0025] Figure 2 Another flowchart of a method for content analysis and extraction of drug experiment documents disclosed in an embodiment is shown.

[0026] Figure 3 This is a specific schematic diagram of step S8 disclosed in an embodiment. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0028] In the present invention, unless otherwise clearly specified and limited, the technical terms or scientific terms used herein shall have the common meanings understood by persons with ordinary skills in the field to which the present invention belongs. The words "first", "second" and similar words used in the patent application specification and claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "an" do not indicate a quantity limitation, but indicate the existence of at least one.

[0029] In the actual drug development process, a lot of testing equipment is used in the analysis process, generating a large amount of data. For example, when an experimenter performs chromatographic analysis on a drug, the equipment will have its original data records, but the chromatograph and other equipment work continuously, and there will be many samples of the project that need to be tested later, so the data needs to be exported into Excel and PDF files to the experimenter's own computer for data processing and calculation, which will generate a lot of PDF files. The experimenter needs to distinguish them according to the project, equipment, sample and other numbers and process each file one by one. Due to compliance requirements, the PDF format will eventually be selected for transmission, and multiple files need to be transcribed by the experimenter separately, which often results in transcription errors and omissions.

[0030] For this purpose, as attached Figure 1 As shown, this embodiment discloses a method, which may specifically include the following steps:

[0031] Step S1, obtaining a first text corresponding to a drug experiment document, searching and matching the contents of each cell of the first text by keywords, wherein the first text includes a table in the drug experiment document and data in the table.

[0032] Specifically, the table contents in the uploaded multiple PDF data documents can be identified and analyzed first, and then transferred to the first text in an editable format, wherein the first text contains the table in the PDF file, the data in the table, and the document ID. The first text can be a file in the form of txt, word, excel, etc. The method for content analysis and extraction of the drug experiment document can be applied to management software such as the pharmaceutical research and development life cycle management system. By uploading the attachment information related to the experiment in the attachment module of the recording unit, the PDF files of the test results can be uploaded in batches in the attachment. Then the contents in the table in the PDF file are parsed, and the page will display the data in the columns or rows such as name, time, peak value, peak value percentage, etc. after the PDF is parsed.

[0033] In some embodiments, it can be determined first whether the PDF data document is a rule document. If the PDF data document is a rule document, the rule document template corresponding to the PDF data document is queried in the rule document library to obtain the keyword set and table type in the rule document template, and each keyword and its corresponding data value are directly extracted from the first text according to the table type and keyword set.

[0034] The table types include but are not limited to a first table and a second table, wherein the data types in the first table are arranged vertically and the data value cells belonging to each data type are arranged horizontally at the back, and the data types in the second table are arranged horizontally and the data value cells belonging to each data type are arranged vertically at the back.

[0035] Specifically, if it is a rule document, the keywords to be extracted in the first text can be directly located according to the keyword set match of the rule document template, and then the cell distribution type of the data value belonging to the first text can be obtained according to the table type of the rule document template, and then the cells where the data values ​​corresponding to the keywords are located can be directly found to extract data.

[0036] In some rule document tables, the table type in which data is arranged horizontally may be converted to a table type in which data is arranged vertically due to the amount of data and the desired presentation effect. For example, the original table type is a first type table in which data is arranged horizontally, but when there are too many data values ​​belonging to some data types, the other data will be horizontally placed in the second column when the horizontal arrangement is used again, which does not conform to the conventional table habits and data presentation effect. At this time, the table may be converted from the first table type to the second table type, so that more data values ​​of the same data type can be presented in the same page table.

[0037] If the pdf data document is a non-regular document, the contents of each cell of the table of the first text are directly searched and matched by keywords.

[0038] Step S2, if a keyword is matched, the data format to which the keyword belongs is queried; otherwise, the approximate dictionary table is retrieved, and each approximate word of the keyword is used for matching in turn, and the data format to which the corresponding keyword belongs is obtained for the matched approximate word.

[0039] Specifically, if a keyword is matched, it is determined whether the cell contains only the keyword or other text information in addition to the keyword. For example, if the keyword is time, and the document contains A time, B time, etc., the name is matched first, and then the keyword is compared by hashCode to determine whether it is the required keyword. If all keywords are matched and no corresponding data is found, the approximate keywords are matched. The approximate keywords are maintained in the program dictionary table and can be added and deleted.

[0040] After matching the keyword, the program needs to record the location of the current keyword, and then in the subsequent parsing, the data at the corresponding position is the keyword data we need. Until the end keyword is parsed. If there is a blank line, you need to compare the upper and lower lines to find where the blank line is, and then exclude the blank line and recalculate the line where the data is located, and then get the key data. If there are special symbols, a set of special character dictionaries can also be stored in the system, and then filter out the special characters during parsing, and then record the keywords. If there is a merged row, it is divided into different cases. If the merged row contains the row where the keyword is located, the entire row of data is taken as the key data. If the merged row is not the row where the keyword is located, recalculate the changes in the row where the relevant keyword is located, and then record the key data under the corresponding row.

[0041] It is best to select the content to be copied according to the user's needs. After confirmation, the data will be automatically recorded in the latest spreadsheet in the current experimental record.

[0042] Step S3, starting from the cell where the keyword or similar word is located, query the data format in the cells below the same column and the data format in the cells on the right side of the same row according to the data format, and obtain the distribution area of ​​cells with the same data format as the keyword.

[0043] In some specific embodiments, the first text table may have multiple table types. For example, the conventional first table and the second table described above, wherein the data types in the first table are arranged vertically and the data value cells belonging to each data type are arranged horizontally at the back, and the data types in the second table are arranged horizontally and the data value cells belonging to each data type are arranged vertically at the back. In the first text table, keywords may include name, time, peak value, peak value percentage, etc., wherein the data formats of the keywords may be different, for example, the data format of the keyword "name" is all text data, and the number of characters contained therein is also within a certain range, such as 2 to 10 characters; the data format of the keyword "time" includes digital and text information; the keyword "peak value" only contains pure digital information; the keyword "peak value percentage" contains digital information and special symbols "%", wherein the numbers are also between 0 and 100, and the data belonging to the keyword is best distinguished. The above is only an example of commonly used keywords and their data formats, and they can be set and updated according to specific keywords and their data in specific applications. In some preferred embodiments, since the recognizability of the data formats described by some keywords varies greatly, for example, the data format to which the keyword "name" belongs is easily confused with other regular cell data and difficult to distinguish, the keywords can be divided into first-category keywords and second-category keywords according to the degree of distinguishability of the data formats to which the keywords belong, wherein the first-category keywords include keywords whose data formats have higher distinguishability, such as peak percentage and other keywords; and the second-category keywords include keywords whose data formats have lower distinguishability, such as name and other keywords.

[0044] In this embodiment, after matching a keyword or an approximate word, the keyword and approximate word database is queried to obtain the data format of one or more of the keywords or approximate words. Based on the obtained data format, the cell where the keyword or approximate word is located is used as the starting point to query the data format of each cell below the same column and the data format of each cell to the right of the same row. When the data format of the data in a cell is consistent with the data format of the keyword or approximate word, it is recorded, and finally the distribution area of ​​cells with the same data format as the keyword is obtained.

[0045] In some preferred embodiments, among the matched keywords or approximate words, find out the first-category keywords or keywords similar to them that are approximate words of the first-category keywords, obtain the data formats of one or more of the first-category keywords or keywords similar to them that are approximate words of the first-category keywords, take the cell where the corresponding keyword or approximate word is located as the starting point, query the data formats of the cells below the same column and the data formats of the cells on the right side of the same row, and obtain the distribution area of ​​cells with the same data format as the keyword or approximate word. Because the data formats of various keywords have different degrees of distinguishability, directly selecting the first-category keywords with higher distinguishability to perform cell data format screening and matching will achieve higher efficiency and accuracy.

[0046] Specifically in this embodiment, this step may further include the following content.

[0047] Determine whether the data formats of cells in the same row except the first cell are the same or blank. If so, obtain the data values ​​and arrangement order of each cell in the row and use them as the data values ​​of the corresponding keyword.

[0048] If the data formats of cells in the same row other than the first cell are different, determine whether the data formats of cells in the same column other than the first cell are the same or blank. If so, obtain the data values ​​and arrangement order of each cell in the column and use them as the data values ​​of the corresponding keyword.

[0049] If the data formats of cells in the same column other than the first cell are also different, the acquisition of the data value to which the keyword belongs is abandoned.

[0050] In a specific embodiment, when the data formats of cells in the same row other than the first cell are different and the data formats of cells in the same column other than the first cell are also different, another matched keyword or approximate word can be replaced to perform another data format judgment in the cell until a matched keyword is obtained that meets the same data format or is a blank in cells in the same row or column other than the first cell. Then, the table type of the first text is determined based on the distribution area of ​​cells with the same data format to which the matched keyword or approximate word belongs. Based on the table type of the first text, the data values ​​in the cells of the matched keywords or approximate words in the same row or column other than the first cell whose data formats are not exactly the same are obtained.

[0051] Step S4, obtaining the table type of the first text according to the distribution area, and determining the cells where the data values ​​of the matched keywords are located according to the table type and obtaining the corresponding data values.

[0052] Specifically, if the cell where the corresponding keyword or approximate word is located is taken as the starting point, and the cells with the same data format as the keyword are all located in the same row as the keyword or approximate word, it indicates that the table is a table with data arranged horizontally, that is, the first table type mentioned above. If the cells with the same data format as the keyword are all located in the same column as the keyword or approximate word, it indicates that the table is a table with data arranged vertically, that is, the second table type mentioned above. After confirming the table type, the cells where the data values ​​of other matching keywords or approximate words are located can be obtained from the corresponding cells according to the table type.

[0053] In this embodiment, if some cells have blank lines or spaces, it is necessary to compare the upper and lower lines to find out where the blank lines are located, and then recalculate the lines where the data is located after excluding the blank lines, and then obtain the key data. If there are special symbols, a set of special character dictionaries is also stored in the system, and then the special characters are filtered out during parsing, and then the keywords are recorded. If there are merged lines, the situation is divided into different cases. If the merged line contains the line where the keyword is located, the entire line of data is taken as the key data. If the merged line is not the line where the keyword is located, the changes in the line where the relevant keyword is located are recalculated, and then the key data under the corresponding line is recorded.

[0054] Specifically in this embodiment, the step of determining the cells where the data values ​​of the matched keywords are located according to the table type and obtaining the corresponding data values ​​also includes:

[0055] Get the same row or column where the data values ​​of each matching keyword are located according to the table type.

[0056] Gets the data format of the data in the cells except the first cell in the same row or column.

[0057] According to the data format of the matching keyword or approximate word in the first cell, the data format of the data in other cells is checked, and the data in the cells with the same data format are used as the data value of the matching keyword or approximate word.

[0058] In a specific embodiment, as shown in the attached Figure 2 As shown, the content analysis and extraction method of the drug experiment document also includes the following steps.

[0059] Step S5, if no keywords and similar words are matched, the data format of each keyword is retrieved to check whether there are multiple cells in the table that are connected horizontally or vertically and conform to the same data format.

[0060] Step S6, if there are multiple cells connected in sequence horizontally or vertically in the same data format, then obtain the data of each cell in the row or column. If the data formats in other cells except the first cell are the same or blank, then obtain the data values ​​and arrangement order of each cell in the row or column.

[0061] Step S7, obtaining the text in the first cell of the row or column as a post-complement word, using the data values ​​of the remaining cells of the row or column as the corresponding data values ​​of the post-complement word, and establishing a corresponding relationship between the post-complement word and keywords with the same data format.

[0062] In this embodiment, the step S7 further includes: adding the post-complement word into the approximate dictionary table as an approximate word of the keyword with the same data format as the post-complement word.

[0063] Due to the differences in experimental objects, experimental equipment and experimental personnel, there are always some slight differences in the keyword descriptions of some experimental documents, making it impossible to completely exhaust the approximate values ​​of the keywords during the initial setting. It is necessary to update and supplement the approximate words of each keyword in the approximate dictionary table according to the specific work documents during the document processing. Therefore, by matching the data formats of some specific approximate words, we can preliminarily determine whether they are approximate words of the preset keywords, thereby completing the real-time supplement and update of the approximate dictionary table.

[0064] In some other embodiments, the following steps may also be included:

[0065] Step S8, dividing the second text into different table areas according to the different document IDs from which the acquired keywords and the corresponding data values ​​come, and entering the keywords and the corresponding data values ​​acquired from each first text recognition into the table areas corresponding to the corresponding documents in a predetermined format.

[0066] In this embodiment, when the data is copied and pasted into the electronic spreadsheet of the second text, it will be segmented according to the file to which the content belongs, and the user will be clearly informed of the document to which each segment of data belongs, so as to facilitate calculation and use. Figure 3 As shown, step S8 also includes the following content.

[0067] Step S81, dividing the second text into different table areas according to the obtained keywords / similar words / supplement words and the different document IDs from which the corresponding data values ​​come.

[0068] Step S82: If keywords are obtained, the keywords and corresponding data values ​​obtained from each first text recognition are respectively entered into the table area corresponding to the corresponding document according to a predetermined format.

[0069] Step S83: if an approximate word is obtained, the approximate word obtained from each first text recognition is replaced with the corresponding keyword, and the corresponding data value is respectively entered into the table area corresponding to the corresponding document in a predetermined format.

[0070] Step S84, if the post-complementary words are obtained, the post-complementary words obtained from the first text recognition and the corresponding keywords are entered into the table area corresponding to the corresponding document in a predetermined format with the corresponding data values. The post-complementary words are words that are identified as being similar to the keywords in the current document parsing process, and need to be displayed in the second text when it is finally presented to prevent recognition errors, so that the processing personnel can confirm the post-complementary words again when processing the second text, and then enter them into the approximate dictionary table as similar words similar to the keywords after confirmation.

[0071] In this embodiment, when recording data, the content of the record book will be analyzed first. If the record book is empty, the data will be filled directly. If there is data in the record book, the data position will be calculated first by the coordinates of the data location and the edge coordinates. After finding the position to be inserted, the coordinates are used to calculate whether the number of rows to be inserted matches the number of remaining rows. If the number of remaining rows is insufficient, a blank row is added. If the number of remaining rows meets the addition requirement, the data is directly added. It is ensured that each insertion of data can be successful. And if multiple selections are made on the data of the pdf, it will be segmented when inserted, segmented by different pdf names, and the data of different pdfs will be segmented and displayed.

[0072] In this embodiment, the content analysis and extraction method of the drug experiment document searches and matches the contents of each cell of the first text through keywords. If there is no matching keyword, the approximate dictionary table is retrieved, and the approximate words of the keyword are used in turn for matching, and the data format corresponding to the keyword is obtained for the matched approximate words. If there is no match, the approximate words of the keyword are used for matching, and the data format corresponding to the keyword is obtained for the matched approximate words. Then, starting from the cell where the keyword or the approximate word is located, the data format in each cell below the same column and the data format in each cell on the right side of the same row are queried to obtain the distribution area of ​​cells with the same data format as the keyword, so as to finally determine the table type of the first text according to the obtained distribution area, and query and determine the data values ​​of each matched keyword according to the table type. The existing problem that when extracting table data in PDF drug experiment documents, only specific data in the table can be selectively parsed and obtained according to the preset table template. Or, it can only parse and obtain all the table data in the entire experimental document, and then manually filter some of the items in the parsed table data, but it is impossible to automatically analyze and extract the data belonging to some keywords in different types of table documents, that is, the data under specific categories in the table. It can analyze and extract data under specified categories (keywords) of various types of tables in drug experimental documents, and reorganize and summarize them into new record tables.

[0073] In another embodiment, a content analysis and extraction system for drug experiment documents is also disclosed, including: a text analysis module, which is used to obtain the first text of the corresponding drug experiment document, and retrieve and match the contents of each cell of the first text through keywords, wherein the first text contains the table and the data in the table in the drug experiment document. A matching module, which is used to query the data format to which the keyword belongs after matching the keyword, and to retrieve the approximate dictionary table when the keyword is not matched, and to match the approximate words of the keyword in turn, and obtain the data format to which the corresponding keyword belongs for the matched approximate words. A distribution analysis module, which is used to query the data format of each cell below the same column and the data format of each cell on the right side of the same row based on the data format and the cell where the keyword or the approximate word is located as the starting point, and obtain the distribution area of ​​cells with the same data format as the keyword. A data extraction module, which is used to obtain the table type of the first text based on the distribution area, and to determine the cell where the data value of each matched keyword belongs based on the table type and obtain the corresponding data value.

[0074] In this embodiment, the content analysis and extraction system of the drug experiment document also includes the following modules: a data format query module, which is used to retrieve the data format of each keyword when no keywords and similar words are matched, and query whether there are multiple cells in the table that are connected horizontally or vertically in sequence and conform to the same data format. A data acquisition module is used to obtain the data of each cell in the row or column when there are multiple cells in the row or column that are connected horizontally or vertically in sequence and conform to the same data format; when the data formats in other cells except the first cell are the same or blank, obtain the data values ​​and arrangement order of each cell in the row or column. A post-complement data module is used to obtain the text in the first cell of the row or column as the post-complement, and the data values ​​of the remaining cells of the row or column as the corresponding data values ​​of the post-complement, and establish a corresponding relationship between the post-complement and the keywords with the same data format.

[0075] In this embodiment, the post-complement word data module is further configured to add the post-complement word into the approximate dictionary table as an approximate word of the keyword with the same data format as the post-complement word.

[0076] The specific functions of the above-mentioned drug experiment document content analysis and extraction system correspond one-to-one to the drug experiment document content analysis and extraction method disclosed in the previous embodiment, so it will not be described in detail here. For details, please refer to the various embodiments of the drug experiment document content analysis and extraction method disclosed in the previous embodiment. It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same and similar parts between the various embodiments can be referred to each other.

[0077] In other embodiments, a content analysis and extraction device for drug experimental documents is also provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, each step of the content analysis and extraction method for drug experimental documents as described in the above embodiments is implemented.

[0078] The content analysis and extraction device of the drug experiment document may include, but not limited to, a processor and a memory. The server may include, but not limited to, a processor and a memory. Those skilled in the art will appreciate that the schematic diagram is merely an example of a server and does not constitute a limitation on the server device. The server device may include more or fewer components than shown in the diagram, or may combine certain components, or different components. For example, the server device may also include input and output devices, network access devices, buses, etc.

[0079] The processor may be a central processing unit (CPU), 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. The general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the server device, and uses various interfaces and lines to connect various parts of the entire server device.

[0080] The memory can be used to store the computer program and / or module, and the processor realizes various functions of the server device by running or executing the computer program and / or module stored in the memory, and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0081] If the content analysis and extraction method of the drug experimental document is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present invention implements all or part of the process in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0082] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

[0083] In conclusion, the above is only a preferred embodiment of the present invention, and all equivalent changes and modifications made according to the scope of the patent application of the present invention should fall within the scope of the patent of the present invention.

Claims

1. A content analysis and extraction method for drug experiment documents, characterized in that: The steps include: S1, obtaining a first text corresponding to a drug experiment document, searching and matching the contents of each cell of the first text by using keywords, wherein the first text includes a table and data in the table in the drug experiment document; S2, if the keyword is matched, then query the data format of the data corresponding to the keyword; otherwise, retrieve the approximate dictionary table, use the approximate words of the keyword to match in turn, and obtain the data format of the data corresponding to the keyword for the matched approximate words; S3, starting from the cell where the keyword or similar word is located, querying the data formats of the cells below the same column and the cells to the right of the same row according to the data format, and obtaining the distribution area of ​​cells having the same data format as the data corresponding to the keyword; S4, obtaining the table type of the first text according to the distribution area, and determining the cells where the data values ​​of the matched keywords are located according to the table type and obtaining the corresponding data values.

2. The content analysis and extraction method of drug experiment documents according to claim 1 is characterized in that: The following steps are also included: S5, if the keyword and the similar word are not matched, then retrieve the data format of each keyword, and check whether there are multiple cells in the table that are connected in sequence horizontally or vertically and conform to the same data format; S6, if there are multiple cells that are connected in sequence horizontally or vertically and conform to the same data format, then obtain the data of each cell in the row or column; if the data formats in the cells other than the first cell are the same or blank, then obtain the data values ​​and arrangement order of each cell in the row or column; S7, obtaining the text in the first cell of the row or column as a post-complement word, using the data values ​​of the remaining cells of the row or column as the corresponding data values ​​of the post-complement word, and establishing a correspondence between the post-complement word and a keyword with the same data format.

3. The content analysis and extraction method of drug experiment documents according to claim 2 is characterized in that: The step S7 further includes: adding the post-complement word into the approximate dictionary table as an approximate word of the keyword with the same data format as the post-complement word.

4. The content analysis and extraction method of drug experiment documents according to claim 3 is characterized in that: The table types include but are not limited to a first table and a second table, wherein the data types in the first table are arranged vertically and the data value cells belonging to each data type are arranged horizontally at the back, and the data types in the second table are arranged horizontally and the data value cells belonging to each data type are arranged vertically at the back.

5. The content analysis and extraction method of drug experimental documents according to any one of claims 1 to 4, characterized in that: The step S3 further comprises: Among the matched keywords or approximate words, find out the first category keywords or keywords similar to them that are approximate words of the first category keywords, obtain the data format of one or more of the first category keywords or keywords similar to them that are approximate words of the first category keywords, take the cell where the corresponding keyword or approximate word is located as the starting point, query the data format of each cell below the same column and the data format of each cell on the right side of the same row, and obtain the distribution area of ​​cells having the same data format as the keyword or approximate word.

6. A content analysis and extraction system for drug experimental documents, characterized in that: include: A text analysis module, used to obtain a first text corresponding to a drug experiment document, and search and match the contents of each cell of the first text by keywords, wherein the first text includes a table and data in the table in the drug experiment document; A matching module is used to query the data format of the data corresponding to the keyword after matching the keyword, and to retrieve the approximate dictionary table when the keyword is not matched, and to use the approximate words of the keyword to match in turn, and to obtain the data format of the data corresponding to the keyword for the matched approximate words; A distribution analysis module is used to query the data formats of the cells below the keyword or the similar word as the starting point according to the data format, and the data formats of the cells on the right of the same row, so as to obtain the distribution area of ​​the cells having the same data format as the data corresponding to the keyword; The data extraction module is used to obtain the table type of the first text according to the distribution area, and determine the cells where the data values ​​of each matched keyword are located according to the table type and obtain the corresponding data values.

7. The content analysis and extraction system for drug experiment documents according to claim 6 is characterized in that: Also includes the following modules: A data format query module is used to retrieve the data format of each keyword when no keyword or similar word is matched, and query whether there are multiple cells connected in sequence horizontally or vertically in the table that conform to the same data format; A data acquisition module, used to acquire the data of each cell in the row or column when there are multiple cells connected in sequence horizontally or vertically in the same data format; when the data formats in other cells except the first cell are the same or blank, acquire the data value and arrangement order of each cell in the row or column; The post-complement word data module is used to obtain the text in the first cell of the row or column as the post-complement word, use the data values ​​of the remaining cells of the row or column as the corresponding data values ​​of the post-complement word, and establish a corresponding relationship between the post-complement word and the keyword with the same data format.

8. The content analysis and extraction system for drug experiment documents according to claim 7 is characterized in that: The post-complement word data module is further configured to add the post-complement word into the approximate dictionary table as an approximate word of the keyword with the same data format as the post-complement word.

9. A device for analyzing and extracting contents of drug experimental documents, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.