CN106557505B - Information classification method and device - Google Patents
Information classification method and device Download PDFInfo
- Publication number
- CN106557505B CN106557505B CN201510628085.2A CN201510628085A CN106557505B CN 106557505 B CN106557505 B CN 106557505B CN 201510628085 A CN201510628085 A CN 201510628085A CN 106557505 B CN106557505 B CN 106557505B
- Authority
- CN
- China
- Prior art keywords
- attribute information
- item name
- equipment
- information
- field
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/28—Databases characterised by their database models, e.g. relational or object models
- G06F16/284—Relational databases
- G06F16/285—Clustering or classification
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Stored Programmes (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention discloses an information classification method and device, relates to the technical field of computers, and mainly aims to solve the problem that the efficiency and the accuracy of new attribute information classification of equipment are low. The main technical scheme of the invention is as follows: detecting whether attribute information of the equipment contains a preset function field or not; if the attribute information contains the preset function field, extracting the item name of the attribute information of the equipment; classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices. The method and the device are mainly used for classifying the attribute information of the equipment.
Description
Technical Field
The invention relates to the technical field of computers, in particular to an information classification method and device.
Background
In the field of software technology, when a developer develops a project, new attribute information of a device is often developed, and after the development, for convenient operation and continuous use of the new attribute information of the device, a function field about the developer is often set in the new attribute information of the device, wherein the function field comprises a project name and a function description which the new attribute information of the device is to be classified, so that the new attribute information of the device is classified according to the function field.
Currently, when performing classification of new attribute information of a device, a manual classification method is generally adopted, wherein the manual classification is to classify the device into a corresponding project name by considering which project name the device should be classified into according to understanding of a developer about the new attribute information of the device. Although the manual classification mode can realize the classification of the new attribute information of the equipment to a certain extent, the efficiency is low, and when the new attribute information of the equipment is classified, modules which are misplaced in folders and modules which are missed are frequently generated due to the fact that the classification is carried out according to personal working habits, so that the classification accuracy is low.
Disclosure of Invention
In view of this, embodiments of the present invention provide an information classification method and apparatus, and mainly aim to improve efficiency and accuracy of new attribute information classification of a device.
In order to achieve the purpose, the invention mainly provides the following technical scheme:
in one aspect, an embodiment of the present invention provides an information classification method, where the method includes:
detecting whether attribute information of the equipment contains a preset function field or not;
if the preset function field is contained, extracting the item name of the attribute information of the equipment;
classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices.
On the other hand, an embodiment of the present invention further provides an information classification apparatus, where the apparatus includes:
the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting whether attribute information of the device contains a preset function field;
the device comprises an extracting unit, a processing unit and a processing unit, wherein the extracting unit is used for extracting the item name of the attribute information of the device when the attribute information of the device is detected to contain a preset function field;
the classification unit is used for classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices.
According to the technical scheme provided by the embodiment of the invention, whether the attribute information of the equipment contains a preset function field is detected; if the preset function field is contained, extracting the item name of the attribute information of the equipment; classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices. The attribute information classification process for the equipment is to classify according to the obtained functional fields of the attribute information of the equipment, and no manual classification is needed in the process, so that the phenomenon of misplacing or missing modules is avoided, and the accuracy and the efficiency are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart of an information classification method according to an embodiment of the present invention;
FIG. 2 is a flow chart of another information classification method according to an embodiment of the present invention;
FIG. 3 is a flow chart of another information classification method provided by the embodiment of the invention;
FIG. 4 is a flow chart of another information classification method provided by the embodiment of the invention;
FIG. 5 is a flow chart of another information classification method provided by the embodiment of the invention;
fig. 6 is a block diagram illustrating an information classification apparatus according to an embodiment of the present invention;
FIG. 7 is a block diagram of another information classifying device according to an embodiment of the present invention;
FIG. 8 is a block diagram of another information classifying device according to an embodiment of the present invention;
FIG. 9 is a block diagram of another information classifying device according to an embodiment of the present invention;
fig. 10 is a block diagram of another information classification apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
An embodiment of the present invention provides an information class classification method, as shown in fig. 1, the method including:
101. and detecting whether the attribute information of the equipment contains a preset function field.
The preset function field includes, but is not limited to, an item name of an item where the attribute information of the device is located and a function introduction for the attribute information of the device, and the attribute information of the device is classified according to the item name labeled in the attribute information of the device.
According to the embodiment of the invention, classification is carried out based on the item names in the attribute information of the equipment, and the item names are stored in the preset function fields, so that before the attribute information of the equipment is classified, whether the attribute information of the equipment contains the preset function fields needs to be detected, and whether the preset function fields contain the item names of the items containing the attribute information of the equipment is detected, so that the classification is carried out according to the item names.
102. And if the preset function field is contained, extracting the item name of the attribute information of the equipment.
Since the preset function field of the attribute information of the device includes, but is not limited to, other information of the function implemented by the attribute information of the device in addition to the item name, for example, the other information may include, but is not limited to, a function introduction of the attribute information of the device, and the embodiment of the present invention extracts the item name in the preset function field of the device so as to classify the attribute information of the device according to the item name.
103. Classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices.
The attribute information of the equipment can be classified into a classification catalogue corresponding to the item according to the item name, and the classification catalogue is used for recording the attribute information of all the equipment contained in a certain item. Illustratively, the item a includes attribute information 1 of the device, attribute information 2 of the device, attribute information 3, … … of the device, and attribute information N of the device, where N is a positive integer, and the classification directory of the item a is arranged in the form shown in the following table according to, but not limited to, the labeling rule or the size of the attribute information of the device:
classification catalog |
1. Attribute information 1 of device |
2. Attribute information 2 of device |
3. Attribute information 3 of device |
…… |
N, attribute information N of device |
The attribute information of the device is classified into a classification catalog corresponding to the item according to the item name, and the process can adopt the following forms including but not limited to: the attribute information of the devices is added to the sorted list in the order of time in which the attribute information of the devices is stored in the sorted list, or in the sorted list in the order of initials (A-Z) or in the reverse order (Z-A).
The specific strategy is security detection performed on attribute information of different devices, the security detection includes, but is not limited to, outputting corresponding warning information when there is no corresponding preset function field in the attribute information of the device, or an item name in the preset function field of the attribute information of the device is not an existing item, or extracting information representing the item name from the preset function field, and exemplarily, outputting saved warning information in which a developer does not perform function labeling on the attribute information of the device, or outputting warning information in which the item name labeled in the attribute information of the device is an illegal item name, or outputting warning information in which the developer writes a preset function field irregularly. Therefore, when the user is warned to classify the attribute information of the equipment, the user can modify the corresponding problems, and the efficient classification of the attribute information of the equipment is realized. It should be noted that the specific strategy may be any one of the above three items, or may be a combination of any two items, or a combination of the three items, and is not limited herein.
According to the technical scheme provided by the embodiment of the invention, whether the attribute information of the equipment contains a preset function field is detected; if the preset function field is contained, extracting the item name of the attribute information of the equipment; classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices. The method is adopted for classification, manual classification is not needed in the classification period, the phenomenon of misplacing or missing modules is avoided, and the accuracy and the efficiency are improved.
Further, the developer inadvertently leaves the preset function field of the item name where the attribute information of the device is located unwritten, thereby causing a situation in which the attribute information of the device cannot be classified according to the item name in the preset function field of the attribute information of the device. Based on the problem, whether the attribute information of the equipment has the preset function field of the item name needs to be detected, and the condition that the attribute information of the equipment does not have the preset function field of the item name is subjected to warning description, so that a worker can modify the preset function field in the attribute information of the equipment according to the warning information, and then classify the attribute information of the equipment according to the item name in the modified preset function field, and therefore the efficiency of classifying the attribute information of the equipment is improved. Specifically, as shown in fig. 2, another information classification method provided in the embodiment of the present invention includes:
201. detecting whether the attribute information of the device contains a preset function field, and if so, executing step 202 a; if the default function field is not included, go to step 202 b.
The preset function field is an information variable which is defined in the attribute information of the equipment according to a preset rule and exists in a character string mode.
The predetermined rule may set, but is not limited to, the following form:
"the parameter representing that the string of characters is a preset functional field — the preset functional field: item name _ function statement ".
For example, the preset function fields of the attribute information of a device are: "testmod — help _ info: item name _ function description ", wherein testmod represents a parameter in which the string is a preset function field, if the parameter exists, the attribute information of the device includes the preset function field, and if the parameter does not exist, the attribute information of the device does not include the preset function field; help _ info represents a preset function field; ": a field between "and" _ "represents an item name under which the attribute information of the device should be classified; "_" is used to distinguish that it is preceded by an item name, followed by a functional explanation of the attribute information for the device; the content after "_" represents a functional description of the attribute information for the device, the functional description being used to explain the functions that can be realized by the attribute information of the device and the introduction of its internal parameters, i.e., a use specification of the attribute information of the device.
Whether the attribute information of the device includes the preset function field of the attribute information of the device may be determined by any method in the prior art, which is not limited in the embodiment of the present invention; for example, the following method may be adopted to detect whether the attribute information of the device includes the preset function field of the attribute information of the device:
when scanning a program code in attribute information of equipment, acquiring all variables in the program code, detecting whether 'testmod' exists in all the variables, if so, returning to 'TRUE', indicating that the attribute information of the equipment contains a preset function field, and executing step 202 a; if "testmod" is not detected, a "flag" is returned, which indicates that the attribute information of the device does not include the preset function field, and step 202b is executed.
202a, extracting a character string corresponding to the preset function field from the attribute information of the equipment.
Illustratively, the character string corresponding to the acquired information variable is "testmod — help _ info: item name _ function statement ".
202b, outputting the storage warning information which is not labeled by the developer on the function of the attribute information of the equipment.
Illustratively, save alert information is output, which is not functionally labeled by the developer for the attribute information of the device. The warning information may take the following form, but is not limited to the following form: the output developer writes the function label of the attribute information of the equipment without performing the function label of the attribute information of the equipment. When writing, please follow the following steps of' testmod-help _ info: item name _ function statement "write. Wherein testmod represents that the row of character strings are parameters of a preset function field, if the parameter exists, the attribute information of the equipment is described to include the preset function field, and if the parameter does not exist, the attribute information of the equipment is described to not include the preset function field; help _ info represents a preset function field; ": a field between "and" _ "represents an item name under which the attribute information of the device should be classified; "_" is used to distinguish that it is preceded by an item name, followed by a functional explanation of the attribute information for the device; the content after "_" represents a functional description of the attribute information for the device, the functional description being used to explain the functions that can be realized by the attribute information of the device and the introduction of its internal parameters, i.e., a use specification of the attribute information of the device.
Through the warning information, the worker knows the reason for failing to successfully classify the attribute information of the equipment, then writes the preset function field in the attribute information of the equipment according to the warning information, and reenters the classification process after writing is completed, so that the classification efficiency of the attribute information of the equipment is improved.
203. And extracting characters of a preset field in the character string according to the character string composition rule.
Illustratively, the string formation rule is "a parameter representing that the string of the line is attribute information — attribute information: item name _ functional statement ", wherein": between "and" _ "are the characters of the predetermined field. Illustratively, the preset function fields of the attribute information of the device are "testmod — help _ info: ABC _ THIS IS FOR … … ",": the character between "and" _ "is the character of the predetermined field, i.e., the character of the predetermined field is" ABC ".
204. And if the character of the preset field is successfully extracted, using the character of the preset field as the item name of the attribute information of the equipment.
Illustratively, the preset function field for acquiring the attribute information of the device is "testmod — help _ info: ABC _ THIS IS FOR … … ", in which the characters of the predetermined field are": the characters between "and" _ "are ABC, which is taken as the item name of the item where the attribute information of the device is located.
205. Classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices.
For classifying the attribute information of the device according to the item name and the specific policy, reference may be made to corresponding description in step 103 in fig. 1, and details of the embodiment of the present invention will not be described again.
Further, although the developer has written the preset function field, the item name of the written attribute information of the device is not an item in the existing item list, so that the attribute information of the device cannot be classified according to the item name in the preset function field of the attribute information of the device. Based on the problem, whether the item name of the attribute information of the equipment is in the existing item list needs to be detected, and the condition that the written preset function field is incorrect is indicated through warning, so that a worker can modify the preset function field in the attribute information of the equipment according to the warning information, and then classify the attribute information of the equipment according to the modified item name in the preset function field, so that the embodiment of the invention only classifies the correct attribute information of the equipment, and the efficiency of classifying the attribute information of the equipment is improved. Specifically, as shown in fig. 3, another information classification method provided in the embodiment of the present invention includes:
301. detecting whether the attribute information of the device contains a preset function field, and if so, executing step 302 a; if the default function field is not included, go to step 302 b.
Whether the attribute information of the device includes the preset function field may refer to corresponding description in step 201 of fig. 2, which will not be described again in this embodiment of the present invention.
302a, extracting a character string corresponding to the preset function field from the attribute information of the device.
The extracting of the character string corresponding to the preset function field from the attribute information of the device may refer to corresponding description in step 202a of fig. 2, and will not be described again in this embodiment of the present invention.
302b, outputting the storage warning information which is not labeled by the developer on the function of the attribute information of the equipment.
For outputting the saving warning information that the developer does not perform the function labeling on the attribute information of the device, reference may be made to the corresponding description in step 202b of fig. 2, which will not be described again in this embodiment of the present invention.
303. And extracting characters of a preset field in the character string according to the character string composition rule.
Wherein, taking out the character of the predetermined field in the character string according to the rule of the character string composition may refer to the corresponding description in step 203 of fig. 2, which will not be described again in the embodiments of the present invention.
304. And if the character of the preset field is successfully extracted, using the character of the preset field as the item name of the attribute information of the equipment.
If the character of the predetermined field is successfully extracted, the corresponding description in step 204 of fig. 2 may be referred to as using the character of the predetermined field as the item name of the attribute information of the device, which will not be described again in this embodiment of the present invention.
305. Matching the acquired project names with project names in an existing project name list; if the matching is successful, go to step 306 a; if the matching is not successful, go to step 306 b;
illustratively, the list of existing items is shown in the following table:
existing item lists |
Item A |
Item B |
Item C |
Item D |
If the acquired item name is item B, matching the acquired item name with the existing item list, and the matching is successful because the existing item list has item B, then step 306a is executed.
If the acquired item name is item E, matching the acquired item name with the existing item list, and if the matching is unsuccessful because the existing item list has item E, executing step 306 b.
306a, classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices.
For classifying the attribute information of the device according to the item name and the specific policy, reference may be made to corresponding description in step 103 in fig. 1, and details of the embodiment of the present invention will not be described again.
306b, outputting the warning information of which the item name marked in the attribute information of the equipment is the illegal item name.
For example, the output developer modifies the item name marked in the attribute information of the device as an illegal item name, with respect to the illegal item name in the attribute information of the device: please modify the item name to the item name in the existing item list or add the item name in the attribute information of the device in the existing item list.
Through the warning information, the worker knows the reason for unsuccessfully classifying the attribute information of the equipment, and then modifies the existing project list or rewrites the preset function field in the attribute information of the equipment according to the warning information, and enters the classification process again.
Furthermore, when a developer writes a preset function field containing a project name, due to an operation error or the like, a connection part between a field representing the project name and another information field represented in the preset function field is omitted, so that although the preset function field in the attribute information of the device has a field containing the project name, the field representing the project name does not represent a connection part between other information fields, and the project name cannot be analyzed, thereby causing a situation that the attribute information of the device cannot be classified according to the project name in the preset function field of the attribute information of the device. Based on the problem, the condition that the item name in the preset function field of the attribute information of the equipment cannot be analyzed needs to be warned, so that a worker can modify the preset function field in the attribute information of the equipment according to the warning information to form a complete and correct preset function field form, and then classify the attribute information of the equipment according to the modified item name in the preset function field, so that the efficiency of classifying the attribute information of the equipment is improved. Specifically, as shown in fig. 4, another information classification method provided in the embodiment of the present invention includes:
401. detecting whether the attribute information of the device contains a preset function field, and if so, executing step 402 a; if the default function field is not included, go to step 402 b.
Whether the attribute information of the device includes the preset function field may refer to corresponding description in step 201 of fig. 2, which will not be described again in this embodiment of the present invention.
402a, extracting the character string corresponding to the preset function field from the attribute information of the device.
The extracting of the character string corresponding to the preset function field from the attribute information of the device may refer to corresponding description in step 202a of fig. 2, and will not be described again in this embodiment of the present invention.
402b, outputting the saving warning information which is not labeled by the developer on the function of the attribute information of the equipment.
For outputting the saving warning information that the developer does not perform the function labeling on the attribute information of the device, reference may be made to the corresponding description in step 202b of fig. 2, which will not be described again in this embodiment of the present invention.
403. Extracting characters of a preset field in the character string according to the character string composition rule; if the character of the predetermined field is successfully extracted, executing step 404 a; if the character of the predetermined field is not successfully extracted, executing step 404 b;
illustratively, the string formation rule is "a parameter representing that the string of the line is attribute information — attribute information: item name _ functional statement ", wherein": between "and" _ "are the characters of the predetermined field. Illustratively, the preset function fields of the attribute information of the device are "testmod — help _ info: ABC _ THIS IS FOR … … ",": the character between "and" _ "is the character of the predetermined field, i.e., the character of the predetermined field is" ABC ".
If the character ABC of the preset field is successfully extracted, executing a step 404 a;
if the character ABC of the preset field is not successfully extracted, executing a step 404 b; the reasons for the unsuccessful retrieval of the characters of the predetermined field include, but are not limited to, the following reasons, which are now exemplified:
if the default function field is "testmod — help _ info: ABC _ THIS IS FOR … … ", and during the write process drop-write": ", becoming" testmod — help _ infoABCHIS IS FOR … … ", results in an unknown of where to begin extracting the character of the predetermined field, thereby causing a failure in extracting the character of the predetermined field.
Or the attribute information is "testmod — help _ info: ABC _ THIS IS FOR … … ", and missing a" _ "during the authoring process, becomes" testmod- -help _ info: ABCHIS IS FOR … …' results in an unknown of which character end the character of the predetermined field IS extracted from, thereby causing a failure in extracting the character of the predetermined field.
404a, using characters of a predetermined field as the item name of the attribute information of the equipment.
The corresponding description in step 204 of fig. 2 may be referred to for using the characters of the predetermined field as the item names of the attribute information of the device, which will not be described again in this embodiment of the present invention.
404b, outputting warning information with irregular preset function fields, which is compiled by developers.
Illustratively, the output developer writes a default function field that is not specified, please specify that the function module is written according to "testmod — help _ info: item name _ function statement "write.
Through the prompt, the staff can know the reason for the classification failure, then the staff can compile the attribute information of the functional module in a standard mode, and the staff can enter the classification flow again after the compiling is completed.
405. Matching the acquired project names with project names in an existing project name list; if the matching is successful, go to step 406 a; if the matching is not successful, go to step 406 b;
for matching the obtained item name with an item name in the existing item name list, reference may be made to the corresponding description in step 305 of fig. 3, and details of the embodiment of the present invention will not be described again.
406a, classifying the attribute information of the equipment according to the project name and a specific strategy; wherein the specific policy is security detection performed for attribute information of different devices.
For classifying the attribute information of the device according to the item name and the specific policy, reference may be made to corresponding description in step 103 in fig. 1, and details of the embodiment of the present invention will not be described again.
406b, outputting the warning information of the illegal item name marked in the attribute information of the equipment.
The step 306b in fig. 3 may be referred to for outputting the warning information that the item name marked in the attribute information of the device is the illegal item name, which will not be described again in this embodiment of the present invention.
Furthermore, classification of the attribute information of the equipment may need to be uploaded to a corresponding server, and if classification fails due to the fact that the corresponding server is not connected, a warning explanation needs to be performed on a worker, so that the worker can check the appearing reason according to the warning information, and the efficiency of classification of the attribute information of the equipment is improved. Specifically, as shown in fig. 5, another information classification method provided in the embodiment of the present invention includes:
501. detecting whether the attribute information of the equipment contains a preset function field, and if so, executing a step 502 a; if the default function field is not included, go to step 502 b.
Whether the attribute information of the device includes the preset function field may refer to corresponding description in step 201 of fig. 2, which will not be described again in this embodiment of the present invention.
502a, extracting a character string corresponding to the preset function field from the attribute information of the equipment.
The extracting of the character string corresponding to the preset function field from the attribute information of the device may refer to corresponding description in step 202a of fig. 2, and will not be described again in this embodiment of the present invention.
Wherein the preset function field exists in the attribute information of the device in the form of a character string.
502b, outputting the storage warning information which is not labeled by the developer on the function of the attribute information of the equipment.
For outputting the saving warning information that the developer does not perform the function labeling on the attribute information of the device, reference may be made to the corresponding description in step 202b of fig. 2, which will not be described again in this embodiment of the present invention.
503. Extracting characters of a preset field in the character string according to the character string composition rule; if the character of the predetermined field is successfully extracted, go to step 504 a; if the character of the predetermined field is not successfully extracted, go to step 504 b;
extracting characters of a preset field in the character string according to the character string composition rule; if the character of the predetermined field is successfully extracted, reference may be made to the corresponding description in step 403 in fig. 4, and details of the embodiment of the present invention will not be described again.
504a, using characters of a predetermined field as the item name of the attribute information of the equipment.
The corresponding description in step 204 of fig. 2 may be referred to for using the characters of the predetermined field as the item names of the attribute information of the device, which will not be described again in this embodiment of the present invention.
504b, outputting warning information with irregular preset function fields, which is compiled by developers.
For outputting the warning information that the preset function field is not normal, reference may be made to the corresponding description in step 404b in fig. 4, which will not be described in detail in this embodiment of the present invention.
505. Matching the acquired project names with project names in an existing project name list; if the matching is successful, go to step 506 a; if the matching is not successful, go to step 506 b;
for matching the obtained item name with an item name in the existing item name list, reference may be made to the corresponding description in step 305 of fig. 3, and details of the embodiment of the present invention will not be described again.
506a, classifying the attribute information of the equipment according to the project name and a specific strategy; the specific strategy is security detection performed aiming at attribute information of different devices; if the attribute information of the device is successfully classified, executing step 507 a; if the attribute information of the device is not successfully classified, step 507b is executed.
For classifying the attribute information of the device according to the item name and the specific policy, reference may be made to corresponding description in step 103 in fig. 1, and details of the embodiment of the present invention will not be described again.
506b, outputting the warning information of which the item name marked in the attribute information of the equipment is the illegal item name.
The step 306b in fig. 3 may be referred to for outputting the warning information that the item name marked in the attribute information of the device is the illegal item name, which will not be described again in this embodiment of the present invention.
507a, outputting warning information of successful classification.
Illustratively, the attribute information of the output device is successfully classified, so that a worker knows whether the attribute information of the output device is successfully classified.
507b, outputting warning information of unsuccessful classification.
For example, if the classification of the attribute information of the output device is unsuccessful, please note whether the classification directory of the item contains the attribute information of the device with the same name, and if so, please modify the name of the attribute information of the device.
For example, when the attribute information of the device is uploaded to a classification directory of an item on an FTP (File Transfer Protocol) server, the reason that the classification is unsuccessful may be that the FTP server is not connected, the attribute information of the output device is unsuccessfully classified, and whether the classification directory of the item contains the attribute information of the device with the same name or not is noticed, or whether the connection with the FTP server is checked is noticed.
Further, an embodiment of the present invention provides an information classification apparatus, as shown in fig. 6, including: a detection unit 61, an extraction unit 62 and a classification unit 63.
The detecting unit 61 is configured to detect whether the attribute information of the device includes a preset function field;
the extracting unit 62 is configured to, when it is detected that the attribute information of the device includes a preset function field, extract an item name of the attribute information of the device;
a classification unit 63, configured to classify the attribute information of the device according to the item name and a specific policy; wherein the specific policy is security detection performed for attribute information of different devices.
The technical scheme provided by the embodiment of the invention is that the detection unit 61 is used for detecting whether the attribute information of the equipment contains a preset function field; the extracting unit 62 is configured to, when it is detected that the attribute information of the device includes a preset function field, extract an item name of the attribute information of the device; a classification unit 63, configured to classify the attribute information of the device according to the item name and a specific policy; wherein the specific policy is security detection performed for attribute information of different devices. The classification process does not need manual classification, avoids the phenomenon of misplacing or missing modules, and improves the accuracy and efficiency.
Further, the developer inadvertently leaves the preset function field of the item name where the attribute information of the device is located unwritten, thereby causing a situation in which the attribute information of the device cannot be classified according to the item name in the preset function field of the attribute information of the device. Based on the problem, whether the attribute information of the equipment has the preset function field of the item name needs to be detected, and the condition that the attribute information of the equipment does not have the preset function field of the item name is subjected to warning description, so that a worker can modify the preset function field in the attribute information of the equipment according to the warning information, and then classify the attribute information of the equipment according to the item name in the modified preset function field, and therefore the efficiency of classifying the attribute information of the equipment is improved. Specifically, as shown in fig. 7, another information classification apparatus provided in the embodiment of the present invention further includes:
and the warning information output unit 64 is configured to output, when it is detected that the attribute information of the device to be classified does not include the preset function field, stored warning information in which a developer does not perform function labeling on the attribute information of the device.
Further, although the developer has written the preset function field, the item name of the written attribute information of the device is not an item in the existing item list, so that the attribute information of the device cannot be classified according to the item name in the preset function field of the attribute information of the device. Based on the problem, whether the item name of the attribute information of the equipment is in the existing item list needs to be detected, and the condition that the written preset function field is incorrect is indicated through warning, so that a worker can modify the preset function field in the attribute information of the equipment according to the warning information, and then classify the attribute information of the equipment according to the modified item name in the preset function field, so that the embodiment of the invention only classifies the correct attribute information of the equipment, and the efficiency of classifying the attribute information of the equipment is improved. Specifically, an embodiment of the present invention provides another information classification apparatus, as shown in fig. 8, the apparatus further includes:
a matching unit 65, configured to match the item name obtained through parsing with an item name in an existing item name list after the extracting unit 62 parses the attribute information of the device to obtain the item name;
the warning information output unit 64 is further configured to output warning information that the item name marked in the attribute information of the device is an illegal item name when the matching unit 65 fails to match.
Furthermore, when a developer writes a preset function field containing a project name, due to an operation error or the like, a connection part between a field representing the project name and another information field represented in the preset function field is omitted, so that although the preset function field in the attribute information of the device has a field containing the project name, the field representing the project name does not represent a connection part between other information fields, and the project name cannot be analyzed, thereby causing a situation that the attribute information of the device cannot be classified according to the project name in the preset function field of the attribute information of the device. Based on the problem, the condition that the item name in the preset function field of the attribute information of the equipment cannot be analyzed needs to be warned, so that a worker can modify the preset function field in the attribute information of the equipment according to the warning information to form a complete and correct preset function field form, and then classify the attribute information of the equipment according to the modified item name in the preset function field, so that the efficiency of classifying the attribute information of the equipment is improved. Specifically, an embodiment of the present invention provides another information classification apparatus, as shown in fig. 9, where the extraction unit 62 includes:
an extracting module 621, configured to extract a character string corresponding to the preset function field from the attribute information of the device, where the preset function field exists in the attribute information of the device in a form of a character string;
an analyzing module 622, configured to analyze the character string to obtain an item name of the attribute information of the device, where the item name of the attribute information of the device is a predetermined field in the character string, and the analyzing module 622 includes:
an acquiring means 6221 configured to extract a character of a predetermined field in the character string according to the rule of the character string composition;
a processing unit 6222 configured to take the character of the predetermined field as the item name of the attribute information of the device when the character of the predetermined field is successfully taken out.
The warning information output unit 64 is further configured to output warning information that a developer writes that a preset functional field is irregular when the processing mechanism 6222 fails to extract the characters in the predetermined field.
Furthermore, classification of the attribute information of the equipment may need to be uploaded to a corresponding server, and if classification fails due to the fact that the corresponding server is not connected, a warning explanation needs to be performed on a worker, so that the worker can check the appearing reason according to the warning information, and the efficiency of classification of the attribute information of the equipment is improved. Specifically, an embodiment of the present invention provides another information classification apparatus, as shown in fig. 10, the warning information output unit 64 is further configured to output warning information that is successfully classified after the classification unit 63 successfully classifies the attribute information of the device according to the item name and the specific policy; when the classifying unit 63 does not classify the attribute information of the device according to the item name and the specific policy, warning information that the classification is unsuccessful is output.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus necessary general hardware, and certainly may also be implemented by hardware, but in many cases, the former is a better embodiment. Based on such understanding, the technical solutions of the present invention may be substantially implemented or a part of the technical solutions contributing to the prior art may be embodied in the form of a software product, which is stored in a readable storage medium, such as a floppy disk, a hard disk, or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.
Claims (10)
1. An information classification method, comprising:
detecting whether attribute information of the equipment contains a preset function field or not;
if the preset function field is contained, extracting the item name of the attribute information of the equipment;
classifying the attribute information of the equipment according to the project name and a specific strategy, and adding the attribute information of the equipment to a corresponding classification catalogue; the specific strategy is security detection performed aiming at attribute information of different devices; the safety detection comprises the steps that when no corresponding preset function field exists in the attribute information of the equipment, or the item name in the preset function field of the attribute information of the equipment is not an existing item, or information representing the item name is not extracted from the preset function field, and corresponding warning information is output;
and if the preset function field is not contained, outputting storage warning information which is not used for carrying out function marking on the attribute information of the equipment by the developer.
2. The method according to claim 1, wherein the preset function field exists in the attribute information of the device in a form of a character string, and extracting the item name of the attribute information of the device comprises:
extracting a character string corresponding to the preset function field from the attribute information of the equipment;
and analyzing the character string to obtain the item name of the attribute information of the equipment.
3. The method according to claim 1 or 2, further comprising, after extracting the item name of the attribute information of the device:
matching the acquired project names with project names in an existing project name list;
if the matching is successful, classifying the attribute information of the equipment according to the item name;
and if the matching is unsuccessful, outputting warning information of which the item name marked in the attribute information of the equipment is an illegal item name.
4. The method according to claim 2, wherein an item name of the attribute information of the device is a predetermined field in the character string, and parsing the character string to obtain the item name of the attribute information of the device comprises:
extracting characters of a preset field in the character string according to the character string composition rule;
and if the character of the preset field is successfully extracted, using the character of the preset field as the item name of the attribute information of the equipment.
5. An information classification apparatus, comprising:
the device comprises a detection unit, a processing unit and a processing unit, wherein the detection unit is used for detecting whether attribute information of the device contains a preset function field;
the device comprises an extracting unit, a processing unit and a processing unit, wherein the extracting unit is used for extracting the item name of the attribute information of the device when the attribute information of the device is detected to contain a preset function field;
the classification unit is used for classifying the attribute information of the equipment according to the project name and the specific strategy and adding the attribute information of the equipment into a corresponding classification catalogue; the specific strategy is security detection performed aiming at attribute information of different devices; the safety detection comprises the steps that when no corresponding preset function field exists in the attribute information of the equipment, or the item name in the preset function field of the attribute information of the equipment is not an existing item, or information representing the item name is not extracted from the preset function field, and corresponding warning information is output;
and the warning information output unit is used for outputting the stored warning information which is not used for carrying out function marking on the attribute information of the equipment by a developer when the attribute information of the equipment does not contain the preset function field.
6. The apparatus according to claim 5, wherein the preset function field exists in a form of a character string in the attribute information of the device, and the extracting unit includes:
the extraction module is used for extracting the character string corresponding to the preset functional field from the attribute information of the equipment;
and the analysis module is used for analyzing the character string to obtain the item name of the attribute information of the equipment.
7. The apparatus of claim 5 or 6, further comprising:
the matching unit is used for matching the acquired item name with the item name in the existing item name list;
and the warning information output unit is further used for outputting warning information with the item name marked in the attribute information of the equipment as an illegal item name when the acquired item name is unsuccessfully matched with the item name in the existing item name list.
8. The apparatus of claim 6, wherein an item name of the attribute information of the device is a predetermined field in the character string, and wherein the parsing module comprises:
the acquisition mechanism is used for extracting characters of a preset field in the character string according to the character string composition rule;
and the processing mechanism is used for taking out the characters of the preset field successfully and using the characters of the preset field as the item name of the attribute information of the equipment.
9. A storage medium, characterized in that the storage medium comprises a stored program, wherein when the program runs, the device where the storage medium is located is controlled to execute an information classification method according to any one of claims 1 to 4.
10. A processor, characterized in that the processor is configured to run a program, wherein the program is configured to perform an information classification method according to any one of claims 1 to 4 when running.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510628085.2A CN106557505B (en) | 2015-09-28 | 2015-09-28 | Information classification method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510628085.2A CN106557505B (en) | 2015-09-28 | 2015-09-28 | Information classification method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106557505A CN106557505A (en) | 2017-04-05 |
CN106557505B true CN106557505B (en) | 2021-04-27 |
Family
ID=58415715
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510628085.2A Active CN106557505B (en) | 2015-09-28 | 2015-09-28 | Information classification method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106557505B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101520788A (en) * | 2008-02-27 | 2009-09-02 | 株式会社Pfu | Image file sorting method, image file sorting device, and computer program product |
CN102542061A (en) * | 2011-12-30 | 2012-07-04 | 互动在线(北京)科技有限公司 | Intelligent product classification method |
CN103577989A (en) * | 2012-07-30 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Method and system for information classification based on product identification |
CN104714969A (en) * | 2013-12-16 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Detection method and device for attribute values |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7822746B2 (en) * | 2005-11-18 | 2010-10-26 | Qurio Holdings, Inc. | System and method for tagging images based on positional information |
CN104766008A (en) * | 2014-01-07 | 2015-07-08 | 腾讯科技(深圳)有限公司 | Application program installation package safety detection method and server |
-
2015
- 2015-09-28 CN CN201510628085.2A patent/CN106557505B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101520788A (en) * | 2008-02-27 | 2009-09-02 | 株式会社Pfu | Image file sorting method, image file sorting device, and computer program product |
CN102542061A (en) * | 2011-12-30 | 2012-07-04 | 互动在线(北京)科技有限公司 | Intelligent product classification method |
CN103577989A (en) * | 2012-07-30 | 2014-02-12 | 阿里巴巴集团控股有限公司 | Method and system for information classification based on product identification |
CN104714969A (en) * | 2013-12-16 | 2015-06-17 | 阿里巴巴集团控股有限公司 | Detection method and device for attribute values |
Also Published As
Publication number | Publication date |
---|---|
CN106557505A (en) | 2017-04-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10019240B2 (en) | Method and apparatus for detecting code change | |
US11176317B2 (en) | Automated file merging through content classification | |
CN108170468B (en) | Method and system for automatically detecting annotation and code consistency | |
US20180173450A1 (en) | Method and Device for File Name Identification and File Cleaning | |
US8719797B2 (en) | System and method for debugging dynamically generated code of an application | |
CN103257919B (en) | Inspection method and device for script programs | |
CN106547782B (en) | Log information acquisition method and device | |
US11132409B2 (en) | Identifying client states | |
CN110866258B (en) | Rapid vulnerability positioning method, electronic device and storage medium | |
CN110007906B (en) | Script file processing method and device and server | |
CN102243699A (en) | Malicious code detection method and system | |
CN106897197B (en) | Error log duplicate removal method and device | |
CN111722998B (en) | Code quality control method, system, equipment and storage medium | |
CN110532056B (en) | Control identification method and device applied to user interface | |
CN105653949A (en) | Malicious program detection method and device | |
US10782942B1 (en) | Rapid onboarding of data from diverse data sources into standardized objects with parser and unit test generation | |
CN105278929A (en) | Application program audit data processing method, device and system | |
Krinke et al. | Distinguishing copies from originals in software clones | |
CN111966339B (en) | Buried point parameter input method and device, computer equipment and storage medium | |
CN116414445B (en) | Homology detection method and system based on source code watermark | |
US11301520B2 (en) | Artificial intelligence content detection system | |
CN111027072B (en) | Kernel Rootkit detection method and device based on elf binary standard analysis under Linux | |
JP2016076071A (en) | Log management apparatus, log management program, and log management method | |
CN106557505B (en) | Information classification method and device | |
CN116880847A (en) | Source tracing method and device based on open source project, electronic equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant |