CN114610807A - Data import template configuration method, device, equipment and storage medium - Google Patents

Data import template configuration method, device, equipment and storage medium Download PDF

Info

Publication number
CN114610807A
CN114610807A CN202210255632.7A CN202210255632A CN114610807A CN 114610807 A CN114610807 A CN 114610807A CN 202210255632 A CN202210255632 A CN 202210255632A CN 114610807 A CN114610807 A CN 114610807A
Authority
CN
China
Prior art keywords
import
data
data import
rule
template
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210255632.7A
Other languages
Chinese (zh)
Inventor
李生波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An International Smart City Technology Co Ltd
Original Assignee
Ping An International Smart City 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 Ping An International Smart City Technology Co Ltd filed Critical Ping An International Smart City Technology Co Ltd
Priority to CN202210255632.7A priority Critical patent/CN114610807A/en
Publication of CN114610807A publication Critical patent/CN114610807A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/237Lexical tools
    • G06F40/242Dictionaries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention relates to an artificial intelligence technology, and discloses a data import template configuration method, which comprises the following steps: constructing an import demand matrix according to the data import demand; calculating the matching degree between the import demand matrix and a plurality of preset import rules, and selecting the import rules with the matching degree larger than a preset matching threshold as rules to be screened; acquiring service data corresponding to a data import requirement, and acquiring a data import condition corresponding to a service type; constructing a rule screening model according to the data import conditions, and screening the rules to be screened by using the rule screening model to obtain a target import rule; and acquiring a blank data import template, and rendering the data import template by using a target import rule to obtain a standard data import template. In addition, the invention also relates to a block chain technology, and the data import requirement can be stored in a node of the block chain. The invention also provides a data import template configuration device, electronic equipment and a storage medium. The invention can improve the usability of the generated data import template.

Description

