Method and device for converting traditional and simplified Chinese characters in ancient books

By using methods such as double array dictionary tree and word disambiguation conversion in the conversion of traditional Chinese characters in ancient books, the conversion results and labels are determined, which solves the problems of inaccurate conversion and heavy manual proofreading workload in the existing technology, and improves the conversion accuracy. and provides auxiliary information to reduce manual verification.

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

Patent Information

Application Number
CN202011257485.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-12
Publication Date
2024-09-20
Estimated Expiration
2040-11-12

AI Technical Summary

Technical Problem

The existing methods for converting traditional Chinese characters into simplified Chinese characters in ancient books have problems such as inaccurate conversion and heavy manual proofreading workload, and lack of auxiliary information to reduce the need for manual verification.

Method used

By determining the traditional and simplified conversion database of ancient Chinese characters, we obtain the data to be converted and use a rule-based conversion method. We use methods such as double array dictionary tree and word disambiguation conversion to determine the conversion results and labels. We output the conversion results and labels in JSON format and provide manual verification. auxiliary information.

Benefits of technology

It improves the accuracy of conversion results, reduces the workload of manual verification, and reduces the professional knowledge requirements of editors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112270201B
    Figure CN112270201B
Patent Text Reader

Abstract

The present invention discloses a method and device for converting traditional and simplified Chinese characters in ancient books, wherein the method comprises: determining a traditional and simplified conversion database for ancient Chinese characters; obtaining data to be converted, determining a conversion result and a conversion label based on the traditional and simplified conversion database for ancient Chinese characters and a rule-based conversion method; and outputting the conversion result and the conversion label. The present invention determines the conversion result by combining the context of the traditional Chinese character string to be converted, thereby improving the accuracy of the conversion result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of traditional and simplified Chinese character conversion, and in particular to a method and device for converting traditional and simplified Chinese characters in ancient books. Background Art

[0002] The Chinese culture has a long history, and a large number of ancient books have been produced in the long historical period. Although there are many Chinese character traditional-simplified conversion systems or software on the market, these systems cannot meet the application needs of ancient book publishing. The existing traditional-simplified conversion method of ancient Chinese characters only converts Chinese characters one by one, which may result in inaccurate conversion; and the converted ancient book texts still need manual proofreading, but the existing simplified-traditional conversion method does not provide auxiliary information for manual proofreading, and each word in the converted text needs to be proofread, which is a large workload and requires high professional knowledge of editors.

[0003] CN108108337A discloses a method and device for converting between simplified and traditional Chinese characters. The method comprises: receiving a command input by a user; determining a first encoding of the character according to a first glyph of the character; querying a character library according to the first encoding of the character to obtain a second encoding of the character; and displaying a second glyph of the character according to the second encoding of the character. The first glyph is a simplified glyph, and the second glyph is a traditional glyph, or the first glyph is a traditional glyph, and the second glyph is a simplified glyph. This patent document is generally used in typesetting software or online web pages.

[0004] CN1349184A discloses a real-time interchange system for traditional Chinese characters and simplified Chinese characters. It includes a reading mechanism for distinguishing traditional Chinese characters or simplified Chinese characters; a traditional Chinese character code calculation mechanism for calculating the index value of a traditional Chinese character using a position function; a traditional Chinese character font image library; a simplified Chinese character code calculation mechanism for calculating the index value of a traditional Chinese character in a font image library using a position function; a simplified Chinese character font image library for storing simplified Chinese font images; and an interchange font index exchange mechanism. This patent document is mainly used for the interchange between traditional Chinese characters and simplified Chinese characters in website information products.

[0005] Therefore, it is necessary to provide an improved method for converting traditional and simplified Chinese characters in ancient books. Summary of the invention

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

[0007] Therefore, according to one aspect of the present invention, a method for converting traditional and simplified Chinese characters in ancient books is provided, comprising:

[0008] Determine the database for converting traditional and simplified Chinese characters from ancient books;

[0009] Obtaining data to be converted, and determining a conversion result and a conversion label based on a traditional-simplified Chinese character conversion database and a rule-based conversion method; and,

[0010] Output the conversion results and conversion labels.

[0011] According to the method for converting traditional Chinese characters into simplified Chinese characters in ancient books of the present invention, preferably, determining the database for converting traditional Chinese characters into simplified Chinese characters in ancient books comprises:

[0012] The Chinese character CJK basic set, CJK A character set and characters extracted from the Chinese classic ancient books database are determined as the traditional and simplified Chinese character conversion database.

[0013] According to the method for converting traditional and simplified Chinese characters in ancient books of the present invention, preferably, the step of obtaining the data to be converted and determining the conversion result and the conversion label based on the traditional and simplified Chinese character conversion database and the rule-based conversion method comprises:

[0014] Get the traditional Chinese string to be converted in plain text format and encapsulate it in JSON format;

[0015] The conversion result and conversion label are determined based on the search in the ancient Chinese character traditional-simplified conversion database. When the traditional Chinese character in the traditional character string to be converted corresponds to multiple simplified Chinese characters in the ancient Chinese character traditional-simplified conversion database, the conversion result and conversion label are determined according to the double-array dictionary tree search method and a method selected from among word disambiguation conversion, default target conversion and homograph conversion.

[0016] According to the method for converting traditional and simplified Chinese characters in ancient books of the present invention, preferably, the output conversion result and conversion label include:

[0017] Encapsulate the conversion results in JSON format and display the conversion results and conversion labels.

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

[0019] The ancient Chinese character traditional-simplified conversion database determination unit is used to determine the ancient Chinese character traditional-simplified conversion database;

[0020] A conversion result and conversion label determination unit, used to obtain data to be converted, determine the conversion result and conversion label based on the ancient Chinese character traditional and simplified conversion database and the rule-based conversion method; and,

[0021] The conversion result and conversion label output unit is used to output the conversion result and the conversion label.

[0022] According to the ancient book punctuation filling device of the present invention, preferably, determining the ancient Chinese character traditional and simplified conversion database comprises:

[0023] The Chinese character CJK basic set, CJK A character set and characters extracted from the Chinese classic ancient books database are determined as the traditional and simplified Chinese character conversion database.

[0024] According to the ancient book punctuation filling device of the present invention, preferably, the conversion result and conversion label determination unit includes:

[0025] The to-be-converted data acquisition unit is used to acquire the traditional Chinese character string in plain text format to be converted and encapsulate it in JSON format;

[0026] The conversion determination unit is used to determine the conversion result and conversion label based on the search of the ancient Chinese character traditional-simplified conversion database. When the traditional Chinese character in the traditional character string to be converted corresponds to multiple simplified Chinese characters in the ancient Chinese character traditional-simplified conversion database, the conversion result and conversion label are determined according to the double-array dictionary tree search method and one of the methods based on word disambiguation conversion, default target conversion and homograph conversion.

[0027] According to the device for converting traditional and simplified Chinese characters in ancient books of the present invention, preferably, the conversion result is packaged in JSON format.

[0028] According to another aspect of the present invention, there is provided a computing device including a memory, a processor, and computer instructions stored in the memory and executable on the processor, wherein when the processor executes the instructions, the steps of the method for converting traditional and simplified Chinese characters in ancient books as described above are implemented.

[0029] 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 converting traditional and simplified Chinese characters as described above are implemented.

[0030] The present invention determines the conversion result by combining the context of the traditional character string to be converted, thereby improving the accuracy of the conversion result, and performs manual verification according to the determined conversion label, without the need to perform manual verification on all the conversion results, providing auxiliary information for manual verification, and reducing the workload of manual verification. Furthermore, when the traditional Chinese character in the traditional character string to be converted corresponds to multiple simplified Chinese characters in the traditional-simplified conversion database of ancient Chinese characters, the conversion result and the conversion label are determined according to the double-array dictionary tree search method and based on one of the word disambiguation conversion, default target conversion and homograph conversion. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0032] Figure 1 What is shown is a schematic structural block diagram of a computing device according to an embodiment disclosed in the present invention;

[0033] Figure 2 What is shown is a schematic flow chart of a method for converting traditional and simplified Chinese characters in ancient books according to an embodiment disclosed in the present invention;

[0034] Figure 3 What is shown is a schematic diagram of a device for converting traditional and simplified Chinese characters in ancient books according to an embodiment disclosed in the present invention. DETAILED DESCRIPTION

[0035] 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 the present invention, some changes such as design, manufacturing or production based on the technical content disclosed by the present invention are just conventional technical means, and should not be understood as the content of the present invention is insufficient.

[0036] 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 invention belongs. The words "first", "second" and similar words used in the patent application specification and the claims of the present invention do not indicate any order, quantity or importance, but are only used to distinguish different components. "One" or "one" and other similar words do not indicate a quantitative limitation, but indicate the existence of at least one. "Include" or "comprises" and other similar words mean that the elements or objects appearing before "include" or "comprises" include the elements or objects listed after "include" or "comprises" and their equivalent elements, and do not exclude other elements or objects. "Connected" or "connected" and other similar words are not limited to physical or mechanical connections, nor are they limited to direct or indirect connections.

[0037] Figure 1 The structure block diagram of a computing device 100 according to an embodiment of the present specification 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.

[0038] 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 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)) whether 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.

[0039] 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 computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0040] 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.

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

[0042] Figure 2 A schematic flow chart of a method for converting traditional and simplified Chinese characters in ancient books according to an embodiment of the present application is shown, including steps 201 to 203.

[0043] 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.

[0044] Step 201: Determine the traditional-simplified Chinese character conversion database of ancient books.

[0045] In the embodiment of the present application, the CJK basic set of Chinese characters, the CJK A character set and the characters extracted from the Chinese classic ancient books library are determined as the ancient Chinese character traditional and simplified conversion database. The data in the database represents the correspondence between traditional and simplified Chinese characters, and the database is stored in the form of an Excel file.

[0046] Step 202: Obtain the data to be converted, and determine the conversion result and conversion label based on the ancient Chinese character traditional-simplified conversion database and according to the rule-based conversion method.

[0047] In an embodiment of the present application, a traditional Chinese character string in plain text format to be converted is obtained and encapsulated in JSON format.

[0048] In an embodiment of the present application, the conversion result and conversion label are determined by searching in the ancient Chinese character traditional-simplified conversion database. For the traditional Chinese character string to be converted, the conversion result is determined by searching for each character in the ancient Chinese character traditional-simplified conversion database. When there is no corresponding simplified Chinese character for the traditional character in the ancient Chinese character traditional-simplified conversion database, the character itself is the final conversion result, and the first conversion label is determined; when the corresponding simplified Chinese character for the traditional character in the ancient Chinese character traditional-simplified conversion database is the same as the character, the character itself is the final conversion result, and the second conversion label is determined; when there is a unique corresponding simplified Chinese character for the traditional character in the ancient Chinese character traditional-simplified conversion database, the simplified Chinese character is the final conversion result, and the third conversion label is determined.

[0049] In an embodiment of the present application, when there are multiple corresponding simplified Chinese characters for the traditional Chinese characters in the traditional Chinese character string to be converted, the conversion result and conversion label are determined according to the double-array trie search method and one method selected from word disambiguation conversion, default target conversion, and homograph conversion.

[0050] In an embodiment of the present application, when there are multiple corresponding simplified Chinese characters for the traditional character, but there is only a unique simplified Chinese character in a specific word, through word disambiguation, the simplified Chinese character is determined as the final conversion result, and the fourth conversion label is determined. For example, the traditional Chinese character string contains the traditional character "著", and the "著" can correspond to the simplified Chinese characters "著" or "着", but when the traditional Chinese character string can be converted character by character to contain the word "著作", the conversion result determined for the "著" is "著", and it is determined as the fourth conversion label.

[0051] In the embodiments of the present application, when there are multiple corresponding simplified Chinese characters for the traditional Chinese character, but except for specific words, the default simplified Chinese character is corresponding. In this way, through the default target conversion, the simplified Chinese character is determined as the final conversion result, and the fifth conversion label is determined. For example, for the traditional Chinese character "於", the corresponding simplified Chinese target characters are "於" and "于". The traditional Chinese source character "於" can only be converted into the corresponding unique simplified Chinese character "於" in specific words such as "於乎, 於菟, 於戲, 於戱, 於戯", and in other words, it is converted into "于". Then, when the逐字 conversion of the traditional Chinese character string does not include "於乎, 於菟, 於戲, 於戱, 於戯", "于" is determined as the final conversion result, and the fifth conversion type is determined.

[0052] In the embodiments of the present application, when there are multiple corresponding simplified Chinese characters for the traditional Chinese character, but there is only a unique simplified Chinese target character in specific words. According to the equivalent word co-occurrence relationship, in this way, according to the conversion of homographs, the simplified Chinese target character is determined as the final conversion result, and the sixth conversion label is determined. For example, for the rule where the word "著錄" in the string to be converted is located, after expanding according to the equivalent word relationship "錄 = 彔, 録, 录", the "著錄" in the conversion string is converted into "著录", and the sixth conversion type is determined.

[0053] In this way, when the traditional Chinese characters in the traditional Chinese character string to be converted correspond to multiple simplified Chinese characters in the ancient Chinese character traditional-simplified conversion database, the conversion result is determined by one of the methods of word disambiguation conversion, default target conversion, and homograph conversion, and the accuracy of the conversion result is improved by combining the context of the traditional Chinese character string to be converted.

[0054] In the embodiments of the present application, when the traditional Chinese characters in the traditional Chinese character string to be converted correspond to multiple simplified Chinese characters in the ancient Chinese character traditional-simplified conversion database, it is necessary to perform word segmentation on the string to implement the determination of the conversion result by one of the methods of word disambiguation conversion, default target conversion, and homograph. A double-array trie can be used to perform word segmentation, and the double-array trie can be implemented based on python. The double-array trie can quickly implement the segmentation of the string to be converted and overcome the deficiency of the Trie tree wasting space.

[0055] Step 203: Output the conversion result and the conversion label.

[0056] In an embodiment of the present application, the conversion result is encapsulated in JSON format, and the conversion result and conversion label are displayed. The conversion based on word disambiguation is generally correct, but it cannot be guaranteed that it will be converted incorrectly in some cases, and manual verification is required. The default target conversion uses a default target word for one-to-many words, which requires manual verification. Homograph conversion is used when it is still unclear which target word should be selected at the word level, and manual verification is required. Therefore, manual verification is only performed when the displayed conversion label is the fourth conversion label, the fifth conversion label or the sixth conversion label, which provides auxiliary information for manual verification, and there is no need to manually verify all conversion results, reducing the workload of manual verification.

[0057] Corresponding to the above method, this specification also provides an embodiment of a device for filling punctuation marks in ancient books, Figure 3 The figure shows a schematic diagram of a device for converting traditional and simplified Chinese characters from ancient books according to an embodiment disclosed in the present invention. Figure 3 As shown, the device for converting traditional and simplified Chinese characters in ancient books comprises:

[0058] The ancient Chinese character traditional-simplified conversion database determining unit 301 is used to determine the ancient Chinese character traditional-simplified conversion database;

[0059] A conversion result and conversion label determination unit 302 is used to obtain data to be converted, determine the conversion result and conversion label based on the ancient Chinese character traditional and simplified conversion database and the rule-based conversion method; and

[0060] The conversion result and conversion label output unit 303 is used to output the conversion result and the conversion label.

[0061] In some embodiments, determining a database of traditional and simplified Chinese character conversions in ancient books includes:

[0062] The Chinese character CJK basic set, CJK A character set and characters extracted from the Chinese classic ancient books database are determined as the traditional and simplified Chinese character conversion database.

[0063] In some embodiments, the conversion result and conversion label determination unit 303 includes:

[0064] The to-be-converted data acquisition unit is used to acquire the traditional Chinese character string in plain text format to be converted and encapsulate it in JSON format;

[0065] The conversion determination unit is used to determine the conversion result and conversion label based on the search of the ancient Chinese character traditional-simplified conversion database. When the traditional Chinese character in the traditional character string to be converted corresponds to multiple simplified Chinese characters in the ancient Chinese character traditional-simplified conversion database, the conversion result and conversion label are determined according to the double-array dictionary tree search method and a method selected from word disambiguation conversion, default target conversion and homograph conversion.

[0066] In certain embodiments, the conversion results are packaged in JSON format.

[0067] An embodiment of the present application further provides a computer-readable storage medium storing computer instructions, which, when executed by a processor, implement the steps of the method for converting traditional and simplified Chinese characters in ancient books as described above.

[0068] 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 method for converting traditional and simplified Chinese characters in ancient books are of 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 method for converting traditional and simplified Chinese characters in ancient books.

[0069] 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.

[0070] 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.

[0071] In summary, according to an exemplary embodiment, when a traditional Chinese character in a traditional Chinese character string to be converted corresponds to multiple simplified Chinese characters in an ancient Chinese character traditional-simplified conversion database, a conversion result and a conversion label are determined based on a method of word disambiguation conversion, default target conversion, and homograph conversion according to a double array dictionary tree search method. Determining the conversion result in conjunction with the context of the traditional Chinese character string to be converted improves the accuracy of the conversion result, and performing manual verification based on the determined conversion label, without the need to manually verify all conversion results, provides auxiliary information for manual verification, and reduces the workload of manual verification.

[0072] 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 schemes disclosed in 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.

[0073] 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 disclosed by the present invention shall be included in the scope of protection disclosed by the present invention.

Claims

1. A method for converting traditional and simplified Chinese characters in ancient books, characterized in that: include: Step 201: Determine the traditional and simplified Chinese character conversion database of ancient books; wherein, The Chinese character CJK basic set, CJK A character set and characters extracted from the Chinese classic ancient books database are determined as the ancient Chinese character traditional and simplified conversion database, and the data in the database represents the correspondence between traditional and simplified Chinese characters; Step 202: Obtain the data to be converted, and determine the conversion result and conversion label based on the traditional and simplified Chinese character conversion database of ancient books and the rule-based conversion method; wherein, Get the traditional Chinese character string in plain text format to be converted; For the traditional Chinese character string to be converted, the conversion result is determined character by character from the traditional and simplified Chinese character conversion database of ancient books; When the traditional Chinese character has no corresponding simplified Chinese character in the ancient Chinese character traditional-simplified conversion database, the character itself is the final conversion result, and a first conversion label is determined; When the simplified Chinese character corresponding to the traditional Chinese character in the ancient Chinese character traditional-simplified conversion database is the same as the character, the character itself is the final conversion result, and a second conversion label is determined; When the traditional Chinese character has a unique corresponding simplified Chinese character in the ancient Chinese character traditional-simplified conversion database, the simplified Chinese character is the final conversion result, and a third conversion label is determined; When a traditional Chinese character in the traditional Chinese character string to be converted corresponds to multiple simplified Chinese characters in the traditional-simplified Chinese character conversion database of ancient Chinese books, a conversion result and a conversion label are determined according to a double array dictionary tree search method and a method selected from among conversion based on word disambiguation, default target conversion, and homograph conversion; When the traditional character has multiple corresponding simplified characters, but there is only one simplified character in a specific word, the simplified character is determined as the final conversion result through word disambiguation, and a fourth conversion label is determined; When the traditional character has multiple corresponding simplified characters, but except for a specific word, it corresponds to a default simplified character, the simplified character is determined as the final conversion result through default target conversion, and a fifth conversion label is determined; When the traditional character has multiple corresponding simplified characters, but there is only one simplified target character in a specific word, the simplified target character is determined as the final conversion result according to the relationship between equivalent characters and homographs and homograph conversion, and a sixth conversion label is determined; When a traditional Chinese character in a traditional Chinese character string to be converted corresponds to multiple simplified Chinese characters in the ancient Chinese character traditional-simplified conversion database, it is necessary to segment the character string into words to determine the conversion result by one of word disambiguation conversion, default target conversion and homograph conversion; Step 203: Output the conversion result and conversion label; wherein, The conversion results are encapsulated and the conversion results and conversion labels are displayed; manual verification is performed only when the displayed conversion label is the fourth conversion label, the fifth conversion label or the sixth conversion label, thereby providing auxiliary information for manual verification without the need for manual verification of all conversion results.

2. The method for converting traditional and simplified Chinese characters in ancient books as claimed in claim 1, characterized in that: Get the traditional Chinese string to be converted in plain text format and encapsulate it in JSON format.

3. The method for converting traditional and simplified Chinese characters in ancient books as claimed in claim 1, characterized in that: Encapsulate the conversion results in JSON format.

4. A device for converting traditional and simplified Chinese characters in ancient books, characterized in that: include: The unit for determining the traditional-simplified conversion database of ancient Chinese characters is used to determine the traditional-simplified conversion database of ancient Chinese characters; wherein the Chinese character CJK basic set, the CJK A character set and the characters extracted from the Chinese classic ancient books database are determined as the traditional-simplified conversion database of ancient Chinese characters, and the data in the database represents the correspondence between traditional and simplified Chinese characters; The conversion result and conversion label determination unit is used to obtain the data to be converted, and determine the conversion result and conversion label based on the traditional and simplified Chinese character conversion database of ancient books and the rule-based conversion method; wherein, Get the traditional Chinese character string in plain text format to be converted; For the traditional Chinese character string to be converted, the conversion result is determined character by character from the traditional and simplified Chinese character conversion database of ancient books; When the traditional Chinese character has no corresponding simplified Chinese character in the ancient Chinese character traditional-simplified conversion database, the character itself is the final conversion result, and a first conversion label is determined; When the simplified Chinese character corresponding to the traditional Chinese character in the ancient Chinese character traditional-simplified conversion database is the same as the character, the character itself is the final conversion result, and a second conversion label is determined; When the traditional Chinese character has a unique corresponding simplified Chinese character in the ancient Chinese character traditional-simplified conversion database, the simplified Chinese character is the final conversion result, and a third conversion label is determined; When a traditional Chinese character in the traditional Chinese character string to be converted corresponds to multiple simplified Chinese characters in the traditional-simplified Chinese character conversion database of ancient Chinese books, a conversion result and a conversion label are determined according to a double array dictionary tree search method and a method selected from among conversion based on word disambiguation, default target conversion, and homograph conversion; When the traditional character has multiple corresponding simplified characters, but there is only one simplified character in a specific word, the simplified character is determined as the final conversion result through word disambiguation, and a fourth conversion label is determined; When the traditional character has multiple corresponding simplified characters, but except for a specific word, it corresponds to a default simplified character, the simplified character is determined as the final conversion result through default target conversion, and a fifth conversion label is determined; When the traditional character has multiple corresponding simplified characters, but there is only one simplified target character in a specific word, the simplified target character is determined as the final conversion result according to the relationship between equivalent characters and homographs and homograph conversion, and a sixth conversion label is determined; When a traditional Chinese character in a traditional Chinese character string to be converted corresponds to multiple simplified Chinese characters in the ancient Chinese character traditional-simplified conversion database, it is necessary to segment the character string into words to determine the conversion result by one of word disambiguation conversion, default target conversion and homograph conversion; as well as, The conversion result and conversion label output unit is used to output the conversion result and the conversion label; wherein the conversion result is encapsulated and the conversion result and the conversion label are displayed; manual verification is performed only when the displayed conversion label is the fourth conversion label, the fifth conversion label or the sixth conversion label, thereby providing auxiliary information for manual verification without the need for manual verification of all conversion results.

5. The device for converting traditional and simplified Chinese characters in ancient books as claimed in claim 4, characterized in that: Get the traditional Chinese string to be converted in plain text format and encapsulate it in JSON format.

6. The device for converting traditional and simplified Chinese characters in ancient books as claimed in claim 4, characterized in that: The conversion result is packaged in JSON format.

7. 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 any one of claims 1 to 3 are implemented.

8. A computer-readable storage medium storing computer instructions, characterized in that: When the instruction is executed by a processor, the steps of the method described in any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Method and device for mutual conversion of simplified Chinese and traditional Chinese

    CN108108337A

  • Quick-action Chinese character complex form-simplified from exchanging system

    CN1349184A

  • Conversion method between Unicode four bytes ancient Chinese characters and determination Chinese characters

    CN101017481A

  • Conversing method between ancient characters and modern Chinese characters

    CN101251839A

  • Chinese-English intelligent network keyboard and cyclic key parallel input method

    CN102375648A