CN109741086A - A kind of generation method and equipment of computation model - Google Patents

A kind of generation method and equipment of computation model Download PDF

Info

Publication number
CN109741086A
CN109741086A CN201811508657.3A CN201811508657A CN109741086A CN 109741086 A CN109741086 A CN 109741086A CN 201811508657 A CN201811508657 A CN 201811508657A CN 109741086 A CN109741086 A CN 109741086A
Authority
CN
China
Prior art keywords
charging
product
keyword
project
information
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.)
Pending
Application number
CN201811508657.3A
Other languages
Chinese (zh)
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.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201811508657.3A priority Critical patent/CN109741086A/en
Publication of CN109741086A publication Critical patent/CN109741086A/en
Pending legal-status Critical Current

Links

Abstract

The present invention is suitable for technical field of data processing, provides the generation method and equipment of a kind of computation model, comprising: receives billing model and generates request;The product information of target product is obtained based on product identification, and is extracted and at least one associated charging project of product information from charging project library;According to the charging algorithm of each charging project, the charge module about target product is generated;The place value of the configurable parameter in charge module is adjusted by user information, generates the billing model about request user.The present invention can generate matched billing model automatically according to each user information and product information, improve billing model formation efficiency, reduce configuration difficulty.

Description

A kind of generation method and equipment of computation model
Technical field
The invention belongs to technical field of data processing more particularly to the generation methods and equipment of a kind of computation model.
Background technique
With being continuously increased for product quantity, and each product has corresponding charging regulation, and user is using each production Charging mode when product also tends to complicate, and developer not only needs also to need for the corresponding charging algorithm of each products configuration It to adjust charging algorithm according to the difference of user property and generate the billing model to match with user.
The generation method of existing billing model, mainly by developer's manual configuration, if the product correspond to it is multiple User then needs then to need to disappear when the quantity of user and product are more for one billing model of each user's manual configuration Biggish human cost is consumed to carry out manual configuration, reduces the formation efficiency of billing model, increases configuration difficulty.
Summary of the invention
In view of this, the embodiment of the invention provides a kind of generation method of computation model and equipment, it is existing to solve The generation technique of computation model needs to consume biggish human cost to carry out manual configuration, and the formation efficiency of billing model is low, Configure the big problem of difficulty.
The first aspect of the embodiment of the present invention provides a kind of generation method of computation model, comprising:
It receives billing model and generates request;The billing model generates the target product that request includes billing model to be configured Product identification and request user user information;
The product information of the target product is obtained based on the product identification, and from charging project library extract with it is described At least one associated charging project of product information;
According to the charging algorithm of each charging project, the charge module about the target product is generated;
The place value of the configurable parameter in the charge module is adjusted by the user information, is generated about the request The billing model of user.
The second aspect of the embodiment of the present invention provides a kind of generating device of computation model, comprising:
Model generates request reception unit, generates request for receiving billing model;The billing model generates request packet The product identification of target product containing billing model to be configured and the user information for requesting user;
Charging project determination unit, for obtaining the product information of the target product based on the product identification, and from It is extracted and at least one associated charging project of the product information in charging project library;
Charge module output unit is generated for the charging algorithm according to each charging project about the target The charge module of product;
Billing model generation unit, for adjusting the configurable parameter in the charge module by the user information Place value generates the billing model about the request user.
The third aspect of the embodiment of the present invention provides a kind of terminal device, including memory, processor and is stored in In the memory and the computer program that can run on the processor, when the processor executes the computer program Realize each step of first aspect.
The fourth aspect of the embodiment of the present invention provides a kind of computer readable storage medium, the computer-readable storage Media storage has computer program, and each step of first aspect is realized when the computer program is executed by processor.
The generation method and equipment for implementing a kind of computation model provided in an embodiment of the present invention have the advantages that
The embodiment of the present invention according to the generation by asking when receiving the billing model generation request that request user sends The product identification for including is sought, obtains the product information of target product, and corresponding charging project is determined by product information, then By the charging algorithm of each charging item association, the charge module of target product is generated, finally by user information to charging Template is adjusted, and generates the billing model to match with request user, realizes the purpose for automatically generating billing model.With it is existing The generation method of billing model compare, be manually each user configuration billing model without administrator, terminal device can from It is dynamic that matched billing model is generated according to each user information and product information, billing model formation efficiency is improved, is reduced Configuration difficulty.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to embodiment or description of the prior art Needed in attached drawing be briefly described, it should be apparent that, the accompanying drawings in the following description is only of the invention some Embodiment for those of ordinary skill in the art without any creative labor, can also be according to these Attached drawing obtains other attached drawings.
Fig. 1 is a kind of implementation flow chart of the generation method for computation model that first embodiment of the invention provides;
Fig. 2 is a kind of generation method S102 specific implementation flow chart for computation model that second embodiment of the invention provides;
Fig. 3 is a kind of generation method S102 specific implementation flow chart for computation model that third embodiment of the invention provides;
Fig. 4 is a kind of generation method S104 specific implementation flow chart for computation model that fourth embodiment of the invention provides;
Fig. 5 is a kind of generation method specific implementation flow chart for computation model that fifth embodiment of the invention provides;
Fig. 6 is a kind of structural block diagram of the generating device for computation model that one embodiment of the invention provides;
Fig. 7 be another embodiment of the present invention provides a kind of terminal device schematic diagram.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and It is not used in the restriction present invention.
The embodiment of the present invention according to the generation by asking when receiving the billing model generation request that request user sends The product identification for including is sought, obtains the product information of target product, and corresponding charging project is determined by product information, then By the charging algorithm of each charging item association, the charge module of target product is generated, finally by user information to charging Template is adjusted, and generates the billing model to match with request user, realizes the purpose for automatically generating billing model, solves The generation technique of existing computation model needs to consume biggish human cost to carry out manual configuration, the generation of billing model Low efficiency, the big problem of configuration difficulty.
In embodiments of the present invention, the executing subject of process is terminal device.The terminal device includes but is not limited to: service The equipment that device, computer, smart phone and tablet computer etc. are able to carry out the generation operation of computation model.Particularly, the meter The generating device for calculating model can be a product servers, for counting each user for the use duration of product, and according to Charging is carried out to user using duration and request content, generates corresponding billing invoice, and corresponding for each user configuration Billing model.Fig. 1 shows the implementation flow chart of the generation method of the computation model of first embodiment of the invention offer, is described in detail such as Under:
In S101, receives billing model and generate request;It includes billing model to be configured that the billing model, which generates request, Target product product identification and request user user information.
In the present embodiment, which, which generates request, can be sent to terminal device by other users terminal, at this In the case of, if a certain user terminal is applied for the first time using a product, i.e., user and it is not configured with the billing model of the product, then can It identifies that the product used for the first time is target product, and the product identification of the target product is added to billing model and generates request In, and the available user information of user terminal, and user information is added to billing model and is generated in request, so as to So that the billing model generated matches with request user.Specifically, the mode that user terminal obtains user information can be with are as follows: uses Family terminal is equipped with the client to match with charge system, and user needs when application is using some product in the client Upper carry out register, user terminal obtain the user information of the user of current operation by client, which includes But it is not limited to: the data related to user such as user name, user account, user's station message recording, user gradation.User terminal will obtain The user information and product identification got are packaged, and are generated billing model and are generated request Concurrency and make arrangements for his funeral end equipment.
In the present embodiment, the generation request of billing model can also be automatically generated by terminal device.In this case, eventually If end equipment receives a certain Client-initiated product using request, judges the user and whether be configured with the product use and ask The associated billing model of the target product asked, if the user has been configured with associated billing model, directly in response to the user's Product uses request;Conversely, generating corresponding charging mould if the user is not configured with the corresponding billing model of the product Type configuring request, and execute the relevant operation of S101.Optionally, when terminal device receives a certain Client-initiated registration request When, then product list workable for the user can be determined, and corresponding for the generation of each product according to the authority information of the user Billing model configuring request, to realize the purpose to each products configuration billing model.
Optionally, terminal device can carry out authentication operations, tool after receiving billing model and generating request to request user Gymnastics is made as follows: terminal device generates in request from the billing model and extracts user information, is obtained according to the user information The usable product list of user is requested, and judges whether the product identification can be used in product list at this, if the product mark Knowing can be used in product list, then executes the relevant operation of S102;Conversely, if the product identification is not arranged in usable product In table, then request invalid information is exported.
In S102, the product information of the target product is obtained based on the product identification, and from charging project library It extracts and at least one associated charging project of the product information.
In the present embodiment, the product identification of terminal device extraction target product from billing model generation request, and from The product identification of target product is obtained in product library.It should be noted that the target product can be a physical product, in the feelings Under condition, user can rent target product, the tenancy of the physical product be obtained by renting target product, such as shared single Vehicle, shared mobile power source.The target product can also be a virtual product, and in this case, user will acquire the virtual product Use authorization, open corresponding access right, such as developing instrument, Cloud Server etc..Each target product has corresponding Product information, product information include but is not limited to: product description information, product function list, product module information etc. and product The relevant information of service provided.Preferably, if target product is a virtual software product, which can also be void The source code data of quasi- software product.
In the present embodiment, product information record target product product function and provided information on services, and Each product function and/or service type can correspond to a kind of charging project, illustratively, if a certain target product is multi-user Communication service product, and the real-time communication service includes voice communications services, text communication service and live video communication clothes Business, then above-mentioned three kinds of communication services can correspond to a kind of charging mode, i.e. a charging project.It can be seen that terminal device can be with By product information, the module type or information on services that target product includes are determined, thus extraction and mould from charging project library The matched charging project of block type and/or the matched charging project of information on services.
In the present embodiment, terminal device is stored with a charging project library, which sets for storage administrator The charging algorithm for each charging project set.Administrator can create pass after creating new service type or functional module In the service type or the associated charging project of functional module, and the development cost based on the service type or functional module and Similar or homogeneity service existing charging algorithm generates the charging algorithm about the charging item association, to generate one Include service type-charging project-charging algorithm corresponding relationship.Terminal device can be according to the service for including in product information Mark or functional module mark, extract corresponding charging project from the charging project library.
In S103, according to the charging algorithm of each charging project, the charging mould about the target product is generated Plate.
In the present embodiment, terminal device, can be from charging project after the corresponding charging project of target product has been determined The corresponding charging algorithm of each charging project is obtained in library, then seals the associated all charging algorithms of the target product Dress, to obtain the charge module about the target product.Specifically, establishing in the charge module has charging project and charging to calculate Corresponding relationship between method can be according to the production if receiving the product call request about user's transmission about target product The request content that product call request determination includes obtains the charging algorithm for the charging project being associated, and passes through corresponding meter Take algorithm progress product and uses charging.
In the present embodiment, charge module includes preset parameter, configurable parameter and actual count parameter, preset parameter Parameter value can not change, belong to for all users, the charging standard of the product is identical;And it can configure Parameter is can be adjusted according to different users, such as different user grade has corresponding charging discount, then the charging Discount is with configurable parameter;Further include actual count parameter, i.e., user actually use product workload, such as flow, Time, access times etc..
In S104, the place value of the configurable parameter in the charge module is adjusted by the user information, is generated and is closed In the billing model of the request user.
In the present embodiment, terminal device needs after generating the charge module of target product to the charge module Configurable parameter is adjusted, so that the billing model finally exported matches with request user.Based on this, terminal device The user information for extracting request user in request can be generated from billing model, and each configurable parameter is determined according to the user information Corresponding place value, and obtained place value assignment will be inquired to corresponding configurable parameter, thus subsequent computation requests user's When using rate, configurable parameter then immobilizes, i.e. the place value of this setting.
Optionally, in the present embodiment, which includes user region, and there is corresponding meter in different regions Take scheme, therefore corresponding configurable parameter can also have differences, is based on this, terminal device can include according in user information User region, determine that the user corresponds to the billing scheme of ownership place, the position of each configurable parameter determined by scheme Value, and charge module is adjusted based on the place value, generate the billing model about request user.
Above as can be seen that a kind of generation method of computation model provided in an embodiment of the present invention is by receiving request When the billing model that user sends generates request, the product identification for including is requested according to the generation, obtains the product of target product Information, and corresponding charging project is determined by product information, then by the charging algorithm of each charging item association, generate The charge module of target product is adjusted charge module finally by user information, generates and matches with user is requested Billing model realizes the purpose for automatically generating billing model.Compared with the generation method of existing billing model, it is not necessarily to administrator It is manually each user configuration billing model, terminal device can be automatically according to each user information and product information generation The billing model matched improves billing model formation efficiency, reduces configuration difficulty.
Fig. 2 shows the specific implementation streams of the generation method S102 of computation model of second embodiment of the invention offer a kind of Cheng Tu.Referring to fig. 2, relative to embodiment described in Fig. 1, a kind of generation method S102 packet of computation model provided in this embodiment Include: S1021~S1023, specific details are as follows:
Further, the product information that the target product is obtained based on the product identification, and from charging project It is extracted and at least one associated charging project of the product information in library, comprising:
In S1021, semantic analysis is carried out to the product information, determines the product keyword of the target product.
In the present embodiment, which can be product description information, in order to determine the product function of the target product The product module that can or included, needs to extract corresponding product keyword from product description information, to be closed by product Keyword determines corresponding charging project.Specifically, terminal device can store a keywords database, and terminal device judges the product Whether comprising the keyword in keywords database in description information, and using all keywords for including as product keyword.It is optional Ground, terminal device carry out semantic analysis to product information, the degree of association between at least two adjacent characters are judged, by the degree of association Greater than default correlation threshold, then identify that continuous at least two character is a phrase.
In S1022, the project of each candidate items in the product keyword and the charging project library is closed respectively Keyword imports matching degree computation model, calculates the matching degree between the target product and the candidate items;The matching degree Computation model specifically:
Wherein, MatchPoint (ProductWord, ChargingWordx) it is the target product and x-th of meter Take the degree of association between project, ProductWordjFor product keyword, ChargingWordxiFor x-th of charging project Charging keyword;ρ(ProductWordj,ChargingWordxi) it is j-th of keyword and xth in the product keyword The degree of association in the charging keyword of a charging project between i-th of keyword;M is the keyword that product keyword includes Total number;N is the total number for the keyword that the charging keyword of x-th of charging project includes;For most Big value Selection of Function;Quo is predetermined coefficient;DM is preset part of speech number of dimensions.
In the present embodiment, terminal device can be respectively by each product keyword and the project key word order of charging project Column are imported into matching degree computation model, the matching degree between target product and charging project are determined, if the numerical value of the matching degree It is bigger, then it represents that relevance is bigger between a certain product function of the target product and charging project, so as to pass through the charging Project carries out billing operation to the product function;Conversely, if the matching degree numerical value is smaller, then it represents that a certain product of the target product Relevance is lower between function and charging project, can not carry out billing operation to the product function by the charging project.
In the present embodiment, terminal device is based on preset Words ' Attributes dimension, constructs Words ' Attributes coordinate, and described First coordinate of product keyword described in Words ' Attributes coordinate internal labeling and the second coordinate of project interface keyword.Terminal is set For in order to calculate the degree of association between different keywords, i.e. whether two keywords are similar, can be by multiple preset words Attribute dimensions construct a Words ' Attributes coordinate, if the distance between certain two keyword is bigger in the coordinate, then it represents that the two Between the degree of association it is smaller, if the distance between certain two keyword is smaller in the keyword, then it represents that association between the two It spends bigger.
In the present embodiment, preset Words ' Attributes dimension includes but is not limited to: word emotion dimension, i.e., a certain word is Positive and positive degree, such as " reception " can then be located at the positive axis of the word emotion dimension, and " loss " then can position In the negative semiaxis of the word emotion dimension;Word amplitude dimension, i.e., emotion, position, strength represented by a certain word etc. it is strong It is weak slight, such as " high speed " then can be positioned at the positive axis of the word amplitude dimension;And " blocking " can then be located at the word width Spend the negative semiaxis of dimension.Therefore, each local interface keyword and calling interface keyword can be in different terms attribute dimensions Degree has corresponding numerical value, so that the numerical value of all Words ' Attributes dimensions constitutes the seat of the business keyword or characteristic key words Mark, i.e., above-mentioned the first coordinate and the second coordinate.
In the present embodiment, terminal device is in the first coordinate and project keyword that each product keyword has been determined After second coordinate, each product keyword and project keyword can be calculated in the Euclidean distance of preset coordinate.Pass through Euclidean Range formula calculates the distance between two coordinates value, can accurately express correlation degree between the two, to improve pass Join the accuracy of item recognition.
In S1023, the candidate items of the matching degree greater than preset matching threshold are chosen as the product The charging project of information association.
In the present embodiment, terminal device, will after calculating the degree of association between each target product and charging project The candidate items that matching degree is greater than preset matching degree threshold value can be chosen, are identified as charging project, is i.e. terminal device can be with The calculating operation of cost of use is carried out to a certain product function of the target product by the charging algorithm of the charging project.
In embodiments of the present invention, by carrying out semantic analysis to product information, product keyword is obtained, thus according to production Product keyword identifies to obtain corresponding charging project, realizes the purpose for automatically determining the associated charging project of target product, improves The formation efficiency of billing model.
Fig. 3 shows the specific implementation stream of the generation method S102 of computation model of third embodiment of the invention offer a kind of Cheng Tu.Referring to Fig. 3, relative to Fig. 1 the embodiment described, a kind of generation method S102 packet of computation model provided in this embodiment Include: S1024~S1027, specific details are as follows:
Further, the product information includes the source code data of the target product;It is described to be based on the product identification The product information of the target product is obtained, and is extracted and at least one associated meter of the product information from charging project library Take project, comprising:
In S1024, the source code data are parsed, determine the functional module that the target product includes.
In the present embodiment, which is specially the source code data of target product, that is, has recorded the fortune of target product Row logic and the product function for being included, each product function can be realized by a functional module.Based on this, Terminal device can parse source code data, determine the functional module that the target product is included.Specifically, a function Module can be packaged in a function, and terminal device can identify customized function number in source code data, and according to each The input information and output information of a customized function, generate corresponding training script, and being determined by training script should be certainly The training result of defined function, so that it is determined that whether the customized function can individually complete any product function, if so, Identify that the customized function is a functional module.
In S1025, according to the input signal types and output signal type of each functional module, determine described in The service type of functional module.
In the present embodiment, terminal device obtains the corresponding source code subdata of the functional module, so as to determine the function The input interface and output interface that energy module is included, interface name and the input signal for then inquiring each input interface are fixed Adopted information can also carry out so as to the input signal types of each input interface of determination similarly, for output interface Operation is stated, so that it is determined that the output signal type of each output interface.
In the present embodiment, terminal device can according to input signal types and input signal types, determine input with Output relation, to determine the service type of functional module based on the input and output relation.For example, if input signal types are Sound-type, and output signal type is text information type, then can determine that the functional module is a speech identifying function, from And corresponding service is the service of voice conversion text.
In S1026, if the charging project library includes the corresponding candidate items of the service type, by the candidate Item recognition be and the associated charging project of the product information.
In the present embodiment, terminal device can be inquired in charging project library after the service type of functional module has been determined It whether include the corresponding candidate items of the service type, if comprising only needing the operation of S1026;Conversely, if the charging project library In do not include the corresponding candidate items of the service type, then execute the operation of S1027.
It in the present embodiment, can if in charging project library including the candidate items of the corresponding service type of functional module Directly to pass through the charging algorithm of the candidate items, billing operation is carried out to the service type, therefore can identify the candidate item The associated charging project of the non-product information of mesh.
In S1027, if the charging project library do not include the corresponding candidate items of the service type, output about The charging algorithm configuration of the service type instructs.
In the present embodiment, if charging project library and being not configured with the candidate items of the service type, administrator is needed The candidate items are configured, therefore the configuration-direct of a charging algorithm about the service type can be exported, so as to pipe Reason person is according to the corresponding charging algorithm of charging algorithm configuration instruction input.Optionally, terminal device can be sent to host computer Charging algorithm configuration instruction, host computer is instructed from charging algorithm configuration from extraction service identifiers, and obtains other terminal devices Charging project library in whether record the candidate items of the service type, set if so, the candidate items are returned to terminal It is standby, so that the charging project library to the terminal device is updated.
In embodiments of the present invention, it is parsed by the source code data to target product, determines that the target product is wrapped The service type contained, so that the charging project to match with service type is obtained, so as to improve the identification standard of charging project True property improves the matching degree of billing model and target product.
Fig. 4 shows the specific implementation stream of the generation method S104 of computation model of fourth embodiment of the invention offer a kind of Cheng Tu.Referring to fig. 4, relative to embodiment described in Fig. 1 to Fig. 3, in a kind of generation method of computation model provided in this embodiment S104 includes: S1041~S1043, and specific details are as follows:
In S1041, the station message recording number and charging total value that the user information includes are counted, and according to the meter Expense record number and charging total value determine the consumption grade of the request user.
In the present embodiment, user information includes the history station message recording of request user, and terminal device can count this The station message recording number of user is requested, and extracts corresponding billing amount of each station message recording, so as to which request is calculated The charging total value of user.
In the present embodiment, station message recording number and charging total value are imported into consumption rating calculation mould by terminal device Type, so as to which consumption grade corresponding to request user is calculated.Optionally, station message recording number and charging total value Between corresponding weight can be determined according to the product type of target product.I.e. customer consumption grade corresponds to different product meetings Corresponding adjustment.
In S1042, it is based on preset consumption class parameter table, the grade place value of inquiry and the consumption ratings match.
In the present embodiment, terminal device can configure corresponding grade place value for different consumption grades, and according to consumption Corresponding relationship between grade and grade place value establishes above-mentioned consumption class parameter table.Terminal device is determined according to this The consumption grade for requesting user, determines corresponding grade place value.It should be noted that record in the consumption class parameter table There is the corresponding grade place value of each configurable parameter, i.e. the number of the grade place value is matched with the number of configurable parameter 's.
In S1043, the configurable parameter of the charge module is adjusted by the grade place value, generates the meter Take model.
In the present embodiment, terminal device adjusts charge module according to the grade place value to match with request user It is whole, thus output charge module corresponding with consumption grade.
In embodiments of the present invention, by determining the consumption grade of request user, match to generate with consumption grade Billing model, to improve the accuracy of billing model.
Fig. 5 shows a kind of specific implementation flow of the generation method of computation model of fifth embodiment of the invention offer Figure.Referring to Fig. 5, relative to embodiment described in Fig. 1-Fig. 3, a kind of generation method of computation model provided in this embodiment is described The place value of the configurable parameter in the charge module is adjusted by the user information, generates the meter about the request user After taking model, further includes: S501~S502, specific details are as follows:
In S501, billing model alteration command is received;The billing model alteration command includes change project and change More parameter.
In the present embodiment, it is needed when user needs the grade that user is adjusted or detected to billing model to change When updating billing model, a billing model alteration command can be generated.The billing model alteration command includes required progress The change parameter that the project label of the charging project of change and the required charging algorithm to the charging project are adjusted.
In S502, the charging algorithm of the change project is extracted from the billing model, and join by the change It is several that the charging algorithm is adjusted, the charging algorithm adjusted is added to the billing model.
In the present embodiment, terminal device according to change project project label, thus in billing model obtain with this The sensible associated charging algorithm of target, and identify that the charging algorithm is the required change algorithm for changing operation, pass through change Parameter is adjusted the parameter in the charging algorithm, and charging algorithm adjusted is added in billing model, thus real Now to the purpose of billing model change.
In embodiments of the present invention, terminal device can be changed according to billing model alteration command, and according to billing model Instruction changes operation to billing model, to improve the flexibility of billing model adjustment.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
Fig. 6 shows a kind of structural block diagram of the generating device of computation model of one embodiment of the invention offer, the calculating The each unit that the generating device of model includes is used to execute each step in the corresponding embodiment of Fig. 1.Referring specifically to Fig. 1 and figure Associated description in embodiment corresponding to 1.For ease of description, only the parts related to this embodiment are shown.
Referring to Fig. 6, the generating device of the computation model includes:
Model generates request reception unit 61, generates request for receiving billing model;The billing model generates request The product identification of target product comprising billing model to be configured and the user information for requesting user;
Charging project determination unit 62, for obtaining the product information of the target product based on the product identification, and It is extracted and at least one associated charging project of the product information from charging project library;
Charge module output unit 63 is generated for the charging algorithm according to each charging project about the mesh Mark the charge module of product;
Billing model generation unit 64, for adjusting the configurable parameter in the charge module by the user information Place value, generate about it is described request user billing model.
Optionally, the charging project determination unit 62 includes:
Product keyword determination unit determines the target product for carrying out semantic analysis to the product information Product keyword;
Matching degree computing unit, for respectively by each candidate items in the product keyword and the charging project library Project keyword import matching degree computation model, calculate the matching degree between the target product and the candidate items;Institute State matching degree computation model specifically:
Wherein, MatchPoint (ProductWord, ChargingWordx) it is the target product and x-th of meter Take the degree of association between project, ProductWordjFor product keyword, ChargingWordxiFor x-th of charging project Charging keyword;ρ(ProductWordj,ChargingWordxi) it is j-th of keyword and xth in the product keyword The degree of association in the charging keyword of a charging project between i-th of keyword;M is the keyword that product keyword includes Total number;N is the total number for the keyword that the charging keyword of x-th of charging project includes;For most Big value Selection of Function;Quo is predetermined coefficient;DM is preset part of speech number of dimensions;
Associated item recognition unit is made for choosing the matching degree greater than the candidate items of preset matching threshold For the associated charging project of the product information.
Optionally, the charging project determination unit 62 includes:
Functional module determination unit determines the functional module that the target product includes for parsing the source code data;
Service type determination unit, for the input signal types and output signal class according to each functional module Type determines the service type of the functional module;
Charging project selection unit, if including the corresponding candidate items of the service type for the charging project library, Then the candidate items are identified as and the associated charging project of the product information;
Charging algorithm configuration unit, if not including the corresponding candidate item of the service type for the charging project library Mesh is then exported and is instructed about the charging algorithm configuration of the service type.
Optionally, the billing model generation unit 64 includes:
Rating calculation unit is consumed, for counting the station message recording number and charging total value that the user information includes, And the consumption grade of the request user is determined according to the station message recording number and charging total value;
Grade place value determination unit, for being based on preset consumption class parameter table, inquiry and the consumption ratings match Grade place value;
Charge module adjustment unit, for adjusting the configurable ginseng of the charge module by the grade place value Number, generates the billing model.
Optionally, the generating device of the computation model further include:
Alteration command receiving unit, for receiving billing model alteration command;The billing model alteration command includes to become More project and change parameter;
Modification information adjustment unit for extracting the charging algorithm of the change project from the billing model, and leads to It crosses the change parameter to be adjusted the charging algorithm, the charging algorithm adjusted is added to the charging mould Type.
Therefore, it is each that the generating device of computation model provided in an embodiment of the present invention, which equally may not need administrator manually, User configuration billing model, terminal device can generate matched charging mould automatically according to each user information and product information Type improves billing model formation efficiency, reduces configuration difficulty.
Fig. 7 be another embodiment of the present invention provides a kind of terminal device schematic diagram.As shown in fig. 7, the embodiment Terminal device 7 includes: processor 70, memory 71 and is stored in the memory 71 and can transport on the processor 70 Capable computer program 72, such as the generation program of computation model.The processor 70 executes real when the computer program 72 Step in the generation method embodiment of existing above-mentioned each computation model, such as S101 shown in FIG. 1 to S104.Alternatively, described Processor 70 realizes the function of each unit in above-mentioned each Installation practice when executing the computer program 72, such as shown in Fig. 6 61 to 64 function of module.
Illustratively, the computer program 72 can be divided into one or more units, one or more of Unit is stored in the memory 71, and is executed by the processor 70, to complete the present invention.One or more of lists Member can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing the computer journey Implementation procedure of the sequence 72 in the terminal device 7.It is connect for example, the computer program 72 can be divided model generation request Unit, charging project determination unit, charge module output unit and billing model generation unit are received, each unit concrete function is such as It is upper described.
The terminal device 7 can be the calculating such as desktop PC, notebook, palm PC and cloud server and set It is standby.The terminal device may include, but be not limited only to, processor 70, memory 71.It will be understood by those skilled in the art that Fig. 7 The only example of terminal device 7 does not constitute the restriction to terminal device 7, may include than illustrating more or fewer portions Part perhaps combines certain components or different components, such as the terminal device can also include input-output equipment, net Network access device, bus etc..
Alleged processor 70 can be central processing unit (Central Processing Unit, CPU), can also be Other general processors, digital signal processor (Digital Signal Processor, DSP), specific integrated circuit (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field- Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic, Discrete hardware components etc..General processor can be microprocessor or the processor is also possible to any conventional processor Deng.
The memory 71 can be the internal storage unit of the terminal device 7, such as the hard disk or interior of terminal device 7 It deposits.The memory 71 is also possible to the External memory equipment of the terminal device 7, such as be equipped on the terminal device 7 Plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure Digital, SD) card dodge Deposit card (Flash Card) etc..Further, the memory 71 can also both include the storage inside list of the terminal device 7 Member also includes External memory equipment.The memory 71 is for storing needed for the computer program and the terminal device Other programs and data.The memory 71 can be also used for temporarily storing the data that has exported or will export.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of generation method of computation model characterized by comprising
It receives billing model and generates request;The billing model generates the production of target product of the request comprising billing model to be configured Product mark and the user information of request user;
The product information of the target product is obtained based on the product identification, and is extracted and the product from charging project library At least one charging project of information association;
According to the charging algorithm of each charging project, the charge module about the target product is generated;
The place value of the configurable parameter in the charge module is adjusted by the user information, is generated about the request user Billing model.
2. generation method according to claim 1, which is characterized in that described to obtain the target based on the product identification The product information of product, and extracted and at least one associated charging project of the product information from charging project library, comprising:
Semantic analysis is carried out to the product information, determines the product keyword of the target product;
The project keyword of each candidate items in the product keyword and the charging project library is imported into matching degree respectively Computation model calculates the matching degree between the target product and the candidate items;The matching degree computation model specifically:
Wherein, MatchPoint (ProductWord, ChargingWordx) it is the target product and x-th of charging item The degree of association between mesh, ProductWordjFor product keyword, ChargingWordxiFor the meter of x-th of charging project Take keyword;ρ(ProductWordj,ChargingWordxi) for j-th of keyword in the product keyword and x-th of institute State the degree of association in the charging keyword of charging project between i-th of keyword;M is the total of the keyword that product keyword includes Number;N is the total number for the keyword that the charging keyword of x-th of charging project includes;For maximum value Selection of Function;Quo is predetermined coefficient;DM is preset part of speech number of dimensions;
It is associated described as the product information greater than the candidate items of preset matching threshold to choose the matching degree Charging project.
3. generation method according to claim 1, which is characterized in that the product information includes the source of the target product Code data;The product information that the target product is obtained based on the product identification, and from charging project library extract with At least one associated charging project of the product information, comprising:
The source code data are parsed, determine the functional module that the target product includes;
According to the input signal types and output signal type of each functional module, the service of the functional module is determined Type;
If the charging project library includes the corresponding candidate items of the service type, the candidate items are identified as and institute State the associated charging project of product information;
If the charging project library does not include the corresponding candidate items of the service type, export about the service type The instruction of charging algorithm configuration.
4. generation method according to claim 1-3, which is characterized in that described to be adjusted by the user information The place value of configurable parameter in the charge module generates the billing model about the request user, comprising:
Count the station message recording number and charging total value that the user information includes, and according to the station message recording number and Charging total value determines the consumption grade of the request user;
Based on preset consumption class parameter table, the grade place value of inquiry and the consumption ratings match;
The configurable parameter that the charge module is adjusted by the grade place value, generates the billing model.
5. generation method according to claim 1-3, which is characterized in that pass through the user information tune described The place value of configurable parameter in the whole charge module is generated about after the billing model for requesting user, further includes:
Receive billing model alteration command;The billing model alteration command includes change project and change parameter;
The charging algorithm of the change project is extracted from the billing model, and the charging is calculated by the change parameter Method is adjusted, and the charging algorithm adjusted is added to the billing model.
6. a kind of generating device of computation model characterized by comprising
Model generates request reception unit, generates request for receiving billing model;The billing model generate request comprising to The product identification of the target product of configuring charging model and the user information for requesting user;
Charging project determination unit, for obtaining the product information of the target product based on the product identification, and from charging It is extracted and at least one associated charging project of the product information in project library;
Charge module output unit is generated for the charging algorithm according to each charging project about the target product Charge module;
Billing model generation unit, for adjusting the position of the configurable parameter in the charge module by the user information Value generates the billing model about the request user.
7. generating device according to claim 6, which is characterized in that the charging project determination unit includes:
Product keyword determination unit determines the product of the target product for carrying out semantic analysis to the product information Keyword;
Matching degree computing unit, for respectively by the item of each candidate items in the product keyword and the charging project library Mesh keyword imports matching degree computation model, calculates the matching degree between the target product and the candidate items;Described With degree computation model specifically:
Wherein, MatchPoint (ProductWord, ChargingWordx) it is the target product and x-th of charging item The degree of association between mesh, ProductWordjFor product keyword, ChargingWordxiFor the meter of x-th of charging project Take keyword;ρ(ProductWordj,ChargingWordxi) for j-th of keyword in the product keyword and x-th of institute State the degree of association in the charging keyword of charging project between i-th of keyword;M is the total of the keyword that product keyword includes Number;N is the total number for the keyword that the charging keyword of x-th of charging project includes;For maximum value Selection of Function;Quo is predetermined coefficient;DM is preset part of speech number of dimensions;
Associated item recognition unit, for choosing the candidate items of the matching degree greater than preset matching threshold as institute State the associated charging project of product information.
8. generating device according to claim 6, which is characterized in that the charging project determination unit includes:
Functional module determination unit determines the functional module that the target product includes for parsing the source code data;
Service type determination unit, for the input signal types and output signal type according to each functional module, Determine the service type of the functional module;
Charging project selection unit will if including the corresponding candidate items of the service type for the charging project library The candidate items are identified as and the associated charging project of the product information;
Charging algorithm configuration unit, if not including the corresponding candidate items of the service type for the charging project library, It exports and is instructed about the charging algorithm configuration of the service type.
9. a kind of terminal device, which is characterized in that the terminal device includes memory, processor and is stored in the storage In device and the computer program that can run on the processor, when the processor executes the computer program such as right is wanted The step of seeking any one of 1 to 5 the method.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In when the computer program is executed by processor the step of any one of such as claim 1 to 5 of realization the method.
CN201811508657.3A 2018-12-11 2018-12-11 A kind of generation method and equipment of computation model Pending CN109741086A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811508657.3A CN109741086A (en) 2018-12-11 2018-12-11 A kind of generation method and equipment of computation model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811508657.3A CN109741086A (en) 2018-12-11 2018-12-11 A kind of generation method and equipment of computation model

