Method and device for filling punctuation marks in ancient books

The ancient books are cleaned and trained through neural networks, and the Bi-LSTM model and residual network are used to fill in punctuation marks, which solves the problem of low efficiency and low quality of punctuation filling in ancient books, achieves efficient and accurate punctuation filling in ancient books, and improves the organization of ancient books. efficiency and quality.

CN112199927BActive Publication Date: 2024-09-13GULIAN (BEIJING) DIGITAL MEDIA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011118951.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-19
Publication Date
2024-09-13
Estimated Expiration
2040-10-19

AI Technical Summary

Technical Problem

Existing technology cannot effectively automatically fill in the punctuation marks of ancient books, resulting in low efficiency in organizing ancient books and low punctuation quality, which affects the understanding and inheritance of ancient culture.

Method used

A method based on neural networks is used to clean and train the electronic documents of published ancient books. The Bi-LSTM model and residual network are used to fill in punctuation marks, and the softmax function is used to determine the punctuation marks with the highest probability for filling.

Benefits of technology

It has improved the accuracy and efficiency of automatic punctuation filling in ancient books, saved the time and energy of manual filling, and improved the quality of ancient book sorting.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112199927B
    Figure CN112199927B
Patent Text Reader

Abstract

The present invention discloses a method and device for filling punctuation marks in ancient books, the method comprising: performing data cleaning on original corpus to determine training corpus of neural network; the original corpus comprises electronic version documents of published ancient books; determining the structure of neural network; and, training the neural network based on the training corpus to determine the parameters of the neural network; and, obtaining the result of filling punctuation marks in ancient books based on the determined structure and parameters of the neural network. The present invention can automatically fill punctuation marks in ancient books and improve the efficiency of ancient book sorting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine learning, and in particular to a method and device for filling punctuation marks in ancient books. Background Art

[0002] Punctuation is an important tool for people to understand literature. However, many ancient books and documents originally did not have punctuation, which may prevent readers from truly understanding the true expression of ancient books and documents during the reading process. In order to facilitate people's understanding and learning of ancient books and documents, people began to add punctuation to ancient books and documents manually, that is, to fill in modern punctuation marks to ancient books and documents without punctuation. However, the number of ancient books is huge, and manual annotation is time-consuming and laborious; and the punctuation ability and quality of the people involved in the annotation of ancient books are uneven, and the annotation quality may be low. These directly affect the work of sorting out ancient books, and will also affect the understanding and inheritance of ancient culture and documents by future generations.

[0003] So far, people have conducted some research on adding punctuation marks to speech recognition results, but there are no reports on filling punctuation marks in ancient books.

[0004] CN110688822A discloses a method, device and medium for adding punctuation marks. The method comprises: obtaining a text to be added with punctuation marks; inputting the text to be added with punctuation marks into a punctuation mark annotation model trained by transfer learning, using the punctuation mark annotation model to predict the position of the punctuation marks to be added and the corresponding punctuation mark type in the text to be added with punctuation marks, and annotating the word units before and after the position to be added with punctuation marks using a label combination corresponding to the punctuation mark type, and outputting the corresponding punctuation mark annotation result; according to the punctuation mark annotation result, adding corresponding label symbols to the text to be added with punctuation marks; wherein the punctuation mark annotation model includes a pre-trained language sub-model, and the language sub-model is a neural network model with a time series. This patent document is suitable for adding punctuation marks to speech recognition results, and does not involve the addition of punctuation marks to ancient books.

[0005] CN107767870A discloses a method, device and computer equipment for adding punctuation marks. It includes: encoding each Chinese character in the text to be recognized, generating a feature vector of the Chinese character according to the encoding of the Chinese character, the part of speech of the Chinese character and the boundary of the Chinese character; inputting the feature vector of the Chinese character into a bidirectional long short-term memory model, generating the input feature of the Chinese character through the bidirectional long short-term memory model; inputting the input feature of the Chinese character into a deep neural network model, obtaining the probability corresponding to the addition result of each punctuation mark after the Chinese character; adding punctuation marks after the Chinese character according to the highest probability addition result. This patent document is applicable to the addition of punctuation marks in the results of speech information recognition, and does not involve the addition of punctuation marks in ancient books.

[0006] CN110674629A discloses a punctuation mark annotation model and its training method, device, and storage medium. The method includes: obtaining a first training corpus containing punctuation marks; inputting the first training corpus into a preset neural network model with a time series for pre-training to obtain a pre-trained language sub-model; obtaining a second training corpus containing punctuation marks, removing punctuation marks from the second training corpus, and marking corresponding label combinations at the word segmentation units before and after the removed punctuation marks to obtain a third training corpus; inputting the third training corpus into the initial punctuation mark annotation model for transfer learning training to obtain a trained punctuation mark annotation model, wherein the punctuation mark annotation model includes a pre-trained language sub-model, and the third training corpus includes a punctuation-free text set and a label sequence set. This patent document is also suitable for the annotation of punctuation marks for speech information recognition results.

[0007] Therefore, it is necessary to provide an automatic and highly accurate method for filling punctuation marks in ancient books. Summary of the invention

[0008] The exemplary embodiments disclosed herein are directed to overcoming the above-mentioned and / or other problems in the prior art.

[0009] Therefore, according to one aspect of the present invention, a method for filling punctuation marks in ancient books is provided, comprising:

[0010] Performing data cleaning on the original corpus to determine the training corpus for the neural network; the original corpus includes electronic documents of published ancient books;

[0011] Determine the structure of the neural network; and,

[0012] Training the neural network based on the training corpus and determining the parameters of the neural network; and,

[0013] The punctuation filling results of ancient books are obtained based on the determined neural network structure and parameters.

[0014] According to the ancient book punctuation filling method of the present invention, preferably, data cleaning is performed on the original corpus, and determining the training corpus of the neural network includes:

[0015] Remove special characters without specific meanings in the original corpus, convert uncommon words in the original corpus from string representation to Chinese character representation, remove texts in the original corpus that contain less than a set number of periods or commas, and determine the training corpus for the neural network.

[0016] According to the ancient book punctuation filling method of the present invention, preferably, determining the structure of the neural network includes:

[0017] Determine the neural network model as Bi-LSTM, and use the square root function to adjust the output of each layer of the neural network; and,

[0018] Set up the residual network of the neural network.

[0019] According to the ancient book punctuation filling method of the present invention, preferably, the neural network is trained based on the training corpus, and the parameters of the neural network are determined including:

[0020] Map the training corpus into word vectors of a set length;

[0021] Input the word vector into the neural network to obtain a first output result; and,

[0022] Adjusting the dimension of the first output result to a set dimension to obtain a second output result; and,

[0023] The second output result is used as the input of the softmax function, and the punctuation point with the highest probability of the softmax function output is determined as the training result;

[0024] The loss function value is determined based on the training results, and the parameters of the neural network are determined based on the loss function value.

[0025] According to another aspect of the present invention, a device for filling punctuation marks in ancient books is provided, comprising:

[0026] A training corpus determination unit is used to perform data cleaning on the original corpus and determine the training corpus for the neural network;

[0027] a neural network structure determination unit, used to determine the structure of the neural network; and,

[0028] A neural network training unit, which trains the neural network based on the training corpus and determines the parameters of the neural network; and

[0029] The filling result acquisition unit acquires the ancient book punctuation filling result based on the determined neural network structure and parameters.

[0030] According to the ancient book punctuation filling device of the present invention, preferably, the training corpus determination unit comprises:

[0031] Special character removal unit, used to remove special characters without specific meaning in the original corpus;

[0032] A Chinese character conversion unit, used to convert uncommon characters in the original corpus from string representation to Chinese character representation;

[0033] The invalid text removal unit is used to remove text in the original corpus that contains less than a set number of periods or commas.

[0034] According to the ancient book punctuation filling device of the present invention, preferably, the neural network structure determination unit includes:

[0035] A neural network model determination unit, used to determine that the neural network model is Bi-LSTM, and to adjust the output of each layer of the neural network using a square root function;

[0036] The residual network setting unit is used to set the residual network of the neural network.

[0037] According to the ancient book punctuation filling device of the present invention, preferably, the neural network training unit comprises:

[0038] A word vector setting unit, used for mapping the training corpus into a word vector of a set length;

[0039] A first output result obtaining unit is used to input the word vector into the neural network to obtain a first output result; and

[0040] A second output result obtaining unit is used to adjust the dimension of the first output result to a set dimension to obtain a second output result; and

[0041] The training result determination unit is used to use the second output result as the softmax function input, and determine the punctuation point with the highest probability of the softmax function output as the training result.

[0042] According to another aspect of the present invention, a computing device is provided, including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the ancient book punctuation filling method as described above when executing the instructions.

[0043] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions, and when the instructions are executed by a processor, the steps of the method for filling punctuation marks in ancient books as described above are implemented.

[0044] The present invention adopts a neural network based on the fairseq framework to automatically fill in punctuation marks in ancient books by means of artificial intelligence, thereby saving manpower and material resources for manually filling in punctuation marks in ancient books and improving the efficiency and accuracy of ancient book sorting. BRIEF DESCRIPTION OF THE DRAWINGS

[0045] The present invention may be better understood by describing exemplary embodiments disclosed in the present invention in conjunction with the accompanying drawings, in which:

[0046] Figure 1 is a schematic structural block diagram of a computing device of the present invention;

[0047] Figure 2 It is a schematic flow chart of a method for filling punctuation marks in ancient books according to the present invention;

[0048] Figure 3 It is a schematic diagram of a device for filling punctuation marks in ancient books according to the present invention. DETAILED DESCRIPTION

[0049] The specific embodiments of the present invention will be described below. It should be noted that in the specific description of these embodiments, in order to be concise and clear, this specification cannot provide a detailed description of all the features of the actual embodiments. It should be understood that in the actual implementation of any embodiment, just as in the process of any engineering project or design project, in order to achieve the specific goals of the developer and to meet system-related or business-related restrictions, various specific decisions are often made, and this will also change from one embodiment to another. In addition, it can also be understood that although the efforts made in this development process may be complex and lengthy, for ordinary technicians in the field related to the content disclosed by this disclosure, some changes in design, manufacturing or production based on the technical content disclosed in this disclosure are just conventional technical means, and should not be understood as insufficient content of this disclosure.

[0050] Unless otherwise defined, the technical or scientific terms used in the claims and the specification shall have the usual meaning understood by persons with ordinary skills in the technical field to which the present disclosure belongs. The words "first", "second" and similar words used in the patent application specification and the claims of the present disclosure do not indicate any order, quantity or importance, but are only used to distinguish different components. Words such as "one" or "one" do not indicate a quantitative limitation, but indicate the existence of at least one. Words such as "include" or "comprise" and similar words mean that the elements or objects appearing before "include" or "comprise" include the elements or objects listed after "include" or "comprise" and their equivalent elements, and do not exclude other elements or objects. Words such as "connect" or "connected" and similar words are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.

[0051] Ancient books refer to books that were not printed using modern printing technology. The traditional classification of ancient books uses four categories: classics, history, philosophy, and collections, and the four categories are further divided into 44 categories. Punctuation marking for ancient books is different from the punctuation marking of the text of the speech information recognition result described in the prior art. This is because ancient books not only have no punctuation marks, but also need to consider that most of the characters in ancient books are not commonly used simplified characters, for example, uncommon characters And some special characters need to be considered, such as "◆".

[0052] After research and experiments, the present invention found that the digital version (electronic version) of published ancient books can be used as training data, and the deep learning fairseq model can be used for training, and then a neural network can be used through artificial intelligence to automatically fill in punctuation in the ancient books and improve the accuracy of punctuation filling.

[0053] Figure 1 The schematic structural block diagram of a computing device of the present invention is shown. The components of the computing device 100 include but are not limited to a memory 110 and a processor 120. The processor 120 is connected to the memory 110 via a bus 130, and the database 150 is used to store data.

[0054] The computing device 100 also includes an access device 140 that enables the computing device 100 to communicate via one or more networks 160. Examples of these networks 160 include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 140 may include one or more of any type of network interface (e.g., a network interface card (NIC)) that is wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0055] In one embodiment of the present specification, the above components of the computing device 100 and Figure 1 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 1 The structural block diagram of the computing device shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art may add or replace other components as needed.

[0056] The computing device 100 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 100 may also be a mobile or stationary server.

[0057] The processor 120 may execute Figure 2 Steps in the method shown.

[0058] Figure 2 It is a schematic flow chart showing a method for filling punctuation marks in ancient books according to the present invention, including steps 201 to 204.

[0059] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.

[0060] Step 201: Perform data cleaning on the original corpus to determine the training corpus for the neural network.

[0061] In certain implementation schemes, data cleaning is performed on the original corpus to remove special characters without specific meanings in the original corpus.

[0062] The original corpus includes electronic documents of published ancient books. That is, the original corpus involves electronic documents of the four categories of classics, histories, philosophers, and anthologies that have been published.

[0063] Remove useless special characters such as "◆" that have no specific meaning to reduce the interference of the determined training corpus on the neural network model.

[0064] Convert the representation of uncommon characters in the original corpus from string representation to Chinese character representation. For example, in the electronic documents of published ancient books, The representation form of this uncommon character is: <font type="extra-large character 2">𢄙;< / font>, which can be converted to Chinese characters after being processed using the unescape module in python

[0065] Remove the text in the original corpus that contains fewer than the set number of full stops or commas. For example, remove the first 100 sentences in the electronic XML documents of published ancient books that contain fewer than 5 commas or full stops.

[0066] In this way, the training corpus of the neural network is determined.

[0067] Step 202: Determine the structure of the neural network.

[0068] In some embodiments, according to the essence of the ancient book annotation as sequence annotation, the neural network model is determined to be a Bi-LSTM model. The Bi-LSTM model is implemented based on the Fairseq framework. The LSTM model is short for Long Short Term Memory (long short-term memory network). The LSTM solves the problem of long-term dependence in the input text sequence. Bi-LSTM is composed of two LSTMs with non-shared parameters in each layer of the network, one for processing the forward sequence and one for processing the reverse sequence, and then the results of the two LSTMs obtained are concatenated as the final output. The input and output sequences are of equal length, and the punctuation with the highest probability in the output result is determined as the annotation result.

[0069] In the present invention, the number of layers of the neural network can be set to 6 layers. And, the output of each layer of the neural network is adjusted using the square root function, and the output result of each layer of the neural network is normalized to offset the change in variance and reduce the influence of the previous layer.

[0070] In addition, a residual network of the neural network is set, that is, the input and output of each layer of the neural network are connected in a skip layer manner to prevent problems such as gradient disappearance or explosion in the neural network and enhance the generalization ability.

[0071] In this way, the structure of the neural network is determined.

[0072] Step 203: Train the neural network based on the training corpus to determine the parameters of the neural network.

[0073] In certain embodiments, the training corpus is mapped to a word vector of a set length, that is, each word in a sentence in the training corpus is mapped to a word vector of a set length. The set length may be 512. The word vector is input into a neural network to obtain a first output result, that is, the word vector is input into the neural network of the determined structure, so that the output of the neural network is determined as the first output result. And, the dimension of the first output result is adjusted to the set dimension to obtain a second output result. For example, the dimension of the first output result is adjusted to the dimension of a punctuation vocabulary. For example, the dimension of the punctuation vocabulary may be 7, and the punctuation vocabulary includes punctuation marks corresponding to ancient book annotations: question mark, exclamation mark, period, colon, semicolon, comma, and semicolon. In this way, the second output result can be conveniently mapped to each element of the punctuation vocabulary. And, the second output result is input as a softmax function, so that the probability of occurrence of all punctuation marks at each position of the second output result, the punctuation mark corresponding to the maximum probability in each position, that is, the punctuation mark with the maximum probability output by the softmax function can be determined as a training result. The neural network is trained by adjusting the learning rate and discard value of the neural network, and the loss function value is determined based on the training results. When the loss function value meets the set requirements, the parameters of the neural network are determined.

[0074] In certain embodiments, after determining the structure and parameters of the neural network, after removing the training corpus from the electronic version of the published ancient books, the test corpus can be determined according to the method for obtaining the training corpus, and the neural network can be tested using the test corpus, and the F1 value can be determined based on the accuracy and recall of the test. For example, the F1 value determined according to this embodiment can reach 0.76.

[0075] Step 204: Obtain the ancient book punctuation filling result based on the determined neural network structure and parameters.

