CN106557505A - A kind of information classification approach and device - Google Patents

A kind of information classification approach and device Download PDF

Info

Publication number
CN106557505A
CN106557505A CN201510628085.2A CN201510628085A CN106557505A CN 106557505 A CN106557505 A CN 106557505A CN 201510628085 A CN201510628085 A CN 201510628085A CN 106557505 A CN106557505 A CN 106557505A
Authority
CN
China
Prior art keywords
attribute information
equipment
entry name
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.)
Granted
Application number
CN201510628085.2A
Other languages
Chinese (zh)
Other versions
CN106557505B (en
Inventor
高阳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Gridsum Technology Co Ltd
Original Assignee
Beijing Gridsum Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Gridsum Technology Co Ltd filed Critical Beijing Gridsum Technology Co Ltd
Priority to CN201510628085.2A priority Critical patent/CN106557505B/en
Publication of CN106557505A publication Critical patent/CN106557505A/en
Application granted granted Critical
Publication of CN106557505B publication Critical patent/CN106557505B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification

Abstract

The invention discloses a kind of information classification approach and device, are related to field of computer technology, main purpose is that the efficiency and accuracy rate of the new attribute information classification of the equipment that solves the problems, such as are low.The present invention main technical schemes be:Whether preset function field is included in the attribute information of testing equipment;If comprising preset function field, the entry name of the attribute information of extraction equipment;According to entry name and specific policy, the attribute information of equipment is classified;Wherein, specific policy is the safety detection carried out for the attribute information of distinct device.Present invention is mainly used for during classifying to the attribute information of equipment.

Description

A kind of information classification approach and device
Technical field
The present invention relates to field of computer technology, more particularly to a kind of information classification approach and device.
Background technology
In software technology field, when developer carries out project development, the new attribute letter of equipment is often carried out The exploitation of breath, after exploitation in order to equipment new attribute information convenient O&M and continuity use, it will usually Arrange with regard to the function field of itself in the new attribute information of equipment, the function field includes the new attribute of equipment The entry name and function that information should be classified is illustrated, so as to the new attribute information according to the function field to the equipment Classified.
At present, in the classification of the new attribute information of the equipment of execution, usually using manual sort's mode, its In, manual sort is the understanding according to the personal new attribute information to equipment of developer, it is believed which should divide Class is just accordingly sorted in which in corresponding entry name in which entry name.Although manual sort's mode exists The classification of the new attribute information of equipment can be realized to a certain extent, but it is less efficient, and to equipment When new attribute information is classified, due to what is carried out according to personal work custom, therefore Jing often occurs misplacing text The module that the module of part folder and leakage are put, so that classification accuracy is relatively low.
The content of the invention
In view of this, the embodiment of the present invention provides a kind of information classification approach and device, and main purpose is to carry The efficiency and accuracy rate of the new attribute information classification of high equipment.
To reach above-mentioned purpose, present invention generally provides following technical scheme:
On the one hand, a kind of information classification approach is embodiments provided, the method includes:
Whether preset function field is included in the attribute information of testing equipment;
If comprising the preset function field, extracting the entry name of the attribute information of the equipment;
According to the entry name and specific policy, the attribute information of the equipment is classified;Wherein, institute It is the safety detection carried out for the attribute information of distinct device to state specific policy.
On the other hand, the embodiment of the present invention also provides a kind of information sorting device, and the device includes:
Detector unit, for whether including preset function field in the attribute information of testing equipment;
Extraction unit, for when preset function field is included in the attribute information for detecting equipment, extracting institute State the entry name of the attribute information of equipment;
Taxon, for according to the entry name and specific policy, carrying out to the attribute information of the equipment Classification;Wherein, the specific policy is the safety detection carried out for the attribute information of distinct device.
Whether technical scheme provided in an embodiment of the present invention, include preset function in the attribute information of testing equipment Field;If comprising the preset function field, extracting the entry name of the attribute information of the equipment;According to The entry name and specific policy, classify to the attribute information of the equipment;Wherein, the specific plan The safety detection for slightly carrying out for the attribute information of distinct device.For the mistake that the attribute information of equipment is classified Journey is classified according to the function field of attribute information of the equipment for obtaining, and period manually need not participate in point Class, it is to avoid misplaced or leakage amplification module phenomenon occur, therefore improve accuracy rate and efficiency.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to implementing Example or accompanying drawing to be used needed for description of the prior art are briefly described, it should be apparent that, describe below In accompanying drawing be only some embodiments of the present invention, for those of ordinary skill in the art, do not paying On the premise of going out creative work, can be with according to these other accompanying drawings of accompanying drawings acquisition.
Fig. 1 is a kind of information classification approach flow chart provided in an embodiment of the present invention;
Fig. 2 is another kind of information classification approach flow chart provided in an embodiment of the present invention;
Fig. 3 is another kind of information classification approach flow chart provided in an embodiment of the present invention;
Fig. 4 is another kind of information classification approach flow chart provided in an embodiment of the present invention;
Fig. 5 is another kind of information classification approach flow chart provided in an embodiment of the present invention;
Fig. 6 is a kind of composition frame chart of information sorting device provided in an embodiment of the present invention;
Fig. 7 is the composition frame chart of another kind of information sorting device provided in an embodiment of the present invention;
Fig. 8 is the composition frame chart of another kind of information sorting device provided in an embodiment of the present invention;
Fig. 9 is the composition frame chart of another kind of information sorting device provided in an embodiment of the present invention;
Figure 10 is the composition frame chart of another kind of information sorting device provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clearly Chu, it is fully described by, it is clear that described embodiment is only a part of embodiment of the invention, rather than Whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art are not making creation Property work under the premise of the every other embodiment that obtained, belong to the scope of protection of the invention.
A kind of info class sorting technique that one embodiment of the present of invention is provided, as shown in figure 1, the method bag Include:
101st, whether preset function field is included in the attribute information of testing equipment.
Wherein, the preset function field includes but is not limited to the item of the attribute information place project of the equipment The function introduction of mesh name and the attribute information for equipment, the item marked in the attribute information according to the equipment Mesh name is classified to the attribute information of equipment.
The embodiment of the present invention is classified based on the entry name in the attribute information of equipment, and the entry name is stored In preset function field, therefore before the attribute information to the equipment is classified, need to detect that this sets Preset function field is included whether in standby attribute information, include to detect whether to have in preset function field The entry name of the attribute information place project of equipment is so as to realizing being classified according to entry name.
If the 102, extracting the entry name of the attribute information of the equipment comprising the preset function field.
Due in the preset function field of the attribute information of equipment except comprising in addition to entry name, also including but do not limit The other information of the function of being realized in the attribute information of equipment, it is exemplary, other information can include but The function introduction of the attribute information of equipment is not limited to, the embodiment of the present invention is in the preset function field of equipment Entry name extracted, to be classified to the attribute information of equipment according to entry name.
103rd, according to the entry name and specific policy, the attribute information of the equipment is classified;Wherein, The specific policy is the safety detection carried out for the attribute information of distinct device.
Wherein, the attribute information of equipment can be categorized into by the corresponding classified catalogue of project according to the entry name In, classified catalogue is used for the attribute information for recording all devices that a certain project is included in itself.Exemplary, Project A include the attribute information 2, equipment of the attribute information 1, equipment of equipment attribute information 3 ..., The attribute information N of equipment, wherein N are positive integer, then the classified catalogue of project A is according to including but not limited to root The modes such as the attribute information size according to label rule or equipment carry out being arranged in form as shown in the table:
Classified catalogue
1st, the attribute information 1 of equipment
2nd, the attribute information 2 of equipment
3rd, the attribute information 3 of equipment
……
The attribute information N of N, equipment
The attribute information of the equipment is categorized in the corresponding classified catalogue of project according to entry name, its process can Following form is included but is not limited to adopt:Attribute information according to equipment is stored in the time sequencing of classified catalogue Add it to classified catalogue foremost or rearmost end, or according to initial arrange order (A-Z) or Person's backward (Z-A) is added to the attribute information of equipment in classified catalogue.
Wherein, specific policy is the safety detection carried out for the attribute information of distinct device, safety detection bag Include but be not limited to when the attribute letter for not having corresponding preset function field or equipment in the attribute information of equipment In the preset function field of breath, entry name is not existing project, also or extracts not from preset function field Go out to represent the information of entry name, export corresponding information warning, exemplary, developer is not right for output The attribute information of equipment carries out the attribute information for preserving information warning or the output equipment of function mark The information warning of the entitled illegal entry name of project of middle mark, also or output developer write preset function The nonstandard information warning of field.When being classified so as to the attribute information for warning user to be directed to equipment, for Corresponding problem is modified, and realizes the classification of attribute information efficiently to equipment.It should be noted that Specific policy can be being mutually combined for any one in the above three, or any two, also or It is the combination of three, here is not limited.
Whether technical scheme provided in an embodiment of the present invention, include preset function in the attribute information of testing equipment Field;If comprising the preset function field, extracting the entry name of the attribute information of the equipment;According to The entry name and specific policy, classify to the attribute information of the equipment;Wherein, the specific plan The safety detection for slightly carrying out for the attribute information of distinct device.Classified using above method, period Classification need not manually be participated in, it is to avoid misplaced or leakage amplification module phenomenon occur, improve accuracy rate and efficiency.
Further, developer is due to the default work(of the attribute information place entry name of the non-programming apparatus of carelessness Can field, so as to cause entry name that can not be in the preset function field according to the attribute information of equipment to set this The situation classified by standby attribute information occurs.Based on the problem, need for the attribute information of equipment be The no preset function field with place entry name is detected, and does not have institute by the attribute information to equipment Warning statement is carried out in the situation of the preset function field of entry name, so that staff is according to information warning pair Preset function field in the attribute information of equipment is modified, the default work(for then being completed according to modification again Entry name in energy field is classified to the attribute information of equipment, so as to improve dividing for the attribute information of equipment The efficiency of class.Specifically, another kind of information classification approach provided in an embodiment of the present invention, as shown in Fig. 2 The method includes:
201st, whether preset function field is included in the attribute information of testing equipment, if comprising preset function field, Then execution step 202a;If not including preset function field, execution step 202b.
The preset function field is with character inside the attribute information of equipment according to the independent definition of pre-defined rule The information variable that string form is present.
Above-mentioned pre-defined rule can be arranged but be not limited to following form:
" represent the line character string as preset function field parameter-preset function field:Entry name _ function is explained State ".
Exemplary, the preset function field of the attribute information of a usual equipment is: “testmod--help_info:Entry name _ function is illustrated ", wherein testmod represent the line character string as The parameter of preset function field, if the attribute information that there is the parameter declaration equipment includes preset function field, If the attribute information that there is no the parameter declaration equipment does not include preset function field;Help_info represents default Function field;“:" field references entry name and " _ " between, the attribute information for representing the equipment should classify Under which entry name;" _ " is entry name for distinguishing before which, is followed by the attribute for the equipment The function of information is illustrated;Content after " _ " represents the function of the attribute information for the equipment and illustrates, work( Can illustrate that for explaining function and its inner parameter introduction achieved by the attribute information of the equipment, i.e., this sets The operation instructions of standby attribute information.
To in the attribute information of equipment, whether the preset function field of the attribute information comprising equipment can adopt existing There is any one method in technology, the embodiment of the present invention is without limitation;Exemplary, testing equipment In attribute information, whether the preset function field of the attribute information comprising the equipment can adopt following methods:
When program code inside the attribute information to equipment is scanned, obtain all in program code Variable, whether there is " testmod " in detecting all variables, if detecting " testmod ", returns One " TRUE ", includes preset function field, execution step 202a in representing the attribute information of equipment;If " testmod " is not detected by, is then returned one " FLASE ", is not included in the attribute information for representing equipment Preset function field, execution step 202b.
202a, the corresponding character string of the preset function field is extracted from the attribute information of the equipment.
Exemplary, it is " testmod--help_info to obtain the corresponding character string of information variable:Entry name _ Function is illustrated ".
202b, output developer do not carry out the preservation information warning of function mark to the attribute information of equipment.
Exemplary, export developer does not carry out the preservation warning of function mark to the attribute information of equipment Information.Wherein, information warning can be adopted but be not limited to following form:Developer is not to setting for output Standby attribute information carries out function mark, and the function mark that please be directed to the attribute information of equipment is write.Compile Please according to " testmod--help_info when writing:Entry name _ function is illustrated " write.Wherein testmod Parameter of the line character string as preset function field is represented, if there is the attribute information bag of the parameter declaration equipment Preset function field is included, if the attribute information that there is no the parameter declaration equipment does not include preset function field; Help_info represents preset function field;“:" field references entry name and " _ " between, represent this and set Which entry name standby attribute information should be sorted under;" _ " is entry name for distinguishing before which, behind It is the function elaboration of the attribute information for the equipment;Content after " _ " represents the attribute for the equipment The function of information illustrates, function is illustrated for explaining function achieved by the attribute information of the equipment and its interior Portion's parameter is introduced, i.e. the operation instructions of the attribute information of the equipment.
By above information warning, staff is made to know the original for failing the attribute information successful classification to equipment Cause, then staff write according to the preset function field in the attribute information of information warning programming apparatus After the completion of re-enter classification process, so as to improve the classification effectiveness of the attribute information to equipment.
203rd, the character of the scheduled field in the character string is taken out according to the character string composition rule.
Exemplary, character string formation rule is " to represent parameter -- attribute of the line character string as attribute information Information:Entry name _ function is illustrated ", wherein ":" character for scheduled field and " _ " between.Example Property, the preset function field of the attribute information of equipment is " testmod--help_info:ABC_THIS IS FOR ... ", ":" character of the character for scheduled field, the i.e. character of scheduled field are " ABC " and " _ " between.
If the 204, successfully take out scheduled field character, using the character of scheduled field as the equipment category The entry name of property information.
Exemplary, the preset function field for obtaining the attribute information of equipment is " testmod--help_info: ABC_THIS IS FOR ... ", the character of scheduled field therein be ":" character and " _ " between, As ABC, using ABC as the attribute information place project of equipment entry name.
205th, according to the entry name and specific policy, the attribute information of the equipment is classified;Wherein, The specific policy is the safety detection carried out for the attribute information of distinct device.
Wherein, according to the entry name and specific policy, classification is carried out to the attribute information of the equipment can be with Corresponding description in reference to the step of Fig. 1 103, the embodiment of the present invention will not be described in great detail.
Further, although developer has carried out writing for preset function field, but the equipment write Attribute information place entry name be not project in existing bulleted list, so as to cause can not be according to equipment Attribute information preset function field in entry name situation that the attribute information of the equipment is classified send out It is raw.Based on the problem, whether the place entry name of attribute information for equipment is needed in existing bulleted list In detected, and warning statement is carried out by the incorrect situation of preset function field to writing, so as to Preset function field in attribute information of the staff according to information warning to equipment is modified, Ran Houchong New root is classified to the attribute information of equipment according to the entry name in the preset function field that completes of modification so that The embodiment of the present invention is only classified to the attribute information of correct equipment, so as to improve the attribute information of equipment Classification efficiency.Specifically, another kind of information classification approach provided in an embodiment of the present invention, such as Fig. 3 institutes Show, the method includes:
301st, whether preset function field is included in the attribute information of testing equipment, if comprising preset function field, Then execution step 302a;If not including preset function field, execution step 302b.
Wherein, the step of whether may be referred to Fig. 2 comprising preset function field in the attribute information of testing equipment Corresponding description in 201, the embodiment of the present invention will not be described in great detail.
302a, the corresponding character string of the preset function field is extracted from the attribute information of the equipment.
Wherein, the corresponding character string of the preset function field is extracted from the attribute information of the equipment can be with Corresponding description with reference to the step of Fig. 2 in 202a, the embodiment of the present invention will not be described in great detail.
302b, output developer do not carry out the preservation information warning of function mark to the attribute information of equipment.
Wherein, export developer does not carry out the preservation information warning of function mark to the attribute information of equipment Corresponding description in the step of may be referred to Fig. 2 202b, the embodiment of the present invention will not be described in great detail.
303rd, the character of the scheduled field in the character string is taken out according to the character string composition rule.
Wherein, the character for taking out the scheduled field in the character string according to the character string composition rule can be with Corresponding description in reference to the step of Fig. 2 203, the embodiment of the present invention will not be described in great detail.
If the 304, successfully take out scheduled field character, using the character of scheduled field as the equipment category The entry name of property information.
Wherein, if successfully taking out the character of scheduled field, using the character of scheduled field as the equipment Corresponding description in the step of entry name of attribute information may be referred to Fig. 2 204, the embodiment of the present invention will not Repeat again.
305th, the entry name for obtaining is matched with the entry name in existing project list of file names;If matching Success, then execution step 306a;If matching unsuccessful, execution step 306b;
Exemplary, existing bulleted list is as shown in the table:
Existing bulleted list
Project A
Project B
Project C
Project D
If entitled project B of project for obtaining, which is matched with existing bulleted list, as existing project is arranged There is in table project B, therefore the match is successful, then execution step 306a.
If entitled project E of project for obtaining, which is matched with existing bulleted list, as existing project is arranged There is in table project E, therefore matching is unsuccessful, then execution step 306b.
306a, according to the entry name and specific policy, the attribute information of the equipment is classified;Its In, the specific policy is the safety detection carried out for the attribute information of distinct device.
Wherein, according to the entry name and specific policy, classification is carried out to the attribute information of the equipment can be with Corresponding description in reference to the step of Fig. 1 103, the embodiment of the present invention will not be described in great detail.
The information warning of the entitled illegal entry name of project marked in 306b, the attribute information of the output equipment.
It is exemplary, developer is exported to the entitled illegal entry name of project that marks in the attribute information of equipment, In please being directed to the attribute information of equipment, illegal entry name is modified:Entry name is modified as into existing project row please Entry name in table is added on the entry name in the attribute information of equipment in existing bulleted list.
By above information warning so that staff knows that the attribute information to equipment that fails is carried out point The reason for class, then staff existing bulleted list is modified according to information warning or by the category of equipment Preset function field in property information is write again, reenters classification process.
Further, as developer is when the preset function field comprising entry name is write, due to operation The reasons such as error, represent between other information field in representing the field and preset function field of entry name Coupling part fails to write, although the preset function field in causing the attribute information of equipment has includes entry name Field, but due to not distinguishing the coupling part between the field references other information field for representing entry name, And cause to parse less than entry name, so as to cause can not be in the preset function field according to the attribute information of equipment Entry name situation that the attribute information of the equipment is classified occur.Based on the problem, need to parsing The situation of the entry name in the preset function field of the attribute information for not going out equipment is warned, so as to the people that works Preset function field in attribute information of the member according to information warning to equipment is modified, be modified as it is complete and Correct preset function field form, the entry name in the preset function field for then being completed according to modification again The attribute information of equipment is classified, so as to improve the efficiency of the classification of the attribute information of equipment.Specifically, Another kind of information classification approach provided in an embodiment of the present invention, as shown in figure 4, the method includes:
401st, whether preset function field is included in the attribute information of testing equipment, if comprising preset function field, Then execution step 402a;If not including preset function field, execution step 402b.
Wherein, the step of whether may be referred to Fig. 2 comprising preset function field in the attribute information of testing equipment Corresponding description in 201, the embodiment of the present invention will not be described in great detail.
402a, the corresponding character string of the preset function field is extracted from the attribute information of the equipment.
Wherein, the corresponding character string of the preset function field is extracted from the attribute information of the equipment can be with Corresponding description with reference to the step of Fig. 2 in 202a, the embodiment of the present invention will not be described in great detail.
402b, output developer do not carry out the preservation information warning of function mark to the attribute information of equipment.
Wherein, export developer does not carry out the preservation information warning of function mark to the attribute information of equipment Corresponding description in the step of may be referred to Fig. 2 202b, the embodiment of the present invention will not be described in great detail.
403rd, the character of the scheduled field in the character string is taken out according to the character string composition rule;If into Work(takes out the character of scheduled field, then execution step 404a;If successfully not taking out the character of scheduled field, Then execution step 404b;
Exemplary, character string formation rule is " to represent parameter -- attribute of the line character string as attribute information Information:Entry name _ function is illustrated ", wherein ":" character for scheduled field and " _ " between.Example Property, the preset function field of the attribute information of equipment is " testmod--help_info:ABC_THIS IS FOR ... ", ":" character of the character for scheduled field, the i.e. character of scheduled field are " ABC " and " _ " between.
If successfully taking out the character ABC of scheduled field, execution step 404a;
If successfully not taking out the character ABC of scheduled field, execution step 404b;It is above-mentioned successfully not take The reason for going out the character of scheduled field includes but is not limited to following reason, now illustrates:
If preset function field is " testmod--help_info:ABC_THIS IS FOR ... ", and compile Fail to write during writing ":", become " testmod--help_infoABCTHIS IS FOR ... ", cause Which place do not know to start to extract the character of scheduled field from, so as to cause to extract the character failure of scheduled field.
Also or attribute information be " testmod--help_info:ABC_THIS IS FOR ... ", and compile Fail to write " _ " during writing, become " testmod--help_info:ABCTHIS IS FOR ... ", lead Which EOC cause does not know from the character for extracting scheduled field, so as to cause the character for extracting scheduled field to lose Lose.
404a, using the character of scheduled field as the attribute information of the equipment entry name.
Wherein, Fig. 2 is may be referred to using the character of scheduled field as the entry name of the attribute information of the equipment The step of 204 in corresponding description, the embodiment of the present invention will not be described in great detail.
404b, output developer write the nonstandard information warning of preset function field.
Exemplary, it is lack of standardization that output developer writes preset function field, please for functional module according to “testmod--help_info:Project name _ function is illustrated " write.
Point out by more than, make staff know the reason for being classified that fail, then staff Specification writes the attribute information of functional module, re-enter classification process after the completion of writing.
405th, the entry name for obtaining is matched with the entry name in existing project list of file names;If matching Success, then execution step 406a;If matching unsuccessful, execution step 406b;
Wherein, the entry name for obtaining is carried out matching and can be joined with the entry name in existing project list of file names Corresponding description in the step of examining Fig. 3 305, the embodiment of the present invention will not be described in great detail.
406a, according to the entry name and specific policy, the attribute information of the equipment is classified;Its In, the specific policy is the safety detection carried out for the attribute information of distinct device.
Wherein, according to the entry name and specific policy, classification is carried out to the attribute information of the equipment can be with Corresponding description in reference to the step of Fig. 1 103, the embodiment of the present invention will not be described in great detail.
The information warning of the entitled illegal entry name of project marked in 406b, the attribute information of the output equipment.
Wherein, the information warning of the entitled illegal entry name of project marked in the attribute information for exporting the equipment Corresponding description in the step of may be referred to Fig. 3 306b, the embodiment of the present invention will not be described in great detail.
Further, the classification for the attribute information of equipment may need to upload on corresponding server, If causing classification failure due to not connecting corresponding server, then need to warn staff Illustrate, so as to staff according to information warning to occurring the reason for check, so as to improve the category of equipment The efficiency of the classification of property information.Specifically, another kind of information classification approach provided in an embodiment of the present invention, such as Shown in Fig. 5, the method includes:
501st, whether preset function field is included in the attribute information of testing equipment, if comprising preset function field, Then execution step 502a;If not including preset function field, execution step 502b.
Wherein, the step of whether may be referred to Fig. 2 comprising preset function field in the attribute information of testing equipment Corresponding description in 201, the embodiment of the present invention will not be described in great detail.
502a, the corresponding character string of the preset function field is extracted from the attribute information of the equipment.
Wherein, the corresponding character string of the preset function field is extracted from the attribute information of the equipment can be with Corresponding description with reference to the step of Fig. 2 in 202a, the embodiment of the present invention will not be described in great detail.
Wherein, the preset function field in the attribute information of the equipment in the form of character string.
502b, output developer do not carry out the preservation information warning of function mark to the attribute information of equipment.
Wherein, export developer does not carry out the preservation information warning of function mark to the attribute information of equipment Corresponding description in the step of may be referred to Fig. 2 202b, the embodiment of the present invention will not be described in great detail.
503rd, the character of the scheduled field in the character string is taken out according to the character string composition rule;If into Work(takes out the character of scheduled field, then execution step 504a;If successfully not taking out the character of scheduled field, Then execution step 504b;
Wherein, the character of the scheduled field in the character string is taken out according to the character string composition rule;If Corresponding description in the step of successfully character of taking-up scheduled field may be referred to Fig. 4 403, the present invention are implemented Example will not be described in great detail.
504a, using the character of scheduled field as the attribute information of the equipment entry name.
Wherein, Fig. 2 is may be referred to using the character of scheduled field as the entry name of the attribute information of the equipment The step of 204 in corresponding description, the embodiment of the present invention will not be described in great detail.
504b, output developer write the nonstandard information warning of preset function field.
Wherein, output developer writes the nonstandard information warning of preset function field and may be referred to Fig. 4's Corresponding description in step 404b, the embodiment of the present invention will not be described in great detail.
505th, the entry name for obtaining is matched with the entry name in existing project list of file names;If matching Success, then execution step 506a;If matching unsuccessful, execution step 506b;
Wherein, the entry name for obtaining is carried out matching and can be joined with the entry name in existing project list of file names Corresponding description in the step of examining Fig. 3 305, the embodiment of the present invention will not be described in great detail.
506a, according to the entry name and specific policy, the attribute information of the equipment is classified;Its In, the specific policy is the safety detection carried out for the attribute information of distinct device;If to the equipment Attribute information classify successfully, then execution step 507a;If the attribute information classification to the equipment is unsuccessful, Then execution step 507b.
Wherein, according to the entry name and specific policy, classification is carried out to the attribute information of the equipment can be with Corresponding description in reference to the step of Fig. 1 103, the embodiment of the present invention will not be described in great detail.
The information warning of the entitled illegal entry name of project marked in 506b, the attribute information of the output equipment.
Wherein, the information warning of the entitled illegal entry name of project marked in the attribute information for exporting the equipment Corresponding description in the step of may be referred to Fig. 3 306b, the embodiment of the present invention will not be described in great detail.
The successful information warning of 507a, output category.
Exemplary, the attribute information of outut device is classified successfully, so that staff knows the attribute of equipment Whether information classifies successfully.
The unsuccessful information warning of 507b, output category.
Exemplary, the attribute information classification of outut device is unsuccessful, it is noted that the whether classification mesh of the project The attribute information of the equipment comprising same names in record, if the title of the attribute information of equipment please be change.
Exemplary, the attribute information of equipment is uploaded to into FTP (File Transfer Protocol, file Host-host protocol) on the classified catalogue begun a project of server when, unsuccessful reason of classifying may is that connection not Upper ftp server, then the attribute information classification of outut device is unsuccessful, it is noted that the whether classification of the project The attribute information of the equipment comprising same names in catalogue, or please note whether inspection is connected with ftp server Connect.
Further, one embodiment of the present of invention provides a kind of information sorting device, as shown in fig. 6, should Device includes:Detector unit 61, extraction unit 62 and taxon 63.
Detector unit 61, for whether including preset function field in the attribute information of testing equipment;
Extraction unit 62, for when preset function field is included in the attribute information for detecting equipment, extracting The entry name of the attribute information of the equipment;
Taxon 63, for according to the entry name and specific policy, entering to the attribute information of the equipment Row classification;Wherein, the specific policy is the safety detection carried out for the attribute information of distinct device.
Technical scheme provided in an embodiment of the present invention is detector unit 61, in the attribute information of testing equipment Whether preset function field is included;Extraction unit 62, for pre- when including in the attribute information of the equipment that detects If during function field, extracting the entry name of the attribute information of the equipment;Taxon 63, for according to institute Entry name and specific policy are stated, the attribute information of the equipment is classified;Wherein, the specific policy It is the safety detection carried out for the attribute information of distinct device.Manually need not join during above-mentioned categorizing process With classification, it is to avoid misplaced or leakage amplification module phenomenon occur, improve accuracy rate and efficiency.
Further, developer is due to the default work(of the attribute information place entry name of the non-programming apparatus of carelessness Can field, so as to cause entry name that can not be in the preset function field according to the attribute information of equipment to set this The situation classified by standby attribute information occurs.Based on the problem, need for the attribute information of equipment be The no preset function field with place entry name is detected, and does not have institute by the attribute information to equipment Warning statement is carried out in the situation of the preset function field of entry name, so that staff is according to information warning pair Preset function field in the attribute information of equipment is modified, the default work(for then being completed according to modification again Entry name in energy field is classified to the attribute information of equipment, so as to improve dividing for the attribute information of equipment The efficiency of class.Specifically, another kind of information sorting device provided in an embodiment of the present invention, as shown in fig. 7, The device also includes:
Information warning output unit 64, does not include in the attribute information for detecting the equipment to be sorted for working as The preset function field, then exporting developer does not carry out the guarantor of function mark to the attribute information of equipment Deposit information warning.
Further, although developer has carried out writing for preset function field, but the equipment write Attribute information place entry name be not project in existing bulleted list, so as to cause can not be according to equipment Attribute information preset function field in entry name situation that the attribute information of the equipment is classified send out It is raw.Based on the problem, whether the place entry name of attribute information for equipment is needed in existing bulleted list In detected, and warning statement is carried out by the incorrect situation of preset function field to writing, so as to Preset function field in attribute information of the staff according to information warning to equipment is modified, Ran Houchong New root is classified to the attribute information of equipment according to the entry name in the preset function field that completes of modification so that The embodiment of the present invention is only classified to the attribute information of correct equipment, so as to improve the attribute information of equipment Classification efficiency.Specifically, one embodiment of the present of invention provides another kind of information sorting device, such as Fig. 8 Shown, described device also includes:
Matching unit 65, for carrying out parsing acquisition in the attribute information of 62 pairs of equipment of the extraction unit After the entry name, the entry name that parsing is obtained is carried out with the entry name in existing project list of file names Matching;
The information warning output unit 64, is additionally operable to when the matching unit 65 matches unsuccessful, output The information warning of the entitled illegal entry name of project marked in the attribute information of the equipment.
Further, as developer is when the preset function field comprising entry name is write, due to operation The reasons such as error, represent between other information field in representing the field and preset function field of entry name Coupling part fails to write, although the preset function field in causing the attribute information of equipment has includes entry name Field, but due to not distinguishing the coupling part between the field references other information field for representing entry name, And cause to parse less than entry name, so as to cause can not be in the preset function field according to the attribute information of equipment Entry name situation that the attribute information of the equipment is classified occur.Based on the problem, need to parsing The situation of the entry name in the preset function field of the attribute information for not going out equipment is warned, so as to the people that works Preset function field in attribute information of the member according to information warning to equipment is modified, be modified as it is complete and Correct preset function field form, the entry name in the preset function field for then being completed according to modification again The attribute information of equipment is classified, so as to improve the efficiency of the classification of the attribute information of equipment.Specifically, One embodiment of the present of invention provides another kind of information sorting device, as shown in figure 9, the extraction unit 62 Including:
Extraction module 621, it is corresponding for the preset function field is extracted from the attribute information of the equipment Character string, wherein the preset function field in the attribute information of the equipment in the form of character string;
Parsing module 622, for carrying out parsing the project of the attribute information for obtaining the equipment to the character string Name, wherein the scheduled field in the entitled character string of the project of the attribute information of the equipment, the parsing Module 622 includes:
Mechanism 6221 is obtained, for the reserved word in the character string is taken out according to the character string composition rule The character of section;
Processing mechanism 6222, for ought successfully take out the character of scheduled field, using the character of scheduled field as The entry name of the attribute information of the equipment.
The information warning output unit 64, is additionally operable to successfully not take out predetermined when the processing mechanism 6222 The character of field, output developer write the nonstandard information warning of preset function field.
Further, the classification for the attribute information of equipment may need to upload on corresponding server, If causing classification failure due to not connecting corresponding server, then need to warn staff Illustrate, so as to staff according to information warning to occurring the reason for check, so as to improve the category of equipment The efficiency of the classification of property information.Specifically, one embodiment of the present of invention provides another kind of information sorting device, As shown in Figure 10, the information warning output unit 64, is additionally operable to when the taxon 63 is according to described Entry name and specific policy, are carried out after classification success to the attribute information of the equipment, and output category is successful Information warning;When the taxon 63 is according to the entry name and specific policy, the attribute to the equipment Information carry out classification it is unsuccessful after, the unsuccessful information warning of output category.
Through the above description of the embodiments, those skilled in the art can be understood that this It is bright to add the mode of required common hardware to realize by software, naturally it is also possible to by hardware, but a lot In the case of the former be more preferably embodiment.Based on such understanding, technical scheme substantially or Person says that the part contributed to prior art can be embodied in the form of software product, and the computer is soft Part product is stored in the storage medium that can read, such as the floppy disk of computer, hard disk or CD etc., if including Dry instruction is used so that a computer equipment (can be personal computer, server, or the network equipment Deng) perform method described in each embodiment of the invention.
The above, the only specific embodiment of the present invention, but protection scope of the present invention is not limited to This, any those familiar with the art the invention discloses technical scope in, can readily occur in Change or replacement, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should It is defined by the scope of the claims.

Claims (10)

1. a kind of information classification approach, it is characterised in that include:
Whether preset function field is included in the attribute information of testing equipment;
If comprising the preset function field, extracting the entry name of the attribute information of the equipment;
According to the entry name and specific policy, the attribute information of the equipment is classified;Wherein, institute It is the safety detection carried out for the attribute information of distinct device to state specific policy.
2. method according to claim 1, it is characterised in that the preset function field is set described In standby attribute information in the form of character string, the entry name for extracting the attribute information of the equipment includes:
The corresponding character string of the preset function field is extracted from the attribute information of the equipment;
The character string is carried out to parse the entry name of the attribute information for obtaining the equipment.
3. method according to claim 1, it is characterised in that also include:
If not including the preset function field, output developer is not carried out to the attribute information of equipment The preservation information warning of function mark.
4. the method according to any one of claim 1-3, it is characterised in that from extracting the equipment After the entry name of attribute information, also include:
The entry name for obtaining is matched with the entry name in existing project list of file names;
If the match is successful, perform and the attribute information of the equipment is classified according to the entry name;
If matching unsuccessful, the entitled illegal entry name of project marked in the attribute information for exporting the equipment Information warning.
5. method according to claim 2, it is characterised in that the project of the attribute information of the equipment Scheduled field in the entitled character string, carries out parsing the attribute letter for obtaining the equipment to the character string The entry name of breath includes:
The character of the scheduled field in the character string is taken out according to the character string composition rule;
If successfully taking out the character of scheduled field, believe the character of scheduled field as the attribute of the equipment The entry name of breath.
6. a kind of information sorting device, it is characterised in that include:
Detector unit, for whether including preset function field in the attribute information of testing equipment;
Extraction unit, for when preset function field is included in the attribute information for detecting equipment, extracting institute State the entry name of the attribute information of equipment;
Taxon, for according to the entry name and specific policy, carrying out to the attribute information of the equipment Classification;Wherein, the specific policy is the safety detection carried out for the attribute information of distinct device.
7. device according to claim 6, it is characterised in that the preset function field is set described In standby attribute information in the form of character string, the extraction unit includes:
Extraction module, for the corresponding word of the preset function field is extracted from the attribute information of the equipment Symbol string;
Parsing module, for carrying out parsing the entry name of the attribute information for obtaining the equipment to the character string.
8. device according to claim 6, it is characterised in that also include:
Information warning output unit, it is for when preset function field is not included in the attribute information of equipment, defeated Go out developer does not carry out the preservation information warning of function mark to the attribute information of equipment.
9. the device according to any one of claim 6-8, it is characterised in that also include:
A matching unit, for the entry name in the entry name and the existing project list of file names that obtain is carried out Match somebody with somebody;
The information warning output unit, is additionally operable to when in the entry name for obtaining with existing project list of file names Entry name when carrying out matching unsuccessful, the project marked in the attribute information for exporting the equipment is entitled illegal The information warning of entry name.
10. device according to claim 7, it is characterised in that the item of the attribute information of the equipment Scheduled field in the entitled character string of mesh, the parsing module include:
Mechanism is obtained, for the scheduled field in the character string is taken out according to the character string composition rule Character;
Processing mechanism, for ought successfully take out the character of scheduled field, using the character of scheduled field as described The entry name of the attribute information of equipment.
CN201510628085.2A 2015-09-28 2015-09-28 Information classification method and device Active CN106557505B (en)

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 true CN106557505A (en) 2017-04-05
CN106557505B 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070118508A1 (en) * 2005-11-18 2007-05-24 Flashpoint Technology, Inc. System and method for tagging images based on positional information
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
CN104766008A (en) * 2014-01-07 2015-07-08 腾讯科技(深圳)有限公司 Application program installation package safety detection method and server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070118508A1 (en) * 2005-11-18 2007-05-24 Flashpoint Technology, Inc. System and method for tagging images based on positional information
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
CN104766008A (en) * 2014-01-07 2015-07-08 腾讯科技(深圳)有限公司 Application program installation package safety detection method and server

Also Published As

Publication number Publication date
CN106557505B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
US8527950B2 (en) Verification of software applications
CN108170468B (en) Method and system for automatically detecting annotation and code consistency
CN104317713A (en) Automatic testing tool and method on basis of templates
US10523520B2 (en) System anomaly detection using parameter flows
CN103257919B (en) Inspection method and device for script programs
CN109683907A (en) Code completion method, apparatus, equipment and storage medium
CN106776584A (en) Character displaying method, translation table generating method, document translation method and device
CN115981984A (en) Equipment fault detection method, device, equipment and storage medium
CN104899043B (en) The method for obtaining software security demand is analyzed using module safety
CN102591773A (en) Automatic evaluation method for operation system security in classified protection evaluation and system thereof
CN107679051A (en) Transaction system error-detecting method and device
CN202736027U (en) Automatic evaluation system for operation system security in classified protection evaluation
CN106775896A (en) A kind of method for changing configuration file
CN107679152A (en) Data processing method based on multi-layer information joint index
CN103761095B (en) Method for generating universal upgrade file head data information
CN103617122B (en) A kind of comparison method of source code
US8341538B1 (en) Systems and methods for reducing redundancies in quality-assurance reviews of graphical user interfaces
CN104954133B (en) Method of calibration and device is written in certificate
CN102257498B (en) Comment generation method of configuration files and configuration file generation device
CN105022677B (en) A kind of USB device usage record restores inspection method
CN106557505A (en) A kind of information classification approach and device
CN106886471A (en) A kind of read-write fault detection method and system based on disk in linux
CN103455307B (en) The method and apparatus handled the information of order line output
CN103761202A (en) Data storage node hard disk position identification method and system
CN104320454B (en) A kind of method and system that self-defined output is realized in http protocol reduction

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
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.

GR01 Patent grant
GR01 Patent grant