Publications (1)

Publication Number Publication Date
CN109741086A true CN109741086A (en) 2019-05-10

Family

ID=66358671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811508657.3A Pending CN109741086A (en) 2018-12-11 2018-12-11 A kind of generation method and equipment of computation model

Country Status (1)

Country Link
CN (1) CN109741086A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705312A (en) * 2019-09-30 2020-01-17 贵州航天云网科技有限公司 Development system for rapidly developing industrial mechanism model based on semantic analysis
CN110750727A (en) * 2019-10-28 2020-02-04 京东数字科技控股有限公司 Data processing method, device, system and computer readable storage medium
CN111277719A (en) * 2020-01-08 2020-06-12 卓望数码技术(深圳)有限公司 Flexible service charging method, device and medium
CN111461595A (en) * 2020-03-24 2020-07-28 北京顺达同行科技有限公司 Pricing template generation method, device, equipment and storage medium
CN111861445A (en) * 2020-06-29 2020-10-30 杭州数梦工场科技有限公司 Shared delivery method based on micro-service, metering and charging system and computer equipment
CN112132552A (en) * 2020-09-30 2020-12-25 苏州中仑网络科技有限公司 Information processing method and device for market property cost management
CN112579751A (en) * 2020-12-10 2021-03-30 平安普惠企业管理有限公司 User information filling method and device and computer equipment
CN114612018A (en) * 2022-05-11 2022-06-10 中国南方电网有限责任公司 Internal control risk monitoring method and system and readable storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033675A1 (en) * 2003-07-01 2005-02-10 Hirofumi Nakashima Charging system, charging apparatus, computer program, customer terminal apparatus, and charging method
CN102958030A (en) * 2011-08-29 2013-03-06 中国移动通信集团山西有限公司 Charging method and charging system
CN105282725A (en) * 2015-09-02 2016-01-27 世纪龙信息网络有限责任公司 Business charging method and system
CN107665463A (en) * 2017-08-16 2018-02-06 平安科技(深圳)有限公司 Method for processing resource, device, storage medium and the computer equipment of investment product
CN108389079A (en) * 2018-02-13 2018-08-10 腾讯科技(深圳)有限公司 The formulation of charging policy and querying method, device, terminal and readable storage medium storing program for executing
CN108573453A (en) * 2018-03-30 2018-09-25 平安科技(深圳)有限公司 Configuration method, device, computer equipment and the storage medium of insurance products computation model

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050033675A1 (en) * 2003-07-01 2005-02-10 Hirofumi Nakashima Charging system, charging apparatus, computer program, customer terminal apparatus, and charging method
CN102958030A (en) * 2011-08-29 2013-03-06 中国移动通信集团山西有限公司 Charging method and charging system
CN105282725A (en) * 2015-09-02 2016-01-27 世纪龙信息网络有限责任公司 Business charging method and system
CN107665463A (en) * 2017-08-16 2018-02-06 平安科技(深圳)有限公司 Method for processing resource, device, storage medium and the computer equipment of investment product
CN108389079A (en) * 2018-02-13 2018-08-10 腾讯科技(深圳)有限公司 The formulation of charging policy and querying method, device, terminal and readable storage medium storing program for executing
CN108573453A (en) * 2018-03-30 2018-09-25 平安科技(深圳)有限公司 Configuration method, device, computer equipment and the storage medium of insurance products computation model

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110705312A (en) * 2019-09-30 2020-01-17 贵州航天云网科技有限公司 Development system for rapidly developing industrial mechanism model based on semantic analysis
CN110750727A (en) * 2019-10-28 2020-02-04 京东数字科技控股有限公司 Data processing method, device, system and computer readable storage medium
CN111277719A (en) * 2020-01-08 2020-06-12 卓望数码技术(深圳)有限公司 Flexible service charging method, device and medium
CN111461595A (en) * 2020-03-24 2020-07-28 北京顺达同行科技有限公司 Pricing template generation method, device, equipment and storage medium
CN111461595B (en) * 2020-03-24 2023-09-29 北京顺达同行科技有限公司 Pricing template generation method, device, equipment and storage medium
CN111861445A (en) * 2020-06-29 2020-10-30 杭州数梦工场科技有限公司 Shared delivery method based on micro-service, metering and charging system and computer equipment
CN112132552A (en) * 2020-09-30 2020-12-25 苏州中仑网络科技有限公司 Information processing method and device for market property cost management
CN112579751A (en) * 2020-12-10 2021-03-30 平安普惠企业管理有限公司 User information filling method and device and computer equipment
CN114612018A (en) * 2022-05-11 2022-06-10 中国南方电网有限责任公司 Internal control risk monitoring method and system and readable storage medium

