CN109189372A - The exploitation scenario generation method and terminal device of insurance products - Google Patents
The exploitation scenario generation method and terminal device of insurance products Download PDFInfo
- Publication number
- CN109189372A CN109189372A CN201810962324.1A CN201810962324A CN109189372A CN 109189372 A CN109189372 A CN 109189372A CN 201810962324 A CN201810962324 A CN 201810962324A CN 109189372 A CN109189372 A CN 109189372A
- Authority
- CN
- China
- Prior art keywords
- insurance products
- online
- online insurance
- source code
- attribute
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000011161 development Methods 0.000 claims abstract description 62
- 230000006870 function Effects 0.000 claims description 89
- 238000004590 computer program Methods 0.000 claims description 14
- 238000003860 storage Methods 0.000 claims description 13
- 230000008676 import Effects 0.000 claims description 12
- 230000009467 reduction Effects 0.000 abstract description 2
- 230000008569 process Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 7
- 238000012545 processing Methods 0.000 description 5
- 230000015572 biosynthetic process Effects 0.000 description 4
- 238000003786 synthesis reaction Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 238000004364 calculation method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000010485 coping Effects 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000009826 distribution Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000036541 health Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005192 partition Methods 0.000 description 1
- 238000000926 separation method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/20—Software design
- G06F8/24—Object-oriented
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Financial Or Insurance-Related Operations Such As Payment And Settlement (AREA)
Abstract
The present invention is suitable for technical field of software development, provide the exploitation scenario generation method and terminal device of insurance products, method includes: to compare the product attribute to the product attribute of online insurance products respectively with each online insurance products, each online insurance products are obtained about the comprehensive similarity to online insurance products, the corresponding comprehensive similarity of any online insurance products is greater than preset threshold if it exists, then obtain the source code of the online insurance products, it obtains and is annotated to the development function of online insurance products, if detecting, there are development function annotations in source code, then by development function annotation, corresponding code segment is imported to the corresponding exploitation document of online insurance products in source code, and exploitation script of the generation to online insurance products, manual compiling can be saved and wait for online insurance products corresponding function source code Manpower and time improve efficiency, the reduction development cost developed to online insurance products.
Description
Technical field
The invention belongs to the exploitation scenario generation methods and terminal of technical field of software development more particularly to insurance products to set
It is standby.
Background technique
With the development of scientific and technological information industry, more and more enterprises move towards intelligent, especially in financial industry, enterprise
Day-to-day operation increasingly be unable to do without the support of automated production and equipment.For insurance company, line can be passed through
Upper mounting plate sells all kinds of insurance products, and therefore, for sales tactics or the variation of user demand, the insurance shown online is produced
Product need timely undercarriage or timely update, and complete to changing on the line of insurance products.
Currently, developer requires one completely new exploration project of starting, by this for every a new insurance products
Insurance products code is simultaneously online, and the process it will take a lot of manpower and time cost causes new insurance products to be developed
Journey inefficiency, higher cost.
Summary of the invention
The embodiment of the present invention provides the exploitation scenario generation method and terminal device of a kind of insurance products, to solve existing skill
For art when developing per a new insurance products, developer requires one completely new exploration project of starting, by the insurance products
Code is simultaneously online, and the process it will take a lot of manpower and time cost leads to new insurance products development process low efficiency
Under, higher cost the problem of.
The first aspect of the embodiment of the present invention provides a kind of exploitation scenario generation method of insurance products, comprising:
Obtain about multiple attribute keywords to online insurance products, and according to the attribute keywords obtain it is described to
The product attribute of online insurance products;
The product attribute of each online insurance products is obtained respectively;
By the product attribute to online insurance products respectively and described in each online insurance products
Product attribute compares, and it is similar about the synthesis to online insurance products to obtain each online insurance products
Degree;
The corresponding comprehensive similarity of any online insurance products is greater than preset threshold if it exists, then obtaining should
The source code of online insurance products;
The development function to online insurance products is obtained to annotate, the development function annotation for described to online
The corresponding function code of any product function of insurance products is annotated;
If detecting, there are development function annotations in the source code, and the development function is annotated in the source
Corresponding code segment imports described to the corresponding exploitation document of online insurance products in code, based on the institute for having imported code segment
State the exploitation script described in exploitation document structure tree to online insurance products.
The second 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 following steps:
Obtain about multiple attribute keywords to online insurance products, and according to the attribute keywords obtain it is described to
The product attribute of online insurance products;
The product attribute of each online insurance products is obtained respectively;
By the product attribute to online insurance products respectively and described in each online insurance products
Product attribute compares, and it is similar about the synthesis to online insurance products to obtain each online insurance products
Degree;
The corresponding comprehensive similarity of any online insurance products is greater than preset threshold if it exists, then obtaining should
The source code of online insurance products;
The development function to online insurance products is obtained to annotate, the development function annotation for described to online
The corresponding function code of any product function of insurance products is annotated;
If detecting, there are development function annotations in the source code, and the development function is annotated in the source
Corresponding code segment imports described to the corresponding exploitation document of online insurance products in code, based on the institute for having imported code segment
State the exploitation script described in exploitation document structure tree to online insurance products.
The third 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 the exploitation script such as above-mentioned insurance products is realized when the computer program is executed by processor
The step of generation method.
Existing beneficial effect is the embodiment of the present invention compared with prior art: insurance products provided in an embodiment of the present invention
Exploitation scenario generation method and terminal device, by will to online insurance products product attribute respectively with each online guarantor
The product attribute of dangerous product compares, and it is similar about the synthesis to online insurance products to obtain each online insurance products
Degree, the corresponding comprehensive similarity of any online insurance products is greater than preset threshold if it exists, then obtaining this, online insurance produces
The source code of product is obtained and is annotated to the development function of online insurance products, and development function is annotated for treating online insurance products
The corresponding function code of any product function annotated, if detecting, there are development function annotations in source code, will be opened
It sends out functional annotation corresponding code segment in source code to import to the corresponding exploitation document of online insurance products, based on importing
The exploitation document structure tree of code segment waits for the exploitation script of online insurance products, due to being made using the source code of online insurance products
For the exploitation script to online insurance products, the manpower that manual compiling waits for online insurance products corresponding function source code can be saved
And the time, improve efficiency, the reduction development cost developed to online insurance products.
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 schematic flow diagram of the exploitation scenario generation method for insurance products that one embodiment of the invention provides;
Fig. 2 be another embodiment of the present invention provides a kind of insurance products exploitation scenario generation method exemplary flow
Figure;
Fig. 3 is a kind of exemplary flow of the exploitation scenario generation method for insurance products that yet another embodiment of the invention provides
Figure;
Fig. 4 is a kind of exemplary flow of the exploitation scenario generation method for insurance products that further embodiment of this invention provides
Figure;
Fig. 5 is the structural schematic diagram of terminal device provided in an embodiment of the present invention;
Fig. 6 is the functional block diagram of the exploitation script generation sequence of insurance products provided in an embodiment of the present invention.
Specific embodiment
In being described below, for illustration and not for limitation, the tool of such as particular system structure, technology etc is proposed
Body details, to understand thoroughly the embodiment of the present invention.However, it will be clear to one skilled in the art that there is no these specific
The present invention also may be implemented in the other embodiments of details.In other situations, it omits to well-known system, device, electricity
The detailed description of road and method, in case unnecessary details interferes description of the invention.
In order to illustrate technical solutions according to the invention, the following is a description of specific embodiments.
It is a kind of signal of the exploitation scenario generation method for insurance products that one embodiment of the invention provides referring to Fig. 1, Fig. 1
Flow chart is illustrated by taking server-side as an example in this embodiment, and here, server can be one or more.Such as figure
Shown in 1, in this embodiment, the treatment process of server be may comprise steps of:
S101: obtaining about multiple attribute keywords to online insurance products, and is obtained according to attribute keywords to upper
The product attribute of line insurance products.
In the present embodiment, the available requirement documents to online insurance products, from the demand to online insurance products
It is extracted in document crucial to beneficiary's keyword of online insurance products, coverage keyword and yield type
Word obtains the product attribute to online insurance products.Product attribute to online insurance products can be one or more.Example
Such as, from the requirement documents to online insurance products extract to online insurance products beneficiary keyword, obtain to
Beneficiary's product attribute of online insurance products, can be, adult danger, Er Tongxian, old danger;From to online insurance products
Requirement documents in extract coverage keyword, obtain the coverage product attribute to online insurance products, can be, anticipate
Outer danger, movement danger, education danger, health insurance, medical insurance, endowment insurance;Income is extracted from the requirement documents to online insurance products
Type keyword obtains the yield type products attribute to online insurance products, can be, risk guarantee insurance and throwing
Money financing class insurance.
S102: the product attribute of each online insurance products is obtained respectively.
In the present embodiment, can according to online insurance products development time sequence, to online insurance products into
Row number.For example, the number of first online insurance products developed is 001, the second online insurance developed is produced
The number of product is 002, and so on, it is numbered.
It specifically, can be according to each beneficiary's attribute of online insurance products, coverage attribute and income
Type attribute, the number of corresponding each online insurance products, determines the product attribute of each online insurance products.For example,
Beneficiary's product attribute of each online insurance products is determined according to the beneficiary of online insurance products;According to
The coverage of online insurance products determines the coverage product attribute of each online insurance products;According to online guarantor
The income type of dangerous product determines the yield type products attribute of each online insurance products.
S103: it will be carried out respectively with the product attribute of each online insurance products to the product attribute of online insurance products
Comparison, obtains each online insurance products about the comprehensive similarity to online insurance products.
It in the present embodiment, can will be to the character of the product attribute of online insurance products and each online insurance products
The character of product attribute compare, the ratio of the character of the product attribute of each online insurance products is accounted for according to identical characters
Value, obtains each online insurance products about the comprehensive similarity to online insurance products.
S104: the corresponding comprehensive similarity of any online insurance products is greater than preset threshold if it exists, then has obtained this
The source code of online insurance products.
In the present embodiment, preset threshold can be configured according to demand, be not intended to be limited in any to this present invention.If appointing
The comprehensive similarity of one online insurance products is not above preset threshold, it is determined that general online insurance products with to online guarantor
The source code difference of dangerous product is very big, and the source code in online insurance products does not have reference value for this.
S105: obtaining and annotate to the development function of online insurance products, and development function annotation is produced for treating online insurance
The corresponding function code of any product function of product is annotated.
In the present embodiment, the available requirement documents to online manufactuerer's output insurance product, sweep the requirement documents
Identification is retouched, obtains and is annotated to the development function of online product.
S106: if detecting, there are development function annotations in source code, and development function annotation is corresponding in source code
Code segment import to the corresponding exploitation document of online insurance products, to be waited for based on the exploitation document structure tree for having imported code segment
The exploitation script of line insurance products.
In the present embodiment, source code development function annotation can be obtained according to the source code of online insurance products, sentenced
Whether have in the disconnected development function annotation to online insurance products and annotates identical functional annotation with source code development function;If depositing
Development function is then being annotated into the corresponding code segment in source code and is being imported to the corresponding exploitation document of online insurance products.
It is evidenced from the above discussion that the exploitation scenario generation method of the insurance products of the embodiment of the present invention, by will be to online
Product attribute of the product attribute of insurance products respectively with each online insurance products compares, and obtains each online guarantor
Dangerous product is about the comprehensive similarity to online insurance products, the corresponding comprehensive similarity of any online insurance products if it exists
Greater than preset threshold, then the source code of the online insurance products is obtained, obtains and annotated to the development function of online insurance products,
Development function annotation is annotated for treating the corresponding function code of any product function of online insurance products, if detecting
There are development function annotations in source code, then by development function annotation, corresponding code segment is imported to online insurance in source code
The corresponding exploitation document of product, to wait for the exploitation script of online insurance products based on the exploitation document structure tree for having imported code segment,
Since the source code using online insurance products is as the exploitation script to online insurance products, manual compiling can be saved and waited for
The manpower of online insurance products corresponding function source code and time improve efficiency develop to online insurance products, reduce and develop
Cost.
Referring to Fig. 2, Fig. 2 be another embodiment of the present invention provides a kind of insurance products exploitation scenario generation method
Schematic flow diagram.On the basis of the above embodiments, details are as follows by above-mentioned steps S106:
S201: source code is divided into multiple grammatical units according to default syntax rule.
In the present embodiment, grammatical unit is the group for realizing the source code of some function of online insurance products
It closes.It specifically, can be according to the logical identifier in the source code of online insurance products, by the source code of online insurance products
It is divided into multiple grammatical units.
S202: the corresponding source code annotation of each grammatical unit is obtained.
In the present embodiment, in the present embodiment, it is each realizing when source code annotation is develops online insurance products
One section added after the source code of function (grammatical unit) describes the function of the syntax unit.
S203: annotating consistent source code with development function if it exists and annotate, and obtains the source code and annotates the corresponding syntax
Unit.
In the present embodiment, judge development function annotation with source code annotation whether consistent process are as follows:
If the character of source code annotation and the character that development function annotates are completely the same, development function annotation and source are determined
Code annotation is consistent;If the character of source code annotation with the character that development function annotates be not it is completely the same, from source code note
Release middle abstraction function feature critical word, inquiry prestores database of synonyms, and to obtain the functional character keyword corresponding multiple synonymous
Word annotates identical synonym with development function if existing in multiple synonyms, determines that development function annotation is infused with source code
It releases consistent.
S204: the grammatical unit that will acquire is imported to the corresponding exploitation document of online insurance products.
As can be seen from the above description, by the way that source code is divided into multiple grammatical units according to default syntax rule, if it exists
Consistent source code is annotated with development function to annotate, and obtains the corresponding grammatical unit of source code annotation, the syntax that will acquire
Unit is imported to the corresponding exploitation document of online insurance products, can efficiently complete each source code to develop insurance products
With the comparison of the development function annotation to online insurance products, development efficiency is further improved.
Referring to Fig. 3, Fig. 3 is a kind of exploitation scenario generation method for insurance products that yet another embodiment of the invention provides
Schematic flow diagram.On the basis of the above embodiments, details are as follows by above-mentioned steps S201:
S301: positioning logic identifies in source code, and first beginning identifier and the after recognition logic mark
One end identifier.
In the present embodiment, logical identifier is the enlightenment that the source code combination of a certain function is realized in source code development process
Phrase.By taking the source code that C language is write as an example, logical identifier can be " if ", " while ", " switch " etc., start identifier
It can be " { ", end identifier can be " } ".
S302: by logical identifier, the corresponding beginning identifier of logical identifier and end identifier, and start identifier
Code between end identifier is divided into a grammatical unit.
As can be seen from the above description, by recognition logic mark, starting identifier and end identifier, it is ensured that accurately
Grammatical unit is obtained, avoids grammatical unit identification wrong.
Referring to Fig. 4, Fig. 4 is a kind of exploitation scenario generation method for insurance products that further embodiment of this invention provides
Schematic flow diagram.On the basis of the above embodiments, the product attribute includes beneficiary's product attribute, coverage production
Product attribute and yield type products attribute;Details are as follows by above-mentioned steps S101:
S401: obtaining requirement documents to online insurance products, extracted from the requirement documents to online insurance products to
Beneficiary's keyword, coverage keyword and the yield type keyword of online insurance products.
In the present embodiment, requirement documents can be text formatting document, table format document or logic tree format file.
For example, when requirement documents are text formatting, it can (" function declaration ", " function be retouched with the start mark of scanning recognition requirement documents
State ", " function introduction " etc.), since identification start mark need in document multiple functional annotations (" premium computing function ",
" premium income calculation function " etc.), until recognize requirement documents end label (characteristic character "." etc.) and when identification process knot
Beam.
S402: inquiring the corresponding relationship of the keyword and product attribute that prestore, obtains according to beneficiary's keyword pair
The corresponding coverage product attribute of beneficiary's product attribute, coverage keyword and yield type answered are crucial
The corresponding yield type products attribute of word.
As can be seen from the above description, since requirement documents are the documents of acquisition of trading in software development, by online insurance
The requirement documents of product, it may be convenient to obtain to extract the guarantor to online insurance products in the requirement documents of online insurance products
Dangerous beneficiary's keyword, coverage keyword and yield type keyword.
In one embodiment of the invention, when the product attribute includes beneficiary's product attribute, coverage
When product attribute and yield type products attribute, step S103 includes:
By the character of beneficiary's product attribute of each online insurance products and the insurance to online insurance products
The character of beneficiary's product attribute is compared according to default comparison rule, determines the first similarity;By each online insurance
The character of the character of the coverage product attribute of product and the coverage product attribute to online insurance products is according to described
Default comparison rule compares, and the second similarity is determined, by the yield type products category of each online insurance products
Property character and the yield type products attribute to online insurance products character according to the default comparison rule progress
Comparison, determines third similarity;
Second weight coefficient of the first weight coefficient, the second similarity that obtain preset first similarity is similar with third
Second weight coefficient of degree;
First similarity is added into the second similarity multiplied by the second weight coefficient multiplied by the first weight coefficient, adds third
Similarity obtains each online insurance products and the comprehensive similarity to online insurance products multiplied by third weight coefficient.
Wherein, by the character of beneficiary's product attribute of each online insurance products and to online insurance products
The character of beneficiary's product attribute is compared according to default comparison rule, determines the process of the first similarity are as follows:
If the character of beneficiary's product attribute of online insurance products is benefited with the insurance to online insurance products
The character of people's product attribute is completely the same, it is determined that first similarity is 1;If the beneficiary of online insurance products
The character of the character of product attribute and beneficiary's product attribute to online insurance products be not it is completely the same, then obtain
The character of beneficiary's product attribute of online insurance products and beneficiary's product attribute to online insurance products
Identical characters account for the ratio of the character of beneficiary's product attribute to online insurance products in character, which is determined as
First similarity.
Determine that the process of the second similarity and third similarity is consistent with the process of the first similarity is determined, it is no longer superfluous here
It states.
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.
Corresponding to the exploitation scenario generation method of insurance products described in foregoing embodiments, Fig. 5 shows implementation of the present invention
The structural schematic diagram for the terminal device that example provides.For ease of description, only the parts related to this embodiment are shown.
In the present embodiment, the exploitation script generation sequence 600 of insurance products is installed and is run in terminal device 60.It should
Terminal device 60 can be mobile terminal, palm PC, server etc..The terminal device 60 may include, but be not limited only to, storage
Device 601, processor 602 and display 603.Fig. 5 illustrates only the terminal device 60 with component 601-603, it should be understood that
Be, it is not required that implement all components shown, the implementation that can be substituted is more or less component.
The memory 601 can be the internal storage unit of the terminal device 60 in some embodiments, such as should
The hard disk or memory of terminal device 60.The memory 601 is also possible to the terminal device 60 in further embodiments
The plug-in type hard disk being equipped on External memory equipment, such as the terminal device 60, intelligent memory card (Smart Media
Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Further, described to deposit
Reservoir 601 can also both including the terminal device 60 internal storage unit and also including External memory equipment.The memory
601 for storing the application software and Various types of data for being installed on the terminal device 60, such as the exploitation foot of the insurance products
The program code etc. of this generation program 600.The memory 601, which can be also used for temporarily storing, have been exported or will be defeated
Data out.
The processor 602 can be in some embodiments a central processing unit (Central ProcessingUnit,
CPU), microprocessor or other data processing chips, for running the program code stored in the memory 601 or processing number
According to, such as exploitation script generation sequence 600 for executing the insurance products etc..
The display 603 can be light-emitting diode display, liquid crystal display, touch control type LCD in some embodiments and show
Device and Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) touch device etc..The display 603
For being shown in the information handled in the terminal device 60 and for showing visual user interface, such as application menu
Interface, application icon interface etc..The component 601-603 of the terminal device 60 is in communication with each other by system bus.
Referring to Fig. 6, being the functional module of the exploitation script generation sequence 600 of insurance products provided in an embodiment of the present invention
Figure.In the present embodiment, the exploitation script generation sequence 600 of the insurance products can be divided into one or more moulds
Block, one or more of modules are stored in the memory 601, and by one or more processors (the present embodiment
For the processor 602) it is performed, to complete the present invention.For example, the exploitation script of the insurance products generates in Fig. 6
Program 600 can be divided into the first product attribute acquiring unit 701, the second product attribute acquiring unit 702, product attribute pair
Than unit 703, source code acquiring unit 704, functional annotation acquiring unit 705 and exploitation script generation unit 706.
Wherein, the first product attribute acquiring unit 701, it is crucial about multiple attributes to online insurance products for obtaining
Word, and the product attribute to online insurance products is obtained according to the attribute keywords;
Second product attribute acquiring unit 702, for obtaining the product attribute of each online insurance products respectively;
Product attribute comparison unit 703, for by the product attribute to online insurance products respectively with it is each
The product attribute of the online insurance products compares, obtain each online insurance products about it is described to
The comprehensive similarity of online insurance products;
Source code acquiring unit 704, it is similar for the corresponding synthesis of any online insurance products if it exists
Degree is greater than preset threshold, then obtains the source code of the online insurance products;
Functional annotation acquiring unit 705 annotates, the exploitation for obtaining the development function to online insurance products
Functional annotation is for annotating the corresponding function code of any product function to online insurance products;
Script generation unit 706 is developed, it, will if there are development function annotations in the source code for detecting
Development function annotation corresponding code segment in the source code imports described to the corresponding exploitation text of online insurance products
Shelves, based on the exploitation script imported described in the exploitation document structure tree of code segment to online insurance products.
In one embodiment of the invention, the exploitation script generation unit 706 includes:
Grammatical dividing elements module 7061, it is single for the source code to be divided into multiple syntax according to default syntax rule
Member;
Source code annotation obtains module 7062, for obtaining the corresponding source code annotation of each grammatical unit;
Grammatical unit obtains module 7063, for infusing if it exists with the consistent source code of development function annotation
It releases, obtains the corresponding grammatical unit of source code annotation;
Grammatical unit import modul 7064, the grammatical unit for will acquire import described to online insurance products
Corresponding exploitation document.
In one embodiment of the invention, the grammatical dividing elements module 7061, it is specifically fixed in the source code
Position logical identifier, and identify first beginning identifier after the logical identifier and first end identifier;It will be described
The corresponding beginning identifier of logical identifier, the logical identifier and the end identifier and described start to identify
Code between symbol and the end identifier is divided into a grammatical unit.
In one embodiment of the invention, the product attribute includes beneficiary's product attribute, coverage production
Product attribute and yield type products attribute;The first product attribute acquiring unit 701 is specifically used for obtaining described to upper
The requirement documents of line insurance products are extracted from the requirement documents to online insurance products and are benefited to the insurance of online insurance products
People's keyword, coverage keyword and yield type keyword;
The corresponding relationship of the keyword and product attribute that prestore is inquired, is obtained corresponding according to beneficiary's keyword
Beneficiary's product attribute, the corresponding coverage product attribute of the coverage keyword and the yield class
The corresponding yield type products attribute of type keyword.
In one embodiment of the invention, the exploitation script generation sequence 600 of the insurance products further includes corresponding to
Relationship storage unit 707, for saving the corresponding relationship of the development function annotation and the code segment.
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function
Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different
Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing
The all or part of function of description.Each functional unit in embodiment, module can integrate in one processing unit, can also
To be that each unit physically exists alone, can also be integrated in one unit with two or more units, it is above-mentioned integrated
Unit both can take the form of hardware realization, can also realize in the form of software functional units.In addition, each function list
Member, the specific name of module are also only for convenience of distinguishing each other, the protection scope being not intended to limit this application.Above system
The specific work process of middle unit, module, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, is not described in detail or remembers in some embodiment
The part of load may refer to the associated description of other embodiments.
Those of ordinary skill in the art may be aware that list described in conjunction with the examples disclosed in the embodiments of the present disclosure
Member and algorithm steps can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
It is implemented in hardware or software, the specific application and design constraint depending on technical solution.Professional technician
Each specific application can be used different methods to achieve the described function, but this realization is it is not considered that exceed
The scope of the present invention.
In embodiment provided by the present invention, it should be understood that disclosed device/terminal device and method, it can be with
It realizes by another way.For example, device described above/terminal device embodiment is only schematical, for example, institute
The division of module or unit is stated, only a kind of logical function partition, there may be another division manner in actual implementation, such as
Multiple units or components can be combined or can be integrated into another system, or some features can be ignored or not executed.Separately
A bit, shown or discussed mutual coupling or direct-coupling or communication connection can be through some interfaces, device
Or the INDIRECT COUPLING or communication connection of unit, it can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
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.
If the integrated module/unit be realized in the form of SFU software functional unit and as independent product sale or
In use, can store in a computer readable storage medium.Based on this understanding, the present invention realizes above-mentioned implementation
All or part of the process in example method, can also instruct relevant hardware to complete, the meter by computer program
Calculation machine program can be stored in a computer readable storage medium, the computer program when being executed by processor, it can be achieved that on
The step of stating each embodiment of the method.Wherein, the computer program includes computer program code, the computer program generation
Code can be source code form, object identification code form, executable file or certain intermediate forms etc..The computer-readable medium
It may include: any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic that can carry the computer program code
Dish, CD, computer storage, read-only memory (Read-Only Memory, ROM), random access memory (Random
Access Memory, RAM), electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the meter
The content that calculation machine readable medium includes can carry out increase and decrease appropriate according to the requirement made laws in jurisdiction with patent practice,
It such as does not include electric carrier signal and telecommunications according to legislation and patent practice, computer-readable medium in certain jurisdictions
Signal.
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 exploitation scenario generation method of insurance products characterized by comprising
It obtains about multiple attribute keywords to online insurance products, and described to online according to attribute keywords acquisition
The product attribute of insurance products;
The product attribute of each online insurance products is obtained respectively;
By the product attribute to the online insurance products product with each online insurance products respectively
Attribute compares, and obtains each online insurance products about the comprehensive similarity to online insurance products;
The corresponding comprehensive similarity of any online insurance products is greater than preset threshold if it exists, then obtain this on
The source code of line insurance products;
The development function to online insurance products is obtained to annotate, the development function annotation for described to online insurance
The corresponding function code of any product function of product is annotated;
If detecting, there are development function annotations in the source code, and the development function is annotated in the source code
In corresponding code segment import it is described to the corresponding exploitation document of online insurance products, opened described in code segment based on having imported
Send out the exploitation script described in document structure tree to online insurance products.
2. the exploitation scenario generation method of insurance products as described in claim 1, which is characterized in that if it is described detect it is described
There are development function annotations in source code, then lead development function annotation corresponding code segment in the source code
Enter described to the corresponding exploitation document of online insurance products, comprising:
The source code is divided into multiple grammatical units according to default syntax rule;
Obtain the corresponding source code annotation of each grammatical unit;
It is annotated if it exists with the consistent source code of development function annotation, obtains the source code and annotate the corresponding text
Method unit;
The grammatical unit that will acquire imports described to the corresponding exploitation document of online insurance products.
3. as claimed in claim 2 exploitation scenario generation method, which is characterized in that it is described by the source code according to default language
Method rule is divided into multiple grammatical units, comprising:
Positioning logic identifies in the source code, and identifies first beginning identifier and first after the logical identifier
A end identifier;
By the logical identifier, the corresponding beginning identifier of the logical identifier and the end identifier, Yi Jisuo
It states the code started between identifier and the end identifier and is divided into a grammatical unit.
4. the exploitation scenario generation method of insurance products as described in claim 1, which is characterized in that the product attribute includes
Beneficiary's product attribute, coverage product attribute and yield type products attribute;The acquisition is about to online
Multiple attribute keywords of insurance products, and the product category to online insurance products is obtained according to the attribute keywords
Property, comprising:
The requirement documents to online insurance products are obtained, are extracted from the requirement documents to online insurance products to online guarantor
Beneficiary's keyword, coverage keyword and the yield type keyword of dangerous product;
The corresponding relationship of the keyword and product attribute that prestore is inquired, is obtained according to the corresponding guarantor of beneficiary's keyword
Dangerous beneficiary's product attribute, the corresponding coverage product attribute of the coverage keyword and the yield type are closed
The corresponding yield type products attribute of keyword.
5. the exploitation scenario generation method of insurance products as described in claim 1, which is characterized in that described by the exploitation function
Can annotation corresponding code segment in the source code import it is described to the corresponding exploitation document of online insurance products after, also wrap
It includes:
Save the corresponding relationship of the development function annotation and the code segment.
6. a kind of terminal device, which is characterized in that in the memory and can be in institute including memory, processor and storage
The computer program run on processor is stated, the processor realizes following steps when executing the computer program:
It obtains about multiple attribute keywords to online insurance products, and described to online according to attribute keywords acquisition
The product attribute of insurance products;
The product attribute of each online insurance products is obtained respectively;
By the product attribute to the online insurance products product with each online insurance products respectively
Attribute compares, and obtains each online insurance products about the comprehensive similarity to online insurance products;
The corresponding comprehensive similarity of any online insurance products is greater than preset threshold if it exists, then obtain this on
The source code of line insurance products;
The development function to online insurance products is obtained to annotate, the development function annotation for described to online insurance
The corresponding function code of any product function of product is annotated;
If detecting, there are development function annotations in the source code, and the development function is annotated in the source code
In corresponding code segment import it is described to the corresponding exploitation document of online insurance products, opened described in code segment based on having imported
Send out the exploitation script described in document structure tree to online insurance products.
7. terminal device as claimed in claim 6, which is characterized in that if described detect in the source code has described open
Functional annotation is sent out, then corresponding code segment importing is described in the source code by development function annotation produces to online insurance
The corresponding exploitation document of product, comprising:
The source code is divided into multiple grammatical units according to default syntax rule;
Obtain the corresponding source code annotation of each grammatical unit;
It is annotated if it exists with the consistent source code of development function annotation, obtains the source code and annotate the corresponding text
Method unit;
The grammatical unit that will acquire imports described to the corresponding exploitation document of online insurance products.
8. terminal device as claimed in claim 7, which is characterized in that described to draw the source code according to default syntax rule
It is divided into multiple grammatical units, comprising:
Positioning logic identifies in the source code, and identifies first beginning identifier and first after the logical identifier
A end identifier;
By the logical identifier, the corresponding beginning identifier of the logical identifier and the end identifier, Yi Jisuo
It states the code started between identifier and the end identifier and is divided into a grammatical unit.
9. terminal device as claimed in claim 6, which is characterized in that the product attribute includes beneficiary's product category
Property, coverage product attribute and yield type products attribute;The acquisition is about multiple categories to online insurance products
Property keyword, and obtain the product attribute to online insurance products according to the attribute keywords, comprising:
The requirement documents to online insurance products are obtained, are extracted from the requirement documents to online insurance products to online guarantor
Beneficiary's keyword, coverage keyword and the yield type keyword of dangerous product;
The corresponding relationship of the keyword and product attribute that prestore is inquired, is obtained according to the corresponding guarantor of beneficiary's keyword
Dangerous beneficiary's product attribute, the corresponding coverage product attribute of the coverage keyword and the yield type are closed
The corresponding yield type products attribute of keyword.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists
In the exploitation script of realization insurance products as described in any one of claim 1 to 5 when the computer program is executed by processor
The step of generation method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962324.1A CN109189372B (en) | 2018-08-22 | 2018-08-22 | Development script generation method of insurance product and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810962324.1A CN109189372B (en) | 2018-08-22 | 2018-08-22 | Development script generation method of insurance product and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109189372A true CN109189372A (en) | 2019-01-11 |
CN109189372B CN109189372B (en) | 2023-12-05 |
Family
ID=64919497
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810962324.1A Active CN109189372B (en) | 2018-08-22 | 2018-08-22 | Development script generation method of insurance product and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109189372B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109840072A (en) * | 2019-02-02 | 2019-06-04 | 北京字节跳动网络技术有限公司 | Information processing method and device |
CN112115224A (en) * | 2020-09-24 | 2020-12-22 | 北京百度网讯科技有限公司 | Map data auxiliary quality inspection method and device, electronic equipment and storage medium |
CN117974331A (en) * | 2024-03-28 | 2024-05-03 | 探保网络科技(广州)有限公司 | Insurance recommendation method and system based on electronic commerce platform |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120317544A1 (en) * | 2011-06-13 | 2012-12-13 | Yoriko Komatsuzaki | Information processing apparatus and information processing method |
CN103473045A (en) * | 2013-08-27 | 2013-12-25 | 广州华多网络科技有限公司 | Method and device for generating interface documents |
US20160063062A1 (en) * | 2014-08-26 | 2016-03-03 | Codota Dot Com Ltd. | Code searching and ranking |
CN106201465A (en) * | 2016-06-23 | 2016-12-07 | 扬州大学 | Software project personalized recommendation method towards open source community |
CN106325969A (en) * | 2016-08-23 | 2017-01-11 | 上海创景计算机系统有限公司 | Requirement change reverse tracking system |
CN106843840A (en) * | 2016-12-23 | 2017-06-13 | 中国科学院软件研究所 | A kind of version evolving annotation multiplexing method of source code based on similarity analysis |
CN107341014A (en) * | 2017-06-27 | 2017-11-10 | 乐视致新电子科技(天津)有限公司 | Electronic equipment, the generation method of technical documentation and device |
CN107689008A (en) * | 2017-06-09 | 2018-02-13 | 平安科技(深圳)有限公司 | A kind of user insures the method and device of behavior prediction |
-
2018
- 2018-08-22 CN CN201810962324.1A patent/CN109189372B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120317544A1 (en) * | 2011-06-13 | 2012-12-13 | Yoriko Komatsuzaki | Information processing apparatus and information processing method |
CN103473045A (en) * | 2013-08-27 | 2013-12-25 | 广州华多网络科技有限公司 | Method and device for generating interface documents |
US20160063062A1 (en) * | 2014-08-26 | 2016-03-03 | Codota Dot Com Ltd. | Code searching and ranking |
CN106201465A (en) * | 2016-06-23 | 2016-12-07 | 扬州大学 | Software project personalized recommendation method towards open source community |
CN106325969A (en) * | 2016-08-23 | 2017-01-11 | 上海创景计算机系统有限公司 | Requirement change reverse tracking system |
CN106843840A (en) * | 2016-12-23 | 2017-06-13 | 中国科学院软件研究所 | A kind of version evolving annotation multiplexing method of source code based on similarity analysis |
CN107689008A (en) * | 2017-06-09 | 2018-02-13 | 平安科技(深圳)有限公司 | A kind of user insures the method and device of behavior prediction |
CN107341014A (en) * | 2017-06-27 | 2017-11-10 | 乐视致新电子科技(天津)有限公司 | Electronic equipment, the generation method of technical documentation and device |
Non-Patent Citations (2)
Title |
---|
卫军超;耿楠;: "程序代码相似度检测技术的研究与实现" * |
卫军超;耿楠;: "程序代码相似度检测技术的研究与实现", 信息与电脑(理论版), no. 03, pages 99 - 101 * |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109840072A (en) * | 2019-02-02 | 2019-06-04 | 北京字节跳动网络技术有限公司 | Information processing method and device |
CN109840072B (en) * | 2019-02-02 | 2022-05-06 | 北京字节跳动网络技术有限公司 | Information processing method and device |
CN112115224A (en) * | 2020-09-24 | 2020-12-22 | 北京百度网讯科技有限公司 | Map data auxiliary quality inspection method and device, electronic equipment and storage medium |
CN112115224B (en) * | 2020-09-24 | 2024-03-08 | 北京百度网讯科技有限公司 | Auxiliary quality inspection method and device for map data, electronic equipment and storage medium |
CN117974331A (en) * | 2024-03-28 | 2024-05-03 | 探保网络科技(广州)有限公司 | Insurance recommendation method and system based on electronic commerce platform |
CN117974331B (en) * | 2024-03-28 | 2024-06-11 | 探保网络科技(广州)有限公司 | Insurance recommendation method and system based on electronic commerce platform |
Also Published As
Publication number | Publication date |
---|---|
CN109189372B (en) | 2023-12-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109285076A (en) | Intelligent core protects processing method, server and storage medium | |
US11816456B2 (en) | Notebook for navigating code using machine learning and flow analysis | |
US9514113B1 (en) | Methods for automatic footnote generation | |
CN109189372A (en) | The exploitation scenario generation method and terminal device of insurance products | |
EP3018595A1 (en) | System and method for reporting multiple objects in enterprise content management | |
CN109271403A (en) | A kind of operating method of data query, device, medium and electronic equipment | |
CN102567455A (en) | Method and system of managing documents using weighted prevalence data for statements | |
CN109146095A (en) | The treating method and apparatus of multiservice system problem | |
CN110795697A (en) | Logic expression obtaining method and device, storage medium and electronic device | |
CN110675238A (en) | Client label configuration method, system, readable storage medium and electronic equipment | |
CN108345658A (en) | Algorithm calculates decomposing process, server and the storage medium of track | |
CN107783953A (en) | Information input method and terminal device | |
CN103678396A (en) | Data backup method and device based on data models | |
CN110245281A (en) | Internet assets information collection method and terminal device | |
US20140095527A1 (en) | Expanding high level queries | |
CN109284452A (en) | The online methods of exhibiting of electronic protocol, device, electronic equipment, storage medium | |
US10606843B2 (en) | Irreducible modules | |
CN105589918A (en) | Method and device for extracting page information | |
US9910926B2 (en) | Managing searches for information associated with a message | |
CN113687827B (en) | Data list generation method, device and equipment based on widget and storage medium | |
CN112069267A (en) | Data processing method and device | |
CN109376220A (en) | Method and apparatus for obtaining information | |
CN115510052A (en) | Dynamic form and database-based dynamic verification method and system | |
CN110110067A (en) | A kind of database annotation method, apparatus and terminal device | |
CN107632896A (en) | A kind of data processing method, data processing equipment and communication apparatus |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |