A system file checking and correction method, device, equipment and medium

Through the system file architecture and logical rules based on industry standards, combined with word segmentation and error correction tools, system files are systematically checked and corrected, and the problems of low processing efficiency and error omission in the existing technology are solved, and efficient and accurate file correction is achieved. .

CN113255350BActive Publication Date: 2024-11-15AVIC AIRBORNE SYST GENERIC TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110643450.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-06-09
Publication Date
2024-11-15
Estimated Expiration
2041-06-09

AI Technical Summary

Technical Problem

The processing methods of existing system files are inefficient, and cannot systematically check and correct syntax and logic errors, which are prone to introduce new errors, resulting in incomplete processing and reduced efficiency.

Method used

Establish system file architecture and logical rules based on industry standards, and use word segmentation tools and text error correction tools to detect and correct errors to generate system files that meet industry standards.

Benefits of technology

It improves the processing efficiency of system files, ensures comprehensive inspection and correction of syntax and logical errors, reduces error omissions, and improves the accuracy and consistency of output files.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113255350B_ABST
    Figure CN113255350B_ABST
Patent Text Reader

Abstract

The present invention belongs to the field of airborne R&D technology, and provides a system file inspection and correction method, device, equipment and medium. Among them, the method of the present invention includes: establishing a system file architecture and logical rules based on industry standards; completing system file editing according to the system file architecture and the logical rules; inspecting and correcting the edited system file, and outputting the system file. The technical solution provided by the present invention can save the labor cost of manually completing the syntax check and logic proofreading of the system file, greatly improve the consistency and correctness of the system file, and improve the quality of the system file to a certain extent.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of airborne research and development technology, and in particular to a system file checking and correcting method, device, equipment and medium. Background Art

[0002] At present, the inspection and correction of system document contents are mainly carried out through manual technical review, which checks the documents for homophones, confused sounds, errors in similar characters, full Chinese pinyin spellings, grammatical errors, and formal logic problems. Problems found in the review are discussed and modified.

[0003] The existing engineering development system has a huge number of documents with rich contents. During long-term and large-scale repetitive work, people are prone to mental fatigue, which leads to reduced work efficiency. Without unified logical rules to guide, logical checking cannot be comprehensive.

[0004] Due to the above reasons, the existing system document processing methods have the following problems:

[0005] First, it takes a long time to pass the technical review and the effect may not be good; second, there is no guarantee that all grammatical and semantic errors will be checked and corrected; third, new grammatical and writing errors may be introduced during the manual review and correction process; fourth, logical errors in system files cannot be systematically checked and corrected, which can easily lead to omissions in the logical error check of system files. Summary of the invention

[0006] In view of the defects in the prior art, the present invention provides a system file checking and correction method, device, equipment and medium to solve the problems of low efficiency and inability to systematically check and correct system files in the prior art.

[0007] In a first aspect, the present invention provides a system file checking and correction method, comprising:

[0008] Establish system file structure and logic rules based on industry standards;

[0009] According to the system file architecture and the logic rules, complete the system file editing;

[0010] Check and correct the edited system file and output the system file.

[0011] It can be seen from the above technical solution that this application determines the system file architecture and logical rules that meet the industry standards based on industry standards and industry best engineering practices, edits the system files based on the determined system file architecture and logical rules, and checks and corrects the system files. The system files can be corrected in accordance with industry standards and best engineering practices, and system files that meet industry standards can be output. By using the above method, the system files can be systematically edited, checked and corrected, which reduces the technical review time and avoids errors and omissions in inspections and corrections.

[0012] Optionally, the system file architecture and logic rules are determined based on industry standards and industry best engineering practices, specifically including:

[0013] Establish data, roles, and goal statements consistent with industry standards;

[0014] Establishing logical relationships of processes and procedures based on the data, roles and goal statements;

[0015] The system document structure and visualization logic rules are determined according to the logical relationship of the processes and procedures.

[0016] Optionally, the checking and correcting the edited system file and outputting the system file specifically includes:

[0017] Use the word segmentation tool to segment the sentences in the system file to form a word sequence;

[0018] Performing error detection on the word sequence to locate error positions;

[0019] Traversing the error positions, and generating a candidate replacement word set based on a text error correction tool;

[0020] Determine the best candidate word in the candidate replacement word set to replace the word in the wrong position;

[0021] Output the system file that completes the error replacement.

[0022] Optionally, the determining of the best candidate word in the candidate replacement word set to replace the word in the wrong position specifically includes:

[0023] Input the elements in the candidate replacement word set into the erroneous sentence, and obtain the perplexity of the sentence corresponding to the element;

[0024] According to the confusion of the sentence corresponding to the element, the best candidate word is determined and the word in the wrong position is replaced.

[0025] Optionally, the method further comprises:

[0026] Generate a standard script based on the system file structure and logic rules;

[0027] Based on the edited system file, generate a system file script;

[0028] Comparing the parameter information of the specification script and the system file script, and if there is no difference in the parameter information, outputting the system file script;

[0029] If the parameter information is different, modify the parameter information of the system file architecture, or modify the parameter information of the edited system file.

[0030] In a second aspect, the present invention provides a system file inspection and correction device, comprising:

[0031] The specification determination module is used to determine the system file structure and logical rules based on industry standards;

[0032] A file editing module, used to complete system file editing based on the system file architecture and the logical rules;

[0033] The output module checks and corrects the edited system files and outputs the system files.

[0034] Optionally, the specification determination module is specifically used to:

[0035] Establish data, roles, and goal statements consistent with industry standards;

[0036] Establishing logical relationships of processes and procedures based on the data, roles and goal statements;

[0037] The system document structure and visualization logic rules are determined according to the logical relationship of the processes and procedures.

[0038] Optionally, the output module is specifically used for:

[0039] Use the word segmentation tool to segment the sentences in the system file to form a word sequence;

[0040] Performing error detection on the word sequence to locate error positions;

[0041] Traversing the error positions, and generating a candidate replacement word set based on a text error correction tool;

[0042] Determine the best candidate word in the candidate replacement word set to replace the word in the wrong position;

[0043] Output the system file that completes the error replacement.

[0044] Optionally, the output module is further used for:

[0045] Input the elements in the candidate replacement word set into the erroneous sentence, and obtain the perplexity of the sentence corresponding to the element;

[0046] According to the confusion of the sentence corresponding to the element, the best candidate word is determined and the word in the wrong position is replaced.

[0047] Optionally, a script comparison module is also included, which is specifically used to:

[0048] Generate a standard script based on the system file structure and logic rules;

[0049] Based on the edited system file, generate a system file script;

[0050] Comparing the parameter information of the specification script and the system file script, and if there is no difference in the parameter information, outputting the system file script;

[0051] If the parameter information is different, modify the parameter information of the system file architecture, or modify the parameter information of the edited system file.

[0052] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of any of the above methods when executing the computer program.

[0053] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having computer program instructions stored thereon, which implement the steps of any of the above methods when executed by a processor.

[0054] Based on the above technical solution, this application has the following beneficial effects:

[0055] 1) The establishment of system files is mainly for research and development purposes. The method involved in this application provides a set of feasible process activities for research and development. By matching system files with system files and logical rules, and editing in accordance with industry standards, system files suitable for various research and development purposes are output, which also speeds up the progress of research and development.

[0056] 2) By comparing the script of the system file architecture and logical rules with the edited system file script, the differences between the parameters are effectively compared. According to the comparison results, the parameters between the system file architecture and logical rules and the edited system file are further confirmed, thereby modifying the corresponding parameter information and improving the accuracy of parameter modification. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the description of the prior art. In all the drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.

[0058] Figure 1 A schematic diagram showing a flow chart of a system file checking and correction method provided by an embodiment of the present invention;

[0059] Figure 2 A schematic diagram showing a flow chart of a system file checking and correction method provided by an embodiment of the present invention;

[0060] Figure 3 A schematic diagram showing a flow chart of a system file checking and correction method provided by an embodiment of the present invention;

[0061] Figure 4 A schematic diagram showing a flow chart of a system file checking and correction method provided by an embodiment of the present invention;

[0062] Figure 5 A schematic diagram showing the structure of a system file checking and correcting device provided by an embodiment of the present invention is shown;

[0063] Figure 6 A schematic structural diagram of an electronic device provided by an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0064] The following embodiments of the technical solution of the present invention are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and are therefore only used as examples, and cannot be used to limit the protection scope of the present invention.

[0065] It should be noted that, unless otherwise specified, the technical terms or scientific terms used in this application should have the common meanings understood by those skilled in the art to which the present invention belongs.

[0066] System documents are programmatic documents. Enterprises execute R&D processes based on system documents to ensure that the developed products and processes are consistent with industry standards.

[0067] Figure 1 FIG. 1 is a flowchart of a system file checking and correction method provided by the first embodiment of the present invention. Figure 1 As shown, a system file checking and correction method based on formal logic according to an embodiment of the present invention includes:

[0068] S101. Establish system file structure and logical rules based on industry standards.

[0069] Specifically, according to industry standards, define the life cycle data involved in the system documents, the roles and responsibilities involved in the system, and the industry standard goals that the development system needs to meet, so as to provide completely consistent data, roles and goal expressions for the design and writing of the engineering development system. For example, in civil aviation, industry standards include SAE ARP-4754A, DO-178C, DO-254 and ARP-476. Based on the above industry standards, corresponding to the research and development objects targeted by the research and development projects, the system document architecture and logical rules that meet the industry standards are determined to provide standard support for the editing and revision of system documents, so that the final output system documents meet the industry standards. Take SAE ARP-4754A "Civil Aircraft and System Development Guide" as an example, which stipulates the aircraft and system development process and the intermediate process activities. Through the architecture and logical rules of the system documents established based on the above industry standards, according to the architecture and logical rules based on industry standards, the system documents meet the industry requirements.

[0070] S102: Complete system file editing according to the system file architecture and the logic rules.

[0071] In this step, the system files are edited based on the determined file structure and logical rules that meet industry standards. System file editing includes process file editing and procedure file editing. The process file mainly includes the logical relationship definition of the activities in the process, including the sequence of activities, calling relationships, and input-output relationships. The procedure file mainly includes the logical relationship definition of the tasks, including the execution process of the tasks, feedback mechanism, and input-output relationships. In addition, system file editing also includes the editing of other instruction files, mainly including templates for lifecycle data, execution guidelines for activities or tasks or writing guidelines for lifecycle data, and various checklists for verification. Based on the above three types of system file editing, process file editing, procedure file editing, and editing of other instruction files, the editing of system file intermediate files is completed, and system file editing is implemented through the system file editor.

[0072] Since the establishment of system documents is mainly for R&D purposes, this step provides a set of feasible process activities for R&D. By matching system documents with system documents and logical rules, and editing in accordance with industry standards, system documents suitable for various R&D purposes are output, providing reliable system documents for the R&D process, thereby accelerating the R&D progress.

[0073] S103, checking and correcting the edited system file, and outputting the system file.

[0074] Specifically, improve the editing of system files, including the intermediate files of system files, perform further error detection and correction on system files, avoid pronunciation and glyph errors in system files, correct pronunciation and glyph errors, and avoid text input errors that comply with industry standard logic.

[0075] Optionally, the system files are checked and corrected by the above system file checking and correction method, see Figure 2 , step S101 specifically further includes the following steps:

[0076] S201. Establish data, role, and goal statements consistent with industry standards.

[0077] In one possible implementation, in order to maintain consistency with industry standards, data, roles and target statements that are consistent with industry standards are established, and based on the above consistent data, roles and target statements, the output system file maintains logic consistent with industry standards. In one possible implementation, the data in step S201 can be specific parameter information involved in the system file, the role is the specific object targeted by the research and development in the system file, and the target statement is the specific operation required for the role. Taking SAE ARP-4754A "Civil Aircraft and System Development Guide" as an example, in Section 4.6 System Implementation of the Guide, the specific objects targeted by the research and development include hardware and software, electronic hardware / software and aircraft / systems. Taking electronic hardware / software integration as an example, the specific operations include specific operations such as development assurance data and hardware and / or software life cycle data.

[0078] The above example is only a possible implementation of the present application and is not intended to be a specific limitation on the technical solution of the present application.

[0079] S202. Establish logical relationships between processes and procedures based on data, roles, and target statements.

[0080] Specifically, through consistent data, roles and target statements, the logic of the output process and procedures meets the development needs and industry standards, and the logical relationship between the process and procedures includes the following contents: the logical relationship of activities in the process, including the sequence of activities, calling relationship, input-output relationship; the logical relationship of tasks in the procedures, including the execution process of tasks, feedback mechanism, input-output relationship.

[0081] S203. Determine the system file architecture and visualization logic rules based on the logical relationship between processes and procedures.

[0082] By establishing data, roles and target statements that are consistent with industry standards, the logical relationships between processes and procedures can be made to conform to industry standards. The output system file architecture and visual logic rules can also conform to industry standards, facilitating R&D.

[0083] Specifically, a flowchart can be created graphically, and the flowchart corresponds to the logic rules to realize the visualization of the logic rules. R&D personnel can more intuitively determine the target object, R&D sequence and R&D steps of R&D based on the flowchart, so that R&D activities can be carried out more smoothly.

[0084] Alternatively, see Figure 3 , check and correct the edited system file, and output the system file. The method for checking and correcting the system file specifically includes the following steps:

[0085] S301. Segment the sentences in the system file using a word segmentation tool to form a word sequence.

[0086] Specifically, in this embodiment, the system file is segmented by the Jieba word segmenter. The role of the Jieba word segmenter in this step is mainly Chinese word segmentation. Based on the Jieba word segmenter, the sentence paragraphs in the file can be segmented into error detection objects in units of characters or words, which is convenient for detecting the error probability of a single character or word later. At the same time, by adding a custom dictionary, the proprietary vocabulary of the corresponding field of the system file can be added so that the vocabulary in the sentence can be recognized, and when the word segmentation tool is used, it is more in line with the scene needs of the corresponding field, and the formed word sequence is more suitable for the target generated system file.

[0087] At the same time, it can also be based on other word segmentation methods. The common word segmentation methods include those based on dictionary matching (forward maximum matching method, reverse maximum matching method and two-way matching word segmentation method, etc.) or based on statistics (HMM, CRF, and deep learning); the current mainstream word segmentation tool library, in addition to the Jieba word segmenter, also includes the NLPIR of the Institute of Computing Technology of the Chinese Academy of Sciences, the LTP of Harbin Institute of Technology, the THULAC of Tsinghua University, the Hanlp word segmenter, etc.

[0088] S302: Perform error detection on the word sequence to locate error positions.

[0089] Specifically, character granularity: if the likelihood probability value of a character detected by the language model perplexity (ppl) is lower than the average value of the sentence text, the probability of the character being a suspected typo is high. Word granularity: if a word that is not in the dictionary after word segmentation is a suspected typo, the probability of the word being a suspected typo is high. Through two aspects of error detection, the error probability of characters and words is determined, and the position of suspected typos and words is located.

[0090] S303: traverse the error positions and generate a candidate replacement word set based on a text error correction tool.

[0091] In this step, all the wrong word positions are traversed, and the words in the wrong position are replaced using homophones, confused sounds, similar characters, Chinese full spelling, and grammatical error dictionaries. The above-mentioned word segmentation and error detection are based on the stammering word segmenter and the language model. The language model can be a rnn_crf model or other language models such as a seq2seq model to detect and locate the error position. At the same time, by adding a custom dictionary, such as a special dictionary for the airborne field, which includes proprietary vocabulary in the airborne field, when the error probability of a suspected wrong word or wrong word is determined, the suspected wrong word or wrong word is replaced corresponding to the dictionary content, so that the wrong words in the generated file are corrected.

[0092] S304: Determine the best candidate word in the candidate replacement word set to replace the word in the wrong position.

[0093] Specifically, PyCorrector is used to check the legality of the replaced system file statements, the perplexity of the statements is calculated through the language model, all candidate words are sorted according to the perplexity in the candidate replacement word set, and the optimal candidate word with the smallest perplexity is selected.

[0094] S305, outputting the system file after the error replacement is completed.

[0095] In this step, based on steps S301-S304, the wrong words in the sentences of the system file that has completed the logical editing are replaced. The system file can be systematically checked and corrected, avoiding the appearance of phonetic and pictographic characters of correct words in the system file after the logical editing, reducing the workload of manual work in system file checking, and at the same time reducing the occurrence of text errors in the system file, thereby improving the correctness of the output system file.

[0096] Optionally, in step S304, the following contents are also specifically included:

[0097] Input the elements in the candidate replacement word set into the erroneous sentence, and obtain the perplexity of the sentence corresponding to the element;

[0098] According to the confusion of the sentence corresponding to the element, the best candidate word is determined and the word in the wrong position is replaced.

[0099] Specifically, by calculating the perplexity of the elements in the candidate replacement word set respectively, the element with the lowest perplexity is obtained, so that the replacement word conforms to the sentence logic of the replacement position, thereby improving accuracy. For the sentence after word segmentation, the character granularity and word granularity can obtain the error probability of the word after word segmentation, form a candidate replacement word set, calculate the perplexity of each element in the candidate replacement word set through the language model, and obtain the content of the candidate replacement word set sorted by perplexity to determine the optimal candidate word. The optimal candidate word should satisfy the lowest perplexity in the candidate replacement word set.

[0100] Alternatively, see Figure 4 The system file inspection and correction method specifically involved in this application also includes:

[0101] Generate a standard script based on the system file structure and logic rules;

[0102] Based on the edited system file, generate a system file script;

[0103] Comparing the parameter information of the specification script and the system file script, and if there is no difference in the parameter information, outputting the system file script;

[0104] If the parameter information is different, modify the parameter information of the system file architecture, or modify the parameter information of the edited system file.

[0105] Specifically, the system file architecture and logic rules are compared with the script file of the edited system file, and specific parameter information is compared. If there is a difference, the parameter information that needs to be modified is determined between the system file architecture and the edited system file.

[0106] In one possible implementation, scripts are first formed based on the system file architecture and logical rules and the edited system files, which should be logically consistent. However, there may be differences with specific research and development goals or processes, but such differences may cause the generated system files to not meet industry standards, thereby affecting the target objects of research and development. In order to avoid this problem, the scripts generated by the two are compared, and the specific parameter information of the system file architecture and logical rules is modified according to the parameter information, or the specific parameter information of the generated system files is modified to make them consistent. In this step, the scripts can be compared using commonly used script comparison software to analyze the differences.

[0107] By comparing the script, the differences between the parameters are effectively compared. According to the comparison results, the parameters between the system file structure and logic rules and the edited system file are further confirmed to determine whether the difference is caused by the system file structure and logic rules or the system file. The cause and industry standards are confirmed and the corresponding parameter information is modified. The accuracy of parameter modification is improved.

[0108] In one embodiment, a system file checking and correction device 40 is provided. Figure 5 ,include:

[0109] The specification determination module 401 is used to determine the system file structure and logic rules based on industry standards;

[0110] The file editing module 402 is used to complete the system file editing based on the system file architecture and logic rules;

[0111] The output module 403 checks and corrects the edited system file and outputs the system file.

[0112] Optionally, the specification determines that module 401 is specifically used for:

[0113] Establish data, roles, and goal statements consistent with industry standards;

[0114] Establish logical relationships between processes and procedures based on data, roles, and goal statements;

[0115] Determine the system document structure and visual logic rules based on the logical relationship between processes and procedures.

[0116] Optionally, the output module 403 is specifically used for:

[0117] Use the word segmentation tool to segment the sentences in the system file to form a word sequence;

[0118] Perform error detection on word sequences and locate error positions;

[0119] Traverse the error locations and generate a set of candidate replacement words based on the text correction tool;

[0120] Determine the best candidate word in the candidate replacement word set to replace the word in the wrong position;

[0121] Output the system file that completes the error replacement.

[0122] Optionally, the output module 403 is further configured to:

[0123] Input the elements in the candidate replacement word set into the wrong sentence, and obtain the confusion of the sentence corresponding to the element;

[0124] According to the confusion of the sentence where the element corresponds, the best candidate word is determined and the word in the wrong position is replaced.

[0125] Optionally, the system file checking and correcting device 40 further includes a script comparison module 404, which is specifically used to:

[0126] Generate standard scripts based on system file structure and logical rules;

[0127] Generate a system file script based on the edited system file;

[0128] Compare the parameter information of the standard script and the system file script. If there is no difference in the parameter information, output the system file script;

[0129] If the parameter information is different, modify the parameter information of the system file architecture, or modify the parameter information of the edited system file.

[0130] The system file checking and correction device 40 provided in the embodiment of the present application adopts the same inventive concept as the above-mentioned system file checking and correction method, and can achieve the same beneficial effects, which will not be repeated here.

[0131] Based on the same inventive concept as the above-mentioned system file checking and correction method, the embodiment of the present application also provides an electronic device 50, such as Figure 6 As shown, the electronic device 50 may include a processor 501 and a memory 502 .

[0132] Processor 501 can be a general-purpose processor, such as a central processing unit (CPU), a digital signal processor (DigitalSignal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, and can implement or execute the various methods, steps and logic block diagrams disclosed in the embodiments of the present application. A general-purpose processor can be a microprocessor or any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly embodied as a hardware processor to be executed, or can be executed by a combination of hardware and software modules in the processor.

[0133] The memory 502 is a non-volatile computer-readable storage medium that can be used to store non-volatile software programs, non-volatile computer executable programs and modules. The memory may include at least one type of storage medium, such as a flash memory, a hard disk, a multimedia card, a card-type memory, a random access memory (Random Access Memory, RAM), a static random access memory (Static Random Access Memory, SRAM), a programmable read-only memory (Programmable Read Only Memory, PROM), a read-only memory (Read Only Memory, ROM), an electrically erasable programmable read-only memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), a magnetic memory, a disk, an optical disk, etc. The memory is any other medium that can be used to carry or store a desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 502 in the embodiment of the present application can also be a circuit or any other device that can realize a storage function, for storing program instructions and / or data.

[0134] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiments; the above computer storage medium can be any available medium or data storage device that can be accessed by a computer, including but not limited to: mobile storage devices, random access memory (RAM, Random Access Memory), magnetic storage (such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO)), optical storage (such as CD, DVD, BD, HVD, etc.), and semiconductor storage (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)) and other media that can store program codes.

[0135] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: a mobile storage device, a random access memory (RAM, Random Access Memory), a magnetic storage device (such as a floppy disk, a hard disk, a magnetic tape, a magneto-optical disk (MO), etc.), an optical storage device (such as CD, DVD, BD, HVD, etc.), and a semiconductor memory (such as ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), a solid-state drive (SSD)) and other various media that can store program codes.

[0136] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and they should all be included in the scope of the claims and specification of the present invention.

Claims

1. A system file checking and correction method, characterized in that: include: Establish system file structure and logic rules based on industry standards; According to the system file architecture and the logic rules, complete the system file editing; Check and modify the edited system files and output the system files; The method is also used to further confirm the parameters between the system file architecture and logic rules and the edited system file, and determine whether the cause of the difference is the system file architecture and logic rules or the system file, including: Generate a standard script based on the system file structure and logic rules; Based on the edited system file, generate a system file script; Comparing the parameter information of the specification script and the system file script, and if there is no difference in the parameter information, outputting the system file script; If the parameter information is different, modify the parameter information of the system file architecture, or modify the parameter information of the edited system file.

2. The method according to claim 1, characterized in that: The system file architecture and logical rules are established based on industry standards and industry best engineering practices, including: Establish data, roles, and goal statements consistent with industry standards; A logical relationship between processes and procedures is established based on the data, roles and target statements; data refers to specific parameter information involved in the system file, roles refer to specific objects targeted by the research and development in the system file, and target statements refer to specific operations required by the roles; The system file architecture and visual logic rules are determined based on the logical relationship between the process and procedures. The logical relationship of the process includes the sequence of activities, calling relationship, and input-output relationship. The logical relationship of the procedures includes the execution flow of tasks, feedback mechanism, and input-output relationship.

3. The method according to claim 1, characterized in that The checking and correcting of the edited system file and outputting the system file specifically include: Use the word segmentation tool to segment the sentences in the system file to form a word sequence; Performing error detection on the word sequence to locate error positions; Traversing the error positions, and generating a candidate replacement word set based on a text error correction tool; Determine the best candidate word in the candidate replacement word set to replace the word in the wrong position; Output the system file that completes the error replacement.

4. The method according to claim 3, characterized in that The step of determining the best candidate word in the candidate replacement word set to replace the word in the wrong position specifically includes: Input the elements in the candidate replacement word set into the erroneous sentence, and obtain the perplexity of the sentence corresponding to the element; According to the confusion of the sentence corresponding to the element, the best candidate word is determined and the word in the wrong position is replaced.

5. A system file checking and correction device, characterized in that: The device comprises: The specification determination module is used to determine the system file structure and logical rules based on industry standards and industry best engineering practices; A file editing module, used to complete system file editing based on the system file architecture and the logical rules; Output module, checks and corrects the edited system files, and outputs the system files; It also includes a script comparison module, which is used to further confirm the parameters between the system file architecture and logic rules and the edited system file, and determine whether the cause of the difference is the system file architecture and logic rules or the system file, which is specifically used to: Generate a standard script based on the system file structure and logic rules; Based on the edited system file, generate a system file script; Comparing the parameter information of the specification script and the system file script, and if there is no difference in the parameter information, outputting the system file script; If the parameter information is different, modify the parameter information of the system file architecture, or modify the parameter information of the edited system file.

6. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 4 are implemented.

7. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the steps of the method according to any one of claims 1 to 4 are implemented.