Electrical equipment drawing processing method and device, equipment and medium
By acquiring the text to be processed from electrical equipment drawings and using a preset language text library and text conversion model for automated translation, the problem of low efficiency in translating electrical equipment drawings has been solved, achieving efficient and accurate multilingual display and consistent translation results.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-25
- Publication Date
- 2026-03-13
AI Technical Summary
The existing technology for translating electrical equipment drawings into text is inefficient, cannot achieve automated batch translation, and the translation results depend on human ability and tools, making it impossible to guarantee consistency.
By acquiring the text to be processed from the electrical equipment drawings, determining the processing configuration information, and using a preset language text library and text conversion model for automated translation, the target processing drawings are generated, including the source language type, target text identifier, and target language type processing.
The system enables automated translation of electrical equipment drawings, improving translation efficiency, ensuring the accuracy and consistency of translation results, and reducing reliance on human translation skills.
Smart Images

Figure CN121659386A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a method, apparatus, device and medium for processing electrical equipment drawings. Background Technology
[0002] Electrical equipment R&D and manufacturing companies often use specialized software to design 2D electrical schematics. During or after the design process, they may need to manually display text (such as technical parameters, functional text, nameplate text, etc.) in multiple languages and export it to a specified language using a single click. Therefore, improving the efficiency of translating text in electrical equipment drawings into different languages is crucial. Summary of the Invention
[0003] This invention provides a method, apparatus, device, and medium for processing electrical equipment drawings, so as to improve the efficiency of language translation of text in electrical equipment drawings.
[0004] According to one aspect of the present invention, a method for processing electrical equipment drawings is provided, comprising:
[0005] Obtain the drawing to be processed for the current electrical equipment, and extract the text to be processed from the drawing;
[0006] The current processing configuration information corresponding to the text to be processed is determined, and the text to be processed is processed according to the current processing configuration information and the preset language text library to obtain a reference processed text; wherein, the current processing configuration information includes the source language type, the target text identifier and the target language type;
[0007] Based on the reference processing text and the drawing to be processed, the target processing drawing for the current electrical equipment is determined.
[0008] According to another aspect of the present invention, an apparatus for processing electrical equipment drawings is provided, comprising:
[0009] The pending text determination module is used to obtain the pending drawings of the current electrical equipment and extract the pending text from the pending drawings;
[0010] The reference processing text determination module is used to determine the current processing configuration information corresponding to the text to be processed, and to process the text to be processed according to the current processing configuration information and a preset language text library to obtain the reference processing text; wherein, the current processing configuration information includes the source language type, the target text identifier, and the target language type;
[0011] The target processing drawing determination module is used to determine the target processing drawing of the current electrical equipment based on the reference processing text and the drawing to be processed.
[0012] According to another aspect of the present invention, an electronic device is provided, comprising:
[0013] One or more processors;
[0014] Memory, used to store one or more programs;
[0015] When one or more programs are executed by one or more processors, the one or more processors are able to perform any of the electrical equipment drawing processing methods provided in the embodiments of the present invention.
[0016] According to another aspect of the present invention, a computer-readable storage medium is provided, which stores computer instructions for causing a processor to execute and implement any of the electrical equipment drawing processing methods provided in the embodiments of the present invention.
[0017] This invention provides a processing scheme for electrical equipment drawings. The scheme involves acquiring the drawing to be processed for the current electrical equipment and extracting the text to be processed from it. It then determines the current processing configuration information corresponding to the text to be processed and processes the text according to the current processing configuration information and a preset language text library to obtain a reference processed text. The current processing configuration information includes the source language type, the target text identifier, and the target language type. Finally, based on the reference processed text and the drawing to be processed, the target processed drawing for the current electrical equipment is determined. This scheme, by processing the text to be processed in the drawing to be processed according to the current processing configuration information and a preset language text library to obtain the reference processed text, and then determining the target processed drawing for the current electrical equipment based on the reference processed text and the drawing to be processed, achieves automated determination of the target processed drawing, improving the efficiency of determining the target processed drawing, i.e., improving the efficiency of language translation of text in electrical equipment drawings.
[0018] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description
[0019] To more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart of a method for processing electrical equipment drawings according to Embodiment 1 of the present invention;
[0021] Figure 2 This is a flowchart of a method for processing electrical equipment drawings provided in Embodiment 2 of the present invention;
[0022] Figure 3 This is a schematic diagram of the structure of an electrical equipment drawing processing device provided in Embodiment 4 of the present invention;
[0023] Figure 4 This is a schematic diagram of the structure of an electronic device that implements a method for processing electrical equipment drawings, as provided in Embodiment 5 of the present invention. Detailed Implementation
[0024] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.
[0025] Example 1
[0026] Figure 1 This is a flowchart of a method for processing electrical equipment drawings provided in Embodiment 1 of the present invention. This embodiment is applicable to the situation of translating the text in electrical equipment drawings into languages. The method can be executed by an electrical equipment drawing processing device, which can be implemented in software and / or hardware and can be configured in an electronic device that carries the function of processing electrical equipment drawings.
[0027] S110. Obtain the drawing to be processed for the current electrical equipment and extract the text to be processed from the drawing.
[0028] In this context, "current electrical equipment" refers to the electrical equipment for which language translation of the text in the corresponding drawings is required at the current moment. "Drawings to be processed" refers to drawings that need to be processed. For example, a drawing to be processed could be the schematic diagram of the current electrical equipment.
[0029] The text to be processed can be understood as the text data in the drawing to be processed. For example, the text to be processed may include a text identifier and corresponding text content. The text identifier uniquely identifies the text to be processed. The text content refers to the specific text content corresponding to the text identifier. For example, the types of text content may include single-line text, multi-line text, attribute definitions, and attribute blocks.
[0030] It should be noted that at least two text files can be extracted from the drawing to be processed.
[0031] Specifically, the process involves obtaining the drawings of the current electrical equipment to be processed and extracting the text to be processed from the drawings.
[0032] S120. Determine the current processing configuration information corresponding to the text to be processed, and process the text to be processed according to the current processing configuration information and the preset language text library to obtain the reference processed text.
[0033] The current processing configuration information refers to the information required for language translation. For example, the current processing configuration information includes the source language type, the target text identifier, and the target language type. The source language type refers to the language type corresponding to the text to be processed. The target text identifier can be used to identify the identity of the text to be processed that needs language translation. The target language type refers to the language type into which the text to be processed needs to be translated. For example, if the source language type of the text to be processed is English and the target language type is Chinese, then it indicates that the text to be processed will be translated from English to Chinese.
[0034] The preset language text library refers to a pre-set library used to store text data in different language types. In other words, the preset language text library can store the same text data in different language types. For example, the preset language text library can store text data x1 in language type A, text data x2 in language type B, and text data x3 in language type C, where text data x1, text data x2, and text data x3 represent the same meaning.
[0035] The reference processing text refers to the text after the language translation of the text to be processed.
[0036] S130. Based on the reference processing text and the drawing to be processed, determine the target processing drawing for the current electrical equipment.
[0037] Among them, the target processing drawing refers to the drawing obtained after translating the text to be processed in the drawing to be processed into a language.
[0038] In an optional embodiment, after obtaining the reference processing text, the method further includes: if the number of target language types is at least two, determining the current display configuration information corresponding to the text to be processed, and processing the reference processing text according to the current display configuration information to obtain the target processing text; correspondingly, determining the target processing drawing of the current electrical equipment according to the reference processing text and the drawing to be processed, including: determining the target processing drawing of the current electrical equipment according to the target processing text and the drawing to be processed.
[0039] The current display configuration information refers to the information used to display the translated text data. For example, the current display configuration information may include the language type display order and the language type separator.
[0040] The language type display order refers to a pre-set order used to indicate the display order of reference processed texts corresponding to different target language types under the same text identifier. The language type separator refers to a pre-set character used to separate reference processed texts corresponding to different target language types under the same text identifier. This embodiment of the invention does not specifically limit the setting of the language type display order and language type separator; these can be set by those skilled in the art based on experience or needs.
[0041] The target processing text refers to the text obtained by sorting and adding delimiters to the reference processing text. It can be understood that by processing the reference processing text according to the current display configuration information, the target processing text is obtained. Finally, based on the target processing text and the drawing to be processed, the target processing drawing is determined, improving the accuracy and clarity of the determined target processing drawing. In an optional embodiment, the current display configuration information includes the language type display order and the language type delimiter.
[0042] Specifically, the reference processing texts under the same target language type are sorted according to the display order of language type; a language type separator is added to split the sorted reference processing texts to obtain the target processing text.
[0043] Understandably, by processing the reference text according to the display order of language types and language type separators, the target text is obtained, thus improving the accuracy of the determined target text.
[0044] It should be noted that, in the embodiments of the present invention, the display order of the text to be processed in the target processing drawing is before the corresponding reference processing text by default. That is, in the embodiments of the present invention, the display order of the original text in the target processing drawing is before the translated text by default.
[0045] This invention provides a processing scheme for electrical equipment drawings. The scheme involves acquiring the drawing to be processed for the current electrical equipment and extracting the text to be processed from it. It then determines the current processing configuration information corresponding to the text to be processed and processes the text according to the current processing configuration information and a preset language text library to obtain a reference processed text. The current processing configuration information includes the source language type, the target text identifier, and the target language type. Finally, based on the reference processed text and the drawing to be processed, the target processed drawing for the current electrical equipment is determined. This scheme, by processing the text to be processed in the drawing to be processed according to the current processing configuration information and a preset language text library to obtain the reference processed text, and then determining the target processed drawing for the current electrical equipment based on the reference processed text and the drawing to be processed, achieves automated determination of the target processed drawing, improving the efficiency of determining the target processed drawing, i.e., improving the efficiency of language translation of text in electrical equipment drawings.
[0046] Example 2
[0047] Figure 2 This is a flowchart of a method for processing electrical equipment drawings according to Embodiment 2 of the present invention. Based on the above embodiments, this embodiment further refines the operation of "processing the text to be processed according to the current processing configuration information and a preset language text library to obtain a reference processed text" into "determining candidate processed texts from the text to be processed based on the target text identifier, and determining the target language text based on the preset language text library, the source language type, and the target language type; determining the reference processed text corresponding to the candidate processed text based on the target language text," thereby improving the mechanism for determining the reference processed text. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments.
[0048] See Figure 2 The methods for processing the electrical equipment drawings shown include:
[0049] S210. Obtain the drawing to be processed for the current electrical equipment and extract the text to be processed from the drawing.
[0050] S220. Determine the current processing configuration information corresponding to the text to be processed.
[0051] The current processing configuration information includes the source language type, target text identifier, and target language type.
[0052] S230. Based on the target text identifier, determine the candidate text to be processed from the text to be processed, and determine the target language text based on the preset language text library, the source language type and the target language type.
[0053] Candidate text refers to the text to be processed that requires language translation. Target language text refers to the text in the preset language text library that corresponds to the candidate text in the target language type.
[0054] Specifically, the text to be processed that matches the target text identifier is taken as the candidate text to be processed; the target language text in the target language type corresponding to the candidate text in the source language type is searched from the preset language text library.
[0055] S240. Based on the target language text, determine the reference processing text corresponding to the candidate processing text.
[0056] In an optional embodiment, determining the reference processing text corresponding to the candidate processing text based on the target language text includes: for any candidate processing text, determining the current language text corresponding to the candidate processing text from the target language text, and using the current language text as the reference processing text for the candidate processing text.
[0057] The current language text refers to the target language text that matches the candidate text.
[0058] Understandably, by determining the current language text that matches any candidate processing text from the target language text and using the current language text as the reference processing text for the candidate processing text, the efficiency of determining the reference processing text is improved, which in turn improves the efficiency of language translation of the candidate processing text.
[0059] In an optional embodiment, the method further includes: if there is no current language text corresponding to the candidate processing text in the target language text, then inputting the candidate processing text, the source language type, and the target language type into the trained text conversion model to obtain the reference processing text corresponding to the candidate processing text.
[0060] Among them, the text conversion model can be used to translate candidate processed texts into language to obtain reference processed texts in the target language type.
[0061] Understandably, by inputting candidate processing texts that do not match the current language text, the source language type, and the target language type into the text conversion model, the corresponding reference processing text is obtained, thus improving the accuracy of the determined reference processing text.
[0062] In an optional embodiment, the method further includes: determining the text to be updated from the candidate processed texts, and updating the preset language text library based on the text to be updated and the corresponding reference processed text.
[0063] Among them, the text to be updated refers to the candidate text to be processed based on the text conversion model that determines the reference text to be processed.
[0064] Understandably, candidate processing texts determined based on the text conversion model are used as texts to be updated. The texts to be updated and the reference processing texts determined based on the text conversion model are added to the preset language text library to update the preset language text library and improve the comprehensiveness of the data in the preset language text library.
[0065] S250. Based on the reference processing text and the drawing to be processed, determine the target processing drawing for the current electrical equipment.
[0066] This invention provides a processing scheme for electrical equipment drawings. By processing the text to be processed according to current processing configuration information and a preset language text library to obtain reference processing text, the process is refined into determining candidate processing texts from the text to be processed based on a target text identifier, determining the target language text based on the preset language text library, source language type, and target language type, and finally determining the reference processing text corresponding to the candidate processing text based on the target language text. This improves the mechanism for determining the reference processing text. The above scheme improves the efficiency of determining the reference processing text by determining candidate processing texts based on target text identifiers, determining the target language text based on the preset language text library, source language type, and target language type, and finally determining the reference processing text corresponding to the candidate processing text based on the target language text.
[0067] Example 3
[0068] This invention provides an optional example based on the above embodiments. It should be noted that for parts not described in detail in this invention's embodiments, please refer to the descriptions in other embodiments.
[0069] Existing computer-aided design and drawing software lacks automatic text translation and multilingual display capabilities, requiring manual text entry and modification. Manual text entry and modification have the following drawbacks: firstly, they are inefficient, lacking batch or automatic translation capabilities; secondly, identical text cannot be guaranteed to translate identically, relying entirely on manually entered content; and finally, manual entry heavily depends on the translation skills of personnel and external translation dictionary software tools, making it impossible to utilize a custom database to determine the translation result.
[0070] This invention provides a method for multilingual text translation and display based on a multilingual lexicon and a large model, relating to the field of two-dimensional electrical schematic design technology. It enables one-click refresh of the multilingual display results of attribute text in the schematic diagram, and one-click translation and export of drawings to a specified language, meeting the project's requirements for multilingual display and export / save.
[0071] For example, schematic design: Drawings are created using relevant professional software, which can include single-line text, multi-line text, attribute definitions, attribute blocks and other entity types, thus generating the drawing to be processed for the current electrical equipment.
[0072] For example, extracting text information: After the drawing design is completed, click a button or menu, or enter a name to activate the multilingual translation and display function. First, it automatically extracts translatable text information from a single drawing or multiple drawings. Entities containing text include, but are not limited to: single-line text, multi-line text, attribute definitions, and attribute blocks. Then, it extracts uniquely identifying data such as the text value of the entity or the identifier of the entity object; that is, it extracts the text to be processed from the drawing. The extracted text can be stored in memory, a database, or a disk file.
[0073] For example, reading multilingual display configuration: The multilingual display configuration can be read from the data in the drawing, or from an external database or disk configuration file; the configuration information includes, but is not limited to: the language type of the current text (i.e., the source language type); the entity type identifier that needs to be translated (i.e., the target text identifier); the target language type; the target translation languages and order (i.e., the language type display order), multiple target languages can be selected and sorted; the separator between multiple languages when the text is displayed (i.e., the language type separator).
[0074] For example, a multilingual lexicon: Traverse the extracted text information, and query and match entries in the multilingual lexicon (i.e., a preset language text library) according to the source language to the target language. The matching method may include error handling for invalid characters, ignoring uppercase and lowercase, etc. When there is a matching translation result, the translation result is recorded in memory, database, or file. That is, for any candidate text to be processed, determine the current language text corresponding to the candidate text from the target language text, and use the current language text as the reference text for the candidate text to be processed, and record the reference text in memory, database, or file.
[0075] For example, in large-scale model translation: the translation results are traversed to identify whether a match and translation result have been found. If not, the large-scale model translation is used for intelligent translation. If a translation result is found, it is recorded in memory, database, or file. That is, if the current language text corresponding to the candidate processing text does not exist in the target language text, the candidate processing text, source language type, and target language type are input into the trained text conversion model to obtain the reference processing text corresponding to the candidate processing text.
[0076] It should be noted that, in the embodiments of the present invention, when translating the text to be processed, only the text content to be processed in the text to be processed can be translated, while the text identifier to be processed in the text to be processed remains unchanged, so as to facilitate subsequent sorting of reference processed texts of different target language types under the same text identifier.
[0077] For example, previewing and modifying translation results: The translation results are displayed through a window list control, which needs to show source language and target language data, and the translation results of the target language can be modified individually or in batches; translation comparison data can be selected individually or in multiples, and the selected data can be added or updated and written to the multilingual lexicon, that is, the text to be updated is determined from the candidate processed texts, and the preset language text library is updated according to the text to be updated and the corresponding reference processed text.
[0078] For example, rewriting the translation result to a text value: After modifying and confirming the translation result, the translation result can be rewritten to the text value of the entity according to the specified display order and delimiters, etc., by searching for text identifiers. That is, the reference processed text is processed according to the language type display order and language type delimiters to obtain the target processed text.
[0079] For example, the save or save as function can save the target processing drawings or projects, or batch save the target processing drawings or projects to disk files.
[0080] The present invention provides a solution for processing electrical equipment drawings, including a method for automatically translating drawing text information through a dictionary or large model, a method for automatically translating text information by establishing a multilingual dictionary, a method for automatically translating text information by accessing a large model, a method for previewing translation results and quickly adding or updating them to the dictionary, and a method for automatically writing the translation results back into text entity objects.
[0081] The present invention provides a solution for processing electrical equipment drawings, which has the following advantages: Improved translation efficiency: By automatically extracting all text objects from the drawing, reading the configuration, and automatically completing batch text translation using a multilingual dictionary or large model, the translation is written back to the object text values with one click. Compared to manual translation and filling in each object individually, efficiency is greatly improved, especially in scenarios requiring the translation of large amounts of text, where efficiency is improved by more than 100 times. Improved translation accuracy: Through dictionary matching translation, accurate translation results with certain specifications and standards can be obtained; through large model translation, intelligent translation can be automatically used, and there are preview, viewing, modification, and confirmation functions, which can basically guarantee the accuracy of the translation results. Through the dictionary or large model, the translation results for the same source language can be guaranteed to be consistent; compared to manual translation, the accuracy and consistency of the translation results are greatly improved; Reduced requirements for personnel translation skills: Through the database and large model functions, the translation results are automatically obtained without relying on the language translation skills of personnel during manual translation. Only manual review and proofreading of the translation results are required, which greatly reduces the dependence on personnel translation skills and reduces labor costs.
[0082] Example 4
[0083] Figure 3 This is a schematic diagram of the structure of an electrical equipment drawing processing device provided in Embodiment 4 of the present invention. This embodiment is applicable to the situation of translating the text in electrical equipment drawings. The method can be executed by the electrical equipment drawing processing device, which can be implemented in software and / or hardware and can be configured in an electronic device that carries the function of processing electrical equipment drawings.
[0084] like Figure 3 As shown, the device includes: a text-to-be-processed determination module 310, a reference text-to-be-processed determination module 320, and a target drawing-to-be-processed determination module 330. Among them,
[0085] The text to be processed determination module 310 is used to obtain the drawing to be processed of the current electrical equipment and extract the text to be processed from the drawing to be processed;
[0086] The reference processing text determination module 320 is used to determine the current processing configuration information corresponding to the text to be processed, and to process the text to be processed according to the current processing configuration information and a preset language text library to obtain the reference processing text; wherein, the current processing configuration information includes the source language type, the target text identifier, and the target language type;
[0087] The target processing drawing determination module 330 is used to determine the target processing drawing of the current electrical equipment based on the reference processing text and the drawing to be processed.
[0088] This invention provides a processing scheme for electrical equipment drawings. The scheme involves acquiring the drawing to be processed for the current electrical equipment and extracting the text to be processed from it. It then determines the current processing configuration information corresponding to the text to be processed and processes the text according to the current processing configuration information and a preset language text library to obtain a reference processed text. The current processing configuration information includes the source language type, the target text identifier, and the target language type. Finally, based on the reference processed text and the drawing to be processed, the target processed drawing for the current electrical equipment is determined. This scheme, by processing the text to be processed in the drawing to be processed according to the current processing configuration information and a preset language text library to obtain the reference processed text, and then determining the target processed drawing for the current electrical equipment based on the reference processed text and the drawing to be processed, achieves automated determination of the target processed drawing, improving the efficiency of determining the target processed drawing, i.e., improving the efficiency of language translation of text in electrical equipment drawings.
[0089] Optionally, the reference processing text determination module 320 includes:
[0090] The target language text determination unit is used to determine candidate processing texts from the text to be processed based on the target text identifier, and to determine the target language text based on the preset language text library, the source language type, and the target language type;
[0091] The reference processing text determination unit is used to determine the reference processing text corresponding to the candidate processing text based on the target language text.
[0092] Optionally, the reference processing text determination unit includes:
[0093] The first reference processing text determination subunit is used to determine the current language text corresponding to any candidate processing text from the target language text, and to use the current language text as the reference processing text for the candidate processing text.
[0094] Optionally, the device further includes:
[0095] The second reference processing text determination subunit is used to input the candidate processing text, the source language type, and the target language type into the trained text conversion model if there is no current language text corresponding to the candidate processing text in the target language text, so as to obtain the reference processing text corresponding to the candidate processing text.
[0096] Optionally, the device further includes:
[0097] The text library update unit is used to determine the text to be updated from the candidate processed texts, and update the preset language text library according to the text to be updated and the corresponding reference processed text.
[0098] Optionally, after obtaining the reference processed text, the apparatus further includes:
[0099] The target processing text determination module is used to determine the current display configuration information corresponding to the text to be processed if the number of target language types is at least two, and to process the reference processing text according to the current display configuration information to obtain the target processing text;
[0100] Accordingly, the target processing drawing determination module 330 includes:
[0101] The target processing drawing determination unit is used to determine the target processing drawing of the current electrical equipment based on the target processing text and the drawing to be processed.
[0102] Optionally, the current display configuration information includes the language type display order and the language type separator.
[0103] The electrical equipment drawing processing apparatus provided in this embodiment of the invention can execute the electrical equipment drawing processing method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects for executing each electrical equipment drawing processing method.
[0104] The technical solutions of this invention involve the collection, storage, use, processing, transmission, provision, and disclosure of drawings and other materials, all of which comply with relevant laws and regulations and do not violate public order and good morals.
[0105] Example 5
[0106] Figure 4 This is a schematic diagram of an electronic device that implements a method for processing electrical equipment drawings, according to Embodiment 5 of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0107] like Figure 4 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.
[0108] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0109] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as the processing methods for electrical equipment drawings.
[0110] In some embodiments, the method for processing electrical equipment drawings may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the method for processing electrical equipment drawings described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the method for processing electrical equipment drawings by any other suitable means (e.g., by means of firmware).
[0111] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0112] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0113] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.
[0114] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0115] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or middleware components (e.g., application servers), or frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.
[0116] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.
[0117] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.
[0118] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. A method for processing electrical equipment drawings, characterized in that, include: Obtain the drawing to be processed for the current electrical equipment, and extract the text to be processed from the drawing; The current processing configuration information corresponding to the text to be processed is determined, and the text to be processed is processed according to the current processing configuration information and the preset language text library to obtain a reference processed text; wherein, the current processing configuration information includes the source language type, the target text identifier and the target language type; Based on the reference processing text and the drawing to be processed, the target processing drawing for the current electrical equipment is determined.
2. The method according to claim 1, characterized in that, The step of processing the text to be processed according to the current processing configuration information and the preset language text library to obtain a reference processed text includes: Based on the target text identifier, candidate texts are determined from the text to be processed, and the target language text is determined based on the preset language text library, the source language type, and the target language type. Based on the target language text, determine the reference processing text corresponding to the candidate processing text.
3. The method according to claim 2, characterized in that, The step of determining the reference processing text corresponding to the candidate processing text based on the target language text includes: For any candidate text to be processed, the current language text corresponding to the candidate text is determined from the target language text, and the current language text is used as the reference text for the candidate text to be processed.
4. The method according to claim 3, characterized in that, The method further includes: If the current language text corresponding to the candidate processing text does not exist in the target language text, then the candidate processing text, the source language type, and the target language type are input into the trained text conversion model to obtain the reference processing text corresponding to the candidate processing text.
5. The method according to claim 4, characterized in that, The method further includes: The text to be updated is determined from the candidate processed texts, and the preset language text library is updated based on the text to be updated and the corresponding reference processed text.
6. The method according to claim 1, characterized in that, After obtaining the reference processed text, the method further includes: If the number of target language types is at least two, then the current display configuration information corresponding to the text to be processed is determined, and the reference processing text is processed according to the current display configuration information to obtain the target processing text; Accordingly, determining the target processing drawing for the current electrical equipment based on the reference processing text and the drawing to be processed includes: Based on the target processing text and the drawing to be processed, the target processing drawing of the current electrical equipment is determined.
7. The method according to claim 6, characterized in that, The current display configuration information includes the language type display order and the language type separator.
8. A device for processing electrical equipment drawings, characterized in that, include: The pending text determination module is used to obtain the pending drawings of the current electrical equipment and extract the pending text from the pending drawings; The reference processing text determination module is used to determine the current processing configuration information corresponding to the text to be processed, and to process the text to be processed according to the current processing configuration information and a preset language text library to obtain the reference processing text; wherein, the current processing configuration information includes the source language type, the target text identifier, and the target language type; The target processing drawing determination module is used to determine the target processing drawing of the current electrical equipment based on the reference processing text and the drawing to be processed.
9. An electronic device, characterized in that, include: One or more processors; Memory, used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement a method for processing electrical equipment drawings as described in any one of claims 1-7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When executed by a processor, the program implements a method for processing electrical equipment drawings as described in any one of claims 1-7.