Similar Documents

Publication Publication Date Title
CN109741086A (en) A kind of generation method and equipment of computation model
CN110163474A (en) A kind of method and apparatus of task distribution
WO2022126971A1 (en) Density-based text clustering method and apparatus, device, and storage medium
EP3964994B1 (en) Synchronizing access controls between computing devices
CN104516910B (en) The content recommendation in client server environment
CN107978311A (en) A kind of voice data processing method, device and interactive voice equipment
CN111026858B (en) Project information processing method and device based on project recommendation model
CN106776881A (en) A kind of realm information commending system and method based on microblog
CN109144997A (en) Data correlation method, device and storage medium
CN110162695A (en) A kind of method and apparatus of information push
US10554613B2 (en) Dynamic hashtag ordering based on projected interest
WO2016045567A1 (en) Webpage data analysis method and device
CN108520470A (en) Method and apparatus for generating customer attribute information
CN108664628A (en) A kind of deriving method and equipment of data
CN107798579A (en) The generation method and its terminal of a kind of document of agreement
CN108762898A (en) A kind of management method, terminal device and the computer readable storage medium of thread interface
CN109597877A (en) A kind of knowledge-based reasoning method and device
CN109727047A (en) A kind of method and apparatus, data recommendation method and the device of determining data correlation degree
CN108401005A (en) A kind of expression recommendation method and apparatus
CN108681871A (en) A kind of method of prompt message, terminal device and computer readable storage medium
CN108876527A (en) Method of servicing and service unit, using open platform and storage medium
Zhou An approach of semantic web service discovery
US8019814B2 (en) Service for standardization of resource metadata models via social networking—arriving at an agreed upon (standard) resource meta-model via social consensus
CN111597453B (en) User image drawing method, device, computer equipment and computer readable storage medium
CN109450963A (en) Information push method and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination