CN113703739B - Cross-language fusion calculation method, system and terminal based on omiga engine - Google Patents

Cross-language fusion calculation method, system and terminal based on omiga engine Download PDF

Info

Publication number
CN113703739B
CN113703739B CN202111033503.5A CN202111033503A CN113703739B CN 113703739 B CN113703739 B CN 113703739B CN 202111033503 A CN202111033503 A CN 202111033503A CN 113703739 B CN113703739 B CN 113703739B
Authority
CN
China
Prior art keywords
function
logic
omiga
template
engine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111033503.5A
Other languages
Chinese (zh)
Other versions
CN113703739A (en
Inventor
张少典
肖威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Synyi Medical Technology Co ltd
Original Assignee
Shanghai Synyi Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Synyi Medical Technology Co ltd filed Critical Shanghai Synyi Medical Technology Co ltd
Priority to CN202111033503.5A priority Critical patent/CN113703739B/en
Publication of CN113703739A publication Critical patent/CN113703739A/en
Application granted granted Critical
Publication of CN113703739B publication Critical patent/CN113703739B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/31Programming languages or programming paradigms
    • G06F8/315Object-oriented languages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3692Test management for test results analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE 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/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a cross-language fusion computing method, a system and a terminal based on an omiga engine, which comprise the following steps: acquiring input parameter entering information to form a function configuration file required by an objective function; calling one or more logic sub-functions respectively corresponding to the execution languages, and generating logic sentences which correspond to the target functions and can be executed by an omiga engine according to the function configuration files; analyzing the logic statement, and executing logic calculation by the omiga engine according to the analysis result and in one or more execution languages to obtain an output result corresponding to the objective function. The invention not only can merge the computer languages of a plurality of technologies of the bottom layer, but also can selectively apply one or a plurality of capacities of the bottom layer according to project requirements, produce and manage data required by output, and accumulate a large number of reusable data processing rules while meeting the project requirements, thereby improving the production efficiency of subsequent data. Meanwhile, a plurality of application products can be butted, so that end-to-end real-time updating is realized, and labor cost is reduced.

Description

Cross-language fusion calculation method, system and terminal based on omiga engine
Technical Field
The application relates to the field of computer computing, in particular to a cross-language fusion computing method, a system and a terminal based on an omiga engine.
Background
There are many excellent computer languages available today, each having its own advantages and features. In the process of processing data conversion, different processing logics are usually written, and a single computer language such as javascript, python and the like cannot completely meet business requirements and lacks a method for integrating the respective characteristics to perform programming logic fusion processing. The traditional calling and upstream service coupling performance through the direct API mode is too high, the system becomes more complex, and the maintenance cost is high. Different levels of computing logical segment versions are difficult to manage.
Disclosure of Invention
In view of the above drawbacks of the prior art, an object of the present application is to provide a method, a system and a terminal for cross-language fusion calculation based on an omiga engine, which solve the problems in the prior art that the coupling with upstream services is too high, the system becomes more complex, the maintenance cost is high, and the versions of different-level calculation logic fragments are difficult to manage due to the way of integrating the characteristics of each computer language to perform the fusion processing of programming logic.
To achieve the above object and other related objects, the present application provides a cross-language fusion computing method based on an omiga engine, including: acquiring input parameter entering information to form a function configuration file required by an objective function; wherein, the function configuration file at least comprises: the parameter entering information; calling one or more logic sub-functions respectively corresponding to the execution languages, and generating logic sentences which correspond to the target functions and can be executed by an omiga engine according to the function configuration files; analyzing the logic statement, and executing logic calculation by the omiga engine according to the analysis result and in one or more execution languages to obtain an output result corresponding to the objective function.
In one or more embodiments of the present application, the parsing the logic statement and performing, by the omiga engine, a logic calculation in one or more execution languages according to the parsing result to obtain an output result includes: analyzing the function dependency relationship in the logic statement and each called logic sub-function, and generating a dependency tree corresponding to the logic statement; based on the dependency tree, performing logic calculation by an omiga engine according to the execution languages respectively corresponding to the logic sub-functions in the dependency tree so as to obtain intermediate results respectively corresponding to the logic sub-functions; and combining the intermediate results to obtain an output result.
In one or more embodiments of the present application, the performing, by the omiga engine, logic computations according to the execution languages respectively corresponding to the logic sub-functions in the dependency tree based on the dependency tree to obtain intermediate results respectively corresponding to the logic sub-functions includes: checking whether versions of the dependency tree conflict; when the versions of the dependency tree do not conflict, an omiga engine executes logic calculation in an execution language respectively corresponding to each logic sub-function in the dependency tree so as to obtain an intermediate result respectively corresponding to each logic sub-function.
In one or more embodiments of the present application, the method further comprises: verifying the output result by using a function test file acquired by the parameter entering information to acquire a verification result corresponding to the objective function; wherein, the function test file includes: at least one test case.
In one or more embodiments of the present application, the method for obtaining the function test file includes: acquiring one or more test cases corresponding to the parameter entering information according to the parameter entering information; performing parameter entry verification on each test case to obtain one or more test cases passing the verification; and generating a function test file corresponding to the objective function by each test case passing the verification.
In one or more embodiments of the present application, verifying the output result by the function test file obtained from the parameter-entering information to obtain a verification result corresponding to the objective function includes: comparing the expected function values corresponding to the test cases in the function test file obtained by the parameter entering information with the output results respectively to obtain the function accuracy corresponding to the objective function; if the function accuracy accords with the preset condition related to the function accuracy threshold, obtaining a verification result which passes the corresponding verification; if the function accuracy rate does not meet the preset condition related to the function accuracy rate threshold, obtaining a verification result that the corresponding verification fails; wherein, the test case includes: one or more positive test cases and/or negative test cases.
In one or more embodiments of the present application, each test case is respectively corresponding to an index number.
In one or more embodiments of the present application, the function profile further includes: one or more of function name, function template, value field, output type and aggregation mode; wherein the function template comprises: a result classification type template comprising: one or more of a numerical template, a text template, and a boolean template; a text extraction type template comprising: the subject presence status template, subject indicator value template, and subject description template.
To achieve the above and other related objects, the present application provides a cross-language fusion computing system based on an omiga engine, including: the function configuration module is used for acquiring input parameter entering information to form a function configuration file required by the objective function; wherein, the function configuration file at least comprises: the parameter entering information; the logic statement generating module is connected with the function configuration module and is used for calling one or more logic sub-functions respectively corresponding to the execution languages and generating logic statements which correspond to the target functions and can be executed by the omiga engine according to the function configuration file; and the analysis execution module is connected with the logic statement generation module and is used for analyzing the logic statement and executing logic calculation by the omiga engine according to the analysis result in one or more execution languages so as to obtain an output result corresponding to the objective function.
To achieve the above and other related objects, the present invention provides a cross-language fusion computing terminal based on an omiga engine, including: a memory for storing a computer program; and the processor is used for executing the cross-language fusion calculation method based on the omiga engine.
As described above, the method, the system and the terminal for cross-language fusion calculation based on the omiga engine not only can be used for fusing computer languages of various technologies of the bottom layer, but also can selectively apply one or more capabilities of the bottom layer according to project requirements, produce and manage data required for output, can accumulate a large number of reusable data processing rules while meeting the project requirements, and improve the production efficiency of subsequent data. Meanwhile, a plurality of application products can be butted, so that end-to-end real-time updating is realized, and labor cost is reduced.
Drawings
Fig. 1 is a schematic flow chart of a cross-language fusion calculation method based on an omiga engine in an embodiment of the application.
FIG. 2 is a schematic diagram of a cross-language fusion computing system based on an omiga engine according to an embodiment of the present application.
Fig. 3 is a schematic structural diagram of a data preprocessing module in an embodiment of the present application.
Fig. 4 is a schematic structural diagram of a multilingual execution module according to an embodiment of the present application.
Fig. 5 is a schematic diagram of an index code rule in an embodiment of the present application.
Fig. 6 shows a schematic structural diagram of a cross-language fusion computing terminal based on an omiga engine in an embodiment of the application.
Detailed Description
Other advantages and effects of the present application will become apparent to those skilled in the art from the present disclosure, when the following description of the embodiments is taken in conjunction with the accompanying drawings. The present application may be embodied or applied in other specific forms and details, and various modifications and alterations may be made to the details of the present application from a different perspective or perspective without departing from the spirit of the present application. It should be noted that, in the case of no conflict, the embodiments and features in the embodiments may be combined with each other.
The embodiments of the present application will be described in detail below with reference to the drawings so that those skilled in the art to which the present application pertains can easily implement the same. This application may be embodied in many different forms and is not limited to the embodiments described herein.
For the purpose of clarity of explanation of the present application, components not related to the explanation are omitted, and the same or similar components are given the same reference numerals throughout the specification.
Throughout the specification, when a component is said to be "connected" to another component, this includes not only the case of "direct connection" but also the case of "indirect connection" with other elements interposed therebetween. In addition, when a certain component is said to "include" a certain component, unless specifically stated to the contrary, it is meant that other components are not excluded, but other components may be included.
When an element is referred to as being "on" another element, it can be directly on the other element but be accompanied by the other element therebetween. When a component is stated to be "directly on" another component, it is stated that there are no other components between them.
Although the terms first, second, etc. may be used herein to describe various elements in some examples, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. Such as a first interface and a second interface, etc. Furthermore, as used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context indicates otherwise. It will be further understood that the terms "comprises," "comprising," "includes," and/or "including" specify the presence of stated features, steps, operations, elements, components, items, categories, and/or groups, but do not preclude the presence, presence or addition of one or more other features, steps, operations, elements, components, items, categories, and/or groups. The terms "or" and/or "as used herein are to be construed as inclusive, or meaning any one or any combination. Thus, "A, B or C" or "A, B and/or C" means "any of the following: a, A is as follows; b, a step of preparing a composite material; c, performing operation; a and B; a and C; b and C; A. b and C). An exception to this definition will occur only when a combination of elements, functions, steps or operations are in some way inherently mutually exclusive.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the language clearly indicates the contrary. The meaning of "comprising" in the specification is to specify the presence of stated features, regions, integers, steps, operations, elements, and/or components, but does not preclude the presence or addition of other features, regions, integers, steps, operations, elements, and/or components.
Terms representing relative spaces such as "lower", "upper", and the like may be used to more easily describe the relationship of one component relative to another component illustrated in the figures. Such terms refer not only to the meanings indicated in the drawings, but also to other meanings or operations of the device in use. For example, if the device in the figures is turned over, elements described as "under" other elements would then be oriented "over" the other elements. Thus, the exemplary term "lower" includes both upper and lower. The device may be rotated 90 deg. or at other angles and the terminology representing relative space is to be construed accordingly.
Although not differently defined, including technical and scientific terms used herein, all terms have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The term addition defined in the commonly used dictionary is interpreted as having a meaning conforming to the contents of the related art document and the current hint, so long as no definition is made, it is not interpreted as an ideal or very formulaic meaning too much.
Because the cross-language fusion calculation based on the omiga engine can fuse a plurality of technologies (DSL, NLP, term normalization, regular expression and the like) of the bottom layer, the invention provides the cross-language fusion calculation method based on the omiga engine, and the cross-language fusion calculation is carried out by utilizing the omiga engine, so that not only can the computer languages of the plurality of technologies of the bottom layer be fused, but also one or more capacities of the bottom layer can be selectively applied according to project requirements, required data can be produced and managed and output, a large number of reusable data processing rules can be accumulated while the project requirements are met, and the production efficiency of subsequent data is improved. Meanwhile, a plurality of application products can be butted, so that end-to-end real-time updating is realized, and labor cost is reduced.
The embodiments of the present invention will be described in detail below with reference to the attached drawings so that those skilled in the art to which the present invention pertains can easily implement the present invention. This invention may be embodied in many different forms and is not limited to the embodiments described herein.
As shown in fig. 1, a flow diagram of a cross-language fusion computing method based on an omiga engine in an embodiment of the invention is shown.
The method comprises the following steps:
step S11: input parameter entering information is obtained to form a function configuration file required by the objective function.
In detail, the function configuration file at least includes: the parameter entering information; the parameter entering information comprises: parameters that need to be provided to call a function.
For example:
public void add(int a,int b){
int c=a+b;
System.out.println("c="+c)
}
two numbers need to be entered when this function is called; for example, 1 and 2 are the entry information.
It should be noted that the parameter entering information may be a set of parameter entering values corresponding to only one objective function, may be a plurality of sets of parameter entering values corresponding to one objective function, or may be a plurality of sets of parameter entering values corresponding to a plurality of objective functions or a set of parameter entering values corresponding to a plurality of objective functions, which is not limited in this application. Therefore, definition of batch functions can be realized, and production efficiency of logic segment construction is improved.
Optionally, to construct the objective function, other contents may be required to limit and require the required objective function, so the function configuration file further includes: function name, function template, value field, output type and aggregation mode.
When the objective function is required to be produced, the objective function can be directly applied by selecting a pre-stored function template consistent with the objective function, and the required function templates can respectively correspond to templates for defining common function writing logic or templates for defining specific function data input and output formats;
preferably, the function template includes: a result classification type template comprising: one or more of a numerical template, a text template, and a boolean template; a text extraction type template comprising: the subject presence status template, subject indicator value template, and subject description template.
It should be noted that the function template may be copied by other functions, but cannot be directly referenced.
Step S12: and calling one or more logic sub-functions respectively corresponding to the execution languages, and generating logic sentences which correspond to the target functions and can be executed by an omiga engine according to the function configuration file.
Optionally, step S12 includes:
sequentially calling one or more logic subfunctions according to the target function requirement; wherein, the logic sub-functions sequentially correspond to execution languages; the execution languages of the logic sub-functions may be the same or different.
And generating a logic statement which corresponds to the objective function and can be executed by an omiga engine according to the function configuration file and each logic sub-function.
It should be noted that, the logic sub-function may be an independent function that does not call other functions, or may be a reference function that also calls other functions.
Optionally, the logic sub-function is a registration function, the registration declaration is a single function, one or more of a function name, a parameter entering type, a parameter entering data structure and a remark function implementation function are marked, and serialization and deserialization functions can be provided when multiple languages alternate.
Step S13: analyzing the logic statement, and executing logic calculation by the omiga engine according to the analysis result and in one or more execution languages to obtain an output result corresponding to the objective function.
Optionally, step S13 includes:
analyzing the function dependency relationship in the logic statement and each called logic sub-function, and generating a dependency tree corresponding to the logic statement according to the analyzed function dependency relationship and each called logic sub-function;
traversing the execution languages respectively corresponding to the logic sub-functions in the dependency tree by an omiga engine based on the dependency tree, and executing logic calculation according to the execution languages to obtain intermediate results respectively executed by the execution languages corresponding to the logic sub-functions;
and combining the intermediate results to obtain an output result.
It should be noted that, if the logic sub-function depends on the references of other functions, the reference information is correspondingly saved when the logic sub-function is saved, so that the function references and the referenced objects can be found according to the dependency tree.
Optionally, when the called logic sub-function refers to a plurality of other functions, the problem that version conflict occurs due to the fact that the other functions or the functions referred to by the other functions have a plurality of versions, so that the calculation effect is poor; therefore, verification of version conflict is needed, and based on the dependency tree, performing logic calculation by the omiga engine according to the execution languages respectively corresponding to the logic sub-functions in the dependency tree to obtain intermediate results respectively corresponding to the logic sub-functions includes:
checking whether versions of the dependency tree conflict;
when the versions of the dependency tree do not conflict, the omiga engine sequentially executes logic calculation according to the execution languages respectively corresponding to the logic sub-functions in the dependency tree so as to obtain intermediate results respectively corresponding to the logic sub-functions.
Optionally, batch parallel execution is performed on the large-data-volume data set, a single parallel size and a concurrent number can be configured, an abnormal retry mechanism is added, and the reliability of calculation logic is ensured.
Optionally, the method further comprises:
verifying the output result by using a function test file acquired by the parameter entering information to acquire a verification result corresponding to the objective function; wherein, the function test file includes: at least one test case.
It should be noted that the function test file may be input by the user, or may be extracted from the database, which is not limited in this application.
Optionally, the obtaining manner of the function test file includes:
acquiring one or more test cases corresponding to the parameter entering information in a database according to the parameter entering information;
performing parameter entry verification on each test case to obtain one or more test cases passing the verification;
and generating a function test file corresponding to the objective function by each test case passing the verification, so as to be used as a data source to verify the output result of the objective function of the execution logic.
Optionally, the verifying the output result by the function test file acquired by the parameter entering information to obtain a verification result corresponding to the objective function includes:
comparing the expected function values corresponding to the test cases in the function test file obtained by the parameter entering information with the output results respectively to obtain the function accuracy corresponding to the objective function;
if the function accuracy accords with the preset condition related to the function accuracy threshold, obtaining a verification result which passes the corresponding verification;
and if the function accuracy rate does not meet the preset condition related to the function accuracy rate threshold, obtaining a verification result that the corresponding verification fails.
The test case includes: one or more positive test cases and/or negative test cases. The forward test cases correspond to test cases meeting function conversion logic; and the negative test cases correspond to test cases which do not meet the function conversion logic.
Optionally, comparing the expected values of the functions corresponding to the test cases in the function test file obtained by the parameter entering information with the output results respectively, so as to obtain the function accuracy corresponding to the objective function includes:
for the forward test cases, comparing the output result with the function expected values of the corresponding test cases respectively to calculate and obtain the function accuracy; the function correct rate=the number of cases/test cases, in which the function output result in each function test case accords with the expected value of the function;
for negative test cases, comparing the output result with the function expected values of the corresponding test cases respectively to calculate and obtain a function error rate; wherein the function error rate=the number of cases/test cases, in which the function output result in each function test case is consistent with the expected value of the function; and obtaining the function accuracy by the 1-function error rate.
Optionally, the preset condition related to the function correctness threshold may correspond to a correctness threshold or a threshold range corresponding to a plurality of correctness thresholds; the preset condition may be, for a single correct threshold, one or more of screening output results greater than or equal to the correct threshold; for a threshold range, one or more of the output results that are within, below, and above the threshold range may be filtered.
Optionally, the method further comprises: the function test file can be fragmented, distributed asynchronous multi-batch concurrent execution is realized, the results are combined, and the execution progress is asynchronously pushed.
Optionally, each test case corresponds to an index number; it should be noted that, the index number of each test case may have an association relationship with the entry information, or may have a specific association relationship with the code corresponding to the entry information; namely, the corresponding test cases can be obtained through index numbers according to the numerical value of the input parameter information, and the corresponding test cases can also be obtained according to the numbers of the input parameter information.
Similar to the principles of the embodiments described above, the present invention provides a cross-language fusion computing system based on an omiga engine.
Specific embodiments are provided below with reference to the accompanying drawings:
FIG. 2 shows a schematic diagram of a cross-language fusion computing system based on an omiga engine in an embodiment of the invention.
The system comprises:
a function configuration module 21, configured to obtain input parameter entering information to form a function configuration file required by the objective function; wherein, the function configuration file at least comprises: the parameter entering information;
the logic statement generating module 22 is connected with the function configuration module 21 and is used for calling one or more logic sub-functions respectively corresponding to the execution languages and generating logic statements which correspond to the target functions and can be executed by the omiga engine according to the function configuration file;
the parsing execution module 23 is connected to the logic sentence generating module 22, and is configured to parse the logic sentence, and execute logic computation by the omiga engine according to the parsing result in one or more execution languages, so as to obtain an output result corresponding to the objective function.
It should be noted that, it should be understood that the division of the modules in the embodiment of the system of fig. 2 is merely a division of logic functions, and may be fully or partially integrated into a physical entity or may be physically separated. And these modules may all be implemented in software in the form of calls by the processing element; or can be realized in hardware; the method can also be realized in a mode that a part of modules are called by processing elements and software, and the part of modules are realized in a hardware mode;
for example, each module may be one or more integrated circuits configured to implement the above methods, e.g.: one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), or one or more microprocessors (digital signal processor, abbreviated as DSP), or one or more field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), or the like. For another example, when a module above is implemented in the form of a processing element scheduler code, the processing element may be a general-purpose processor, such as a central processing unit (Central Processing Unit, CPU) or other processor that may invoke the program code. For another example, the modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
Therefore, since the implementation principle of the cross-language fusion computing system based on the omiga engine has been described in the foregoing embodiments, a detailed description is omitted herein.
Alternatively, the function configuration module 21 may generate the function configuration file for a plurality of objective functions in batch.
Optionally, the function configuration module 21 may further sequentially select and set one or more of a function name, a function template, a value field, an output type, and an aggregation manner.
Optionally, the logic sentence generating module 22 includes:
the logic sub-function calling unit is used for sequentially calling one or more logic sub-functions which are registered in the system according to the requirements of the target function; wherein, the logic sub-functions sequentially correspond to execution languages; the execution languages of the logic sub-functions may be the same or different.
And the logic statement generating unit is connected with the logic subfunction calling unit and is used for generating a logic statement which corresponds to the target function and can be executed by the omiga engine according to the function configuration file and each logic subfunction.
Alternatively, the logic statement generation module 22 may generate a plurality of logic statements in batch at the same time.
Optionally, the parsing executing module 23 includes:
the interpreter is used for analyzing the function dependency relationship in the logic statement and each called logic sub-function, and generating a dependency tree corresponding to the logic statement according to the analyzed function dependency relationship and each called logic sub-function;
and the one or more executors are connected with the interpreter and used for traversing the execution languages respectively corresponding to the logic sub-functions in the dependency tree by the omiga engine based on the dependency tree and executing logic calculation according to the execution languages so as to obtain intermediate results respectively executed in the execution languages corresponding to the logic sub-functions.
And the merging unit is connected with each actuator and merges the intermediate results to obtain an output result.
Optionally, the analysis execution module 23 performs batch parallel execution on the large-data-volume data set, and can configure a single parallel size and a concurrent number, increase an abnormal retry mechanism, and ensure the reliability of the calculation logic.
Optionally, the system further comprises:
the verification module 24 is connected with the analysis execution module 23 and is used for verifying the output result by using the function test file acquired by the parameter entering information so as to obtain a verification result corresponding to the objective function; wherein, the function test file includes: at least one test case.
Optionally, the system further comprises: the test data acquisition module is connected with the verification module and is used for acquiring one or more test cases corresponding to the parameter entering information in a database according to the parameter entering information; performing parameter entry verification on each test case to obtain one or more test cases passing the verification; and generating a function test file corresponding to the objective function by each test case passing the verification, so as to be used as a data source to verify the output result of the objective function of the execution logic.
Optionally, the verification module 24 is configured to compare expected values of functions corresponding to test cases in the function test file obtained from the parameter entering information with the output results, so as to obtain a function accuracy corresponding to the objective function; if the function accuracy accords with the preset condition related to the function accuracy threshold, obtaining a verification result which passes the corresponding verification; if the function accuracy rate does not meet the preset condition related to the function accuracy rate threshold, obtaining a verification result that the corresponding verification fails; wherein, the test case includes: one or more positive test cases and/or negative test cases.
To better describe the omiga engine-based cross-language fusion computing system, specific embodiments are provided;
example 1; a management system based on omiga cross-language fusion calculation.
The system comprises:
as shown in fig. 3, the data preprocessing module includes: the original data acquisition unit 301 acquires the parameter entering information; a parameter MAP mapping unit 302, coupled to the raw data obtaining unit 301, configured to obtain, according to the parameter information, one or more test cases corresponding to the parameter information from the test data set; the parameter entering verification unit 303 is connected with the parameter MAP mapping unit 302, and is used for performing parameter entering verification on each test case to obtain one or more test cases passing the verification; and the test data unit 304 is connected with the parameter entry verification unit 303 and is used for generating a function test file corresponding to the objective function from each test case passing verification.
The function configuration module is used for acquiring input parameter entering information to form a function configuration file required by the objective function; wherein, the function configuration file at least comprises: the parameter entering information;
the logic statement generating module is connected with the function configuration module and is used for calling one or more logic sub-functions respectively corresponding to the execution languages and generating logic statements which correspond to the target functions and can be executed by the omiga engine according to the function configuration file;
as shown in fig. 4, the multilingual execution module has a complete assembly function, the function is stored in a single logic chip, when in execution, dependency tree establishment is performed according to the function dependency relationship and referring to other function fragment versions, whether the dependency tree versions conflict is checked, and finally a complete function set is generated through the dependency tree, so that assembly is completed; the multi-language execution module is connected with the logic statement generation module and comprises: a function logic module 401, configured to obtain a logic statement; an interpreter 402, connected to the function logic module 401, configured to parse the function dependency relationship in the logic statement and each called logic sub-function, and generate an abstract syntax tree corresponding to the logic statement according to the parsed function dependency relationship and each called logic sub-function; one or more executors, coupled to the interpreter 402, for traversing, by an omiga engine, the execution languages respectively corresponding to the logic sub-functions in the dependency tree based on the dependency tree, and performing logic computation according to the execution languages to obtain intermediate results respectively executed in the execution languages corresponding to the logic sub-functions. The data merging module 403 is connected to each actuator, and merges each intermediate result to obtain an output result. And an output target module 404, connected to the data merging module 403, for outputting the output result. The interaction process of the executor and the third party supports the HTTP protocol, and the data transmission format supports Json and GRPC.
And the test module is used for executing the function calculation logic to compare the expected result with the actual result, counting all the passing rates, marking the inspected test set and counting the inspected passing rate. The quality control of gold standard is achieved, and the deviation of logic calculation results and actual results is reduced.
It should be noted that, the test data set is passed through excel uploading mode, the system analyzes the content of excel text, and converts it into test corresponding format for storage, and this embodiment provides a device for physical storage, each data generates a unique number as an index code, so as to facilitate later searching and concurrent execution. Index code rules refer to fig. 5: (1) The most significant bit is the identification bit, 1 is represented as a negative number, and the most significant bit is not used; (2) 39bit save time stamps to the nearest 10 milliseconds; (3) 16bit machine bits capable of generating IDs at 65536 machine nodes; (4) The number of 8-bit sequence numbers, 10 ms maximum generated IDs is 256. Each data generates a ranking number within the single data set to facilitate later ranking of the single data set.
The management system provided by the invention provides a simple and easy-to-operate data set construction tool, is used for business personnel to efficiently, reliably and flexibly construct the calculation logic of the modeling data set, realizes multiplexing among a plurality of projects, and greatly improves the efficiency and quality of the data set construction link.
FIG. 6 shows a schematic diagram of the architecture of an omiga engine-based cross-language fusion computing terminal 60 in an embodiment of the invention.
The cross-language fusion computing terminal 60 based on the omiga engine includes: a memory 61 and a processor 62, the memory 61 for storing a computer program; the processor 62 runs a computer program to implement the method of cross-language fusion calculation based on the omiga engine as described in fig. 1.
Alternatively, the number of the memories 61 may be one or more, and the number of the processors 62 may be one or more, and one is taken as an example in fig. 6.
Optionally, the processor 62 in the omiga engine-based cross-language fusion computing terminal 60 loads one or more instructions corresponding to the process of the application program into the memory 61 according to the steps as shown in fig. 1, and the processor 62 runs the application program stored in the first memory 61, so as to implement various functions in the omiga engine-based cross-language fusion computing method as shown in fig. 1.
Optionally, the memory 61 may include, but is not limited to, high speed random access memory, nonvolatile memory. Such as one or more disk storage devices, flash memory devices, or other non-volatile solid-state storage devices; the processor 62 may include, but is not limited to, a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
Alternatively, the processor 62 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processing, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
The present invention also provides a computer readable storage medium storing a computer program which when run implements an omiga engine-based cross-language fusion calculation method as shown in fig. 1. The computer-readable storage medium may include, but is not limited to, floppy diskettes, optical disks, CD-ROMs (compact disk-read only memories), magneto-optical disks, ROMs (read-only memories), RAMs (random access memories), EPROMs (erasable programmable read only memories), EEPROMs (electrically erasable programmable read only memories), magnetic or optical cards, flash memory, or other type of media/machine-readable medium suitable for storing machine-executable instructions. The computer readable storage medium may be an article of manufacture that is not accessed by a computer device or may be a component used by an accessed computer device.
In summary, by using the method, the system and the terminal for cross-language fusion calculation based on the omiga engine, the method, the system and the terminal for cross-language fusion calculation based on the omiga engine not only can fuse computer languages of various technologies of the bottom layer, but also can selectively apply one or more capabilities of the bottom layer according to project requirements, produce and manage data required for output, and accumulate a large number of reusable data processing rules while meeting the project requirements, so that the production efficiency of subsequent data is improved. Meanwhile, a plurality of application products can be butted, so that end-to-end real-time updating is realized, and labor cost is reduced. Therefore, the invention effectively overcomes various defects in the prior art and has high industrial utilization value.
The foregoing embodiments are merely illustrative of the principles of the present application and their effectiveness, and are not intended to limit the application. Modifications and variations may be made to the above-described embodiments by those of ordinary skill in the art without departing from the spirit and scope of the present application. Accordingly, it is intended that all equivalent modifications and variations which may be accomplished by persons skilled in the art without departing from the spirit and technical spirit of the disclosure be covered by the claims of this application.