Data import template configuration method, device, equipment and storage medium
Technical Field
The invention relates to the technical field of artificial intelligence, in particular to a data import template configuration method and device, electronic equipment and a computer readable storage medium.
Background
With the development of the big data era, mass data surround the daily life and work of people, but with the explosive increase of data volume, people increasingly need to arrange the data, but the premise of arranging the data is to effectively guide the data into a data table, a data analysis system and the like.
At present, data are imported mostly by writing sql in a code by a back-end developer, then structuring query condition data required in a list, and returning the data to a front end through an interface for importing. However, for different data, the method needs to convert the data by using different codes to generate a data list corresponding to the data and import the data into the data list, and the data list generated by the method is too rigid, so that personalized import requirements of users and limitations of import rules of the data themselves cannot be considered, and the situation that wrong data is easily imported or even cannot be imported when each different type of data is imported is caused.
Disclosure of Invention
The invention provides a method and a device for configuring a data import template and a computer readable storage medium, and mainly aims to solve the problem that the generated data import template is low in availability.
In order to achieve the above object, a data import template configuration method provided by the present invention includes:
acquiring a data import demand, and constructing an import demand matrix according to the data import demand;
respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules, and selecting the import rule with the matching degree larger than a preset matching threshold value as a rule to be screened;
acquiring service data corresponding to the data import requirement, identifying the service type of the service data, and acquiring a data import condition corresponding to the service type;
a rule screening model is built according to the data import conditions, and the rule to be screened is screened by the rule screening model to obtain a target import rule;
and acquiring a blank data import template, and rendering the data import template by using the target import rule to obtain a standard data import template.
Optionally, the constructing an import requirement matrix according to the data import requirement includes:
performing word segmentation processing on the data import requirement to obtain a requirement word segmentation;
respectively calculating the similarity of each demand participle and a plurality of preset operation demand entries, and selecting the demand participle with the similarity larger than a preset similarity threshold value as an import intention participle;
and constructing the import requirement matrix by utilizing the import intention participles.
Optionally, the constructing the import requirement matrix by using the import intention participle includes:
converting the imported intent participles into word vectors;
and writing the word vector into a pre-constructed blank matrix to obtain the import requirement matrix.
Optionally, the identifying the service type of the service data includes:
extracting a service type field in the service data;
calculating the distance value between the service type field and a plurality of preset type labels;
and determining the type label with the minimum distance value as the service type of the service data.
Optionally, the constructing a rule screening model according to the data import condition includes:
selecting one data import condition from the data import conditions one by one as a target condition;
assigning a preset decision function by taking the target condition as a parameter, and generating a decision tree by taking the assigned decision function as a decision condition;
and collecting all decision trees generated by the data import conditions as rule screening models.
Optionally, the screening, by using the rule screening model, the operable data of the user role in the rule to be screened includes:
selecting one rule to be screened from the rules to be screened one by one as an input value;
selecting one decision tree from the rule screening model one by one as a target decision tree, and inputting the input value into the target decision tree to obtain an output result output by the target decision tree, wherein the output result is that the input value is the same as the parameters of the target decision tree or the input value is different from the parameters of the target decision tree;
and collecting the output result as the rule to be screened with the input value being the same as the parameter of the target decision tree to obtain a target import rule.
Optionally, the rendering the data import template by using the target import rule to obtain a standard data import template includes:
determining a rendering area according to the blank data import template;
and constructing components in the rendering area to obtain a standard data import template.
In order to solve the above problem, the present invention further provides a data import template configuration apparatus, including:
the matrix construction module is used for acquiring data import requirements and constructing an import requirement matrix according to the data import requirements;
the first screening module is used for respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules, and selecting the import rules with the matching degrees larger than a preset matching threshold value as rules to be screened;
the condition acquisition module is used for acquiring the service data corresponding to the data import requirement, identifying the service type of the service data and acquiring the data import condition corresponding to the service type;
the second screening module is used for constructing a rule screening model according to the data import conditions and screening the rule to be screened by using the rule screening model to obtain a target import rule;
and the data import module is used for acquiring a blank data import template and rendering the data import template by using the target import rule to obtain a standard data import template.
In order to solve the above problem, the present invention also provides an electronic device, including:
at least one processor; and (c) a second step of,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor, the computer program being executable by the at least one processor to enable the at least one processor to perform the data import template configuration method described above.
In order to solve the above problem, the present invention further provides a computer-readable storage medium, in which at least one computer program is stored, and the at least one computer program is executed by a processor in an electronic device to implement the data import template configuration method described above.
The embodiment of the invention can analyze the data import requirements of the user to obtain the data import rules corresponding to the data import requirements, thereby realizing the analysis of the personalized import requirements of the user; meanwhile, the data import rules corresponding to the data import requirements are screened again according to the service types of the service data needing data import, the distinctiveness of the data of different service types during import is considered, and then the finally screened data import rules are used for generating the data import template so as to improve the usability of the generated data import template. Therefore, the data import template configuration method, the data import template configuration device, the electronic equipment and the computer readable storage medium provided by the invention can solve the problem that the generated data import template is low in usability.
Drawings
Fig. 1 is a schematic flowchart of a data import template configuration method according to an embodiment of the present invention;
fig. 2 is a schematic flow chart illustrating a process of identifying a service type according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart of a method for constructing a rule screening model according to an embodiment of the present invention;
FIG. 4 is a functional block diagram of a data import template configuration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device for implementing the data import template configuration method according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The embodiment of the application provides a data import template configuration method. The execution subject of the data import template configuration method includes, but is not limited to, at least one of electronic devices such as a server and a terminal that can be configured to execute the method provided by the embodiments of the present application. In other words, the data import template configuration method may be executed by software or hardware installed in the terminal device or the server device, and the software may be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may be a cloud server that provides basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform.
Fig. 1 is a schematic flow chart of a data import template configuration method according to an embodiment of the present invention. In this embodiment, the data import template configuration method includes:
and S1, acquiring data import requirements, and constructing an import requirement matrix according to the data import requirements.
In the embodiment of the present invention, the data import requirement refers to a requirement of a content, a time, a manner, and the like that a user wants to import when importing data into data storage such as a data table and a database.
In detail, the data import requirement may be uploaded by a user in advance, or a computer sentence (e.g., a java sentence, a python sentence, etc.) with a data fetching function may be used to fetch the data import requirement pre-stored in a database, a blockchain stage, or a network cache.
In the embodiment of the present invention, since the data import requirement may include a large amount of content, but not all the content is the operation that the user needs to execute, the data import requirement may be analyzed to construct an import requirement matrix according to the data import requirement, where the import requirement matrix includes the content of the data import requirement for executing the specific operation related to the data import function.
In the embodiment of the invention, the content representing the import requirement of the user is screened out from the content of the data import requirement, and the import requirement matrix of the control voice is constructed according to the screened content.
In an embodiment of the present invention, the constructing an import requirement matrix according to the data import requirement includes:
performing word segmentation processing on the data import requirement to obtain a requirement word segmentation;
respectively calculating the similarity of each demand participle and a plurality of preset operation demand entries, and selecting the demand participle with the similarity larger than a preset similarity threshold value as an import intention participle;
and constructing the import requirement matrix by utilizing the import intention participles.
In the embodiment of the invention, the data import requirement is divided into the requirement participles, and each requirement participle is analyzed and processed independently, so that the occupation of calculation during analysis can be reduced, and the analysis efficiency is improved.
Specifically, the data import requirement is retrieved in a preset standard dictionary according to different lengths, and the contents retrievable in the standard dictionary are collected into requirement participles, wherein the standard dictionary comprises a plurality of standard participles.
In the embodiment of the invention, the similarity between each demand participle and a plurality of preset operation demand entries can be respectively calculated by utilizing algorithms with similarity calculation functions, such as a Euclidean distance algorithm, a cosine distance algorithm and the like, so that the demand participles with the similarity larger than a preset similarity threshold are selected as import intention participles, the participles possibly used for expressing the import demand in the demand participles are screened out according to the similarity, the fuzzy screening of the demand participles is realized, the situation that the participles used for expressing the import demand in the demand participles are omitted in the screening process due to the difference of user expressions is avoided, and the accuracy of the screened import intention participles is favorably improved.
Further, in order to facilitate subsequent analysis of the screened-out imported intent participles, the imported intent participles may be converted into word vectors.
In detail, a word vector of each word in the imported intent participle can be queried from a preset word vector table, and the word vectors are spliced into the word vector of the imported intent participle according to the sequence of each word in the imported intent participle, wherein the word vector table contains a plurality of words and the word vectors corresponding to each word can be retrieved in the word vector table by searching each word of the imported intent participle to obtain a word vector corresponding to each word, and the word vectors are spliced into the word vector of the imported intent participle according to the sequence of each word in the imported intent participle, wherein the word vector table is similar to the standard dictionary and is a pre-constructed data table containing the word vectors corresponding to a plurality of single words.
For example, the imported intention participle includes three characters at a "time point", and the three characters are respectively queried in the character vector table to obtain a character vector corresponding to a "time" character as { a }, a character vector corresponding to a "few" character as { B }, and a character vector corresponding to a "point" character as { C }, and then the three character vectors can be spliced into the word vector of the required participle according to the sequence of the three characters in the imported intention participle "teenager": { ABC }.
In other embodiments of the present invention, models with a word vector conversion function, such as a word2vec model, an NLP (Natural Language Processing) model, and a bert model, may be further used to convert the imported intent word into a word vector.
In the embodiment of the present invention, constructing the import requirement matrix by using the import intention participle includes:
converting the imported intent participles into word vectors;
and writing the word vector into a pre-constructed blank matrix to obtain the import requirement matrix.
Specifically, the blank matrix, that is, a matrix whose elements are all 0, may be created by a B-zeros (m, n) function in an R language library.
In the embodiment of the invention, the word vectors can be filled into the blank matrix in a row vector mode one by one to obtain an import requirement matrix containing the word vectors.
And S2, respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules, and selecting the import rule with the matching degree larger than a preset matching threshold value as a rule to be screened.
In the embodiment of the present invention, since the import requirement matrix includes a plurality of word vectors that may represent the import requirements of the user, the import requirement matrix may be used to analyze the data import requirements of the user.
In the embodiment of the present invention, the calculating the matching degrees between the import demand matrix and the preset import rules respectively includes:
respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules by using the following matching algorithm:
Figure BDA0003548507330000071
wherein D isiIs the matching degree between the import requirement matrix and the ith import requirement, P is the import requirement matrix, QiThe rule is imported for the ith.
Further, an import rule with the matching degree greater than a preset matching threshold value can be selected, and the selected import rule is determined to be a rule to be screened, wherein the rule to be screened is an import rule which is in accordance with a data import rule corresponding to the import requirement matrix in the preset import rules.
S3, acquiring the service data corresponding to the data import requirement, identifying the service type of the service data, and acquiring the data import condition corresponding to the service type.
In the embodiment of the present invention, the service data is data that the data import demand wants to perform an import operation.
In detail, the step of obtaining the service data corresponding to the data import requirement is consistent with the step of obtaining the data import requirement in S1, and is not described herein again.
In one practical application scenario of the present invention, the import demand data represents the import will of the user because the import demand data is the content, time, manner, and other requirements that the user wishes to import, but for different service data, the import rule may be different from the import will of the user.
For example, the import requirement data of the user is used for identifying that the user wants to import the service data in an audio form, but in practical application, the service data only supports the import in a text form.
Therefore, when the actual import rule of the service data is different from the import will of the user, if the service data is imported only according to the rule to be screened determined by the data import requirement, the imported data is easy to be wrong, and even the import cannot be completed.
In the embodiment of the invention, the service data can be analyzed to identify the service type of the service data, so as to obtain the data import condition corresponding to the service type of the service data.
In the embodiment of the present invention, referring to fig. 2, the identifying the service type of the service data includes:
s21, extracting a service type field in the service data;
s22, calculating the distance value between the service type field and a plurality of preset type labels;
and S23, determining the type label with the minimum distance value as the service type of the service data.
In detail, the service type field is a field for identifying the type of the service data, and is generally marked at a fixed position in the service data, and the data form is relatively fixed, so that the service type field in the service data can be captured by using a rule expression having a function of capturing a specific data form.
Specifically, the distance value between the service type field and a plurality of preset type labels can be calculated by using algorithms with distance value calculation functions, such as a euclidean distance algorithm, a cosine distance algorithm and the like.
Further, a CREATE INDEX statement in an SQL library can be used for inquiring a pre-constructed type-condition table to obtain a data import condition corresponding to the business type, wherein the type-condition table comprises a plurality of business types and the data import condition corresponding to each business type.
S4, a rule screening model is built according to the data import conditions, and the rule to be screened is screened by the rule screening model to obtain a target import rule.
In the embodiment of the invention, in order to further screen the rule to be screened, a rule screening model can be constructed according to the data import condition, and then the rule screening model is utilized to screen out the target import rule which accords with the data import condition from the rule to be screened.
In an embodiment of the present invention, as shown in fig. 3, the constructing a rule screening model according to the data import condition includes:
s31, selecting one data import condition from the data import conditions one by one as a target condition;
s32, assigning a preset decision function by taking the target condition as a parameter, and generating a decision tree by taking the assigned decision function as a decision condition;
and S33, collecting the decision tree generated by all the data import conditions as a rule screening model.
Illustratively, the decision function may be:
Figure BDA0003548507330000081
wherein f (x) is the output value of the decision function, x is the parameter of the decision function, and g (y) is the input value of the decision function.
In detail, one of the data import conditions from the data import conditions of the object data table and the data import conditions of the operational data table may be selected as a target condition one by one, a parameter x of the decision function is assigned by using the target condition, and the assigned decision function is used as a decision condition to generate the following decision tree:
when the input value g (y) of the decision tree is the same as the parameter x of the decision tree, the decision tree output value f (x) α;
when the input to g (y) of the decision tree is not the same as the parameter x of the decision tree, the decision tree outputs a value f (x) β.
In the embodiment of the invention, the decision trees corresponding to each characteristic in the data import condition can be collected in a parallel or serial mode to obtain the rule screening model.
In the embodiment of the invention, the rule to be screened can be screened by using the rule screening model so as to screen out the rule which accords with the data import condition in the rule to be screened, thereby being beneficial to improving the accuracy of the finally generated data import template.
In this embodiment of the present invention, the screening the operable data of the user role in the rule to be screened by using the rule screening model includes:
selecting one rule to be screened from the rules to be screened one by one as an input value;
selecting one decision tree from the rule screening model one by one as a target decision tree, and inputting the input value into the target decision tree to obtain an output result output by the target decision tree, wherein the output result is that the input value is the same as the parameters of the target decision tree or the input value is different from the parameters of the target decision tree;
and collecting the output result as the rule to be screened with the input value being the same as the parameter of the target decision tree to obtain a target import rule.
For example, the rule screening model includes a decision tree a1Decision tree a2Decision tree b1And decision tree b2Choose the decision tree a1Is a target decision tree; selecting one rule to be screened from the rules to be screened as an input value, and inputting the input value into the decision tree a1Obtaining the decision tree a1The output input value and the decision tree a1The output results with the same parameters; inputting an input value to the decision tree a2Obtaining the decision tree a2The output input value and the decision tree a2Output results with different parameters; inputting input values into the decision tree b1Obtaining the decision tree b1The output of the input value and the decision tree b1Output results with different parameters; inputting input values into the decision tree b2Obtaining the decision tree b2The output input value and the decision tree b2And (4) outputting results with different parameters.
Wherein, due to the decision tree a1The output input value and the decision tree a1The input value (the selected rule to be filtered) can be determined as the target import rule.
In detail, the rule to be screened, of which the input value is the same as the parameter of the target decision tree, may be collected as the output result, so as to obtain the target import rule.
And S5, acquiring a blank data import template, and rendering the data import template by using the target import rule to obtain a standard data import template.
In the embodiment of the present invention, the blank data import template is a blank template that does not include any data import rule, and the target import rule may be used to render the data import template, so as to obtain a standard data import template that includes the target import rule.
In detail, the step of acquiring the blank data import template is consistent with the step of acquiring the data import requirement in S1, and is not described herein again.
In this embodiment of the present invention, the rendering the data import template by using the target import rule to obtain a standard data import template includes:
determining a rendering area according to the blank data import template;
and constructing components in the rendering area to obtain a standard data import template.
In the embodiment of the present invention, the rendering area is determined according to the blank data import template, for example, a query interface containing import data in the blank data import template, an upper portion of the query interface is a rendering area of a title of a query function, a middle portion of the query interface is a rendering area for entering query contents, and a lower portion of the query interface is a rendering area of a query button.
In detail, component construction is performed in the rendering area to obtain a standard data import template, that is, a popup component is created in the rendering area according to content to be rendered in the rendering area, for example, a text box is created in the rendering area of a title of a query function and the rendering area of a query content input in a query interface to display and input the title of the function and the query content, the title of the function and the query content input are written in the text box, and a query button is created in the rendering area of the query button to realize query according to the input query content when the query button is clicked.
Specifically, the embodiment of the invention creates text boxes in the rendering area of the title of the query function and the rendering area of the input query content in the query interface by methods such as a setMessage method, a setItems method, a setSingleChoiceItems method and the like in java; and creating a query button in a rendering area of the query button by methods such as a setPositivebutton method, a setNegativebutton method and a setNeutralbutton method.
In the embodiment of the invention, the data import template is rendered by utilizing the target import rule, so that the standard data import template which meets the data import requirement of a user and also meets the data import condition of the service data is generated.
The embodiment of the invention can analyze the data import requirements of the user to obtain the data import rules corresponding to the data import requirements, thereby realizing the analysis of the personalized import requirements of the user; meanwhile, the data import rules corresponding to the data import requirements are screened again according to the service types of the service data needing data import, the distinctiveness of the data of different service types during import is considered, and then the finally screened data import rules are used for generating the data import template so as to improve the usability of the generated data import template. Therefore, the data import template configuration method provided by the invention can solve the problem of low availability of the generated data import template.
Fig. 4 is a functional block diagram of a data import template configuration apparatus according to an embodiment of the present invention.
The data import template configuration apparatus 100 according to the present invention may be installed in an electronic device. According to the implemented functions, the data import template configuration apparatus 100 may include a matrix construction module 101, a first filtering module 102, a condition obtaining module 103, a second filtering module 104, and a data import module 105. The module of the present invention, which may also be referred to as a unit, refers to a series of computer program segments that can be executed by a processor of an electronic device and that can perform a fixed function, and that are stored in a memory of the electronic device.
In the present embodiment, the functions regarding the respective modules/units are as follows:
the matrix construction module 101 is configured to obtain a data import demand and construct an import demand matrix according to the data import demand;
the first screening module 102 is configured to calculate matching degrees between the import demand matrix and a plurality of preset import rules, and select an import rule with the matching degree greater than a preset matching threshold as a rule to be screened;
the condition obtaining module 103 is configured to obtain service data corresponding to the data import requirement, identify a service type of the service data, and obtain a data import condition corresponding to the service type;
the second screening module 104 is configured to construct a rule screening model according to the data import condition, and screen the rule to be screened by using the rule screening model to obtain a target import rule;
the data import module 105 is configured to obtain a blank data import template, and render the data import template by using the target import rule to obtain a standard data import template.
In detail, when the modules in the data import template configuration apparatus 100 according to the embodiment of the present invention are used, the same technical means as the data import template configuration method described in fig. 1 to 3 are adopted, and the same technical effects can be produced, which is not described herein again.
Fig. 5 is a schematic structural diagram of an electronic device for implementing a method for configuring a data import template according to an embodiment of the present invention.
The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may further include a computer program, such as a data import template configuration program, stored in the memory 11 and executable on the processor 10.
In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or may be composed of a plurality of integrated circuits packaged with the same function or different functions, and includes one or more Central Processing Units (CPUs), a microprocessor, a digital Processing chip, a graphics processor, a combination of various control chips, and the like. The processor 10 is a Control Unit (Control Unit) of the electronic device, connects various components of the electronic device by using various interfaces and lines, and executes various functions and processes data of the electronic device by running or executing programs or modules (for example, executing a data import template configuration program) stored in the memory 11 and calling data stored in the memory 11.
The memory 11 includes at least one type of readable storage medium including flash memory, removable hard disks, multimedia cards, card-type memory (e.g., SD or DX memory, etc.), magnetic memory, magnetic disks, optical disks, etc. The memory 11 may in some embodiments be an internal storage unit of the electronic device, for example a removable hard disk of the electronic device. The memory 11 may also be an external storage device of the electronic device in other embodiments, such as a plug-in mobile hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), and the like, provided on the electronic device. Further, the memory 11 may also include both an internal storage unit and an external storage device of the electronic device. The memory 11 may be used to store not only application software installed in the electronic device and various types of data, such as codes of a data import template configuration program, but also temporarily store data that has been output or is to be output.
The communication bus 12 may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is arranged to enable connection communication between the memory 11 and at least one processor 10 or the like.
The communication interface 13 is used for communication between the electronic device and other devices, and includes a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (e.g., WI-FI interface, bluetooth interface, etc.), which are typically used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a Display (Display), an input unit, such as a Keyboard (Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable, among other things, for displaying information processed in the electronic device and for displaying a visualized user interface.
Only electronic devices having components are shown, and those skilled in the art will appreciate that the structures shown in the figures do not constitute limitations on the electronic devices, and may include fewer or more components than shown, or some components in combination, or a different arrangement of components.
For example, although not shown, the electronic device may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so that functions of charge management, discharge management, power consumption management and the like are realized through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The data import template configuration program stored in the memory 11 of the electronic device 1 is a combination of a plurality of instructions, and when running in the processor 10, can realize:
acquiring a data import demand, and constructing an import demand matrix according to the data import demand;
respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules, and selecting the import rule with the matching degree larger than a preset matching threshold as a rule to be screened;
acquiring service data corresponding to the data import requirement, identifying the service type of the service data, and acquiring a data import condition corresponding to the service type;
establishing a rule screening model according to the data import conditions, and screening the rule to be screened by using the rule screening model to obtain a target import rule;
and acquiring a blank data import template, and rendering the data import template by using the target import rule to obtain a standard data import template.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to the drawing, and is not repeated here.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The present invention also provides a computer-readable storage medium storing a computer program which, when executed by a processor of an electronic device, implements:
acquiring a data import demand, and constructing an import demand matrix according to the data import demand;
respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules, and selecting the import rule with the matching degree larger than a preset matching threshold as a rule to be screened;
acquiring service data corresponding to the data import requirement, identifying the service type of the service data, and acquiring a data import condition corresponding to the service type;
establishing a rule screening model according to the data import conditions, and screening the rule to be screened by using the rule screening model to obtain a target import rule;
and acquiring a blank data import template, and rendering the data import template by using the target import rule to obtain a standard data import template.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus, device and method can be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the modules is only one logical functional division, and other divisions may be realized in practice.
The modules described as separate parts may or may not be physically separate, and parts displayed as modules may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment.
In addition, functional modules in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional module.
It will be evident to those skilled in the art that the invention is not limited to the details of the foregoing illustrative embodiments, and that the present invention may be embodied in other specific forms without departing from the spirit or essential attributes thereof.
The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the invention being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference signs in the claims shall not be construed as limiting the claim concerned.
The block chain is a novel application mode of computer technologies such as distributed data storage, point-to-point transmission, a consensus mechanism, an encryption algorithm and the like. A block chain (Blockchain), which is essentially a decentralized database, is a series of data blocks associated by using a cryptographic method, and each data block contains information of a batch of network transactions, so as to verify the validity (anti-counterfeiting) of the information and generate a next block. The blockchain may include a blockchain underlying platform, a platform product service layer, an application service layer, and the like.
The embodiment of the application can acquire and process related data based on an artificial intelligence technology. Among them, Artificial Intelligence (AI) is a theory, method, technique and application system that simulates, extends and expands human Intelligence using a digital computer or a machine controlled by a digital computer, senses the environment, acquires knowledge and uses the knowledge to obtain the best result.
Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the system claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.
Finally, it should be noted that the above embodiments are only for illustrating the technical solutions of the present invention and not for limiting, and although the present invention is described in detail with reference to the preferred embodiments, it should be understood by those skilled in the art that modifications or equivalent substitutions may be made on the technical solutions of the present invention without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1. A method for configuring a data import template, the method comprising:
acquiring a data import demand, and constructing an import demand matrix according to the data import demand;
respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules, and selecting the import rule with the matching degree larger than a preset matching threshold as a rule to be screened;
acquiring service data corresponding to the data import requirement, identifying the service type of the service data, and acquiring a data import condition corresponding to the service type;
establishing a rule screening model according to the data import conditions, and screening the rule to be screened by using the rule screening model to obtain a target import rule;
and acquiring a blank data import template, and rendering the data import template by using the target import rule to obtain a standard data import template.
2. The method for configuring data import template according to claim 1, wherein the constructing an import requirement matrix according to the data import requirement comprises:
performing word segmentation processing on the data import requirement to obtain a requirement word segmentation;
respectively calculating the similarity of each demand participle and a plurality of preset operation demand entries, and selecting the demand participle with the similarity larger than a preset similarity threshold value as an import intention participle;
and constructing the import requirement matrix by utilizing the import intention participles.
3. The method for configuring data import templates according to claim 2, wherein the constructing the import requirement matrix using the import intent participles comprises:
converting the imported intent participles into word vectors;
and writing the word vector into a pre-constructed blank matrix to obtain the import requirement matrix.
4. The method for configuring data import template according to claim 1, wherein said identifying the service type of the service data comprises:
extracting a service type field in the service data;
calculating the distance value between the service type field and a plurality of preset type labels;
and determining the type label with the minimum distance value as the service type of the service data.
5. The method for configuring data import template according to claim 1, wherein the building rule screening model according to the data import condition comprises:
selecting one data import condition from the data import conditions one by one as a target condition;
assigning a preset decision function by taking the target condition as a parameter, and generating a decision tree by taking the assigned decision function as a decision condition;
and collecting all decision trees generated by the data import conditions as rule screening models.
6. The method for configuring data import templates according to claim 1, wherein the screening the operational data of the user role in the rule to be screened by using the rule screening model includes:
selecting one rule to be screened from the rules to be screened one by one as an input value;
selecting one decision tree from the rule screening model one by one as a target decision tree, and inputting the input value into the target decision tree to obtain an output result output by the target decision tree, wherein the output result is that the input value is the same as the parameters of the target decision tree or the input value is different from the parameters of the target decision tree;
and collecting the output result as the rule to be screened with the input value being the same as the parameters of the target decision tree to obtain a target import rule.
7. The method according to any one of claims 1 to 6, wherein the rendering the data import template by using the target import rule to obtain a standard data import template includes:
determining a rendering area according to the blank data import template;
and constructing components in the rendering area to obtain a standard data import template.
8. A data import template configuration apparatus, the apparatus comprising:
the matrix construction module is used for acquiring data import requirements and constructing an import requirement matrix according to the data import requirements;
the first screening module is used for respectively calculating the matching degrees between the import demand matrix and a plurality of preset import rules, and selecting the import rules with the matching degrees larger than a preset matching threshold value as rules to be screened;
the condition acquisition module is used for acquiring the service data corresponding to the data import requirement, identifying the service type of the service data and acquiring the data import condition corresponding to the service type;
the second screening module is used for constructing a rule screening model according to the data import conditions and screening the rule to be screened by using the rule screening model to obtain a target import rule;
and the data import module is used for acquiring a blank data import template and rendering the data import template by using the target import rule to obtain a standard data import template.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the data import template configuration method of any of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the data import template configuration method according to any one of claims 1 to 7.
CN202210255632.7A 2022-03-15 2022-03-15 Data import template configuration method, device, equipment and storage medium Pending CN114610807A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210255632.7A CN114610807A (en) 2022-03-15 2022-03-15 Data import template configuration method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210255632.7A CN114610807A (en) 2022-03-15 2022-03-15 Data import template configuration method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114610807A true CN114610807A (en) 2022-06-10

Family

ID=81862730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210255632.7A Pending CN114610807A (en) 2022-03-15 2022-03-15 Data import template configuration method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114610807A (en)

Similar Documents

Publication Publication Date Title
CN113449187A (en) Product recommendation method, device and equipment based on double portraits and storage medium
CN113886708A (en) Product recommendation method, device, equipment and storage medium based on user information
CN113706322A (en) Service distribution method, device, equipment and storage medium based on data analysis
CN113360768A (en) Product recommendation method, device and equipment based on user portrait and storage medium
CN114138784A (en) Information tracing method and device based on storage library, electronic equipment and medium
CN114398557A (en) Information recommendation method and device based on double portraits, electronic equipment and storage medium
CN115238670A (en) Information text extraction method, device, equipment and storage medium
CN113434542B (en) Data relationship identification method and device, electronic equipment and storage medium
CN114138243A (en) Function calling method, device, equipment and storage medium based on development platform
CN113806492A (en) Record generation method, device and equipment based on semantic recognition and storage medium
CN113360654A (en) Text classification method and device, electronic equipment and readable storage medium
CN113344125A (en) Long text matching identification method and device, electronic equipment and storage medium
CN112632264A (en) Intelligent question and answer method and device, electronic equipment and storage medium
CN113723114A (en) Semantic analysis method, device and equipment based on multi-intent recognition and storage medium
CN114780688A (en) Text quality inspection method, device and equipment based on rule matching and storage medium
CN115186188A (en) Product recommendation method, device and equipment based on behavior analysis and storage medium
CN114943306A (en) Intention classification method, device, equipment and storage medium
CN114518993A (en) System performance monitoring method, device, equipment and medium based on business characteristics
CN114741077A (en) Page effect preview method, device, equipment and medium based on field granularity
CN113822215A (en) Equipment operation guide file generation method and device, electronic equipment and storage medium
CN114490666A (en) Chart generation method, device and equipment based on data requirements and storage medium
CN114610807A (en) Data import template configuration method, device, equipment and storage medium
CN113706204B (en) Deep learning-based rights issuing method, device, equipment and storage medium
CN113885984A (en) Operation guide generation method, device, equipment and medium based on image recognition
CN115237941A (en) Data reporting method and device, electronic equipment and computer readable storage medium

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