Optimization of classification methods and equipment for device standard system
By calculating the byte length difference of device standard entries and constructing standard functions, the device standard system is optimized, solving the problems of crossover and redundancy between standards, achieving the unification and coordination of standards, and ensuring the standardized use and maintenance of devices.
Patent Information
- Application Number
- CN202110971364.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-24
- Publication Date
- 2024-09-13
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
There are overlaps and redundancies between standards in the existing device standard system, which leads to operation and maintenance errors and affects the quality and practical life of the device.
By obtaining device standard items, calculating the byte length difference, constructing a standard function to evaluate the word comparison results, determining standard item clusters and effective words, optimizing the classification of the standard system, eliminating redundant standards and clarifying the scope of application.
It has achieved the unification and coordination of device standards, eliminated redundant standards, ensured standardized use and maintenance, and improved the scope of application and reliability of the standards.
Smart Images

Figure CN113723097B
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of equipment management technology, and in particular, to an equipment standard system optimization classification method and equipment. Background Art
[0002] At present, all units need to purchase a variety of equipment to meet daily production needs. After the equipment is purchased, its use and storage need to be standardized according to the corresponding standards. The current equipment-related standard system on the market mainly includes national standards, industry standards, and departmental standards, and the number of standards is very large. Due to the different sources of equipment-related standards and unclear boundaries between standards, it is easy for redundancy such as overlap and duplication to occur between standards. Chaotic standard systems often cause operational errors in equipment operation and maintenance, and in severe cases even affect the quality and practical life of the equipment. Therefore, the development of an optimized classification method and equipment for the equipment standard system can effectively overcome the defects in the above-mentioned related technologies, which has become a technical problem that needs to be urgently solved in the industry. Summary of the invention
[0003] In view of the above problems existing in the prior art, an embodiment of the present invention provides a method and device for optimizing the classification of a device standard system.
[0004] In a first aspect, an embodiment of the present invention provides a method for optimizing and classifying a medical device standard system, comprising: obtaining a plurality of medical device standard items, comparing the byte lengths of every two medical device standard items in the plurality of medical device standard items, and obtaining a byte length difference between every two medical device standard items; extracting all every two medical device standard items whose byte length difference is less than a first preset threshold to form a first standard item cluster, selecting any two medical device standard items in the first standard item cluster and respectively determining valid words, and performing a word comparison on the valid words of the any two medical device standard items; constructing a standard function to evaluate the word comparison result, and if the value of the standard function is less than a second preset threshold, determining that the two medical device standard items belong to standard items with the same content; selecting any one medical device standard item from the two medical device standard items, and optimizing and classifying the medical device standard system.
[0005] On the basis of the contents of the above method embodiments, an apparatus standard system optimization classification method provided in an embodiment of the present invention, wherein the byte lengths of every two apparatus standard entries among a plurality of apparatus standard entries are compared to obtain the byte length difference between every two apparatus standard entries, including: storing one apparatus standard entry among every two apparatus standard entries into a memory space, and recording the first address and the last address of the one apparatus standard entry, using the address adjacent to the last address as the first address of another apparatus standard entry, storing the other apparatus standard entry into a memory space, and recording the last address of the other apparatus standard entry, taking the middle address between the first address of the one apparatus standard entry and the last address of the other apparatus standard entry, and obtaining the byte length difference between every two apparatus standard entries according to the middle address and the last address of the one apparatus standard entry.
[0006] Based on the content of the above method embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the byte length difference between each two device standard entries is obtained according to the intermediate address and the tail address of the device standard entry, including:
[0007]
[0008] Wherein, C is the byte length difference between every two equipment standard entries; A is the middle address; B is the tail address of the equipment standard entry; and W is the number of bits of the computer.
[0009] Based on the contents of the above method embodiments, the device standard system optimization classification method provided in the embodiments of the present invention, wherein any two device standard items in the first standard item cluster are selected and valid words are determined respectively, including: determining the type of word according to the number of words, in each of the any two device standard items, forming a word according to the number of words from left to right, comparing the word with similar words in the word library, and determining it as a valid word if the same word can be matched in the word library.
[0010] Based on the content of the above method embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the word comparison of the valid words of any two device standard items includes:
[0011] V=a ij -b ij
[0012]
[0013]
[0014] Among them, V is the word comparison result; a ij is the i-th word in the j-th category term in a device standard entry; bij is the i-th word in the j-th category of another device standard entry; j is the category of the word determined by the number of words; z k To constitute a ij The kth word of ; y k To constitute b ij The kth word of .
[0015] Based on the content of the above method embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the construction of the standard function to evaluate the word comparison result includes:
[0016]
[0017] Where T is the standard function; N is the number of words; n is the number of two-word words; ω ij is the weight of the i-th word in the j-th category.
[0018] On the basis of the contents of the above method embodiments, the method for optimizing and classifying the device standard system provided in the embodiments of the present invention, wherein any one of the two device standard items is selected to optimize and classify the device standard system, comprises: selecting any one of the two device standard items as the standard item of the device for use, or respectively incorporating the two device standard items into different standard systems, so that the two standard systems can refer to each other, thereby realizing the optimized classification of the device standard system.
[0019] In a second aspect, an embodiment of the present invention provides an apparatus for optimizing and classifying a medical device standard system, comprising: a first main module, for acquiring a plurality of medical device standard items, comparing the byte lengths of every two medical device standard items among the plurality of medical device standard items, and obtaining a byte length difference between every two medical device standard items; a second main module, for extracting all every two medical device standard items whose byte length difference is less than a first preset threshold to form a first standard item cluster, selecting any two medical device standard items in the first standard item cluster and respectively determining valid words, and performing a word comparison on the valid words of the any two medical device standard items; a third main module, for constructing a standard function to evaluate the word comparison result, and if the value of the standard function is less than the second preset threshold, determining that the two medical device standard items belong to standard items with the same content; and a fourth main module, for selecting any one medical device standard item from the two medical device standard items, and optimizing and classifying the medical device standard system.
[0020] In a third aspect, an embodiment of the present invention provides an electronic device, including:
[0021] at least one processor; and
[0022] at least one memory in communication with the processor, wherein:
[0023] The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the device standard system optimization classification method provided by any one of the various implementations of the first aspect.
[0024] In a fourth aspect, an embodiment of the present invention provides a non-transitory computer-readable storage medium, which stores computer instructions, and the computer instructions enable a computer to execute the device standard system optimization classification method provided by any one of the various implementation methods of the first aspect.
[0025] The device standard system optimization classification method and device provided in the embodiment of the present invention obtains the byte length difference between every two device standard items and forms a first standard item cluster, determines valid words in the first standard item cluster, performs word comparison on the valid words, and constructs a standard function to evaluate the word comparison result. If the value of the standard function is less than the second preset threshold, it is determined that the two device standard items belong to standard items with the same content. Any device standard item is selected to optimize the classification of the device standard system, which can unify and coordinate various standards of the device, eliminate redundant standards, clarify the scope of application of various standards, and lay a solid foundation for the standardized use and maintenance of the device. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, a brief introduction is given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0027] Figure 1 A flow chart of a method for optimizing the classification of device standard systems provided in an embodiment of the present invention;
[0028] Figure 2 A schematic diagram of the structure of a device standard system optimization classification device provided in an embodiment of the present invention;
[0029] Figure 3 A schematic diagram of the physical structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. In addition, the technical features in the various embodiments or single embodiments provided by the present invention can be arbitrarily combined with each other to form a feasible technical solution. This combination is not subject to the constraints of the sequence of steps and / or the structural composition mode, but must be based on the ability of ordinary technicians in this field to achieve. When the combination of technical solutions is contradictory or cannot be achieved, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.
[0031] The present invention provides a method for optimizing the classification of device standard systems. Figure 1 The method includes: obtaining a plurality of device standard items, comparing the byte lengths of every two device standard items in the plurality of device standard items, and obtaining the byte length difference between every two device standard items; extracting all every two device standard items whose byte length difference is less than a first preset threshold to form a first standard item cluster, selecting any two device standard items in the first standard item cluster and respectively determining valid words, and performing word comparison on the valid words of the any two device standard items; constructing a standard function to evaluate the word comparison result, and if the value of the standard function is less than a second preset threshold, determining that the two device standard items belong to standard items with the same content; selecting any one of the two device standard items, and optimizing and classifying the device standard system.
[0032] Based on the content of the above method embodiment, as an optional embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the byte lengths of every two device standard entries in a plurality of device standard entries are compared to obtain the byte length difference between every two device standard entries, including: storing one device standard entry in the memory space of every two device standard entries, and recording the first address and the last address of the one device standard entry, using the address adjacent to the last address as the first address of another device standard entry, storing the other device standard entry in the memory space, and recording the last address of the other device standard entry, taking the middle address between the first address of the one device standard entry and the last address of the other device standard entry, and obtaining the byte length difference between every two device standard entries according to the middle address and the last address of the one device standard entry.
[0033] Based on the content of the above method embodiment, as an optional embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the byte length difference between each two device standard entries is obtained according to the intermediate address and the tail address of the device standard entry, including:
[0034]
[0035] Wherein, C is the byte length difference between every two equipment standard entries; A is the middle address; B is the tail address of the equipment standard entry; and W is the number of bits of the computer.
[0036] Specifically, the method commonly used for comparing the byte lengths of two equipment standard entries is to compare the two equipment standard entries byte by byte, and then take the difference of the comparison results. Although this comparison method is reliable, it has the problem of occupying a large memory space, causing a certain burden on memory resources, and may even cause downtime when the content of the equipment standard entry is large. The comparison method of the byte lengths of the two equipment standard entries provided by the embodiment of the present invention is used for comparison, which will greatly save computing resources, improve computing efficiency, and ensure the efficient acquisition of the difference of the comparison result. For example, there are two days of equipment standard entries, each with 16 bytes and 25 bytes. When the traditional method is used for comparison, it is necessary to compare byte by byte. After the first 16 bytes of the shorter equipment standard entry are compared, it is also necessary to call 9 empty addresses in the memory space to compare with the addresses occupied by the extra 9 bytes of the longer equipment standard entry, so that the computer actually calls the addresses of 41 valid bytes, and additionally calls the addresses of 9 empty bytes, calling a total of 50 addresses. In contrast, the method for comparing the byte lengths of two device standard entries provided by the embodiment of the present invention only needs to call the first address and the last address of one device standard entry, call the last address of another device standard entry, and then call an intermediate address between the first address of one device standard entry and the last address of the other device standard entry, that is, only four addresses need to be called in total to complete the comparison of the byte lengths of the two device standard entries. Moreover, the method for comparing the byte lengths of two device standard entries provided by the embodiment of the present invention only needs to use four address spaces when comparing each two device standard entries, no matter how many standard entries there are and how long the bytes of a single standard entry are (that is, how much memory space is occupied). This can save a lot of memory space computing resources when there are many device standard entries to be compared and each device standard entry is long, and effectively improve the computing efficiency of the comparison of device standard entries. Specifically, if 30 pairs of device standard entries need to be compared, and the longest device standard entry in each pair of device standard entries occupies 30 address spaces, the traditional comparison method needs to call and compare the address space 900 times after comparing the 30 pairs of device standard entries, while the method of comparing the byte lengths of the two device standard entries provided by the embodiment of the present invention only needs to call and calculate the address space 120 times, which is 7.5 times different. It can be seen that the method of comparing the byte lengths of the two device standard entries provided by the present invention significantly improves the calculation and comparison efficiency of the computer. It should be noted that the first preset threshold is 5 bytes to 8 bytes, and can be specifically 6 bytes.
[0037] Based on the content of the above method embodiment, as an optional embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the selecting any two device standard items in the first standard item cluster and respectively determining the valid words, includes: determining the type of the word according to the number of words, in each of the any two device standard items, forming a word according to the number of words from left to right, comparing the word with similar words in the word library, and if the same word can be matched in the word library, determining it as a valid word.
[0038] Specifically, the effective word can be a two-character word, a three-character word and / or a four-character word (i.e., the type of the word is determined according to the number of characters). Taking a two-character word as an example, the selection method is to start from the first character on the left side of the standard entry of the device, and each adjacent two characters form a word, and the word is compared with the words in the pre-designed vocabulary. If it is the same or similar to a word in the vocabulary, the word is determined to be a valid word, and the word is stored in the memory space for subsequent use in word comparison. For three-character words and four-character words, a similar method can also be used (i.e., every three or four characters form a word) to determine the effective word.
[0039] Based on the content of the above method embodiment, as an optional embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the word comparison of the valid words of any two device standard items includes:
[0040] V=a ij -b ij
[0041]
[0042]
[0043] Among them, V is the word comparison result; a ij is the i-th word in the j-th category term in a device standard entry; b ij is the i-th word in the j-th category of another device standard entry; j is the category of the word determined by the number of words; z k To constitute a ij The kth word of ; y k To constitute b ij The kth word of .
[0044] Based on the content of the above method embodiment, as an optional embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, the construction of the standard function to evaluate the word comparison result includes:
[0045]
[0046] Where T is the standard function; N is the number of words; n is the number of two-word words; ω ij is the weight of the i-th word in the j-th category.
[0047] Specifically, for different device standard items, the importance of words with different word counts in the comparison process of two device standard items may be different. In some device standard items, two-word words can better represent their essence, while in some device standard items, three-word words can better represent their essence. This requires adding weights to the comparison results of valid words, so that the differences between device standard items can be effectively reflected. Finally, the weighted comparison results of each valid word are summed up to obtain the final value of the standard function. This value can be compared with the second preset threshold to determine whether the two device standard items are the same in content or substance. For example, the second preset threshold can be 5 to 15, and specifically 10. When the value T of the standard function is less than 10, it can be determined that the two device standard items are substantially the same.
[0048] Based on the content of the above method embodiment, as an optional embodiment, the device standard system optimization classification method provided in the embodiment of the present invention, wherein any one of the two device standard items is selected to optimize the classification of the device standard system, includes: selecting any one of the two device standard items as the standard item of the device for use, or respectively incorporating the two device standard items into different standard systems, so that the two standard systems can refer to each other, thereby realizing the optimization classification of the device standard system.
[0049] The device standard system optimization classification method provided by the embodiment of the present invention obtains the byte length difference between every two device standard items and forms a first standard item cluster, determines valid words in the first standard item cluster, performs word comparison on the valid words, and constructs a standard function to evaluate the word comparison result. If the value of the standard function is less than the second preset threshold, it is determined that the two device standard items belong to standard items with the same content. Any device standard item is selected to optimize the classification of the device standard system, which can unify and coordinate various standards of the device, eliminate redundant standards, clarify the scope of application of various standards, and lay a reliable foundation for the standardized use and maintenance of the device.
[0050] The implementation basis of each embodiment of the present invention is to implement programmed processing through a device with a processor function. Therefore, in engineering practice, the technical solutions and functions of each embodiment of the present invention can be encapsulated into various modules. Based on this reality, on the basis of the above embodiments, the embodiment of the present invention provides a device for optimizing and classifying a medical device standard system, which is used to execute the device standard system optimization and classification method in the above method embodiment. Figure 2The device includes: a first main module, which is used to obtain a plurality of device standard items, compare the byte lengths of every two device standard items in the plurality of device standard items, and obtain the byte length difference between every two device standard items; a second main module, which is used to extract all every two device standard items whose byte length difference is less than a first preset threshold to form a first standard item cluster, select any two device standard items in the first standard item cluster and determine the valid words respectively, and perform word comparison on the valid words of the any two device standard items; a third main module, which is used to construct a standard function to evaluate the word comparison result, and if the value of the standard function is less than the second preset threshold, it is determined that the two device standard items belong to standard items with the same content; a fourth main module, which is used to select any one of the two device standard items and optimize and classify the device standard system.
[0051] The device for optimizing the classification of the equipment standard system provided by the embodiment of the present invention adopts Figure 2 Several modules in it, by obtaining the byte length difference between every two device standard items, and forming a first standard item cluster, determining valid words in the first standard item cluster, performing word comparison on the valid words, and constructing a standard function to evaluate the word comparison result, if the value of the standard function is less than the second preset threshold value, it is determined that the two device standard items belong to standard items with the same content, and any device standard item is selected to optimize the classification of the device standard system, which can unify and coordinate various device standards, eliminate redundant standards, clarify the scope of application of various standards, and lay a solid foundation for the standardized use and maintenance of devices.
[0052] It should be noted that the device in the device embodiment provided by the present invention can be used to implement the method in the above method embodiment as well as the method in other method embodiments provided by the present invention. The only difference is that the corresponding functional modules are set, and the principle is basically the same as the principle of the above device embodiment provided by the present invention. As long as the technical personnel in the field refer to the specific technical solutions in other method embodiments on the basis of the above device embodiment, obtain the corresponding technical means and the technical solutions composed of these technical means by combining technical features, the device in the above device embodiment can be improved on the premise of ensuring the practicality of the technical solution, thereby obtaining the corresponding device class embodiment, which is used to implement the methods in other method class embodiments. For example:
[0053] Based on the content of the above-mentioned device embodiment, as an optional embodiment, the device for optimizing and classifying the equipment standard system provided in the embodiment of the present invention further includes: a first submodule, which is used to implement the comparison of the byte lengths of every two equipment standard entries in the plurality of equipment standard entries to obtain the byte length difference between every two equipment standard entries, including: storing one of every two equipment standard entries into the memory space, and recording the first address and the last address of the one equipment standard entry, using the address adjacent to the last address as the first address of the other equipment standard entry, storing the other equipment standard entry into the memory space, and recording the last address of the other equipment standard entry, taking the middle address between the first address of the one equipment standard entry and the last address of the other equipment standard entry, and obtaining the byte length difference between every two equipment standard entries according to the middle address and the last address of the one equipment standard entry.
[0054] Based on the content of the above device embodiment, as an optional embodiment, the device for optimizing and classifying the device standard system provided in the embodiment of the present invention further includes: a second submodule, which is used to obtain the byte length difference between each two device standard entries according to the intermediate address and the tail address of the device standard entry, including:
[0055]
[0056] Wherein, C is the byte length difference between every two equipment standard entries; A is the middle address; B is the tail address of the equipment standard entry; and W is the number of bits of the computer.
[0057] Based on the content of the above-mentioned device embodiment, as an optional embodiment, the device for optimizing and classifying the device standard system provided in the embodiment of the present invention further includes: a third submodule, which is used to realize the selection of any two device standard items in the first standard item cluster and respectively determine the valid words, including: determining the type of the word according to the number of words, in each of the any two device standard items, forming a word according to the number of words from left to right, comparing the word with similar words in the word library, and if the same word can be matched in the word library, it is determined to be a valid word.
[0058] Based on the content of the above device embodiment, as an optional embodiment, the device for optimizing and classifying the device standard system provided in the embodiment of the present invention further includes: a fourth submodule, which is used to implement the word comparison of the valid words of the any two device standard items, including:
[0059] V=a ij -b ij
[0060]
[0061]
[0062] Among them, V is the word comparison result; a ij is the i-th word in the j-th category term in a device standard entry; b ij is the i-th word in the j-th category of another device standard entry; j is the category of the word determined by the number of words; z k To constitute a ij The kth word of ; y k To constitute b ij The kth word of .
[0063] Based on the content of the above device embodiment, as an optional embodiment, the device for optimizing the classification of the device standard system provided in the embodiment of the present invention further includes: a fifth submodule, which is used to implement the evaluation of the word comparison result by constructing the standard function, including:
[0064]
[0065] Where T is the standard function; N is the number of words; n is the number of two-word words; ω ij is the weight of the i-th word in the j-th category.
[0066] Based on the contents of the above-mentioned device embodiment, as an optional embodiment, the device for optimizing and classifying the device standard system provided in the embodiment of the present invention further includes: a sixth submodule, which is used to realize the selection of any one of the two device standard items and optimize the classification of the device standard system, including: selecting any one of the two device standard items as the standard item of the device for use, or respectively incorporating the two device standard items into different standard systems, so that the two standard systems can refer to each other, thereby realizing the optimized classification of the device standard system.
[0067] The method of the embodiment of the present invention is implemented by relying on electronic devices, so it is necessary to introduce the relevant electronic devices. Based on this purpose, the embodiment of the present invention provides an electronic device, such as Figure 3 As shown, the electronic device includes: at least one processor, a communication interface, at least one memory, and a communication bus, wherein at least one processor, the communication interface, and at least one memory communicate with each other through the communication bus. At least one processor can call the logic instructions in at least one memory to execute all or part of the steps of the method provided by the aforementioned various method embodiments.
[0068] In addition, the logic instructions in the at least one memory mentioned above can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on this understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each method embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0069] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0071] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. Based on this understanding, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and sometimes in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0072] In this patent, the terms "include", "comprises" or any other variation thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of more restrictions, the elements defined by the sentence "includes..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0073] 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 make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for optimizing and classifying a device standard system, characterized in that: include: Acquire a number of device standard items, compare the byte lengths of every two device standard items in the number of device standard items, and obtain the byte length difference between every two device standard items; extract all every two device standard items whose byte length difference is less than a first preset threshold to form a first standard item cluster, select any two device standard items in the first standard item cluster and determine valid words respectively, and perform word comparison on the valid words of the any two device standard items; construct a standard function to evaluate the word comparison result, if the value of the standard function is less than a second preset threshold, it is determined that the two device standard items belong to standard items with the same content; select any one device standard item from the two device standard items, and optimize and classify the device standard system; the byte length comparison of every two device standard items in the number of device standard items to obtain the byte length difference between every two device standard items includes: storing one device standard item from every two device standard items in the first standard item cluster; The method comprises the steps of: storing the first address and the last address of the first device standard entry in the memory space, recording the first address and the last address of the first device standard entry, taking the middle address between the first address of the first device standard entry and the last address of the second device standard entry, and obtaining the byte length difference between each two device standard entries according to the middle address and the last address of the first device standard entry; selecting any two device standard entries in the first standard entry cluster and determining valid words respectively, including: determining the type of word according to the number of words, forming a word from left to right in each of the two device standard entries according to the number of words, comparing the word with similar words in the word library, and determining the word as a valid word if the same word can be matched in the word library; comparing the valid words of the two device standard entries, including: V=a ij -b ij Among them, V is the word comparison result; a ij is the i-th word in the j-th category term in a device standard entry; b ij is the i-th word in the j-th category of another device standard entry; j is the category of the word determined by the number of words; z k To constitute a ij The kth word of ; y k To constitute b ij The kth word of ; the construction of the standard function to evaluate the word comparison result includes: Where T is the standard function; N is the number of words; n is the number of two-word words; ω ij is the weight of the i-th word in the j-th word category.
2. The device standard system optimization classification method according to claim 1, characterized in that: The step of obtaining the byte length difference between each two equipment standard entries according to the middle address and the tail address of the equipment standard entry includes: Wherein, C is the byte length difference between every two equipment standard entries; A is the middle address; B is the tail address of the equipment standard entry; and W is the number of bits of the computer.
3. The device standard system optimization classification method according to claim 2 is characterized in that: The selecting of any one of the two device standard items to optimize the classification of the device standard system includes: selecting any one of the two device standard items to use as the device standard item, or respectively incorporating the two device standard items into different standard systems so that the two standard systems can serve as references to each other, thereby achieving optimized classification of the device standard system.
4. A device for optimizing and classifying a device standard system, characterized in that: include: The first main module is used to obtain a number of device standard items, compare the byte lengths of every two device standard items in the number of device standard items, and obtain the byte length difference between every two device standard items; the second main module is used to extract all every two device standard items whose byte length difference is less than the first preset threshold to form a first standard item cluster, select any two device standard items in the first standard item cluster and determine the valid words respectively, and perform word comparison on the valid words of the any two device standard items; the third main module is used to construct a standard function to evaluate the word comparison result, if the value of the standard function is less than the second preset threshold, it is determined that the two device standard items belong to standard items with the same content; the fourth main module is used to select any one device standard item from the two device standard items and optimize the classification of the device standard system; the comparison of the byte lengths of every two device standard items in the number of device standard items to obtain the byte length difference between every two device standard items includes: comparing every two One of the equipment standard entries is stored in the memory space, and the first address and the last address of the equipment standard entry are recorded. The address adjacent to the last address is used as the first address of another equipment standard entry, and the other equipment standard entry is stored in the memory space, and the last address of the other equipment standard entry is recorded. The middle address between the first address of the equipment standard entry and the last address of the other equipment standard entry is taken, and the byte length difference between each two equipment standard entries is obtained according to the middle address and the last address of the equipment standard entry; the selecting of any two equipment standard entries in the first standard entry cluster and respectively determining valid words include: determining the type of word according to the number of words, in each of the any two equipment standard entries, from left to right, forming a word according to the number of words, comparing the word with the same word in the word library, and if the same word can be matched in the word library, it is determined to be a valid word; the word comparison of the valid words of the any two equipment standard entries includes: V=a ij -b ij Among them, V is the word comparison result; a ij is the i-th word in the j-th category term in a device standard entry; b ij is the i-th word in the j-th category of another device standard entry; j is the category of the word determined by the number of words; z k To constitute a ij The kth word of ; y k To constitute b ij The kth word of ; the construction of the standard function to evaluate the word comparison result includes: Where T is the standard function; N is the number of words; n is the number of two-word words; ω ij is the weight of the i-th word in the j-th word category.
5. An electronic device, characterized in that: include: At least one processor, at least one memory and a communication interface; wherein, The processor, memory and communication interface communicate with each other; The memory stores program instructions that can be executed by the processor, and the processor calls the program instructions to execute the method according to any one of claims 1 to 3.
6. A non-transitory computer-readable storage medium, characterized in that: The non-transitory computer-readable storage medium stores computer instructions, which cause the computer to execute the method of any one of claims 1 to 3.