Claims (8)

1. The cross-language fusion calculation method based on the omiga engine is characterized by comprising the following steps of:
acquiring input parameter entering information to form a function configuration file required by an objective function; wherein, the function configuration file at least comprises: the parameter entering information; the function configuration file further includes: one or more of function name, function template, value field, output type and aggregation mode; the function templates can respectively correspond to templates for defining common function writing logic or templates for defining specific function data input and output formats; the function template comprises: a result classification type template comprising: one or more of a numerical template, a text template, and a boolean template; a text extraction type template comprising: one or more of a subject presence status template, a subject indicator value template, and a subject description template;
calling a plurality of logic sub-functions respectively corresponding to execution languages, and generating logic sentences which correspond to the target functions and can be executed by an omiga engine according to the function configuration files; the logic subfunction is a registration function, the registration declaration is a single function, one or more of function names, parameter entering types, parameter entering data structures and remark function realization functions are marked, and serialization and deserialization functions can be provided according to multi-language alternation;
analyzing the logic statement, and executing logic calculation by an omiga engine according to the analysis result in a plurality of execution languages to obtain an output result corresponding to the objective function; wherein, include: analyzing the function dependency relationship in the logic statement and each called logic sub-function, and generating a dependency tree corresponding to the logic statement; based on the dependency tree, performing logic calculation by an omiga engine according to the execution languages respectively corresponding to the logic sub-functions in the dependency tree so as to obtain intermediate results respectively corresponding to the logic sub-functions; and combining the intermediate results to obtain an output result.
2. The method for cross-language fusion calculation based on an omiga engine according to claim 1, wherein the step of performing, by the omiga engine, a logic calculation according to an execution language respectively corresponding to each logic sub-function in the dependency tree based on the dependency tree to obtain intermediate results respectively corresponding to each logic sub-function includes:
checking whether versions of the dependency tree conflict;
when the versions of the dependency tree do not conflict, an omiga engine executes logic calculation in an execution language respectively corresponding to each logic sub-function in the dependency tree so as to obtain an intermediate result respectively corresponding to each logic sub-function.
3. The method of computing a cross-language fusion based on an omiga engine of claim 1, further comprising:
verifying the output result by using a function test file acquired by the parameter entering information to acquire a verification result corresponding to the objective function; wherein, the function test file includes: at least one test case.
4. The method for cross-language fusion calculation based on omiga engine according to claim 3, wherein the obtaining manner of the function test file includes:
acquiring one or more test cases corresponding to the parameter entering information according to the parameter entering information;
performing parameter entry verification on each test case to obtain one or more test cases passing the verification;
and generating a function test file corresponding to the objective function by each test case passing the verification.
5. The method of claim 3 or 4, wherein verifying the output result by the function test file obtained by the enrollment information to obtain a verification result corresponding to the objective function comprises:
comparing the expected function values corresponding to the test cases in the function test file obtained by the parameter entering information with the output results respectively to obtain the function accuracy corresponding to the objective function;
if the function accuracy accords with the preset condition related to the function accuracy threshold, obtaining a verification result which passes the corresponding verification;
if the function accuracy rate does not meet the preset condition related to the function accuracy rate threshold, obtaining a verification result that the corresponding verification fails;
wherein, the test case includes: one or more positive test cases and/or negative test cases.
6. A cross-language fusion computing method based on an omiga engine as claimed in claim 3, wherein each test case is respectively corresponding to an index number.
7. A cross-language fusion computing system based on an omiga engine, comprising:
the function configuration module is used for acquiring input parameter entering information to form a function configuration file required by the objective function; wherein, the function configuration file at least comprises: the parameter entering information; the function configuration file further includes: one or more of function name, function template, value field, output type and aggregation mode; the function templates can respectively correspond to templates for defining common function writing logic or templates for defining specific function data input and output formats; the function template comprises: a result classification type template comprising: one or more of a numerical template, a text template, and a boolean template; a text extraction type template comprising: one or more of a subject presence status template, a subject indicator value template, and a subject description template;
the logic statement generating module is connected with the function configuration module and is used for calling a plurality of logic sub-functions respectively corresponding to the execution languages and generating logic statements which correspond to the target functions and can be executed by the omiga engine according to the function configuration file; the logic subfunction is a registration function, the registration declaration is a single function, one or more of function names, parameter entering types, parameter entering data structures and remark function realization functions are marked, and serialization and deserialization functions can be provided according to multi-language alternation;
the analysis execution module is connected with the logic statement generation module and is used for analyzing the logic statement and executing logic calculation by the omiga engine according to the analysis result in a plurality of execution languages so as to obtain an output result corresponding to the objective function; wherein, include: analyzing the function dependency relationship in the logic statement and each called logic sub-function, and generating a dependency tree corresponding to the logic statement; based on the dependency tree, performing logic calculation by an omiga engine according to the execution languages respectively corresponding to the logic sub-functions in the dependency tree so as to obtain intermediate results respectively corresponding to the logic sub-functions; and combining the intermediate results to obtain an output result.
8. An omiga engine-based cross-language fusion computing terminal, comprising:
a memory for storing a computer program;
a processor for performing the method of cross-language fusion computation based on an omiga engine as claimed in any of claims 1 to 4.
CN202111033503.5A 2021-09-03 2021-09-03 Cross-language fusion calculation method, system and terminal based on omiga engine Active CN113703739B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111033503.5A CN113703739B (en) 2021-09-03 2021-09-03 Cross-language fusion calculation method, system and terminal based on omiga engine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111033503.5A CN113703739B (en) 2021-09-03 2021-09-03 Cross-language fusion calculation method, system and terminal based on omiga engine

Publications (2)

Publication Number Publication Date
CN113703739A CN113703739A (en) 2021-11-26
CN113703739B true CN113703739B (en) 2023-05-09

Family

ID=78659594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111033503.5A Active CN113703739B (en) 2021-09-03 2021-09-03 Cross-language fusion calculation method, system and terminal based on omiga engine

Country Status (1)

Country Link
CN (1) CN113703739B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115729530B (en) * 2022-11-22 2023-07-04 壹沓科技(上海)有限公司 Cross-system logic statement generation method, device, storage medium and equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609678A (en) * 2019-08-26 2019-12-24 珠海格力电器股份有限公司 Function programming method and device and configuration software system
CN111552506A (en) * 2020-02-24 2020-08-18 远景智能国际私人投资有限公司 Business rule configuration method, device and storage medium

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3535795B2 (en) * 2000-02-21 2004-06-07 博 和泉 Computer and computer-readable recording medium
US8051408B1 (en) * 2004-09-13 2011-11-01 The Mathworks, Inc. Method of providing interactive usage descriptions based on source code analysis
CN103870308A (en) * 2012-12-13 2014-06-18 杭州勒卡斯广告策划有限公司 Data processing method and device
US20190001573A1 (en) * 2017-06-30 2019-01-03 Norsk Titanium As Technologies of programming manufacturing machines
CN111221842A (en) * 2018-11-27 2020-06-02 北京奇虎科技有限公司 Big data processing system and method
CN111221852A (en) * 2018-11-27 2020-06-02 北京奇虎科技有限公司 Mixed query processing method and device based on big data
CN109739573B (en) * 2018-12-27 2023-07-18 深圳市多度科技有限公司 Processing method and device for realizing API (application program interface) call and system for realizing API
CN109726313A (en) * 2018-12-28 2019-05-07 中国银行股份有限公司 The method and device of operating database
CN110321118A (en) * 2019-07-05 2019-10-11 深圳市智慧郎数码科技有限公司 The generation method and relevant device of function code
CN111858643B (en) * 2020-06-29 2021-11-16 上海森亿医疗科技有限公司 Database variable production method, system, computer device and storage medium
CN113190218A (en) * 2021-04-28 2021-07-30 中国邮政储蓄银行股份有限公司 Target operation function generation method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110609678A (en) * 2019-08-26 2019-12-24 珠海格力电器股份有限公司 Function programming method and device and configuration software system
CN111552506A (en) * 2020-02-24 2020-08-18 远景智能国际私人投资有限公司 Business rule configuration method, device and storage medium

