CN104298735B - Method and device for identifying application program type - Google Patents

Method and device for identifying application program type Download PDF

Info

Publication number
CN104298735B
CN104298735B CN201410522629.2A CN201410522629A CN104298735B CN 104298735 B CN104298735 B CN 104298735B CN 201410522629 A CN201410522629 A CN 201410522629A CN 104298735 B CN104298735 B CN 104298735B
Authority
CN
China
Prior art keywords
type
participle
application program
application
name
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
Application number
CN201410522629.2A
Other languages
Chinese (zh)
Other versions
CN104298735A (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 Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software 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 Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201410522629.2A priority Critical patent/CN104298735B/en
Publication of CN104298735A publication Critical patent/CN104298735A/en
Application granted granted Critical
Publication of CN104298735B publication Critical patent/CN104298735B/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 provides a method and a device for identifying the type of an application program, wherein the method for identifying the type of the application program comprises the steps of obtaining the application name of the application program; dividing the application names to obtain word segments contained in the application names; acquiring a type corresponding to a participle according to a pre-established corresponding relation between the participle and the type; and determining the type of the application program according to the type corresponding to the word segmentation. The method can realize the identification of the type of the application program.

Description

The method and apparatus of recognition application type
Technical field
The present invention relates to technical field of data processing more particularly to a kind of method and apparatus of recognition application type.
Background technology
In the storage of active user's mobile phone, since the development specifications of application is improper, cause a large amount of memory spaces by hash It occupies, causes phone memory insufficient, storage data are all in tumble, it is therefore desirable to clear up more hashes, release is more More memory spaces.It when clearing up hash needs that the application program of UNKNOWN TYPE is identified, to use corresponding means It is cleared up.
The content of the invention
It is contemplated that it solves at least some of the technical problems in related technologies.
For this purpose, an object of the present invention is to provide a kind of methods of recognition application type, this method can be real Now to the identification of Application Type.
It is another object of the present invention to propose a kind of device of recognition application type.
In order to achieve the above objectives, on the one hand, the method for the recognition application type that the embodiment of the present invention proposes, including: Obtain the application name of application program;The application name is divided, obtains the participle included in the application name;According to advance The participle of foundation and the correspondence of type obtain the corresponding type of the participle;According to the corresponding type of the participle, determine The type of the application program.
The method for the recognition application type that the embodiment of the present invention proposes, is drawn by the application name to application program Point, it is segmented, and according to corresponding type is segmented, determines the type of corresponding application program, can realize to application program The identification of type.
In order to achieve the above objectives, on the other hand, the device for the recognition application type that the embodiment of the present invention proposes, bag It includes:First acquisition module, for obtaining the application name of application program;Division module for being divided to the application name, obtains The participle included into the application name;Second acquisition module, the participle and the correspondence of type pre-established for basis, Obtain the corresponding type of the participle;First determining module, for according to the corresponding type of the participle, determining described using journey The type of sequence.
The device for the recognition application type that the embodiment of the present invention proposes, is drawn by the application name to application program Point, it is segmented, and according to corresponding type is segmented, determines the type of corresponding application program, can realize to application program The identification of type.
In order to achieve the above objectives, another aspect, the mobile equipment that the embodiment of the present invention proposes, including:Housing, processor, Memory, circuit board and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and memory are set It puts on circuit boards;Power circuit, for powering for each circuit or device of mobile equipment;Memory is executable for storing Program code;Processor is corresponding with executable program code to run by reading the executable program code stored in memory Program, for perform following steps:Obtain the application name of application program;The application name is divided, is obtained described The participle included in application name;According to the participle and the correspondence of type pre-established, the corresponding type of the participle is obtained; According to the type for segmenting corresponding type, determining the application program.
The mobile equipment that the embodiment of the present invention proposes, is divided by the application name to application program, is segmented, and According to corresponding type is segmented, determine the type of corresponding application program, can realize the identification to Application Type.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description It obtains substantially or is recognized by the practice of the present invention.
Description of the drawings
Above-mentioned and/or additional aspect and advantage of the invention will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow diagram of one embodiment of method of recognition application type of the present invention;
Fig. 2 is the flow diagram of another embodiment of method of recognition application type of the present invention;
Fig. 3 is the structure diagram of one embodiment of device of recognition application type of the present invention;
Fig. 4 is the structure diagram of another embodiment of device of recognition application type of the present invention.
Specific embodiment
The embodiment of the present invention is described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or has the function of same or like element.Below with reference to attached The embodiment of figure description is exemplary, and is only used for explaining the present invention, and is not considered as limiting the invention.On the contrary, this The embodiment of invention includes falling into all changes in the range of the spirit and intension of attached claims, modification and equivalent Object.
Fig. 1 is the flow diagram of one embodiment of method of recognition application type of the present invention, and this method includes:
S11:Obtain the application name of application program.
Wherein it is possible to the data in bag name-application name-application type database are read, so as to obtain application name.
For example, data as shown in Table 1 can be read from database:
Table 1
available.yijianpojiewifi60867D1109 WiFi great master
available.yijianpojiesuoyouwifi98044D1109 Omnipotent wifi crack tools
available.yijianpojiesuoyouwifi68730D1109 Super wifi unlocks
available.yijianpojiesuoyouwifi67997D1109 Wireless wifi great master
available.yijianpojiesuoyouwifi50109D1109 Super wifi crack tools
available.woaiyijianrootdahsi15528D1109 Mono- key root of z5
available.wifikuaisupojie67276D1109 Super wifi is cracked
available.wifikuaisupojie48531D1109 Wifi password killers
available.wifikuaisupojie39315D1109 Sambalion wifi is cracked
available.wificrack.crack44645D1109 Super wifi unlocking devices
available.wanguyingyong.shashouzhuanjia9351D1109 System application deletion great master
It is understood that only including bag name and application name per data in table 1, application type is not shown.
S12:The application name is divided, obtains the participle included in the application name.
Wherein it is possible to be divided using default segmentation methods to application name, specific segmentation methods can be according to every A word or according to divisions such as semantemes, participle division is very ripe algorithm, and details are not described herein.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wirelessly respectively.
S13:According to the participle and the correspondence of type pre-established, the corresponding type of the participle is obtained.
Wherein, each participle can correspond to one or more types, for example, wireless corresponding type includes:Life and work Tool, the corresponding types of wifi include:Instrument and game.
It segments and can be determined with the correspondence of type previously according to the application program of known type, for example, corresponding first Application program, type are the first kind, it is assumed that the participle that the first application program includes includes the first participle and the second participle, then It can determine that the first participle and the corresponding type of the second participle include the first kind, in addition, being further included when in other applications During corresponding participle, the corresponding type of the participle can also increase, for example, also include the first participle in the second application program, and The type of second application program is Second Type, then the corresponding type of the first participle includes:The first kind and Second Type.Separately Outside, when further including corresponding participle in other applications, and the type of the type of other applications and the first application program When identical, the word frequency number of the participle the type can increase, for example, also include the first participle in the 3rd application program, and the 3rd The type of application program is the first kind, then the word frequency number of the corresponding first kind of the first participle is 2, the first participle corresponding the The word frequency number of two types is 1.
S14:According to the type for segmenting corresponding type, determining the application program.
Optionally, the corresponding type of the participle is at least one, described according to the corresponding type of the participle, determines institute The type of application program is stated, including:
According to each type of word frequency number obtained in advance, the corresponding each type of weight of the participle is determined;
The type of weight maximum is determined as to the type of the application program.
Optionally, when the participle is at least two, the method further includes:
According to the corresponding each type of weight of the participle, each type of total weight is determined;
The type by weight maximum is determined as the type of the application program, including:
The type of total weight maximum is determined as to the type of the application program.
Optionally, it is described according to the corresponding each type of weight of the participle, it determines each type of total weight, wraps It includes:
Corresponding each type obtains the weight of type described in different participles, by the weight of type described in different participles After addition, total weight of the type is obtained.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wireless, nothing respectively The corresponding type of line includes:Life and instrument, the corresponding types of wifi include:Instrument and game, it is assumed that pass through pre-recorded, nothing The corresponding type of line is that the word frequency number of the word frequency ratio instrument of life is high, then can set the weight point of wireless corresponding type It is not:Life is 2, and instrument is 1, similar, it is assumed that the word frequency of the word frequency ratios of the corresponding instruments of wifi game is high, then can be with Setting the weight of the corresponding types of wifi is respectively:Instrument is 2, and game is 1.After sum operation, it can obtain all types of Weight be respectively:Instrument is 3, and life is 2, and game is 1, then can be by the type of wireless this application program of wifi great master It is determined as instrument.
In addition, when the type for the participle that application name includes is unknown, can only be carried out according to the participle of known type Above-mentioned computing, the participle of UNKNOWN TYPE are not involved in computing.
The present embodiment is divided by the application name to application program, is segmented, and according to segmenting corresponding type, It determines the type of corresponding application program, can realize the identification to Application Type.Further, when identifying using journey It after the type of sequence, can be handled accordingly, so as to clear up more hashes, discharge more memory spaces.
Fig. 2 is the flow diagram of another embodiment of method of recognition application type of the present invention, and this method includes:
S21:Read a data in bag name-application name-application type database.
Wherein, can be with the bag name of corresponding record application program in the memory space of mobile phone by taking mobile phone as an example, application name and should With type, the database of the corresponding record above-mentioned parameter is properly termed as bag name-application name-application type database, from the data The a data read in storehouse includes the bag name of an application program, application name and application type.
S22:Whether the type for judging the application program is unknown, if so, performing S24, otherwise, performs S23.
Wherein, can then show there are above three parameter, when the value of application type is blank in a data of reading The application type of the corresponding application program of bag name is unknown, in the presence of the value of application type, then the class of the application program Type is the known value, it may be determined that the type of the application program is existing types value.
S23:Application name is divided, is segmented, each participle is included into the known type, and by the type Word frequency number adds 1.S29 is performed afterwards.
When initial, the word frequency number of each type could be provided as 0.
For example, the application name read is WiFi great master, the participle divided is WiFi, if the corresponding class of WiFi great master Type is known, it is assumed that type is instrument, then includes the corresponding types of WiFi:Instrument, and the word frequency number in instrument is added 1.
After determining to segment corresponding type and word frequency number, it can will segment corresponding type and word frequency number carries out It records and preserves, subsequently to use.
S24:Whether judge the Bao Mingzhong for the application program to be identified has the vocabulary of identity type, if so, S25 is performed, Otherwise S26 is performed.
Wherein, the vocabulary of identity type refers to the vocabulary that type can be directly determined according to the vocabulary, for example, mark class The vocabulary of type is:' mp3 ' or ' film ' etc..
S25:The type that the vocabulary identifies is determined as to the type of the application program to be identified.S29 is performed afterwards.
For example, when including ' mp3 ' in application name, it may be determined that its type is music types.
S26:The application name is divided, obtains the participle included in the application name.
For example, for application name:Wireless wifi great master, it is assumed that its type is unknown, due to also not wrapped in the application name Therefore vocabulary containing identity type, can divide the application name.
Default segmentation methods may be employed to divide application name, specific segmentation methods can be according to each word Or according to divisions such as semantemes, participle division is very ripe algorithm, and details are not described herein.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wirelessly respectively.
S27:According to the participle and the correspondence of type pre-established, the corresponding type of the participle is obtained.
Wherein, as it appears from the above, when the type of application program is known, can be determined according to the known type it includes Participle type, therefore, the corresponding type of participle can be obtained according to record before.
For example, corresponding first application program, type is the first kind, it is assumed that the participle that the first application program includes includes The first participle and the second participle can then determine that the first participle and the corresponding type of the second participle include the first kind, in addition, working as When corresponding participle is further included in other applications, the corresponding type of the participle can also increase, for example, the second application program In also include the first participle, and the type of the second application program is Second Type, then the corresponding type of the first participle includes:First Type and Second Type.In addition, further include corresponding participle in the other applications, and the type of other applications and the When the type of one application program is identical, the word frequency number of the participle the type can increase, for example, also including in the 3rd application program The first participle, and the type of the 3rd application program is the first kind, then the word frequency number of the corresponding first kind of the first participle is 2, The word frequency number of the corresponding Second Type of the first participle is 1.
Assuming that can obtain wireless corresponding type according to pre-recorded information includes:Life and instrument, wifi are corresponded to Type include:Instrument and game.
S28:According to the type for segmenting corresponding type, determining the application program.
For example, corresponding each participle, it may be determined that the word frequency number of the corresponding each type of the participle, it is true further according to word frequency number Determine the weight of respective type, it afterwards, can be by the power of the corresponding the type of different participles when the corresponding same type of multiple participles It is added again, obtains total weight of each type, the type of total weight maximum is determined as to the type of application program afterwards.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wireless, nothing respectively The corresponding type of line includes:Life and instrument, the corresponding types of wifi include:Instrument and game, it is assumed that pass through pre-recorded, nothing The corresponding type of line is that the word frequency number of the word frequency ratio instrument of life is high, then can set the weight point of wireless corresponding type It is not:Life is 2, and instrument is 1, similar, it is assumed that the word frequency of the word frequency ratios of the corresponding instruments of wifi game is high, then can be with Setting the weight of the corresponding types of wifi is respectively:Instrument is 2, and game is 1.After sum operation, it can obtain all types of Weight be respectively:Instrument is 3, and life is 2, and game is 1, then can be by the type of wireless this application program of wifi great master It is determined as instrument.
In addition, when the type for the participle that application name includes is unknown, can only be carried out according to the participle of known type Above-mentioned computing, the participle of UNKNOWN TYPE are not involved in computing.
S29:Read lower a data, perform can repeat S22-29 until each data in database all by It is treated.
The present embodiment is divided by the application name to application program, is segmented, and according to segmenting corresponding type, It determines the type of corresponding application program, can realize the identification to Application Type.In addition, when there are the words of identity type During remittance, type can be determined according to the vocabulary of the identity type, realizes the diversity for determining type fashion.Further, knowledge is worked as It after not going out the type of application program, can be handled accordingly, for example, clearing up garbage files using respective type cleaning rule And Stub File, so as to clear up more hashes, discharge more memory spaces.
Fig. 3 is the structure diagram of one embodiment of device of recognition application type of the present invention, which includes:The One acquisition module 31, division module 32, the second acquisition module 33 and the first determining module 34.
First acquisition module 31 is used to obtain the application name of application program;
Wherein it is possible to the data in bag name-application name-application type database are read, so as to obtain application name.
For example, data as shown in Table 1 above can be read from database.
Division module 32 obtains the participle included in the application name for being divided to the application name;
Optionally, the division module 32 is specifically used for:
According to pre-set segmentation methods, the application name is divided.
Wherein it is possible to be divided using default segmentation methods to application name, specific segmentation methods can be according to every A word or according to divisions such as semantemes, participle division is very ripe algorithm, and details are not described herein.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wirelessly respectively
Second acquisition module 33 is used for according to the participle and the correspondence of type pre-established, is obtained the participle and is corresponded to Type;
Wherein, each participle can correspond to one or more types, for example, wireless corresponding type includes:Life and work Tool, the corresponding types of wifi include:Instrument and game.
It segments and can be determined with the correspondence of type previously according to the application program of known type, for example, corresponding first Application program, type are the first kind, it is assumed that the participle that the first application program includes includes the first participle and the second participle, then It can determine that the first participle and the corresponding type of the second participle include the first kind, in addition, being further included when in other applications During corresponding participle, the corresponding type of the participle can also increase, for example, also include the first participle in the second application program, and The type of second application program is Second Type, then the corresponding type of the first participle includes:The first kind and Second Type.Separately Outside, when further including corresponding participle in other applications, and the type of the type of other applications and the first application program When identical, the word frequency number of the participle the type can increase, for example, also include the first participle in the 3rd application program, and the 3rd The type of application program is the first kind, then the word frequency number of the corresponding first kind of the first participle is 2, the first participle corresponding the The word frequency number of two types is 1.
First determining module 34 is used to, according to the corresponding type of the participle, determine the type of the application program.
Optionally, referring to Fig. 4, described to segment corresponding type as at least one, first determining module 34 includes:
First module 341, for according to each type of word frequency number that obtains in advance, determine the participle it is corresponding each The weight of type;
Second unit 342, for the type of weight maximum to be determined as to the type of the application program.
Optionally, when the participle is at least two, first determining module further includes:
Third unit 343, for according to the corresponding each type of weight of the participle, determining each type of total power Weight;
The second unit 342 is specifically used for:The type of total weight maximum is determined as to the type of the application program.
Optionally, the third unit 343 is specifically used for:
Corresponding each type obtains the weight of type described in different participles, by the weight of type described in different participles After addition, total weight of the type is obtained.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wireless, nothing respectively The corresponding type of line includes:Life and instrument, the corresponding types of wifi include:Instrument and game, it is assumed that pass through pre-recorded, nothing The corresponding type of line is that the word frequency number of the word frequency ratio instrument of life is high, then can set the weight point of wireless corresponding type It is not:Life is 2, and instrument is 1, similar, it is assumed that the word frequency of the word frequency ratios of the corresponding instruments of wifi game is high, then can be with Setting the weight of the corresponding types of wifi is respectively:Instrument is 2, and game is 1.After sum operation, it can obtain all types of Weight be respectively:Instrument is 3, and life is 2, and game is 1, then can be by the type of wireless this application program of wifi great master It is determined as instrument.
In addition, when the type for the participle that application name includes is unknown, can only be carried out according to the participle of known type Above-mentioned computing, the participle of UNKNOWN TYPE are not involved in computing.
In another embodiment, the first acquisition module 31 is specifically used for:It is corresponding that the application program is read from database Data, wherein, per the bag name of data corresponding record application program, application name and type in the database.
Wherein, can be with the bag name of corresponding record application program in the memory space of mobile phone by taking mobile phone as an example, application name and should With type, the database of the corresponding record above-mentioned parameter is properly termed as bag name-application name-application type database, from the data The a data read in storehouse includes the bag name of an application program, application name and application type.
In another embodiment, referring to Fig. 4, which further includes:
First judgment module 35, for judging whether the type of the application program is unknown;
Wherein, can then show there are above three parameter, when the value of application type is blank in a data of reading The application type of the corresponding application program of bag name is unknown, in the presence of the value of application type, then the class of the application program Type is the known value, it may be determined that the type of the application program is existing types value.
Second acquisition module 33 is specifically used for:When the type of the application program is unknown, according to pre-establishing Participle and type correspondence, obtain the corresponding type of the participle.
In another embodiment, referring to Fig. 4, which further includes:
Second determining module 36, for when the type of the application program is known, corresponding type to be segmented by described It is determined as the known type, and the word frequency number of the type is increased by 1.
When initial, the word frequency number of each type could be provided as 0.
For example, the application name read is WiFi great master, the participle divided is WiFi, if the corresponding class of WiFi great master Type is known, it is assumed that type is instrument, then includes the corresponding types of WiFi:Instrument, and the word frequency number in instrument is added 1.
After determining to segment corresponding type and word frequency number, it can will segment corresponding type and word frequency number carries out It records and preserves, subsequently to use.
In another embodiment, referring to Fig. 4, when the type of the application program is unknown, described device 30 further includes:
Second judgment module 37, for judging whether there is the vocabulary of identity type in the application name;
Wherein, the vocabulary of identity type refers to the vocabulary that type can be directly determined according to the vocabulary, for example, mark class The vocabulary of type is:' mp3 ' or ' film ' etc..
Second acquisition module 33 is specifically used for:When not having the vocabulary of identity type in the application name, according to The participle and the correspondence of type pre-established obtains the corresponding type of the participle.
In another embodiment, referring to Fig. 4, which further includes:
If for the vocabulary with identity type, the type that the vocabulary identifies is determined for 3rd determining module 38 For the type of the application program.
For example, when including ' mp3 ' in application name, it may be determined that its type is music types.
The present embodiment is divided by the application name to application program, is segmented, and according to segmenting corresponding type, It determines the type of corresponding application program, can realize the identification to Application Type.In addition, when there are the words of identity type During remittance, type can be determined according to the vocabulary of the identity type, realizes the diversity for determining type fashion.Further, knowledge is worked as It after not going out the type of application program, can be handled accordingly, for example, clearing up garbage files using respective type cleaning rule And Stub File, so as to clear up more hashes, discharge more memory spaces.
The embodiment of the present invention additionally provides a kind of mobile equipment, which includes housing, processor, memory, electricity Road plate and power circuit, wherein, circuit board is placed in the interior volume that housing surrounds, and processor and memory are arranged on circuit board On;Power circuit, for powering for each circuit or device of mobile equipment;Memory is used to store executable program code; Processor runs program corresponding with executable program code by reading the executable program code stored in memory, with For performing following steps:
S11’:Obtain the application name of application program.
Wherein it is possible to the data in bag name-application name-application type database are read, so as to obtain application name.
For example, data as shown in Table 1 can be read from database:
Table 1
available.yijianpojiewifi60867D1109 WiFi great master
available.yijianpojiesuoyouwifi98044D1109 Omnipotent wifi crack tools
available.yijianpojiesuoyouwifi68730D1109 Super wifi unlocks
available.yijianpojiesuoyouwifi67997D1109 Wireless wifi great master
available.yijianpojiesuoyouwifi50109D1109 Super wifi crack tools
available.woaiyijianrootdahsi15528D1109 Mono- key root of z5
available.wifikuaisupojie67276D1109 Super wifi is cracked
available.wifikuaisupojie48531D1109 Wifi password killers
available.wifikuaisupojie39315D1109 Sambalion wifi is cracked
available.wificrack.crack44645D1109 Super wifi unlocking devices
available.wanguyingyong.shashouzhuanjia9351D1109 System application deletion great master
It is understood that only including bag name and application name per data in table 1, application type is not shown.
S12’:The application name is divided, obtains the participle included in the application name.
Wherein it is possible to be divided using default segmentation methods to application name, specific segmentation methods can be according to every A word or according to divisions such as semantemes, participle division is very ripe algorithm, and details are not described herein.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wirelessly respectively.
S13’:According to the participle and the correspondence of type pre-established, the corresponding type of the participle is obtained.
Wherein, each participle can correspond to one or more types, for example, wireless corresponding type includes:Life and work Tool, the corresponding types of wifi include:Instrument and game.
It segments and can be determined with the correspondence of type previously according to the application program of known type, for example, corresponding first Application program, type are the first kind, it is assumed that the participle that the first application program includes includes the first participle and the second participle, then It can determine that the first participle and the corresponding type of the second participle include the first kind, in addition, being further included when in other applications During corresponding participle, the corresponding type of the participle can also increase, for example, also include the first participle in the second application program, and The type of second application program is Second Type, then the corresponding type of the first participle includes:The first kind and Second Type.Separately Outside, when further including corresponding participle in other applications, and the type of the type of other applications and the first application program When identical, the word frequency number of the participle the type can increase, for example, also include the first participle in the 3rd application program, and the 3rd The type of application program is the first kind, then the word frequency number of the corresponding first kind of the first participle is 2, the first participle corresponding the The word frequency number of two types is 1.
S14’:According to the type for segmenting corresponding type, determining the application program.
Optionally, the corresponding type of the participle is at least one, described according to the corresponding type of the participle, determines institute The type of application program is stated, including:
According to each type of word frequency number obtained in advance, the corresponding each type of weight of the participle is determined;
The type of weight maximum is determined as to the type of the application program.
Optionally, when the participle is at least two, the method further includes:
According to the corresponding each type of weight of the participle, each type of total weight is determined;
The type by weight maximum is determined as the type of the application program, including:
The type of total weight maximum is determined as to the type of the application program.
Optionally, it is described according to the corresponding each type of weight of the participle, it determines each type of total weight, wraps It includes:
Corresponding each type obtains the weight of type described in different participles, by the weight of type described in different participles After addition, total weight of the type is obtained.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wireless, nothing respectively The corresponding type of line includes:Life and instrument, the corresponding types of wifi include:Instrument and game, it is assumed that pass through pre-recorded, nothing The corresponding type of line is that the word frequency number of the word frequency ratio instrument of life is high, then can set the weight point of wireless corresponding type It is not:Life is 2, and instrument is 1, similar, it is assumed that the word frequency of the word frequency ratios of the corresponding instruments of wifi game is high, then can be with Setting the weight of the corresponding types of wifi is respectively:Instrument is 2, and game is 1.After sum operation, it can obtain all types of Weight be respectively:Instrument is 3, and life is 2, and game is 1, then can be by the type of wireless this application program of wifi great master It is determined as instrument.
In addition, when the type for the participle that application name includes is unknown, can only be carried out according to the participle of known type Above-mentioned computing, the participle of UNKNOWN TYPE are not involved in computing.
The present embodiment is divided by the application name to application program, is segmented, and according to segmenting corresponding type, It determines the type of corresponding application program, can realize the identification to Application Type.Further, when identifying using journey It after the type of sequence, can be handled accordingly, so as to clear up more hashes, discharge more memory spaces.
In another embodiment, processor runs and can perform by reading the executable program code stored in memory The corresponding program of program code, for performing following steps:
S21’:Read a data in bag name-application name-application type database.
Wherein, can be with the bag name of corresponding record application program in the memory space of mobile phone by taking mobile phone as an example, application name and should With type, the database of the corresponding record above-mentioned parameter is properly termed as bag name-application name-application type database, from the data The a data read in storehouse includes the bag name of an application program, application name and application type.
S22’:Whether the type for judging the application program is unknown, if so, performing S24 ', otherwise, performs S23 '.
Wherein, can then show there are above three parameter, when the value of application type is blank in a data of reading The application type of the corresponding application program of bag name is unknown, in the presence of the value of application type, then the class of the application program Type is the known value, it may be determined that the type of the application program is existing types value.
S23’:Application name is divided, is segmented, each participle is included into the known type, and by the type Word frequency number add 1.S29 ' is performed afterwards.
When initial, the word frequency number of each type could be provided as 0.
For example, the application name read is WiFi great master, the participle divided is WiFi, if the corresponding class of WiFi great master Type is known, it is assumed that type is instrument, then includes the corresponding types of WiFi:Instrument, and the word frequency number in instrument is added 1.
After determining to segment corresponding type and word frequency number, it can will segment corresponding type and word frequency number carries out It records and preserves, subsequently to use.
S24’:Whether have the vocabulary of identity type, if so, performing if judging the Bao Mingzhong for the application program to be identified S25 ' otherwise performs S26 '.
Wherein, the vocabulary of identity type refers to the vocabulary that type can be directly determined according to the vocabulary, for example, mark class The vocabulary of type is:' mp3 ' or ' film ' etc..
S25’:The type that the vocabulary identifies is determined as to the type of the application program to be identified.It performs afterwards S29’。
For example, when including ' mp3 ' in application name, it may be determined that its type is music types.
S26’:The application name is divided, obtains the participle included in the application name.
For example, for application name:Wireless wifi great master, it is assumed that its type is unknown, due to also not wrapped in the application name Therefore vocabulary containing identity type, can divide the application name.
Default segmentation methods may be employed to divide application name, specific segmentation methods can be according to each word Or according to divisions such as semantemes, participle division is very ripe algorithm, and details are not described herein.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wirelessly respectively.
S27’:According to the participle and the correspondence of type pre-established, the corresponding type of the participle is obtained.
Wherein, as it appears from the above, when the type of application program is known, can be determined according to the known type it includes Participle type, therefore, the corresponding type of participle can be obtained according to record before.
For example, corresponding first application program, type is the first kind, it is assumed that the participle that the first application program includes includes The first participle and the second participle can then determine that the first participle and the corresponding type of the second participle include the first kind, in addition, working as When corresponding participle is further included in other applications, the corresponding type of the participle can also increase, for example, the second application program In also include the first participle, and the type of the second application program is Second Type, then the corresponding type of the first participle includes:First Type and Second Type.In addition, further include corresponding participle in the other applications, and the type of other applications and the When the type of one application program is identical, the word frequency number of the participle the type can increase, for example, also including in the 3rd application program The first participle, and the type of the 3rd application program is the first kind, then the word frequency number of the corresponding first kind of the first participle is 2, The word frequency number of the corresponding Second Type of the first participle is 1.
Assuming that can obtain wireless corresponding type according to pre-recorded information includes:Life and instrument, wifi are corresponded to Type include:Instrument and game.
S28’:According to the type for segmenting corresponding type, determining the application program.
For example, corresponding each participle, it may be determined that the word frequency number of the corresponding each type of the participle, it is true further according to word frequency number Determine the weight of respective type, it afterwards, can be by the power of the corresponding the type of different participles when the corresponding same type of multiple participles It is added again, obtains total weight of each type, the type of total weight maximum is determined as to the type of application program afterwards.
For example, for application name:Wireless wifi great master, can divide to obtain two participles, be wifi and wireless, nothing respectively The corresponding type of line includes:Life and instrument, the corresponding types of wifi include:Instrument and game, it is assumed that pass through pre-recorded, nothing The corresponding type of line is that the word frequency number of the word frequency ratio instrument of life is high, then can set the weight point of wireless corresponding type It is not:Life is 2, and instrument is 1, similar, it is assumed that the word frequency of the word frequency ratios of the corresponding instruments of wifi game is high, then can be with Setting the weight of the corresponding types of wifi is respectively:Instrument is 2, and game is 1.After sum operation, it can obtain all types of Weight be respectively:Instrument is 3, and life is 2, and game is 1, then can be by the type of wireless this application program of wifi great master It is determined as instrument.
In addition, when the type for the participle that application name includes is unknown, can only be carried out according to the participle of known type Above-mentioned computing, the participle of UNKNOWN TYPE are not involved in computing.
S29’:Read lower a data, perform can repeat S22-29 until each data in database all It is processed.
The present embodiment is divided by the application name to application program, is segmented, and according to segmenting corresponding type, It determines the type of corresponding application program, can realize the identification to Application Type.In addition, when there are the words of identity type During remittance, type can be determined according to the vocabulary of the identity type, realizes the diversity for determining type fashion.Further, knowledge is worked as It after not going out the type of application program, can be handled accordingly, for example, clearing up garbage files using respective type cleaning rule And Stub File, so as to clear up more hashes, discharge more memory spaces.
It should be noted that in the description of the present invention, term " first ", " second " etc. are only used for description purpose, without It is understood that indicate or imply relative importance.In addition, in the description of the present invention, unless otherwise indicated, the meaning of " multiple " It is two or more.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include Module, segment or the portion of the code of the executable instruction of one or more the step of being used to implement specific logical function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combination thereof.Above-mentioned In embodiment, software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage Or firmware is realized.If for example, with hardware come realize in another embodiment, can be under well known in the art Any one of row technology or their combination are realized:With for the logic gates to data-signal realization logic function Discrete logic, have suitable combinational logic gate circuit application-specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that realize all or part of step that above-described embodiment method carries Suddenly it is that relevant hardware can be instructed to complete by program, the program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, one or a combination set of the step of including embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, it can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould The form that hardware had both may be employed in block is realized, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and is independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only memory, disk or CD etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment of the present invention or example.In the present specification, schematic expression of the above terms is not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiments or example in combine in an appropriate manner.
Although the embodiment of the present invention has been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, those of ordinary skill in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changes, replacing and modification.

Claims (21)

  1. A kind of 1. method of recognition application type, which is characterized in that including:
    Obtain the application name of application program;
    The application name is divided, obtains the participle included in the application name;
    According to the participle and the correspondence of type pre-established, the corresponding type of the participle is obtained, wherein, participle and type Correspondence determined previously according to the application program of known type, when the first application program include it is at least one participle and it is described When the type of first application program is the first kind, determine that the corresponding type of at least one participle is the first kind, When type of second application program comprising at least one participle and second application program is Second Type, described Increase the Second Type in the corresponding type of at least one participle, when the 3rd application program include at least one participle and When the type of 3rd application program is the first kind, by the corresponding first kind of at least one participle Word frequency number adds 1;
    According to the type for segmenting corresponding type, determining the application program.
  2. 2. according to the method described in claim 1, it is characterized in that, the corresponding type of the participle is at least one, described According to the corresponding type of the participle, the type of the application program is determined, including:
    According to each type of word frequency number obtained in advance, the corresponding each type of weight of the participle is determined;
    The type of weight maximum is determined as to the type of the application program.
  3. 3. according to the method described in claim 2, it is characterized in that, when the participle is at least two, the method is also wrapped It includes:
    According to the corresponding each type of weight of the participle, each type of total weight is determined;
    The type by weight maximum is determined as the type of the application program, including:
    The type of total weight maximum is determined as to the type of the application program.
  4. It is 4. according to the method described in claim 3, it is characterized in that, described according to the corresponding each type of power of the participle Weight, determines each type of total weight, including:
    Corresponding each type obtains the weight of type described in different participles, the weight of type described in different participles is added Afterwards, total weight of the type is obtained.
  5. 5. it according to the method described in claim 1, it is characterized in that, further includes:
    Whether the type for judging the application program is unknown;
    The participle and the correspondence of type that the basis pre-establishes obtain the corresponding type of the participle, including:
    When the type of the application program is unknown, according to the participle and the correspondence of type pre-established, described in acquisition Segment corresponding type.
  6. 6. it according to the method described in claim 5, it is characterized in that, further includes:
    When the type of the application program is known, the corresponding type of the participle is determined as the known type, and will The word frequency number of the type increases by 1.
  7. 7. according to the method described in claim 5, it is characterized in that, when the type of the application program is unknown, the side Method further includes:
    Judge whether there is the vocabulary of identity type in the application name;
    The participle and the correspondence of type that the basis pre-establishes obtain the corresponding type of the participle, including:
    When not having the vocabulary of identity type in the application name, according to the participle and the correspondence of type pre-established, Obtain the corresponding type of the participle.
  8. 8. the method according to the description of claim 7 is characterized in that described judge whether there is identity type in the application name Vocabulary after, the method further includes:
    If the type that the vocabulary identifies is determined as the type of the application program by the vocabulary with identity type.
  9. 9. according to the method described in claim 1, it is characterized in that, described divide the application name, including:
    According to pre-set segmentation methods, the application name is divided.
  10. 10. according to claim 1-9 any one of them methods, which is characterized in that the application name for obtaining application program, bag It includes:
    The corresponding data of the application program are read from database, wherein, it should per data corresponding record in the database With the bag name of program, application name and type.
  11. 11. a kind of device of recognition application type, which is characterized in that including:
    First acquisition module, for obtaining the application name of application program;
    Division module for being divided to the application name, obtains the participle included in the application name;
    Second acquisition module, for according to the participle and the correspondence of type pre-established, obtaining the corresponding class of the participle Type, wherein, it segments and is determined with the correspondence of type previously according to the application program of known type, when the first application program includes When the type of at least one participle and first application program is the first kind, the corresponding class of at least one participle is determined Type is the first kind, when the type that the second application program includes at least one participle and second application program is During Second Type, increase the Second Type in the corresponding type of at least one participle, when the 3rd application program includes When the type of at least one participle and the 3rd application program is the first kind, by least one participle pair The word frequency number for the first kind answered adds 1;
    First determining module, for according to the type for segmenting corresponding type, determining the application program.
  12. 12. according to the devices described in claim 11, which is characterized in that it is described to segment corresponding type as at least one, it is described First determining module includes:
    First module, for according to each type of word frequency number obtained in advance, determining that the participle is corresponding each type of Weight;
    Second unit, for the type of weight maximum to be determined as to the type of the application program.
  13. 13. device according to claim 12, which is characterized in that when the participle is at least two, described first really Cover half block further includes:
    Third unit, for according to the corresponding each type of weight of the participle, determining each type of total weight;
    The second unit is specifically used for:The type of total weight maximum is determined as to the type of the application program.
  14. 14. device according to claim 13, which is characterized in that the third unit is specifically used for:
    Corresponding each type obtains the weight of type described in different participles, the weight of type described in different participles is added Afterwards, total weight of the type is obtained.
  15. 15. according to the devices described in claim 11, which is characterized in that further include:
    First judgment module, for judging whether the type of the application program is unknown;
    Second acquisition module is specifically used for:When the type of the application program is unknown, according to the participle pre-established With the correspondence of type, the corresponding type of the participle is obtained.
  16. 16. device according to claim 15, which is characterized in that further include:
    Second determining module, for when the type of the application program is known, the corresponding type of the participle to be determined as The known type, and the word frequency number of the type is increased by 1.
  17. 17. device according to claim 15, which is characterized in that described when the type of the application program is unknown Device further includes:
    Second judgment module, for judging whether there is the vocabulary of identity type in the application name;
    Second acquisition module is specifically used for:When not having the vocabulary of identity type in the application name, according to building in advance Vertical participle and the correspondence of type obtain the corresponding type of the participle.
  18. 18. device according to claim 17, which is characterized in that further include:
    If 3rd determining module for the vocabulary with identity type, the type that the vocabulary identifies is determined as described The type of application program.
  19. 19. device according to claim 17, which is characterized in that the division module is specifically used for:
    According to pre-set segmentation methods, the application name is divided.
  20. 20. according to claim 11-19 any one of them devices, which is characterized in that first acquisition module is specifically used for:
    The corresponding data of the application program are read from database, wherein, it should per data corresponding record in the database With the bag name of program, application name and type.
  21. 21. a kind of mobile equipment, which is characterized in that including:Housing, processor, memory, circuit board and power circuit, wherein, Circuit board is placed in the interior volume that housing surrounds, and processor and memory are set on circuit boards;Power circuit, for for shifting Each circuit of dynamic equipment or device power supply;Memory is used to store executable program code;Processor is by reading memory The executable program code of middle storage runs program corresponding with executable program code, for performing following steps:
    Obtain the application name of application program;
    The application name is divided, obtains the participle included in the application name;
    According to the participle and the correspondence of type pre-established, the corresponding type of the participle is obtained, wherein, participle and type Correspondence determined previously according to the application program of known type, when the first application program include it is at least one participle and it is described When the type of first application program is the first kind, determine that the corresponding type of at least one participle is the first kind, When type of second application program comprising at least one participle and second application program is Second Type, described Increase the Second Type in the corresponding type of at least one participle, when the 3rd application program include at least one participle and When the type of 3rd application program is the first kind, by the corresponding first kind of at least one participle Word frequency number adds 1;
    According to the type for segmenting corresponding type, determining the application program.
CN201410522629.2A 2014-09-30 2014-09-30 Method and device for identifying application program type Active CN104298735B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410522629.2A CN104298735B (en) 2014-09-30 2014-09-30 Method and device for identifying application program type

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410522629.2A CN104298735B (en) 2014-09-30 2014-09-30 Method and device for identifying application program type

Publications (2)

Publication Number Publication Date
CN104298735A CN104298735A (en) 2015-01-21
CN104298735B true CN104298735B (en) 2018-06-05

Family

ID=52318460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410522629.2A Active CN104298735B (en) 2014-09-30 2014-09-30 Method and device for identifying application program type

Country Status (1)

Country Link
CN (1) CN104298735B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105718148A (en) * 2016-01-26 2016-06-29 北京小米移动软件有限公司 Display method and device for application icons and equipment
CN109144831B (en) * 2017-06-15 2021-10-29 中国移动通信集团浙江有限公司 Method and device for acquiring APP identification rule

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101593200A (en) * 2009-06-19 2009-12-02 淮海工学院 Chinese Web page classification method based on the keyword frequency analysis
CN101764748A (en) * 2009-12-16 2010-06-30 福建星网锐捷网络有限公司 Method for identifying application program, device and system thereof
CN101872351A (en) * 2009-04-27 2010-10-27 阿里巴巴集团控股有限公司 Method, device for identifying synonyms, and method and device for searching by using same
CN102799825A (en) * 2012-07-18 2012-11-28 腾讯科技(深圳)有限公司 Method, device, terminal and server for pushing safety application programs
CN103425635A (en) * 2012-05-15 2013-12-04 北京百度网讯科技有限公司 Method and device for recommending answers

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020144234A1 (en) * 2001-03-29 2002-10-03 Yeh Shu-Huar Joseph Naming scheme for reducing complexity of application creation tools

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101872351A (en) * 2009-04-27 2010-10-27 阿里巴巴集团控股有限公司 Method, device for identifying synonyms, and method and device for searching by using same
CN101593200A (en) * 2009-06-19 2009-12-02 淮海工学院 Chinese Web page classification method based on the keyword frequency analysis
CN101764748A (en) * 2009-12-16 2010-06-30 福建星网锐捷网络有限公司 Method for identifying application program, device and system thereof
CN103425635A (en) * 2012-05-15 2013-12-04 北京百度网讯科技有限公司 Method and device for recommending answers
CN102799825A (en) * 2012-07-18 2012-11-28 腾讯科技(深圳)有限公司 Method, device, terminal and server for pushing safety application programs

Also Published As

Publication number Publication date
CN104298735A (en) 2015-01-21

Similar Documents

Publication Publication Date Title
CN104317574B (en) Method and device for identifying application program type
CN104461390B (en) Write data into the method and device of imbricate magnetic recording SMR hard disks
JP2012526320A5 (en)
CN104583972A (en) Multi-layer system for symbol-space based compression of patterns
CN105607960A (en) Repairing method and device of file system directory tree
ATE465453T1 (en) DMA TRANSFER OF RECORDS AND AN EXCLUSIVE OR (XOR) OF THE RECORDS
DE60319407D1 (en) FOLLOW THE MOST CLEARED BLOCKS OF A NON-VOLATILE STORAGE SYSTEM
ATE555441T1 (en) METHOD AND APPARATUS FOR MANAGING THE NUMBER OF DELETIONS OF BLOCKS
EP1435576A3 (en) Method and apparatus for block-oriented memory management provided in smart card controllers
CN104298735B (en) Method and device for identifying application program type
ATE350700T1 (en) HOLDING INFORMATION IN ONE OR MORE MULTIPLE VIRTUAL VOLUME UNITS
CN107844271A (en) A kind of method, apparatus and computer-readable recording medium for being classified storage
JP2017188094A5 (en) Method of eliminating duplicate memory in memory module and DRAM memory module therefor
CN108228449A (en) Terminal equipment control method and device, terminal device and computer readable storage medium
CN107748739A (en) A kind of extracting method and relevant apparatus of short message text masterplate
CN112765916A (en) Generation method of post-simulation parameter netlist of integrated circuit
CN107844260A (en) A kind of method and device of magnetic disk of virtual machine space dilatation
CN109168137A (en) The recognition methods of abnormal pull-off network and device
CN103780263B (en) Device and method of data compression and recording medium
ATE434232T1 (en) METHOD AND DEVICE FOR DATA DECODING
CN104572994A (en) Method and device for searching data
US20160179168A1 (en) Electronic device and method for detecting power usage of electronic device
CN104298570A (en) Data processing method and device
CN105282206A (en) Method, device and system for processing website resource files
CN104834549B (en) The application file update method and device of mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant