Detailed Description
The embodiments of the present invention are described below with reference to specific embodiments, and other advantages and effects of the present invention will be easily understood by those skilled in the art from the disclosure of the present specification. The invention is capable of other and different embodiments and of being practiced or of being carried out in various ways, and its several details are capable of modification in various respects, all without departing from the spirit and scope of the present invention. It is to be noted that the features in the following embodiments and examples may be combined with each other without conflict.
It should be noted that the drawings provided in the following embodiments are only for illustrating the basic idea of the present invention, and the components related to the present invention are only shown in the drawings rather than drawn according to the number, shape and size of the components in actual implementation, and the type, quantity and proportion of the components in actual implementation may be changed freely, and the layout of the components may be more complicated.
Referring to fig. 1, a flowchart of a knowledge network management method based on financial services according to an embodiment of the present invention is adapted to improve flexibility of a user in using a knowledge network platform, and includes:
step S1, acquiring the input financial service and financial service requirements;
wherein the financial business requirements include at least one of: bank risk distribution, loan reasonableness analysis, product analysis, and credit analysis.
Step S2, detecting whether there is a corresponding custom script according to the input financial business requirement;
and step S3, when a user-defined script is detected, editing the user-defined script to change the processing logic of the script to the data so as to match the data source meeting the financial business requirement for output.
In this embodiment, the knowledge network platform includes a front end and a back end server, and the user inputs his financial business requirement by operating the front end, and often there are few corresponding preset templates of the knowledge network stored by the back end server, and at the same time, the updating speed of the knowledge network platform is slow, and non-professional technicians or non-developers will not change at will in the preset templates according to his needs, that is, the change and configuration of the knowledge network will require a high technical skill for the user, and the user in the financial and financial fields has his own unique habits (experiences), which results in the inability to meet the personalized requirements of the user, thereby making the flexibility and compatibility of the knowledge network platform poor.
The method for acquiring the financial business requirements comprises the following steps:
a text entry dialog box may be provided for the user to enter the desired information. Taking a risk manager as an example, the risk manager can input 'bank risk distribution', and the system acquires input information in a text dialog box, compares the input information with a text in a preset text library, and identifies the input information of the risk manager. The voice input information of the risk manager can be collected through the microphone, the audio features are extracted and compared with samples in a preset audio library, the audio information input by the risk manager is identified, and the requirement information of the risk manager is obtained.
In the embodiment, the user-defined script (which is edited by any script language, such as Python, JavaScript, C + +, Java, and the like) is introduced, the user-defined script is directly edited according to the financial service requirement of the user, and the processing logic of the user-defined script on the data source is changed, so that the data source corresponding to the financial service requirement is appropriately matched and output, and the problems of flexibility and compatibility of the knowledge network platform are fundamentally solved.
Referring to fig. 2, a complete flow chart of the knowledge network management method based on financial services according to the embodiment of the present invention is shown, and on the basis of the embodiment, the method further includes:
and step S4, when no self-defined script is detected, matching a preset template in the platform according to the financial service requirement, and matching a data source meeting the financial service requirement according to the preset template for output.
In this embodiment, the preset template stored in the knowledge network platform may analyze and process the data source, so as to generate a data result adapted to the financial business requirements of the user, but most of the preset template is a generic parameter calling template, for example, when a certain bank needs to analyze a product, common indexes such as WO lagged% (annual) and M2+ lagged% (a denominator is two months ago receivable, and a numerator is an overdue amount (including) not yet late but not yet late) of the month M2, which represents a delay rate) of the product are required, the indexes are common industry information, and the user only needs to call the corresponding template of the knowledge network platform, and call data such as the amount of staying in month, the recovery amount of account, and the like from the data source through the template, so as to output corresponding data of the product WO lagged% and the M2+ lagged%.
In another embodiment, in step S3, a customized script is edited according to the input financial business requirement by using a Structured Query Language (SQL), and the processing logic of the customized script on data is modified by using the SQL according to the financial business requirement.
The self-defined script is a program written by a structural statement; one or more of definitions, variables, time nodes or threshold values in the custom script are changed by the structured language meeting the grammar rules to change the processing logic of data, for example, the custom script is compiled to flexibly support the processing modes of numerical operation, logic operation and function operation on various input information, combination, nesting, condition selection, recursive processing and the like are allowed, and the processing mode combining the custom script and the preset template is utilized, so that the flexibility required by complex logic processing is met, the complexity of realizing an inference machine of a knowledge network platform is effectively reduced, and the operating efficiency of the inference machine is improved. For example, as shown in fig. 7, the SQL custom script editing graph provided for the embodiment of the present invention defines the processing logic of the modified script through parameters in the manner described above, so as to output the data source corresponding to the modified custom script.
In another embodiment, in step S3, a custom script is edited according to the input financial business requirement by means of component-to-function module splicing, and the processing logic of the custom script on data is changed.
Specifically, a large number of components and functional modules are developed by the knowledge network platform, a user selects the components and the functional modules which are suitable for the requirements of financial services by dragging and pulling and the like, wherein the components, the functional modules and the codes in the custom scripts are mapped with one another, the custom script codes are replaced by replacing the components and the functional modules, the technical level of the knowledge network platform used by the user is effectively reduced, and the custom scripts are re-edited by a form similar to text editing even if the user does not learn programming, so that the purpose of changing the processing logic of the custom scripts on data is achieved.
For example, when a certain bank needs to analyze a product, the product WO lagged%, M2+ lagged% needs to be calculated by using a formula, and a threshold is used as a judgment basis, but there is no corresponding preset template in the knowledge network platform, and corresponding data cannot be called from a data source through the template, and a user can add a custom script into the calculation formula by using the two methods, run the custom script to obtain data such as the dead amount and the open account recovery amount in the month, and output corresponding data of the product WOlagged% and M2+ lagged%.
In another embodiment, the data source meeting the financial business requirement is output by a knowledge graph of a chart visualization.
In the above step S3 and step S4, the data source meeting the financial service requirement is matched according to the preset template or the custom script for output, specifically:
preprocessing the data source and converting the data source into a data set with a preset specification;
the data format of the data source (data set) comprises an electronic form, a relational database, XML, CSV, JSON and the like, and for the MySQL data source, related data is imported through parameters such as URL, database name, user name, password and the like of a specified database server, wherein the related data comprises data with various different data formats converted into a unified preset format, and the data format is standardized so that a subsequent data set can directly generate a matched knowledge network according to a script.
And running the changed custom script or the preset template to match the corresponding data set according to the financial service requirement, classifying the data set according to the knowledge point attribute of the changed custom script or the preset template, and generating a knowledge graph in a chart visualization mode to output.
The data sets are classified according to the self-defined script or the preset template according to the attribute of the knowledge points (for example, the knowledge points related in the script or the template are one-dimensional or several-dimensional in the name, type, subset or similar words of the financial business requirement), and the knowledge points matched with the financial business requirement are called out to generate the knowledge map output in a form of visual diagram, so that a user can conveniently and clearly view information, and the user can make a decision subsequently.
Referring to fig. 3, a block diagram of a knowledge network management device based on financial services according to an embodiment of the present invention is shown; the method comprises the following steps:
theacquisition module 1 is used for acquiring input financial business requirements;
thedetection module 2 is used for detecting whether a corresponding custom script exists according to the input financial service requirement;
and the custom module 3 is used for editing the processing logic of the custom script change script on the data when the custom script is detected to match the data source meeting the financial business requirement and output the data source.
Please refer to fig. 4, which is a block diagram illustrating a complete structure of a knowledge network management device based on financial services according to an embodiment of the present invention; the method comprises the following steps:
theacquisition module 1 is used for acquiring input financial business requirements;
thedetection module 2 is used for detecting whether a corresponding custom script exists according to the input financial service requirement;
the custom module 3 is used for editing the processing logic of the custom script change script on the data when the custom script is detected, so as to match the data source meeting the financial business requirements for output;
and the template presetting module 4 is used for matching a preset template in the knowledge network platform according to the financial service requirement and matching a data source meeting the financial service requirement according to the preset template for outputting when the user-defined script is not detected.
In this embodiment, the data processing device executes the system or the method, and specific functions and technical effects are described with reference to the above embodiments, which are not described herein again.
An embodiment of the present application further provides an apparatus, which may include: one or more processors; and one or more machine readable media having instructions stored thereon that, when executed by the one or more processors, cause the apparatus to perform the method of fig. 1. In practical applications, the device may be used as a terminal device, and may also be used as a server, where examples of the terminal device may include: the mobile terminal includes a smart phone, a tablet computer, an electronic book reader, an MP3 (Moving Picture Experts Group Audio Layer III) player, an MP4 (Moving Picture Experts Group Audio Layer IV) player, a laptop, a vehicle-mounted computer, a desktop computer, a set-top box, an intelligent television, a wearable device, and the like.
The present embodiment also provides a non-volatile readable storage medium, where one or more modules (programs) are stored in the storage medium, and when the one or more modules are applied to a device, the device may execute instructions (instructions) included in the data processing method in fig. 4 according to the present embodiment.
Fig. 5 is a schematic diagram of a hardware structure of a terminal device according to an embodiment of the present application. As shown, the terminal device may include: aninput device 1100, afirst processor 1101, anoutput device 1102, afirst memory 1103, and at least onecommunication bus 1104. Thecommunication bus 1104 is used to implement communication connections between the elements. Thefirst memory 1103 may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and thefirst memory 1103 may store various programs for performing various processing functions and implementing the method steps of the present embodiment.
Alternatively, thefirst processor 1101 may be, for example, a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components, and thefirst processor 1101 is coupled to theinput device 1100 and theoutput device 1102 through a wired or wireless connection.
Optionally, theinput device 1100 may include a variety of input devices, such as at least one of a user-oriented user interface, a device-oriented device interface, a software programmable interface, a camera, and a sensor. Optionally, the device interface facing the device may be a wired interface for data transmission between devices, or may be a hardware plug-in interface (e.g., a USB interface, a serial port, etc.) for data transmission between devices; optionally, the user-facing user interface may be, for example, a user-facing control key, a voice input device for receiving voice input, and a touch sensing device (e.g., a touch screen with a touch sensing function, a touch pad, etc.) for receiving user touch input; optionally, the programmable interface of the software may be, for example, an entry for a user to edit or modify a program, such as an input pin interface or an input interface of a chip; theoutput devices 1102 may include output devices such as a display, audio, and the like.
In this embodiment, the processor of the terminal device includes a function for executing each module of the speech recognition apparatus in each device, and specific functions and technical effects may refer to the above embodiments, which are not described herein again.
Fig. 6 is a schematic hardware structure diagram of a terminal device according to an embodiment of the present application. FIG. 6 is a specific embodiment of the implementation of FIG. 5. As shown, the terminal device of the present embodiment may include asecond processor 1201 and asecond memory 1202.
Thesecond processor 1201 executes the computer program code stored in thesecond memory 1202 to implement the method described in fig. 4 in the above embodiment.
Thesecond memory 1202 is configured to store various types of data to support operations at the terminal device. Examples of such data include instructions for any application or method operating on the terminal device, such as messages, pictures, videos, and so forth. Thesecond memory 1202 may include a Random Access Memory (RAM) and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
Optionally, asecond processor 1201 is provided in theprocessing assembly 1200. The terminal device may further include:communication component 1203,power component 1204,multimedia component 1205,speech component 1206, input/output interfaces 1207, and/orsensor component 1208. The specific components included in the terminal device are set according to actual requirements, which is not limited in this embodiment.
Theprocessing component 1200 generally controls the overall operation of the terminal device. Theprocessing assembly 1200 may include one or moresecond processors 1201 to execute instructions to perform all or part of the steps of the data processing method described above. Further, theprocessing component 1200 can include one or more modules that facilitate interaction between theprocessing component 1200 and other components. For example, theprocessing component 1200 can include a multimedia module to facilitate interaction between themultimedia component 1205 and theprocessing component 1200.
Thepower supply component 1204 provides power to the various components of the terminal device. Thepower components 1204 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for the terminal device.
Themultimedia components 1205 include a display screen that provides an output interface between the terminal device and the user. In some embodiments, the display screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the display screen includes a touch panel, the display screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
Thevoice component 1206 is configured to output and/or input voice signals. For example, thevoice component 1206 includes a Microphone (MIC) configured to receive external voice signals when the terminal device is in an operational mode, such as a voice recognition mode. The received speech signal may further be stored in thesecond memory 1202 or transmitted via thecommunication component 1203. In some embodiments, thespeech component 1206 further comprises a speaker for outputting speech signals.
The input/output interface 1207 provides an interface between theprocessing component 1200 and peripheral interface modules, which may be click wheels, buttons, etc. These buttons may include, but are not limited to: a volume button, a start button, and a lock button.
Thesensor component 1208 includes one or more sensors for providing various aspects of status assessment for the terminal device. For example, thesensor component 1208 may detect an open/closed state of the terminal device, relative positioning of the components, presence or absence of user contact with the terminal device. Thesensor assembly 1208 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact, including detecting the distance between the user and the terminal device. In some embodiments, thesensor assembly 1208 may also include a camera or the like.
Thecommunication component 1203 is configured to facilitate communications between the terminal device and other devices in a wired or wireless manner. The terminal device may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In one embodiment, the terminal device may include a SIM card slot therein for inserting a SIM card therein, so that the terminal device may log onto a GPRS network to establish communication with the server via the internet.
As can be seen from the above, thecommunication component 1203, thevoice component 1206, the input/output interface 1207 and thesensor component 1208 referred to in the embodiment of fig. 6 can be implemented as the input device in the embodiment of fig. 5.
The foregoing embodiments are merely illustrative of the principles and utilities of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or change the above-mentioned embodiments without departing from the spirit and scope of the present invention. Accordingly, it is intended that all equivalent modifications or changes which can be made by those skilled in the art without departing from the spirit and technical spirit of the present invention be covered by the claims of the present invention.