Summary of the invention
In view of the foregoing deficiencies of prior art, the purpose of the present invention is to provide data resource processing methods, system
And applied electronic equipment and terminal, solve that resource transmission mode in the prior art is single to cause application scenarios are limited to ask
Topic.
To realize that above-mentioned target and other related objectives, the present invention provide a kind of data resource processing method, comprising: formulate
The more scenes of multiple resources share processing strategie, and it includes at least one attribute that each more scenes of resource, which share processing strategie,;Respectively
The more scenes of resource share processing strategie and sort out to form the shared processing strategie group of the more scenes of multiple resources by function difference, wherein
The attribute that each more scenes of resource share the shared processing strategie of the more scenes of resource in processing strategie group is special at least unitary respectively
Sign is associated, and associated with the default degree of correlation, and the default degree of correlation is by first privately owned value of feature and the attribute
Attribute value be calculated according to preset relatedness computation rule;Obtain and parse asking for the external equipment of resource request
Type information is sought to extract at least one first feature;It is searched according to extracted first feature and determines that the default degree of correlation is met the requirements
The more scenes of associated resource share processing strategie group;According to the default degree of correlation searched, from determined associated resource
More scenes share the selection more scenes of preferred resources in processing strategie group and share processing strategie;According to the more scenes of the preferred resources
It shares processing strategie pair resource corresponding with the request type information to handle, to respond the external equipment.
Optionally, it includes: resource request processing strategie, resource transmission processing plan that the more scenes of the resource, which share processing strategie,
Summary and resource data processing strategie;Wherein, resource request processing strategie is formulated according to the demand of the application scenarios of resource;Money
Transmission process strategy in source is formulated according to the demand of the transmission network situation of resource;Resource data processing strategie makes according to resource
It is formulated with the demand of scene and transmission network situation.
Optionally, the relatedness computation rule includes: in the history resource request message sample set for calculate pre-collecting
The average value and the more scenes of each resource for belonging to first characteristic value of same default type, which share in processing strategie, belongs to same preset
The average value of the attribute value of category attribute;Using between first characteristic value and the mean value calculation member feature and attribute of attribute value
The degree of correlation.
Optionally, the associated resource for searching and determining that the default degree of correlation is met the requirements according to extracted first feature
More scenes share processing strategie group, including any one of following: if the current member spy that 1) request type information includes
Sign shares the degree of correlation that the more scenes of resource in processing strategie group share processing strategie attribute with one or more more scenes of resource
Reach preset threshold or more, then the more scenes of the maximum resource of the degree of correlation is shared into processing strategie group as the associated money
The more scenes in source share processing strategie group;If 2) have other first feature associations in request type information in the more scenes of Current resource
Processing strategie group is shared, then when the association more scenes of Current resource share processing strategie group, calculates the request type information
The current first feature and the more scenes of Current resource that include share the partial correlation of processing strategie group;If the partial correlation reaches
To more than preset threshold, and current first feature and the more scenes of Current resource share the more scenes of resource in processing strategie group and are total to
Also reach preset threshold or more with the degree of correlation between the attribute of processing strategie, it is determined that current first feature association is in current
The more scenes of resource share processing strategie group;3) if current first feature that request type information includes is not associated with any resource
More scenes share processing strategie group, then create the more scenes of resource and share processing strategie group, and current first feature is needed to close
The more scenes of the resource of connection share processing strategie and are added thereto, to share processing as the more scenes of resource with current first feature association
Strategy Group.
Optionally, described according to the default degree of correlation searched, processing plan is shared from the determined associated more scenes of resource
Slightly the selection more scenes of preferred resources share processing strategie in group, comprising: if the more scenes of the associated resource of the determination share place
Managing Strategy Group is one, then shares in the associated more scenes of resource and select the maximum money of the degree of correlation in processing strategie group
The more scenes in source share processing strategie as the more scenes of the preferred resources and share processing strategie;Alternatively, if the determination is associated
The more scenes of resource share processing strategie group have it is multiple, then select respectively each associated more scenes of resource share processing strategie group
It selects the more scenes of the maximum resource of each correlation to share processing strategie as the more scenes of the preferred resources in group and shares processing
Strategy.
To realize that above-mentioned target and other related objectives, the present invention provide a kind of resource processing system, comprising: resource associations
Module shares processing strategie for formulating the more scenes of multiple resources, and it includes extremely that each more scenes of resource, which share processing strategie,
A few attribute;Each more scenes of resource share processing strategie and sort out to form the shared processing plan of the more scenes of multiple resources by function difference
Slightly group, wherein each more scenes of resource share the attribute difference that the more scenes of resource in processing strategie group share processing strategie
Associated at least unitary feature and associated with the default degree of correlation, the default degree of correlation is that first feature is privately owned
The attribute value of value and the attribute is calculated according to preset relatedness computation rule;Parsing module, for obtaining and solving
Analysis has the request type information of the external equipment of resource request to extract at least one first feature;Strategy Group selecting module is used
The shared processing plan of the more scenes of associated resource that the degree of correlation is met the requirements is preset in searching and determining according to extracted first feature
Slightly group;Preference policy selecting module, for being total to from the determined associated more scenes of resource according to the default degree of correlation searched
Processing strategie is shared with the selection more scenes of preferred resources in processing Strategy Group;Resource processing module, for according to described preferred
The more scenes of resource share processing strategie pair resource corresponding with the request type information and handle, and are set outside this with responding
It is standby.
Optionally, it includes: resource request processing strategie, resource transmission processing plan that the more scenes of the resource, which share processing strategie,
Summary and resource data processing strategie;Wherein, resource request processing strategie is formulated according to the demand of the application scenarios of resource;Money
Transmission process strategy in source is formulated according to the demand of the transmission network situation of resource;Resource data processing strategie makes according to resource
It is formulated with the demand of scene and transmission network situation.
Optionally, the relatedness computation rule includes: in the history resource request message sample set for calculate pre-collecting
The average value and the more scenes of each resource for belonging to first characteristic value of same default type, which share in processing strategie, belongs to same preset
The average value of the attribute value of category attribute;Using between first characteristic value and the mean value calculation member feature and attribute of attribute value
The degree of correlation.
Optionally, the associated resource for searching and determining that the default degree of correlation is met the requirements according to extracted first feature
More scenes share processing strategie group, including any one of following: if the current member spy that 1) request type information includes
Sign shares the degree of correlation that the more scenes of resource in processing strategie group share processing strategie attribute with one or more more scenes of resource
Reach preset threshold or more, then the more scenes of the maximum resource of the degree of correlation is shared into processing strategie group as the associated money
The more scenes in source share processing strategie group;If 2) have other first feature associations in request type information in the more scenes of Current resource
Processing strategie group is shared, then when the association more scenes of Current resource share processing strategie group, calculates the request type information
The current first feature and the more scenes of Current resource that include share the partial correlation of processing strategie group;If the partial correlation reaches
To more than preset threshold, and current first feature and the more scenes of Current resource share the more scenes of resource in processing strategie group and are total to
Also reach preset threshold or more with the degree of correlation between the attribute of processing strategie, it is determined that current first feature association is in current
The more scenes of resource share processing strategie group;3) if current first feature that request type information includes is not associated with any resource
More scenes share processing strategie group, then create the more scenes of resource and share processing strategie group, and current first feature is needed to close
The more scenes of the resource of connection share processing strategie and are added thereto, to share processing as the more scenes of resource with current first feature association
Strategy Group.
Optionally, described according to the default degree of correlation searched, processing plan is shared from the determined associated more scenes of resource
Slightly the selection more scenes of preferred resources share processing strategie in group, comprising: if the more scenes of the associated resource of the determination share place
Managing Strategy Group is one, then shares in the associated more scenes of resource and select the maximum money of the degree of correlation in processing strategie group
The more scenes in source share processing strategie as the more scenes of the preferred resources and share processing strategie;Alternatively, if the determination is associated
The more scenes of resource share processing strategie group have it is multiple, then select respectively each associated more scenes of resource share processing strategie group
It selects the more scenes of the maximum resource of each correlation to share processing strategie as the more scenes of the preferred resources in group and shares processing
Strategy.
To realize above-mentioned target and other related objectives, the present invention provides a kind of electronic equipment, comprising: memory is used for
It stores the more scenes of multiple resources pre-established and shares processing strategie, it includes extremely that each more scenes of resource, which share processing strategie,
A few attribute;Each more scenes of resource share processing strategie and sort out to form the shared processing plan of the more scenes of multiple resources by function difference
Slightly group, wherein each more scenes of resource share the attribute difference that the more scenes of resource in processing strategie group share processing strategie
Associated at least unitary feature and associated with the default degree of correlation, the default degree of correlation is that first feature is privately owned
The attribute value of value and the attribute is calculated according to preset relatedness computation rule;Communication component, be disposed for
There is the external device communication of resource request, with acquisition request type information;Processor connects the memory and wireless communication electricity
Road, and be disposed for extracting at least one first feature from the request type information, it is searched simultaneously according to extracted first feature
The more scenes of associated resource for determining that the default degree of correlation is met the requirements share processing strategie group;Also, it is pre- according to what is searched
If the degree of correlation, the selection more scenes of preferred resources in processing strategie group are shared from the determined associated more scenes of resource and share processing
Strategy;It is shared at processing strategie pair resource corresponding with the request type information according to the more scenes of the preferred resources
Reason, to respond the external equipment by the communication component.
As described above, data resource processing method provided by the invention, system and applied electronic equipment and terminal, lead to
It crosses the more scenes of formulation multiple resources and shares processing strategie, each more scenes of resource share processing strategie and include at least one category
Property;Each more scenes of resource share processing strategie and sort out to form the shared processing strategie group of the more scenes of multiple resources by function difference,
Wherein, the more scenes of each resource share the more scenes of resource in processing strategie group and share the attribute of processing strategie respectively at least one
First feature is associated, and associated with the default degree of correlation, and the default degree of correlation is by the privately owned value of the member feature and described
The attribute value of attribute is calculated according to preset relatedness computation rule;Obtain and parse the external equipment of resource request
Request type information to extract at least one first feature;It is searched according to extracted first feature and determines that the default degree of correlation meets
It is required that the more scenes of associated resource share processing strategie group;According to the default degree of correlation searched, from determined associated
The more scenes of resource share the selection more scenes of preferred resources in processing strategie group and share processing strategie;It is more according to the preferred resources
Scene shares processing strategie pair resource corresponding with the request type information and handles, and to respond the external equipment, realizes
The resource of transmission can use in different application scene, and improve efficiency of transmission.
Specific embodiment
Illustrate embodiments of the present invention below by way of specific specific example, those skilled in the art can be by this specification
Other advantages and efficacy of the present invention can be easily understood for disclosed content.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also based on different viewpoints and application, without departing from
Various modifications or alterations are carried out under spirit of the invention.It should be noted that in the absence of conflict, the embodiment in the application
And the feature in embodiment can be combined with each other.
As shown in Figure 1, the present invention provides a kind of data resource processing method, it can be applied to client and requested to server-side
Resource, and in the corresponding scene handled of server-side, pass through software realization;The described method includes:
Step S1: the more scenes of multiple resources are formulated and share processing strategie, each more scenes of resource share processing strategie
Include at least one attribute;Each more scenes of resource share processing strategie sort out by function difference to be formed the more scenes of multiple resources share
Processing strategie group, wherein each more scenes of resource share the category that the more scenes of resource in processing strategie group share processing strategie
Property it is associated at least unitary feature respectively and associated with the default degree of correlation, the default degree of correlation is by first feature
What the attribute value of privately owned value and the attribute was calculated according to preset relatedness computation rule.
In one embodiment, first feature (such as requests to provide from the external equipment for having resource request to server-side
The client in source), associated with resource request, the member feature is the operation that resource transmission needs in the process, the member feature
It can be construed to the processing requirement method needed during resource transmission, it is preferred that a first character representation one operates one
One processing requirement of first character representation cannot be decomposed into the minimum unit that other operations cannot be decomposed into other requirements, and one is asked
It asks and often can extract multiple first features in type information;As shown in Fig. 2, being provided as a variety of first Example characteristics, wherein every group of number
String indicates first characteristic value, is first feature name, i.e. action name, such as Transmission Control Protocol below numeric string;It is specific to determine request type letter
When the first feature for including in breath, first feature templates can be such as constructed in advance, resource request information is segmented there are many method
Afterwards, template matching is carried out, obtains request type information, and then obtain the first feature for being included;Or by believing request type
Breath carries out semantic understanding, and first feature is obtained after being abstracted to semantic understanding result;Or in resource request message directly to
Determination method this case of first characteristic value etc. out, specific member feature is not construed as limiting.
In one embodiment, the request type information is that basis has the relevant such as resource of the external equipment of resource request
Come what is defined, the resource is answered for application hardware environment, resource application software environment, resource transmission bandwidth, resource transport protocol etc.
With hardware environment such as Android device, apple equipment etc., the resource application software environment such as IOS, Android system etc., the resource
Transport protocol such as TCP etc..
Such as request type information are as follows: " telecommunications 4G network, user's habit are quickly obtained audio broadcasting, and Iphone machine is drilled
Show ";After carrying out template matching to the request type information, it is as follows to obtain first feature:
First feature 1: operator, telecommunications
First feature 2: network type, 4G network
First feature 3: user's habit, streaming broadcasting
First feature 4: type, Iphone
In one embodiment, it is that resource transmission is directed to application demand tool in the process that the more scenes of the resource, which share processing strategie,
The processing method that body uses, for example, as shown in the table, SPEEX decoding method is to carry out volume solution to audio resource
Code and the method that uses, it is that the more scenes of resource share processing strategie, and each more scenes of resource share processing strategie and include
One or more attributes, each attribute have attribute value;In following table, it includes two attributes that the more scenes of the resource, which share processing strategie,
And the attribute value of each attribute.
Title |
Attribute 1: attribute value |
Attribute 2: attribute value |
SPEEX |
Bandwidth: 4~44.2 |
Sound quality: 0 |
The more scenes of resource share processing strategie and can be divided by function difference, for example, resource request processing
Strategy, resource transmission processing strategie and resource data processing strategie;Wherein, resource request processing strategie is according to the application of resource
The demand of scene is formulated, and the application scenarios such as resource application hardware environment and resource application software environment application scenarios may be used also
Think traffic requirement (such as limitation 10M flow), product demand (such as product is to the more demanding of sound quality), usage scenario (example
Such as demonstrate scene, debugging scenarios etc.), user habit and requested resource size;Resource transmission processing strategie is according to resource
The demand of transmission network situation formulate, transmission network the situation such as network bandwidth and network delay, network transmission situation
It can be with are as follows: operator types, network type, network jitter etc.;Resource data processing strategie according to the usage scenario of resource and
The demand of transmission network situation is formulated, and the resource data processing strategie refers to the demand for request resource, to resource
It is handled, such as resource encoding and decoding, resource piecemeal, resource noise reduction process, resource link processing, transport protocol processing, it is described
Resource such as audio.
And the more scenes of resource share processing strategie group and refer to the shared processing strategie of multiple functionally similar more scenes
It is placed on the group of one group of formation, i.e. such as resource request processing strategie group, resource transmission processing strategie group and resource data
Processing strategie group, each more scenes share in processing strategie group and share processing strategie comprising the more scenes of multiple resources.
It, can be in addition, the more scenes of resource share the incidence relation of processing strategie group and first feature, the default degree of correlation
It is showed by way of establishing first mark sheet, it is assumed that have 2 strategies in 1 group, every strategy has 2 attributes, first feature
There are 2, then for example:
It preferably, can be by largely collecting the plan of existing resource request information sample set and alignment processing in advance
Sample set sample is omited to count and make.
And the relatedness computation rule includes: to belong in the history resource request message sample set for calculate pre-collecting together
The average value and the more scenes of each resource of first characteristic value of one default type, which share in processing strategie, belongs to same default kind of generic
The average value of the attribute value of property;Using related between first characteristic value and the mean value calculation member feature and attribute of attribute value
Degree, a kind of calculation method of the degree of correlation are the covariance first between Computing Meta characteristic value and attribute value, are then calculated again
Standard deviation between first characteristic value and attribute value is more as first feature and Current resource using the ratio of the covariance and standard deviation
Scene shares the degree of correlation that the more scenes of resource in processing strategie group share processing strategie attribute, as follows:
Wherein, r indicates each of a type of the shared processing strategie of each member characteristic value X and the more scenes of resource in a type
The degree of correlation of attribute value Y,For the average value of X values all in the type,For the average value of all Y values in the type.
It is of course also possible to use other methods calculate the degree of correlation, such as directly using the covariance of first characteristic value and attribute value
It indicates to be used as the degree of correlation.
In summary, can be according to different transmission networks and the application scenarios of different hardware configurations or software systems, it need to
The policy development for corresponding to progress resource processing is got off, and is defined and be used to indicate that first feature of resource request demand is related in advance
Connection goes to match the shared processing strategie of the required more scenes of preferred resource in this way in subsequent first feature according in resource request,
The good result for realizing the preferred resource processing of corresponding scene, will be described in more detail hereinafter.
Step S2: obtaining and it is special to extract at least one member to parse the request type information of the external equipment of resource request
Sign.
For as one example, the building of the resource request message: it is fixed according to the practical application request of user for can be
It is made, specifically, resource request message includes the related hardware environment of client, the application scenarios of resource, resource mark
The information such as knowledge, as shown in figure 3, being the example of a resource request information;Described in brought forward, if the request type that server-side needs
Information is not in resource request information, and server-side can also send detection packet to client, and providing server-side in detection packet needs
The request type information wanted, client are detected according to server-side and are wrapped, and the request type information of the client of needs is sent to clothes
Business end.
Step S3: searching according to extracted first feature and determines associated resource more that the default degree of correlation is met the requirements
Scape shares processing strategie group.
In one embodiment, specifically, the first feature that can successively select request type information to include, it is more to traverse all resources
Scene shares processing strategie group, determines that the more scenes of the corresponding resource of request type information share processing strategie group;It is specific true
Periodically, according to first mark sheet of request type information, the first feature and more scenes that successively inquiry request type information includes are shared
More scenes share the degree of correlation of processing strategie attribute in processing strategie group, according to preset threshold value, if the correlation
Degree reaches preset threshold or more (such as A is 80 in upper table, and preset threshold 60 then reaches requirement), it is determined that first feature association
Current more scenes share processing strategie group.
The more scenes of associated resource for searching and determining that the default degree of correlation is met the requirements according to extracted first feature
Processing strategie group is shared, including any one of following:
1) if request type information includes current first feature (so-called current first feature, i.e., for example from request type
First feature arbitrarily specified in each first feature of acquisition is parsed in information) processing strategie is shared with one or more more scenes of resource
The degree of correlation that the more scenes of resource share processing strategie group attribute in group reaches preset threshold or more, then by degree of correlation maximum
The more scenes of resource share processing strategie group as the associated more scenes of resource share processing strategie group;
If processing strategie group is shared in the more scenes of Current resource 2) have other first feature associations in request type information,
Then when searching the more scenes of Current resource and sharing processing strategie group, calculate current first feature that the request type information includes with
The more scenes of Current resource share the partial correlation of processing strategie group;If the partial correlation reaches preset threshold or more, and
And current first feature and the more scenes of Current resource share the attribute that the more scenes of resource in processing strategie group share processing strategie
Between the degree of correlation also reach preset threshold or more, it is determined that current first feature association shares place in the more scenes of Current resource
Manage Strategy Group, that is to say, that the more scenes of Current resource share institute of the processing strategie group as current first feature
It states the more scenes of associated resource and shares processing strategie group, the calculation method of the partial correlation is to calculate current first feature first
With the more scenes of Current resource share processing strategie group in the more scenes of resource share processing strategie attribute the degree of correlation be associated with
The more scenes of Current resource share all first features of processing strategie group and the more scenes of Current resource share in processing strategie group
The more scenes of resource share the difference of the product of processing strategie attributes correlation, as the first calculated value;Then it calculates to be associated with and work as
All first features that the preceding more scenes of resource share processing strategie group share in processing strategie group with the more scenes of Current resource to be provided
The more scenes in source share the irrelevant degree of processing strategie attribute product, as the second calculated value, finally, will first calculated value and
The ratio of second calculated value shares the partial correlation of processing strategie group as current first feature and the more scenes of Current resource;To work as
In preceding request type comprising two first feature associations for the more scenes of same resource share processing strategie group, the partial correlation
The calculation method of degree is as follows:
Wherein,Indicate Known Elements characteristic value x1With attribute gpIn the case where the degree of correlation, current member characteristic value x2With
Attribute gqBetween partial correlation;gpAnd gqThe more scenes of resource in processing strategie group, which are shared, for the more scenes of resource shares processing plan
P-th and q-th of attribute slightly,The first characteristic value x for including for request type information1Processing plan is shared with the more scenes of resource
Slightly the more scenes of resource share processing strategie attribute g in grouppBetween the degree of correlation,For first characteristic value x2With the more scenes of resource
It shares the more scenes of resource in processing strategie group and shares processing strategie attribute gqBetween the degree of correlation;
It is of course also possible to use other methods calculate the partial correlation, not the above is only illustrations by the present invention, not with
This is limited.
3) if current first feature that request type information includes is not associated with the more scenes of any resource and shares processing strategie
Group then creates the more scenes of resource and shares processing strategie group, and needs the associated more scenes of resource to share current first feature
Processing strategie is added thereto, to share processing strategie group as the more scenes of resource with current first feature association.
Step S4: according to the default degree of correlation searched, processing strategie group is shared from the determined associated more scenes of resource
The more scenes of preferred resources are selected to share processing strategie in group.
In one embodiment, the selection that the more scenes of preferred resources share strategy has at least two situations:
If 1) it is one that the more scenes of the associated resource of the determination, which share processing strategie group, in the associated resource
More scenes, which share, selects the more scenes of the maximum resource of the degree of correlation to share processing strategie as the preferred money in processing strategie group
The more scenes in source share processing strategie, and the more scenes of the maximum resource of the degree of correlation share the member that processing strategie is current request type
The degree of correlation that feature and the more scenes of resource share attribute in processing strategie is maximum;
2) alternatively, selecting to exist respectively if the more scenes of the associated resource of the determination share processing strategie group and have multiple
Each more scenes of associated resource, which share, selects the more scenes of the maximum resource of each correlation to share processing plan in processing strategie group
Slightly processing strategie is shared for the more scenes of the preferred resources.
For example, request type information contains 4 first features, correspondence has been associated with 4 groups, has then selected from each group
The degree of correlation more scenes of a highest preferred resources share processing strategie, then have 4 strategies.
Step S5: share that processing strategie pair is corresponding with the request type information provides according to the more scenes of the preferred resources
Source is handled, to respond the external equipment.
For example, the example of brought forward resource request message, according to the outer of the available request resource of resource request message
The address of portion's equipment and resource name when specific transmission, first determine that the more scenes of preferred resources are total so as to request resource be audio as an example
Successively request audio is handled with processing strategie, audio transmission protocol is such as selected, piecemeal processing is carried out to audio;Then will
Audio that treated carries out audio transmission according to the transport protocol that client is specified;As shown in the table, according to audio request type
The more scenes of preferred resources that information determines share processing strategie, switch to wav format firstly the need of by audio when specific audio transmission,
Audio is subjected to segment processing, preceding four sections of transmission 18K again, final stage transmits 1K, selects the real-time transport protocol pair based on TCP
Audio is transmitted.
As shown in figure 4, the present invention provides a kind of resource processing system 1, principle is roughly the same with above method embodiment,
Therefore it is no longer repeated for generally applicable technical characteristic;The system 1 includes: resource associations module 11, for formulating a variety of moneys
The more scenes in source share processing strategie, and it includes at least one attribute that each more scenes of resource, which share processing strategie,;Each resource is more
Scene shares processing strategie and sorts out to form the shared processing strategie group of the more scenes of multiple resources by function difference, wherein Mei Gezi
The attribute that the more scenes in source share the shared processing strategie of the more scenes of resource in processing strategie group is related at least unitary feature respectively
Connection, and it is associated with the default degree of correlation, the default degree of correlation is by the attribute of first feature privately owned value and the attribute
Value is calculated according to preset relatedness computation rule;Parsing module 12, for obtaining and parsing the outer of resource request
The request type information of portion's equipment is to extract at least one first feature;Strategy Group selecting module, for according to extracted member
Feature is searched and the more scenes of associated resource for determining that the default degree of correlation is met the requirements share processing strategie group;Preference policy choosing
Module is selected, for being shared in processing strategie group from the determined associated more scenes of resource according to the default degree of correlation searched
The more scenes of preferred resources are selected to share processing strategie;Resource processing module, for sharing place according to the more scenes of the preferred resources
Reason strategy handles resource corresponding with the request type information, to respond the external equipment.
In one embodiment, it includes: resource request processing strategie, resource transmission that the more scenes of the resource, which share processing strategie,
Processing strategie and resource data processing strategie;Wherein, resource request processing strategie is made according to the demand of the application scenarios of resource
Fixed, the application scenarios such as resource application hardware environment and resource application software environment, application scenarios can also be traffic requirement
(such as demonstration scene is adjusted for (such as limitation 10M flow), product demand (such as product is to the more demanding of sound quality), usage scenario
Examination hall scape etc.), user habit and requested resource size;Resource transmission processing strategie is according to the transmission network situation of resource
Demand formulate, transmission network the situation such as network bandwidth and network delay, network transmission situation can be with are as follows: operator
Type, network type, network jitter etc.;Resource data processing strategie is according to the usage scenario of resource and the need of transmission network situation
It asks to formulate, the resource data processing strategie refers to handling resource for the demand of request resource, as resource is compiled
Decoding, the processing of resource piecemeal, resource noise reduction process, resource link, transport protocol processing etc., the resource such as audio.
In one embodiment, the relatedness computation rule includes: the history resource request message sample for calculating pre-collecting
The average value and the more scenes of each resource for belonging to first characteristic value of same default type in set share belonging to together in processing strategie
The average value of the attribute value of one default category attribute;Utilize first characteristic value and the mean value calculation member feature and category of attribute value
Property between the degree of correlation, a kind of calculation method of the degree of correlation is the association side first between Computing Meta characteristic value and attribute value
Difference, the then standard deviation between Computing Meta characteristic value and attribute value again, using the ratio of the covariance and standard deviation as first special
Sign shares the degree of correlation that the more scenes of resource in processing strategie group share processing strategie attribute with the more scenes of current Current resource, such as
Shown in lower:
Wherein, r indicates each of a type of the shared processing strategie of each member characteristic value X and the more scenes of resource in a type
The degree of correlation of attribute value Y,For the average value of X values all in the type,For the average value of all Y values in the type.Certainly,
The degree of correlation can also be calculated using other methods, and first characteristic value and the covariance of attribute value is such as directly used to indicate as first feature
The degree of correlation between attribute.
In one embodiment, the association for searching and determining that the default degree of correlation is met the requirements according to extracted first feature
The more scenes of resource share processing strategie group, including it is any one of following:
1) if request type information includes current first feature and one or more more scenes of resource share processing strategie
The degree of correlation that the more scenes of resource share processing strategie attribute in group reaches preset threshold or more, then by the maximum money of the degree of correlation
The more scenes in source share processing strategie group as the associated more scenes of resource and share processing strategie group;
If processing strategie group is shared in the more scenes of Current resource 2) have other first feature associations in request type information,
Then when searching the more scenes of Current resource and sharing processing strategie group, calculate current first feature that the request type information includes with
The more scenes of Current resource share the partial correlation of processing strategie group;If the partial correlation reaches preset threshold or more, and
And other first features and the more scenes of Current resource share the attribute that the more scenes of resource in processing strategie group share processing strategie
Between the degree of correlation also reach preset threshold or more, it is determined that current first feature association shares place in the more scenes of Current resource
Strategy Group is managed, the calculation method of the partial correlation is to calculate currently first feature and the more scenes of Current resource first to share processing
The more scenes of resource, which share the degree of correlation of processing strategie attribute and are associated with the more scenes of Current resource, in Strategy Group shares processing plan
All first features and the more scenes of Current resource of slightly group share the more scenes of resource in processing strategie group and share processing strategie category
The difference of the product of the property degree of correlation, as the first calculated value;Then it calculates and is associated with the shared processing strategie of the more scenes of Current resource
All first features and the more scenes of Current resource of group share the more scenes of resource in processing strategie group and share processing strategie attribute
The product of irrelevant degree, as the second calculated value, finally, using the ratio of first calculated value and the second calculated value as current
First feature and the more scenes of Current resource share the partial correlation of processing strategie group;It is special in current request type to include two members
Sign is associated with for the shared processing strategie group of the more scenes of same resource, the following institute of the calculation method method of the partial correlation
Show:
Wherein,Indicate Known Elements characteristic value x1With attribute gpThe degree of correlation in the case where, current member characteristic value x2
With attribute gqBetween partial correlation;gpAnd gqThe more scenes of resource in processing strategie group, which are shared, for the more scenes of resource shares processing
P-th and q-th of attribute of strategy,The first characteristic value x for including for request type information1Processing is shared with the more scenes of resource
The more scenes of resource share processing strategie attribute g in Strategy GrouppBetween the degree of correlation,For first characteristic value x2With resource more
Scape shares the more scenes of resource in processing strategie group and shares processing strategie attribute gqBetween the degree of correlation;
It is of course also possible to use other methods calculate the partial correlation, this case is not construed as limiting.
3) if current first feature that request type information includes is not associated with the more scenes of any resource and shares processing strategie
Group then creates the more scenes of resource and shares processing strategie group, and needs the associated more scenes of resource to share current first feature
Processing strategie is added thereto, to share processing strategie group as the more scenes of resource with current first feature association.
In one embodiment, described according to the default degree of correlation searched, it is shared from the determined associated more scenes of resource
The more scenes of preferred resources are selected to share processing strategie in processing strategie group, comprising: if the more scenes of the associated resource of the determination
Sharing processing strategie group is one, then shares in processing strategie group in the associated more scenes of resource and select the degree of correlation most
The more scenes of big resource share processing strategie as the more scenes of the preferred resources and share processing strategie, and the degree of correlation is maximum
The more scenes of resource share first feature that processing strategie is current request type and the more scenes of resource share attribute in processing strategie
The degree of correlation is maximum;Alternatively, selecting to exist respectively if the more scenes of the associated resource of the determination share processing strategie group and have multiple
Each more scenes of associated resource, which share, selects the more scenes of the maximum resource of each correlation to share processing plan in processing strategie group
Slightly processing strategie is shared for the more scenes of the preferred resources.
As shown in figure 5, the present invention is provided using preceding method or the hardware device of system embodiment basis:
The present invention provides a kind of electronic equipment (server device, for example, tablet computer, PC, laptop etc.), packet
Include: memory 21 (such as ROM, RAM etc.) shares processing strategie for storing the more scenes of multiple resources pre-established, each
It includes at least one attribute that the more scenes of resource, which share processing strategie,;It is different by function that each more scenes of resource share processing strategie
Classification forms the more scenes of multiple resources and shares processing strategie group, wherein each more scenes of resource share in processing strategie group
The attribute that the more scenes of resource share processing strategie is associated at least unitary feature respectively and associated with the default degree of correlation, institute
Stating the default degree of correlation is the attribute value by first feature privately owned value and the attribute according to preset relatedness computation rule
It is calculated;Communication component 22 (such as: wireless communication unit: WiFi, bluetooth, mobile communication module etc., wire communication portion
Part: wired network adapter etc.), it is disposed for and has the external device communication of resource request, with acquisition request type information;Processor
23 (MCU, CPU, PLD etc.), connect the memory and radio communication circuit, and are disposed for from the request type information
At least one first feature is extracted, searches and determine the associated resource that the default degree of correlation is met the requirements according to extracted first feature
More scenes share processing strategie group;Also, it is total from the determined associated more scenes of resource according to the default degree of correlation searched
Processing strategie is shared with the selection more scenes of preferred resources in processing Strategy Group;Processing is shared according to the more scenes of the preferred resources
Strategy handles resource corresponding with the request type information, is set outside this with being responded by the communication component 22
It is standby.
The electric terminal 3 for connecting the electronic equipment 2 can also be provided (by the client wirelessly or non-wirelessly connected in the present invention
Equipment, for example, mobile phone, tablet computer, PC, laptop etc.) it is used as the external equipment, comprising: 31 (nothing of communication component
Line communication component: WiFi, bluetooth, mobile communication module etc., wireline communication section: wired network adapter etc. is mutually fitted with server device
With), for sending request type information, affiliated request type information is configured to therefrom parse and extract first feature.
The software operation logic in previous embodiment is combined on the hardware foundation of Fig. 5, and above-mentioned function can be realized.
As described above, data resource processing method provided by the invention, system and applied electronic equipment, pass through formulation
The more scenes of multiple resources share processing strategie, and it includes at least one attribute that each more scenes of resource, which share processing strategie,;Respectively
The more scenes of resource share processing strategie and sort out to form the shared processing strategie group of the more scenes of multiple resources by function difference, wherein
The attribute that each more scenes of resource share the shared processing strategie of the more scenes of resource in processing strategie group is special at least unitary respectively
Sign is associated, and associated with the default degree of correlation, and the default degree of correlation is by first privately owned value of feature and the attribute
Attribute value be calculated according to preset relatedness computation rule;Obtain and parse asking for the external equipment of resource request
Type information is sought to extract at least one first feature;It is searched according to extracted first feature and determines that the default degree of correlation is met the requirements
The more scenes of associated resource share processing strategie group;According to the default degree of correlation searched, from determined associated resource
More scenes share the selection more scenes of preferred resources in processing strategie group and share processing strategie;According to the more scenes of the preferred resources
It shares processing strategie pair resource corresponding with the request type information to handle, to respond the external equipment, realizes transmission
Resource can be used in different application scene, and improve efficiency of transmission.
The above-described embodiments merely illustrate the principles and effects of the present invention, and is not intended to limit the present invention.It is any ripe
The personage for knowing this technology all without departing from the spirit and scope of the present invention, carries out modifications and changes to above-described embodiment.Cause
This, institute is complete without departing from the spirit and technical ideas disclosed in the present invention by those of ordinary skill in the art such as
At all equivalent modifications or change, should be covered by the claims of the present invention.