Chinese character splitting and combining method, device and equipment and readable storage medium
By constructing a Chinese character configuration diagram database and corresponding relationship table, the hierarchical splitting and combination of Chinese characters is realized, and the problems of irregular Chinese character disassembly and excessive particle size in the existing technology are solved, which reduces the difficulty of learning Chinese characters. It is suitable for learning for all ages and has expanded the Chinese character encoding method.
Patent Information
- Application Number
- CN202410929954.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-12-13
AI Technical Summary
The existing Chinese character disassembly method has problems such as inconsistent splitting principles, excessive particle size of components, and inability to effectively reduce the difficulty of learning Chinese characters. Moreover, computer Chinese characters are encoded as whole characters, which cannot meet the needs of Chinese character information processing.
Construct a Chinese character configuration diagram database, and build a corresponding relationship table between Chinese characters, Chinese character configuration diagram and splitting results based on this database. Split Chinese characters into radicals and components through preset splitting methods, or use presets The combination method combines radicals and components into Chinese characters to form a hierarchical Chinese character splitting and combining method.
实现了规范的汉字拆解原则,降低了汉字学习难度,通过层级化拆分和组合形成系统认知,解决了汉字形体混淆问题,适用于全年龄段的学习,拓展了Unicode字符集。
Smart Images

Figure CN119129525A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of Chinese character splitting and combining, and in particular to a Chinese character splitting and combining method, device, equipment and readable storage medium. Background Art
[0002] "Shuowen Jiezi" is the first Chinese dictionary in the history of my country that systematically analyzes the shape and origin of Chinese characters, and it is also the first book on philology in my country. However, due to the large number of Chinese character radicals and the complex relationships, it is very difficult to manually count and organize the relationships between Chinese character radicals, so so far, a comprehensive and systematic overall framework for the relationship between radicals has not been formed. When teaching Chinese characters, there are three existing ways to decompose Chinese characters. The first is to split Chinese characters into strokes. Although all Chinese characters can be split, there are problems such as inconsistent splitting principles and lack of standardization. When forming characters, the strokes are too scattered to be combined. The second is to decompose Chinese characters using radicals and radicals. There is a basic structural framework, but there is an overlap in the categories of radicals and radicals, and Chinese characters cannot be completely decomposed by relying on radicals and radicals. The third method is to disassemble the characters by components. The "GB13000.1 Character Set Chinese Character Component Specification for Information Processing" ("Information Specification") promulgated in 1997 and the "Modern Common Character Component and Component Name Specification" ("Common Character Specification") promulgated in 2009 are too large to effectively reduce the difficulty of learning Chinese characters. In the computer field, Chinese character encoding is currently whole-word encoding, with a wide variety of character-level categories, but it still cannot meet the needs of Chinese character information processing, and highly similar characters pose a great challenge to computer automatic recognition. Summary of the invention
[0003] The purpose of the present invention is to provide a Chinese character splitting and combining method, device, equipment and readable storage medium to improve the above-mentioned problems.
[0004] In order to achieve the above objectives, the present application provides the following technical solutions:
[0005] On the one hand, an embodiment of the present application provides a method for splitting and combining Chinese characters, the method comprising:
[0006] Obtaining an object to be processed, wherein the object to be processed is a Chinese character to be split or an element to be combined, wherein the element includes radicals and components;
[0007] Constructing a Chinese character formation pattern database; based on the Chinese character formation pattern database, constructing a correspondence table among Chinese characters, Chinese character formation patterns and splitting results, wherein one Chinese character corresponds to one Chinese character formation pattern, and one Chinese character formation pattern corresponds to at least one splitting result, wherein the splitting result is a Chinese character component obtained after the Chinese character is split;
[0008] The Chinese characters to be split are split according to the Chinese character formation pattern database, the corresponding relationship table and the preset splitting method to obtain the split radicals and components; or the elements to be combined are combined according to the Chinese character formation pattern database, the corresponding relationship table and the preset combination method to obtain the combined Chinese characters.
[0009] Optionally, construct a Chinese character formation schema database, including:
[0010] The Chinese character formation pattern database is constructed, and the Chinese character formation pattern database includes 14 plane patterns, which are layered from the first layer to the fifth layer from bottom to top; the first layer is the lower enclosing structure, the upper enclosing structure, the right enclosing structure and the left enclosing structure; the second layer is the full enclosing structure, the lower left enclosing structure, the lower right enclosing structure, the upper right enclosing structure and the upper left enclosing structure; the third layer is the left-middle-right structure and the upper-middle-lower structure; the fourth layer is the left-right structure and the upper-lower structure; the fifth layer is a single-body structure.
[0011] Optionally, the Chinese character to be split is split according to the Chinese character formation pattern database, the corresponding relationship table and a preset splitting method to obtain the split radicals and components, including:
[0012] Obtaining the result of whether the Chinese character to be split can be split, and if it can be split, obtaining the Chinese character configuration pattern corresponding to the Chinese character to be split;
[0013] The Chinese characters to be split are split according to the Chinese character formation patterns corresponding to the Chinese characters to be split, the corresponding relationship table and the preset splitting method to obtain the split radicals and components.
[0014] Optionally, the Chinese character to be split is split according to the Chinese character formation pattern corresponding to the Chinese character to be split, the corresponding relationship table and a preset splitting method to obtain the split radicals and components, including:
[0015] Performing a first splitting stage, wherein the first stage splitting includes splitting according to the Chinese character formation pattern corresponding to the Chinese character to be split and the corresponding relationship table, wherein when splitting, if a Chinese character to be split corresponds to more than one splitting result, it is screened using a preset splitting criterion, and the remaining splitting result after screening is used as a preliminary splitting result; if a Chinese character to be split corresponds to only one splitting result, the splitting result is directly used as the preliminary splitting result;
[0016] Obtain whether the preliminary splitting result contains a result of a component that can be further split. If so, obtain the component that can be further split and send the component that can be further split to the first splitting stage for splitting again. Otherwise, enter the second splitting stage. The second stage splitting includes obtaining the word combination rate of each component in the preliminary splitting result, judging whether the word combination rate of each component is greater than or equal to 2. If they are greater than or equal to 2, the component in the preliminary splitting result is output. If the word combination rate of one of the components in the preliminary splitting result is less than 2, the component in the preliminary splitting result is no longer split, and it is judged whether the component with the word combination rate less than 2 has a previous layer component. If there is no previous layer component, the component in the preliminary splitting result is output. If there is a previous layer component, the previous layer component is returned and the second stage splitting step is re-entered.
[0017] Optionally, filter them using pre-set splitting criteria, including:
[0018] The splitting criteria are constructed, and the splitting criteria include a first splitting criterion, a second splitting criterion and a third splitting criterion; the first splitting criterion is that if a Chinese character can be split into a single character and can also be split into a non-single character, then the Chinese character is split into a single character; the second splitting criterion is that if a Chinese character can be split into three components and can also be split into two components, then the Chinese character is split into three components; the fourth splitting criterion is that if there are multiple splitting methods for a Chinese character, and one of the splitting methods contains the Chinese character "1" after splitting, then this splitting method is not selected.
[0019] Optionally, combining the elements to be combined according to the Chinese character formation pattern database, the corresponding relationship table and a preset combination method to obtain a combined Chinese character includes:
[0020] Select two elements from the elements to be combined, select a Chinese character formation pattern from the Chinese character formation pattern database, perform Chinese character combination on the selected elements according to the correspondence table to form a combined element, determine whether all the elements in the elements to be combined have been combined, if all have been combined, use the combined elements as the combined Chinese characters, otherwise select an element from the elements to be combined again based on the combined element, and select a Chinese character formation pattern from the Chinese character formation pattern database again, and perform Chinese character combination again, until all the elements to be combined have been combined.
[0021] In a second aspect, an embodiment of the present application provides a Chinese character splitting and combining device, which includes an acquisition module, a construction module and a splitting and combining module.
[0022] An acquisition module is used to acquire an object to be processed, wherein the object to be processed is a Chinese character to be split or an element to be combined, wherein the element includes radicals and components;
[0023] A construction module is used to construct a Chinese character formation pattern database; based on the Chinese character formation pattern database, a corresponding relationship table among Chinese characters, Chinese character formation patterns and splitting results is constructed, wherein one Chinese character corresponds to one Chinese character formation pattern, and one Chinese character formation pattern corresponds to at least one splitting result, wherein the splitting result is a Chinese character component obtained after the Chinese character is split;
[0024] The splitting and combining module is used to split the Chinese characters to be split according to the Chinese character formation pattern database, the corresponding relationship table and the preset splitting method to obtain the split radicals and components; or to combine the elements to be combined according to the Chinese character formation pattern database, the corresponding relationship table and the preset combination method to obtain the combined Chinese characters.
[0025] In a third aspect, an embodiment of the present application provides a Chinese character splitting and combining device, the device comprising a memory and a processor. The memory is used to store a computer program; the processor is used to implement the steps of the above-mentioned Chinese character splitting and combining method when executing the computer program.
[0026] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned Chinese character splitting and combining method are implemented.
[0027] The beneficial effects of the present invention are:
[0028] 1. The Chinese character splitting and combining method of the present invention can solve the current problems of non-standard Chinese character disassembly and non-uniform component principles. A new synchronous Chinese character formation system is constructed, and a highly operable and standardized principle for disassembling Chinese characters is proposed, and a hierarchical Chinese character plane diagram is built to realize programmatic learning of Chinese character structure, form Chinese character formation thinking, and re-encode Chinese characters with components and radicals.
[0029] 2. The present invention can realize the hierarchical splitting and combination of all Chinese characters. The method can be applied to Chinese character teaching as a new way to memorize and write Chinese characters. The existing whole character learning is changed to learning by relying on small unit radical components, which lowers the threshold of Chinese character learning and solves the problem of confusion of Chinese character shapes. And relying on the shared radical components, multiple Chinese characters can be learned in a connected manner, and a systematic cognition of Chinese characters can be formed, solving the problem that the isolated learning of single characters cannot form an overall cognition. Through the plane diagram, the spatial position relationship of the Chinese character structure and its component radicals can be clearly displayed, which is conducive to forming a clear visual image, forming component awareness and word formation thinking, and realizing self-study of unlimited Chinese characters. The method disassembles Chinese characters into component radicals and plane diagrams, performs stylized scientific training, gets rid of intellectual limitations, and realizes learning for all ages. The method constructs a clearly hierarchical Chinese character theoretical system, provides a new teaching path for Chinese character teaching, changes the existing teaching methods, and finally digs into the Chinese culture contained therein through Chinese character learning, tells Chinese stories well with Chinese characters, and expands the influence of the Chinese cultural circle. It is also possible to innovate the existing whole-word encoding method, use component radical encoding, and expand the Unicode character set.
[0030] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.
[0032] Figure 1 It is a schematic flow chart of the Chinese character splitting and combining method described in an embodiment of the present invention;
[0033] Figure 2 14 plan view schematic diagrams of the embodiments of the present invention;
[0034] Figure 3 1 is a schematic diagram of the structure of the Chinese character splitting and combining device described in an embodiment of the present invention;
[0035] Figure 4 It is a schematic diagram of the structure of the Chinese character splitting and combining device described in an embodiment of the present invention. DETAILED DESCRIPTION
[0036] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0037] It should be noted that similar reference numerals or letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.
[0038] Example 1
[0039] like Figure 1 As shown, this embodiment provides a method for splitting and combining Chinese characters, which includes step S1, step S2 and step S3.
[0040] Step S1, obtaining an object to be processed, wherein the object to be processed is a Chinese character to be split or an element to be combined, wherein the element includes radicals and components;
[0041] Step S2, constructing a Chinese character formation pattern database; based on the Chinese character formation pattern database, constructing a correspondence table among Chinese characters, Chinese character formation patterns and splitting results, wherein one Chinese character corresponds to one Chinese character formation pattern, and one Chinese character formation pattern corresponds to at least one splitting result, wherein the splitting result is a Chinese character component obtained after the Chinese character is split;
[0042] In this step, the step of constructing a Chinese character formation schema database includes step S21;
[0043] Step S21, construct the Chinese character formation pattern database, which includes 14 plane patterns, and the 14 plane patterns are layered, from bottom to top as the first layer to the fifth layer; the first layer is the lower enclosing structure, the upper enclosing structure, the right enclosing structure and the left enclosing structure; the second layer is the full enclosing structure, the lower left enclosing structure, the lower right enclosing structure, the upper right enclosing structure and the upper left enclosing structure; the third layer is the left-middle-right structure and the upper-middle-lower structure; the fourth layer is the left-right structure and the upper-lower structure; the fifth layer is a single-body structure.
[0044] The 14 planar diagrams in this step are as Figure 2 shown. The first layer is the A10 lower enclosure structure, the A11 upper enclosure structure, the A12 right enclosure structure, and the A13 left enclosure structure; the second layer is the A1 full enclosure structure, the A6 lower left enclosure structure, the A7 lower right enclosure structure, the A8 upper right enclosure structure, and the A9 upper left enclosure structure; the third layer is the A4 left-middle-right structure and the A5 upper-middle-lower structure; the fourth layer is the A2 left-right structure and the A3 up-down structure; the fifth layer is the A0 single-character structure (the fifth layer is not shown in Figure 2 ).
[0045] Meanwhile, in this step, constructing the correspondence table among Chinese characters, Chinese character configuration diagrams, and splitting results can be understood as: one Chinese character corresponds to one Chinese character configuration diagram, and one Chinese character configuration diagram corresponds to at least one splitting result. For example, the Chinese character configuration diagram corresponding to "百" is the up-down structure, and it corresponds to two splitting results. One is "一" and "白", and the other is and "日".
[0046] Step S3: Split the Chinese character to be split according to the Chinese character configuration diagram database, the correspondence table, and a preset splitting method to obtain the split radicals and components; or combine the elements to be combined according to the Chinese character configuration diagram database, the correspondence table, and a preset combination method to obtain the combined Chinese character.
[0047] In this step, the specific implementation steps of splitting the Chinese character to be split according to the Chinese character configuration diagram database, the correspondence table, and a preset splitting method to obtain the split radicals and components include Step S31 and Step S32;
[0048] Step S31: Obtain the result of whether the Chinese character to be split can be split. If it can be split, obtain the Chinese character configuration diagram corresponding to the Chinese character to be split;
[0049] In this step, to judge whether the Chinese character to be split can be split, first make a manual judgment and then upload it. The basis for judgment is that if the components contained in the Chinese character to be split are separated from each other or connected to each other, and the components or radicals split from the Chinese character to be split can all form new Chinese characters with other components or radicals, then judge that the Chinese character to be split can be split; otherwise, it cannot be split. It can be understood as:
[0050] Do not split the characters with intersecting components, only split the characters with components that are connected or separated. For example, "吕" is separated and can be split into "口" and "口"; "果" is connected and can be split into "田" and "木"; "串" is intersecting and cannot be split into "口", "口", and "丨".
[0051] The splitting component formation rate must be ≥ 2. For example, "争" can be split vertically according to A3, but its lower part can only be combined with "V", which does not meet the principle of "≥ 2", so it is not split, and "争" is regarded as only one component. The component formation rate means that as long as the component radical can still form new Chinese characters with other component radicals, it is considered that the component formation rate is greater than or equal to 2.
[0052] When it is possible to split the Chinese character to be split, the Chinese character configuration schema corresponding to the Chinese character to be split will be obtained. When determining the Chinese character configuration schema corresponding to the Chinese character to be split, first make a judgment manually and then upload it. When making a manual judgment, in the 14 planar schemas, traverse from the first layer to the fifth layer to find the Chinese character configuration schema corresponding to the Chinese character to be split;
[0053] Step S32: Split the Chinese character to be split according to the Chinese character configuration schema corresponding to the Chinese character to be split, the corresponding relationship table, and the preset splitting method to obtain the split radicals and components.
[0054] The specific implementation steps of this step include step S321 and step S322;
[0055] Step S321: Perform the first splitting stage. The first-stage splitting includes splitting according to the Chinese character configuration schema corresponding to the Chinese character to be split and the corresponding relationship table. Among them, when splitting, if a Chinese character to be split corresponds to more than one splitting result, use the preset splitting criterion to screen it, and use the remaining one splitting result after screening as the preliminary splitting result; if a Chinese character to be split corresponds to only one splitting result, directly use this splitting result as the preliminary splitting result;
[0056] This step can be understood as: after obtaining the Chinese character configuration schema corresponding to the Chinese character to be split, the splitting result corresponding to the Chinese character to be split can be obtained according to the corresponding relationship table. If there are multiple splitting results, they need to be screened; among them, the specific implementation steps of screening them using the splitting criterion include step S3211;
[0057] Step S3211: Construct the splitting criterion. The splitting criterion includes the first splitting criterion, the second splitting criterion, and the third splitting criterion; the first splitting criterion is that if a Chinese character can be split into a single character and can also be split into a non-single character, then split the Chinese character into a single character; the second splitting criterion is that if a Chinese character can be split into three components and can also be split into two components, then split the Chinese character into three components; the fourth splitting criterion is that if a Chinese character has multiple splitting methods, and one of the splitting methods contains Chinese character one after splitting, then this splitting method is not selected.
[0058] In this step, the first splitting criterion, the second splitting criterion, and the third splitting criterion can be understood in turn as:
[0059] The first splitting criterion: the principle of giving priority to single characters. For example, the character "百" can be split into "一" and "白", or it can be split into the radical and "日". However, since both "一" and "白" are single characters that can be used independently, "百" is chosen to be split into "一" and "白".
[0060] The second splitting criterion: splitting into three parts is preferred over splitting into two parts. If a character can be divided into three parts, it is not divided into two parts. "富" is first split into , "口", "田", and then is split into "一" and "宀".
[0061] The third splitting criterion: when encountering "一", give priority to splitting out "non - 一". For example, the character "石" can be split into "一" and , or it can be split into "丆" and "口". It is preferably split into "丆" and "口" to ensure that "丆" can form "页" with "贝".
[0062] Step S322: Obtain the result of whether there are components in the preliminary splitting result that can be further split. If so, obtain the components that can be further split and send the components that can be further split into the first splitting stage for re - splitting. Otherwise, enter the second splitting stage. The second - stage splitting includes obtaining the character - forming rate of each component in the preliminary splitting result, and judging whether the character - forming rate of each component is greater than or equal to 2. If all are greater than or equal to 2, then use the components in the preliminary splitting result as the final splitting result corresponding to the Chinese character to be split. If the character - forming rate of one of the components in the preliminary splitting result is less than 2, then no longer split the components in the preliminary splitting result, and judge whether the component with a character - forming rate less than 2 has an upper - layer component. If there is no upper - layer component, then use the components in the preliminary splitting result as the final splitting result corresponding to the Chinese character to be split. If there is an upper - layer component, then return to the upper - layer component and re - enter the second - stage splitting steps.
[0063] In this step, the character - forming rate means that as long as the radical of this part can still form a new Chinese character with the radical of another part, it is regarded as the character - forming rate being greater than or equal to 2. At the same time, the upper - layer component in this step can be understood as follows: for example, the character "晳" can be preliminarily split into "析" and "日". Then, compared with "析" and "日", the character "晳" is the upper - layer component of "析" and "日". At the same time, the final splitting result corresponding to the Chinese character in this step includes radicals and components. When constructing the corresponding relationship table, labels can be given to the Chinese - character components in the splitting result to indicate whether they are radicals or components. After the splitting is completed, the Chinese - character components in the final splitting result can be automatically divided into components and radicals.
[0064] In step S3, the specific implementation steps of combining the elements to be combined according to the Chinese character configuration schema database, the corresponding relationship table, and a preset combination method to obtain the combined Chinese character include step S33;
[0065] Step S33: Select two elements from the elements to be combined, select a Chinese character configuration schema from the Chinese character configuration schema database, perform Chinese character combination on the selected elements according to the corresponding relationship table to form a combined element, and determine whether all the elements in the elements to be combined have been combined. If all have been combined, use the combined elements as the combined Chinese character; otherwise, based on the combined element, select another element from the elements to be combined, and select another Chinese character configuration schema from the Chinese character configuration schema database again, and perform Chinese character combination again until all the elements to be combined have been combined.
[0066] The above Chinese character combination method can be understood as follows: Taking the character "樊" as an example for combining characters, select the elements "乂", "乂", "木", "大". First, select the A3 upper and lower structure, and combine the two "乂" characters into "爻". Then, select the A4 left, middle, and right structure and combine it with "木" to form "棥". Finally, select the A3 upper and lower structure, and combine "棥" with "大" to form "樊".
[0067] Embodiment 2
[0068] As Figure 3 shown, this embodiment provides a Chinese character splitting and combining device, which includes an acquisition module 1, a construction module 2, and a splitting and combining module 3.
[0069] The acquisition module 1 is used to acquire an object to be processed, and the object to be processed is a Chinese character to be split or elements to be combined, and the elements include radicals and components;
[0070] The construction module 2 is used to construct a Chinese character configuration schema database; based on the Chinese character configuration schema database, construct a corresponding relationship table among Chinese characters, Chinese character configuration schemas, and splitting results. One Chinese character corresponds to one Chinese character configuration schema, and one Chinese character configuration schema corresponds to at least one splitting result, and the splitting result is the Chinese character component obtained after splitting the Chinese character;
[0071] The splitting and combining module 3 is used to split the Chinese character to be split according to the Chinese character configuration schema database, the corresponding relationship table, and a preset splitting method to obtain the split radicals and components; or combine the elements to be combined according to the Chinese character configuration schema database, the corresponding relationship table, and a preset combination method to obtain the combined Chinese character.
[0072] It should be noted that, regarding the device in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment of the method, and will not be elaborated here.
[0073] Example 3
[0074] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a Chinese character splitting and combining device. The Chinese character splitting and combining device described below and the Chinese character splitting and combining method described above can be referred to each other.
[0075] Figure 4 is a block diagram of a Chinese character splitting and combining device 300 according to an exemplary embodiment. Figure 4 As shown, the Chinese character splitting and combining device 300 may include: a processor 301 and a memory 302. The Chinese character splitting and combining device 300 may also include one or more of a multimedia component 303, an I / O interface 304, and a communication component 305.
[0076] The processor 301 is used to control the overall operation of the Chinese character splitting and combining device 300 to complete all or part of the steps in the above-mentioned Chinese character splitting and combining method. The memory 302 is used to store various types of data to support the operation of the Chinese character splitting and combining device 300, and these data may include, for example, instructions for any application or method operated on the Chinese character splitting and combining device 300, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 302 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, disk or optical disk. The multimedia component 303 may include a screen and an audio component. The screen may be, for example, a touch screen, and the audio component is used to output and / or input audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may be further stored in the memory 302 or sent via the communication component 305. The audio component also includes at least one speaker for outputting audio signals. The I / O interface 304 provides an interface between the processor 301 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 305 is used for wired or wireless communication between the Chinese character splitting and combining device 300 and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 305 can include: Wi-Fi module, Bluetooth module, NFC module.
[0077] In an exemplary embodiment, the Chinese character splitting and combining device 300 can be implemented by one or more application specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned Chinese character splitting and combining method.
[0078] In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned Chinese character splitting and combining method are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 302 including program instructions, and the above-mentioned program instructions can be executed by the processor 301 of the Chinese character splitting and combining device 300 to complete the above-mentioned Chinese character splitting and combining method.
[0079] Example 4
[0080] Corresponding to the above method embodiment, the embodiment of the present disclosure further provides a readable storage medium. The readable storage medium described below and the Chinese character splitting and combining method described above can be referred to in correspondence with each other.
[0081] A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the Chinese character splitting and combining method of the above method embodiment.
[0082] The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.
[0083] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for splitting and combining Chinese characters, It is characterized in that include: Obtaining an object to be processed, wherein the object to be processed is a Chinese character to be split or an element to be combined, wherein the element includes radicals and components; Constructing a Chinese character formation pattern database; based on the Chinese character formation pattern database, constructing a correspondence table among Chinese characters, Chinese character formation patterns and splitting results, wherein one Chinese character corresponds to one Chinese character formation pattern, and one Chinese character formation pattern corresponds to at least one splitting result, wherein the splitting result is a Chinese character component obtained after the Chinese character is split; The Chinese characters to be split are split according to the Chinese character formation pattern database, the corresponding relationship table and the preset splitting method to obtain the split radicals and components; or the elements to be combined are combined according to the Chinese character formation pattern database, the corresponding relationship table and the preset combination method to obtain the combined Chinese characters.
2. The Chinese character splitting and combining method according to claim 1, It is characterized in that Construct a Chinese character formation schema database, including: The Chinese character formation pattern database is constructed, and the Chinese character formation pattern database includes 14 plane patterns, which are layered from the first layer to the fifth layer from bottom to top; the first layer is the lower enclosing structure, the upper enclosing structure, the right enclosing structure and the left enclosing structure; the second layer is the full enclosing structure, the lower left enclosing structure, the lower right enclosing structure, the upper right enclosing structure and the upper left enclosing structure; the third layer is the left-middle-right structure and the upper-middle-lower structure; the fourth layer is the left-right structure and the upper-lower structure; the fifth layer is a single-body structure.
3. The Chinese character splitting and combining method according to claim 2, It is characterized in that The Chinese character to be split is split according to the Chinese character formation pattern database, the corresponding relationship table and the preset splitting method to obtain the split radicals and components, including: Obtaining the result of whether the Chinese character to be split can be split, and if it can be split, obtaining the Chinese character configuration pattern corresponding to the Chinese character to be split; The Chinese characters to be split are split according to the Chinese character formation patterns corresponding to the Chinese characters to be split, the corresponding relationship table and the preset splitting method to obtain the split radicals and components.
4. The Chinese character splitting and combining method according to claim 3, It is characterized in that The Chinese character to be split is split according to the Chinese character formation pattern corresponding to the Chinese character to be split, the corresponding relationship table and the preset splitting method to obtain the split radicals and components, including: Performing a first splitting stage, wherein the first stage splitting includes splitting according to the Chinese character formation pattern corresponding to the Chinese character to be split and the corresponding relationship table, wherein when splitting, if a Chinese character to be split corresponds to more than one splitting result, it is screened using a preset splitting criterion, and the remaining splitting result after screening is used as a preliminary splitting result; if a Chinese character to be split corresponds to only one splitting result, the splitting result is directly used as the preliminary splitting result; Obtain whether the preliminary splitting result contains components that can be further split. If so, obtain the components that can be further split and send the components that can be further split to the first splitting stage for splitting again. Otherwise, enter the second splitting stage. The second stage splitting includes obtaining the word grouping rate of each component in the preliminary splitting result, judging whether the word grouping rate of each component is greater than or equal to 2. If they are greater than or equal to 2, the components in the preliminary splitting result are used as the final splitting results corresponding to the Chinese characters to be split. If the word grouping rate of one of the components in the preliminary splitting result is less than 2, the components in the preliminary splitting result are no longer split, and it is judged whether the component with the word grouping rate less than 2 has a previous layer component. If there is no previous layer component, the components in the preliminary splitting result are used as the final splitting results corresponding to the Chinese characters to be split. If there is a previous layer component, return to the previous layer component and re-enter the second stage splitting step.
5. The Chinese character splitting and combining method according to claim 4, It is characterized in that Filter them using pre-set splitting criteria, including: The splitting criteria are constructed, and the splitting criteria include a first splitting criterion, a second splitting criterion and a third splitting criterion; the first splitting criterion is that if a Chinese character can be split into a single character and can also be split into a non-single character, then the Chinese character is split into a single character; the second splitting criterion is that if a Chinese character can be split into three components and can also be split into two components, then the Chinese character is split into three components; the fourth splitting criterion is that if there are multiple splitting methods for a Chinese character, and one of the splitting methods contains the Chinese character "1" after splitting, then this splitting method is not selected.
6. The Chinese character splitting and combining method according to claim 1, It is characterized in that Combining the elements to be combined according to the Chinese character formation pattern database, the corresponding relationship table and a preset combination method to obtain a combined Chinese character, including: Select two elements from the elements to be combined, select a Chinese character formation pattern from the Chinese character formation pattern database, perform Chinese character combination on the selected elements according to the correspondence table to form a combined element, determine whether all the elements in the elements to be combined have been combined, if all have been combined, use the combined elements as the combined Chinese characters, otherwise select an element from the elements to be combined again based on the combined element, and select a Chinese character formation pattern from the Chinese character formation pattern database again, and perform Chinese character combination again, until all the elements to be combined have been combined.
7. A Chinese character splitting and combining device, It is characterized in that include: An acquisition module is used to acquire an object to be processed, wherein the object to be processed is a Chinese character to be split or an element to be combined, wherein the element includes radicals and components; A construction module is used to construct a Chinese character formation pattern database; based on the Chinese character formation pattern database, a corresponding relationship table among Chinese characters, Chinese character formation patterns and splitting results is constructed, wherein one Chinese character corresponds to one Chinese character formation pattern, and one Chinese character formation pattern corresponds to at least one splitting result, wherein the splitting result is a Chinese character component obtained after the Chinese character is split; The splitting and combining module is used to split the Chinese characters to be split according to the Chinese character formation pattern database, the corresponding relationship table and the preset splitting method to obtain the split radicals and components; or to combine the elements to be combined according to the Chinese character formation pattern database, the corresponding relationship table and the preset combination method to obtain the combined Chinese characters.
8. A Chinese character splitting and combining device, It is characterized in that include: Memory for storing computer programs; A processor, used to implement the steps of the Chinese character splitting and combining method as described in any one of claims 1 to 6 when executing the computer program.
9. A readable storage medium, Features: The readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the Chinese character splitting and combining method as claimed in any one of claims 1 to 6.