[0076] In the embodiment of the present invention, after the structure and parameters of the neural network are determined, the electronic version of the ancient book to be annotated is input into the neural network, so that the output of the neural network is determined as the first output result; the dimension of the first output result is adjusted to the set dimension 7 to obtain the second output result; the second output result is used as the softmax function input, so that the probability of all punctuation marks appearing at each position of the second output result can be obtained, and the punctuation mark corresponding to the highest probability in each position, that is, the punctuation mark with the highest probability output by the softmax function, is determined as the ancient book punctuation filling result. In this way, the ancient book punctuation filling result can be automatically obtained, replacing the manual punctuation filling.

[0077] Corresponding to the above method, this specification also provides an embodiment of a device for filling punctuation marks in ancient books, Figure 3FIG. 2 shows a schematic diagram of a device for filling punctuation marks in ancient books according to the present invention. Figure 3 As shown, the ancient book punctuation filling device 300 includes:

[0078] A training corpus determination unit 301 is used to perform data cleaning on the original corpus to determine the training corpus for the neural network;

[0079] A neural network structure determining unit 302, used to determine the structure of the neural network; and

[0080] A neural network training unit 303 trains the neural network based on the training corpus to determine the parameters of the neural network; and

[0081] The filling result acquisition unit 304 acquires the ancient book punctuation filling result based on the determined structure and parameters of the neural network.

[0082] In some embodiments, the training corpus determination unit 301 may include:

[0083] Special character removal unit, used to remove special characters without specific meaning in the original corpus;

[0084] A Chinese character conversion unit, used to convert uncommon characters in the original corpus from string representation to Chinese character representation;

[0085] The invalid text removal unit is used to remove text in the original corpus that contains less than a set number of periods or commas.

[0086] In some embodiments, the neural network structure determination unit 302 may include:

[0087] A neural network model determination unit, used to determine that the neural network model is Bi-LSTM, and to adjust the output of each layer of the neural network using a square root function;

[0088] The residual network setting unit is used to set the residual network of the neural network.

[0089] In some embodiments, the neural network training unit 303 may include:

[0090] A word vector setting unit, used for mapping the training corpus into a word vector of a set length;

[0091] A first output result obtaining unit is used to input the word vector into the neural network to obtain a first output result; and

[0092] A second output result obtaining unit is used to adjust the dimension of the first output result to a set dimension to obtain a second output result; and

[0093] The training result determination unit is used to use the second output result as the softmax function input, and determine the punctuation point with the highest probability of the softmax function output as the training result.

[0094] The present invention also provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the method for filling punctuation marks in ancient books as described above.

[0095] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the above-mentioned ancient book punctuation filling method belong to the same concept, and the details not described in detail in the technical scheme of the storage medium can be referred to the description of the technical scheme of the above-mentioned ancient book punctuation filling method.

[0096] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0097] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may 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.

[0098] In summary, according to the exemplary embodiment, a neural network is used based on the fairseq framework to automatically fill in punctuation marks in ancient books through artificial intelligence, thereby saving manpower and material resources for manually filling in punctuation marks in ancient books and improving the efficiency of ancient book sorting.

[0099] It should be noted that, in the apparatus and method disclosed in the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent solutions of the present invention. In addition, the steps of performing the above series of processes can naturally be performed in chronological order according to the order of description, but do not necessarily need to be performed in chronological order. Some steps can be performed in parallel or independently of each other.

[0100] The above specific implementations do not constitute a limitation on the scope of protection disclosed by the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the scope of protection of the present invention.

Claims

1. A method for filling punctuation marks in ancient books, comprising: Step 201: clean the original corpus and determine the training corpus for the neural network; The original corpus includes electronic documents of published ancient books; wherein, data cleaning is performed on the original corpus to determine the training corpus of the neural network including: Remove special characters without specific meanings in the original corpus, convert uncommon words in the original corpus from string representation to Chinese character representation, remove texts in the original corpus that contain less than a set number of periods or commas, and determine the training corpus for the neural network; Step 202: Determine the structure of the neural network; wherein determining the structure of the neural network includes: Determine the neural network model as Bi-LSTM, and use the square root function to adjust the output of each layer of the neural network; and, Set up the residual network of the neural network; that is, skip the input and output of each layer of the neural network to prevent the gradient disappearance or explosion problem of the neural network and enhance the generalization ability; as well as, Step 203: training the neural network based on the training corpus and determining the parameters of the neural network; wherein training the neural network based on the training corpus and determining the parameters of the neural network includes: Mapping the training corpus into a word vector of a set length, wherein each word in a sentence in the training corpus is mapped into a word vector of the set length; Input the word vector into the neural network to obtain a first output result; and, Adjusting the dimension of the first output result to the dimension of the punctuation vocabulary to obtain a second output result; and, The second output result is used as the input of the softmax function, and the punctuation point corresponding to the maximum probability of all punctuation points at each position of the softmax function output result is determined as the training result; Determine the loss function value based on the training result, and determine the parameters of the neural network based on the loss function value; After determining the structure and parameters of the neural network, after removing the training corpus from the electronic version of the published ancient books, the test corpus is determined according to the method of obtaining the training corpus, and the neural network is tested using the test corpus; as well as, Step 204: Obtain the ancient book punctuation filling result based on the determined neural network structure and parameters.

2. A device for filling punctuation marks in ancient books, comprising: A training corpus determination unit is used to perform data cleaning on the original corpus and determine the training corpus for the neural network; The original corpus includes electronic documents of published ancient books; wherein, data cleaning is performed on the original corpus to determine the training corpus of the neural network including: Remove special characters without specific meanings in the original corpus, convert uncommon words in the original corpus from string representation to Chinese character representation, remove texts in the original corpus that contain less than a set number of periods or commas, and determine the training corpus for the neural network; The neural network structure determination unit is used to determine the structure of the neural network; wherein determining the structure of the neural network includes: Determine the neural network model as Bi-LSTM, and use the square root function to adjust the output of each layer of the neural network; and, Set up the residual network of the neural network; that is, skip the input and output of each layer of the neural network to prevent the gradient vanishing or exploding problems of the neural network and enhance the generalization ability; and, The neural network training unit trains the neural network based on the training corpus and determines the parameters of the neural network; wherein the training of the neural network based on the training corpus and determining the parameters of the neural network includes: Mapping the training corpus into a word vector of a set length, wherein each word in a sentence in the training corpus is mapped into a word vector of the set length; Input the word vector into the neural network to obtain a first output result; and, Adjusting the dimension of the first output result to the dimension of the punctuation vocabulary to obtain a second output result; and, The second output result is used as the input of the softmax function, and the punctuation point corresponding to the maximum probability of all punctuation points at each position of the softmax function output result is determined as the training result; Determine the loss function value based on the training result, and determine the parameters of the neural network based on the loss function value; After determining the structure and parameters of the neural network, after removing the training corpus from the electronic version of the published ancient books, the test corpus is determined according to the method of obtaining the training corpus, and the neural network is tested using the test corpus; as well as, The filling result acquisition unit acquires the ancient book punctuation filling result based on the determined neural network structure and parameters.

3. The device for filling punctuation marks in ancient books according to claim 2, wherein: The training corpus determination unit includes: Special character removal unit, used to remove special characters without specific meaning in the original corpus; A Chinese character conversion unit, used to convert uncommon characters in the original corpus from string representation to Chinese character representation; The invalid text removal unit is used to remove text in the original corpus that contains less than a set number of periods or commas.

4. The device for filling punctuation marks in ancient books according to claim 2, wherein: The neural network structure determination unit includes: A neural network model determination unit, used to determine that the neural network model is Bi-LSTM, and to adjust the output of each layer of the neural network using a square root function; The residual network setting unit is used to set the residual network of the neural network.

5. The device for filling punctuation marks in ancient books according to claim 2, wherein: The neural network training unit includes: A word vector setting unit, used for mapping the training corpus into a word vector of a set length; A first output result obtaining unit is used to input the word vector into the neural network to obtain a first output result; and A second output result obtaining unit is used to adjust the dimension of the first output result to the dimension of the punctuation word list to obtain a second output result; and The training result determination unit is used to use the second output result as the softmax function input, and determine the punctuation point corresponding to the maximum probability of occurrence of all punctuation points at each position of the softmax function output result as the training result.

6. A computing device comprising a memory, a processor, and computer instructions stored in the memory and executable on the processor, characterized in that: When the processor executes the instructions, the steps of the method according to claim 1 are implemented.

7. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the method according to claim 1 are implemented.