Also Published As

Publication number Publication date
CN113703739A (en) 2021-11-26

Similar Documents

Publication Publication Date Title
US11106440B2 (en) Source code translation
CN107704265B (en) Configurable rule generation method for service flow
CN107644323B (en) Intelligent auditing system for business flow
KR101755365B1 (en) Managing record format information
US9483387B1 (en) Tree comparison functionality for services
CN103092761B (en) Method and device of recognizing and checking modifying code blocks based on difference information file
CN106796513A (en) Management follows information
WO2023109074A1 (en) Method and apparatus for implementing linkage function, device, storage medium, and program
CN113190220A (en) JSON file differentiation comparison method and device
Gheyi et al. Automatically Checking Feature Model Refactorings.
CN113703739B (en) Cross-language fusion calculation method, system and terminal based on omiga engine
CN111324540B (en) Interface testing method and device
CN115795059A (en) Threat modeling method and system for agile development
CN108829968A (en) Circuit diagram checking method based on Python spread function
CN110781647B (en) Method for realizing data format verification based on Flink
CN108628606B (en) Method and system for generating WEB network management application program of embedded equipment
CN115774558B (en) Automatic test case expansion method and device
CN110908896A (en) Test method and device based on decision tree
CN115794119B (en) Case automatic analysis method and device
Castellani et al. Proceedings 14th Workshop on Programming Language Approaches to Concurrency and Communication-cEntric Software
Castellani et al. Proceedings of the 14th Workshop on Programming Language Approaches to Concurrency and Communication-cEntric Software: Preface
Jordan¹ et al. Check for updates Automated Integration of Heteregeneous Architecture Information into a Unified Model
Aredo Formal Development of Open Distributed Systems: Integration of UML and PVS
CN113762671A (en) Risk assessment method, device and system
CN116644731A (en) Data and flow assembly system and method thereof

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