WO2021057064A1 - Data interaction conversion method and apparatus based on artificial intelligence, device, and medium - Google Patents

Data interaction conversion method and apparatus based on artificial intelligence, device, and medium Download PDF

Info

Publication number
WO2021057064A1
WO2021057064A1 PCT/CN2020/093592 CN2020093592W WO2021057064A1 WO 2021057064 A1 WO2021057064 A1 WO 2021057064A1 CN 2020093592 W CN2020093592 W CN 2020093592W WO 2021057064 A1 WO2021057064 A1 WO 2021057064A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
conversion
field
converter
interactive
Prior art date
Application number
PCT/CN2020/093592
Other languages
French (fr)
Chinese (zh)
Inventor
杨冬振
徐志花
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021057064A1 publication Critical patent/WO2021057064A1/en

Links

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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • 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/23Updating
    • 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

Definitions

  • the embodiments of the present application relate to the field of data conversion technology, in particular, an artificial intelligence-based data interactive conversion method, device, equipment, and storage medium.
  • the inventor realizes that in the process of data interaction between systems, when the data needs to be processed for data conversion, a lot of redundant codes will be created.
  • the mapping relationship is modified, the program code needs to be modified, which makes the processing process very inconvenient. .
  • the technical problem to be solved by the embodiments of this application is to provide an artificial intelligence-based data interactive conversion method, device, equipment and storage medium, which can reduce the generation of redundant codes and realize flexible configuration of data conversion through database operations. And dynamic modification.
  • the artificial intelligence-based data interactive conversion method described in the embodiments of the present application adopts the following technical solutions.
  • An artificial intelligence-based data interactive conversion method including: receiving interactive data to be converted; obtaining a data conversion instruction for processing the interactive data, and invoking a data converter in response to the data conversion instruction, the data conversion A conversion requirement is set in the instruction; the parameter table of the data converter is configured based on the conversion requirement to update the data converter; the data conversion process is performed on the interactive data through the updated data converter to obtain the target The interactive conversion data required by the user.
  • the artificial intelligence-based data interactive conversion method described in the embodiments of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes and making data conversion only necessary for data conversion.
  • the converter Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
  • an embodiment of the present application also provides an artificial intelligence-based data interactive conversion device, which adopts the following technical solutions.
  • An artificial intelligence-based data interactive conversion device includes: a data receiving module for receiving interactive data to be converted; an instruction obtaining module for obtaining a data conversion instruction for processing the interactive data, and responding to the The data conversion instruction calls the data converter, and the conversion requirement is set in the data conversion instruction; the converter update module is used to configure the parameter table of the data converter based on the conversion requirement to update the data converter; The conversion module is configured to perform data conversion processing on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
  • the artificial intelligence-based data interactive conversion device described in the embodiment of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes, so that only data conversion is required for data conversion.
  • the converter Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
  • the embodiments of the present application also provide a computer device, which adopts the following technical solutions.
  • a computer device including a memory and a processor, the memory is stored with a computer program, and the processor implements the artificial intelligence-based data interactive conversion method as described in any one of the above technical solutions when the computer program is executed. Steps, for example, the following steps are implemented: receiving interactive data to be converted; acquiring a data conversion instruction for processing the interactive data, and invoking a data converter in response to the data conversion instruction, the data conversion instruction is provided with a conversion Requirements; configure the parameter table of the data converter based on the conversion requirements to update the data converter; perform data conversion processing on the interaction data through the updated data converter to obtain the interaction required by the target user Convert the data.
  • the embodiments of the present application also provide a computer-readable storage medium, which adopts the following technical solutions.
  • a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the artificial intelligence-based data interactive conversion method described in any one of the above technical solutions Steps, for example, the following steps are implemented: receiving interactive data to be converted; acquiring a data conversion instruction for processing the interactive data, and invoking a data converter in response to the data conversion instruction, the data conversion instruction is provided with a conversion Requirements; configure the parameter table of the data converter based on the conversion requirements to update the data converter; perform data conversion processing on the interaction data through the updated data converter to obtain the interaction required by the target user Convert the data.
  • the embodiment of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes, so that the data converter only needs to be called once during data conversion, and the data converter can be operated through the database. Realize flexible configuration and dynamic modification, improve conversion efficiency and better adapt to the needs of data conversion.
  • Fig. 1 is an exemplary system architecture diagram to which an embodiment of the application can be applied.
  • Fig. 2 is a flowchart of an embodiment of the artificial intelligence-based data interactive conversion method in an embodiment of the application.
  • FIG. 3 is a schematic structural diagram of an embodiment of the artificial intelligence-based data interaction conversion device in an embodiment of the application.
  • Fig. 4 is a schematic structural diagram of an embodiment of a computer device in an embodiment of the application.
  • the technical solution of the present application can be applied to the field of artificial intelligence or big data technology to realize data conversion between database architectures.
  • the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105.
  • the network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105.
  • the network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
  • the user can use the terminal devices 101, 102, and 103 to interact with the server 105 through the network 104 to receive or send messages and so on.
  • Various communication client applications such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social platform software, may be installed on the terminal devices 101, 102, and 103.
  • the terminal devices 101, 102, 103 can be various electronic devices with display screens and support for web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion picture experts compress standard audio layer 3), MP4 ( Moving Picture Experts Group Audio Layer IV, moving picture experts compress standard audio layer 4) Players, laptops and desktop computers, etc.
  • MP3 players Motion Picture Experts Group Audio Layer III, motion picture experts compress standard audio layer 3
  • MP4 Moving Picture Experts Group Audio Layer IV, moving picture experts compress standard audio layer 4
  • Players laptops and desktop computers, etc.
  • the server 105 may be a server that provides various services, for example, a background server that provides support for pages displayed on the terminal devices 101, 102, and 103.
  • the artificial intelligence-based data interactive conversion method provided in the embodiments of the present application is generally executed by a server/terminal device. Accordingly, the artificial intelligence-based data interactive conversion device is generally set in the server/terminal device.
  • terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks, and servers.
  • the artificial intelligence-based data interactive conversion method includes the following steps.
  • Step 201 Receive interactive data to be converted.
  • the current server interaction terminal first receives interaction data from other interaction terminals.
  • the interaction data does not conform to the data storage of the database in the current server. Form, so it needs to be processed by data conversion.
  • Step 202 Obtain a data conversion instruction for processing the interactive data, and call a data converter in response to the data conversion instruction, and a conversion requirement is set in the data conversion instruction.
  • the data conversion instruction used to execute the data conversion process is generally issued by the target user after editing according to requirements, and is received by the current server to respond.
  • a conversion requirement for data conversion of the interactive data will be set in it according to actual needs.
  • the data converter may include several types of sub-converters. When the data converter is called, one or more sub-converters in the data converter may be called to perform data based on the type of the sub-converter specified in the conversion requirement. Conversion.
  • the data converter can be called only once to meet various requirements of data conversion, thereby reducing redundant codes and improving conversion efficiency.
  • the step of obtaining the data conversion instruction for processing the interactive data in step 202 includes: sequentially obtaining the system identifiers of the sender and the receiver during data interaction, wherein the receiver Is the current server, and the sender is another server that sends the interaction data to the current server; according to the system identifiers of the sender and the receiver, the preset interaction scene table is matched in sequence; When a standard scene is matched, a data conversion instruction corresponding to the matched standard scene is obtained.
  • the system can configure an interaction scene table for this type of standard interaction scene, in the interaction scene table as specified
  • the system identifiers of the sender and receiver of the interactive data are written sequentially, and the system identifiers are used to distinguish specific interactive parties. Among them, the writing order of the system identification of the sender and the receiver can be set arbitrarily.
  • a matching data conversion instruction can be preset for each type of standard scene. If the current scene is the same as a certain type of preset standard scene during mass data interaction, the system can automatically send the data conversion instruction corresponding to this type of standard scene by triggering the instruction program preset by the system. And the data conversion instruction is obtained from the interactive receiver. If the conversion requirement of the interactive data is consistent with the conversion requirement in the preset data conversion instruction, the data conversion instruction can be directly responded to and the subsequent data conversion step can be executed.
  • the data conversion requirements when the interactive data is sent from the A system to the B system are generally different from the data conversion requirements when the B system is sent to the A system. Therefore, the order of obtaining the system identification of the sender and the receiver when the data is exchanged, It needs to be consistent with the order of the system identifiers of the sender and receiver configured in the interaction scene table, and then matches in the interaction scene table according to the order.
  • the artificial intelligence-based data interaction conversion method further includes the step of: sending a confirmation instruction to the target user for the conversion request, the confirmation The instruction is used to confirm whether the conversion requirement in the data conversion instruction is the same as the conversion requirement expected by the target user; if it is different, the expected conversion requirement is obtained from the target user, and the conversion requirement in the data conversion instruction The conversion requirement is replaced with the conversion requirement expected by the target user to update the data conversion instruction.
  • the current server sends a confirmation command to the target user. If the target user confirms that the conversion requirements in the data conversion command meet the current requirements, the data conversion command can be used by the current server to perform subsequent steps, and if the conversion requirements match those expected by the target user If the conversion requirements are different, it is necessary to reacquire the conversion requirements expected by the target user, and then replace the conversion requirements in the data conversion instructions.
  • the data conversion requirements are the same, but if there is a need to change the conversion requirements during the interaction process, the same needs to be changed.
  • the post-demand conversion requirements shall prevail. Reset the conversion requirements in the conversion instructions to update the conversion instructions to meet the current requirements.
  • the electronic device (such as the server/terminal device shown in FIG. 1) on which the artificial intelligence-based data interactive conversion method runs can receive data sent by the user through a wired connection or a wireless connection. Conversion instructions.
  • the above-mentioned wireless connection methods can include but are not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, as well as other wireless connection methods that are currently known or developed in the future.
  • Step 203 Configure the parameter table of the data converter based on the conversion requirement to update the data converter.
  • the data converter can be regarded as a tool specially used for data conversion of the data in the database. It pre-defines a parameter table for performing data conversion in the database, so that after calling the data converter, the parameter table can be accessed, and data conversion processing can be performed through the parameter table. Before performing the data conversion process, the parameter table needs to be updated according to the current conversion requirements, so that the data converter is applied to the data conversion in the current interactive scene.
  • you need to add, modify, or delete a certain data conversion processing-related setting you can operate by modifying the database configuration without modifying the code, which can facilitate flexible configuration for target users and effectively reduce the generation of redundant codes.
  • the data converter is configured with several different types of sub-converters.
  • the artificial intelligence-based data interactive conversion method further includes the step of: storing all data in a database.
  • the data converter establishes a parameter table; configures a number of functional fields in the parameter table, and the functional fields include a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, and a For the third field indicating the source of the exchanged data and the fourth field for indicating the operating status of different types of converters; the association relationship between the different functional fields is set.
  • the process of updating the data converter is a process of updating the parameter values of the corresponding fields in the parameter table according to the current conversion requirements, so that the data converter is applied to the data conversion process in the current interactive scene.
  • the function field includes at least a first field for identifying the type of molecular converter, a second field for storing conversion rules, a third field for indicating the source of the exchanged data, and the operating state of different types of converters.
  • the fourth field In the specific implementation of the embodiment of the present application, a plurality of spare function fields may be preset in the established parameter table for expansion when additional functions are needed.
  • parameter values such as "normal”, “time”, “amount”, and “regular expression” can be set to indicate different types of sub-conversions.
  • Device A number of other functional fields need to be associated with the first field indicating the type of the sub-converter to realize a complete data conversion function.
  • the common type sub-converter is used to perform simple data conversion on the common fields in the interactive data;
  • the time-type sub-converter is used to perform data conversion on the unified processing of interactive data representing time;
  • the amount-type sub-converter is used to perform The interactive data of the amount is processed uniformly for data conversion;
  • the regular expression type sub-converter is used to perform more complex data conversion on the interactive data according to the conversion rule represented by the regular conversion formula set under the second field.
  • parameter values can be pre-configured to specify the data conversion rule, or the conversion rule can be modified in real time and dynamically updated according to the conversion requirement in the data conversion instruction.
  • configure ⁇ "Y”:”1","N":”2" in the second field ⁇ ” means that the Y in the corresponding data will be converted to 1, and N will be converted to 2.
  • the content to be updated should also include the parameters of the third field and the fourth field value.
  • part of the data to be converted in the exchanged data should be configured.
  • the data set corresponding to the data conversion can be written in it, or it can be configured as the location where the data is located.
  • Specific path In the process of data conversion processing, all interactive data under the specific path will be converted according to the conversion rules.
  • the specific parameter values can be dynamically modified in real time to adapt to changes in conversion requirements.
  • "Y" indicates that the operating state of the sub-converter is active
  • "N” indicates that the operating state of the sub-converter is inactive.
  • the step 2033 includes: for each parameter value of the first field, one or more parameter values are associated under the second field, so that each sub The converter is configured with one or more conversion rules.
  • the parameter value needs to be modified under the corresponding second field. If the conversion rule needs to be modified and updated every time the conversion rule changes, it will be a waste of time.
  • the conversion request specifies the type of the sub-converter and carries the conversion rule
  • the step 203 includes the step of matching the first in the parameter table based on the type of the sub-converter specified in the conversion request. If the parameter value of the field is matched with the parameter value of the second field based on the conversion rule specified in the conversion requirement, the parameter value of the second field is matched to confirm whether there is a parameter value that meets the conversion rule; if Yes, set the corresponding parameter value under the second field to the active state, and cancel other parameter values under the second field; if not, add an active parameter value under the second field to Record the conversion rule, and log out other parameter values under the second field.
  • the sub-converter type and conversion rule specified in the data conversion instruction first according to the sub-converter type Match the parameter value of the first field in the parameter table, and then match the parameter value under the second field associated with the parameter value.
  • the corresponding parameter value in the second field conforms to the conversion rule in the data conversion instruction, the corresponding parameter value is set to the active state as the current conversion rule, and all other parameter values as the historical conversion rule are cancelled to apply the data conversion
  • the conversion rules in the instruction update the parameter table.
  • the historical conversion rule can be matched first. If there is a match, the current conversion rule will be cancelled, recorded and marked as a historical conversion rule, and the matched historical conversion rule will be activated as the update After the conversion rules.
  • the historical conversion rules recorded under the sub-converter can also be displayed through a visual interactive interface for the user to directly select.
  • the conversion request specifies the execution sequence of the sub-converters
  • the step of configuring a number of function fields in the parameter table includes: configuring a function field for determining The fifth field of the execution order of the sub-converter.
  • the step of setting an association relationship between different function fields includes: associating a parameter value of the fifth field with each parameter value of the first field.
  • the step 203 includes: updating the parameter value of the fifth field in the parameter table based on the execution sequence of the sub-converters specified in the conversion requirement.
  • Step 204 Perform data conversion processing on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
  • the data conversion process can be conveniently performed through the data converter, and finally the interactive data is converted into the required data, and the data connection between the interactive systems is completed.
  • the artificial intelligence-based data interactive conversion method described in the embodiments of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes and making data conversion only necessary for data conversion.
  • the converter Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
  • the computer program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. When executed, it may include the procedures of the above-mentioned method embodiments.
  • the aforementioned storage medium may be a magnetic disk, an optical disk, a read-only storage memory (Read-Only Memory, ROM) and other non-volatile storage media, or random storage memory (Random Access Memory, RAM) etc.
  • FIG. 3 shows a schematic structural diagram of an embodiment of the artificial intelligence-based data interaction conversion apparatus in the embodiment of the present application.
  • this application provides an embodiment of an artificial intelligence-based data exchange conversion device.
  • the device embodiment corresponds to the method embodiment shown in FIG. Used in various electronic devices.
  • the artificial intelligence-based data interactive conversion device in this embodiment includes: a data receiving module 301; used to receive interactive data to be converted.
  • Instruction acquisition module 302 used to acquire a data conversion instruction for processing the interactive data, and call a data converter in response to the data conversion instruction, and the data conversion instruction is set with a conversion requirement.
  • Converter update module 303 configured to configure the parameter table of the data converter based on the conversion requirements to update the data converter.
  • Data conversion module 304 used to perform data conversion processing on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
  • the instruction acquisition module 302 further includes: a scene matching sub-module.
  • the scene matching submodule is used to sequentially obtain the system identifiers of the sender and the receiver during data interaction; sequentially match the preset interaction scene table according to the system identifiers of the sender and the receiver; when interacting with one of the interaction scene tables When the standard scene is matched, the data conversion instruction corresponding to the matched standard scene is obtained.
  • the receiver is a current server
  • the sender is another server that sends the interactive data to the current server.
  • the artificial intelligence-based data interaction conversion module further includes: an instruction confirmation module.
  • the instruction confirmation module is used to send a confirmation instruction for the conversion requirement to the target user, and the confirmation instruction is used to confirm all Whether the conversion requirement in the data conversion instruction is the same as the conversion requirement expected by the target user; if it is different, the expected conversion requirement is obtained from the target user, and the conversion requirement in the data conversion instruction is replaced with the target user
  • the desired conversion requires to update the data conversion instruction.
  • the artificial intelligence-based data interaction conversion module further includes: a converter configuration module.
  • the data converter is configured with several different types of sub-converters.
  • the converter configuration module uses In the database, a parameter table is established for the data converter; a number of function fields are configured in the parameter table; and the association relationship between different function fields is set.
  • the function field includes a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, a third field for indicating the source of exchanged data, and a third field for indicating the operation of different types of converters.
  • the fourth field of the status is a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, a third field for indicating the source of exchanged data, and a third field for indicating the operation of different types of converters.
  • the converter configuration module is used to associate one or more parameter values under the second field for each parameter value of the first field, so that each parameter value is One sub-converter is configured with one or more conversion rules.
  • the conversion request specifies the type of the sub-converter and carries conversion rules
  • the converter update module 303 is further configured to match the parameter table based on the type of the sub-converter specified in the conversion request.
  • the parameter value is used to record the conversion rule, and to cancel other parameter values under the second field.
  • the conversion request specifies the execution order of the sub-converters
  • the converter configuration module is used to configure a function field for determining the execution order of the sub-converters.
  • the fifth field Associate a parameter value of the fifth field with each parameter value of the first field.
  • the converter update module 303 is configured to update the parameter value of the fifth field in the parameter table based on the execution sequence of the sub-converters specified in the conversion request.
  • the artificial intelligence-based data interactive conversion device described in the embodiment of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes, so that only data conversion is required for data conversion.
  • the converter Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
  • FIG. 4 is a block diagram of the basic structure of the computer device in this embodiment.
  • the computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are mutually communicatively connected via a system bus. It should be pointed out that the figure only shows the computer device 6 with components 61-63, but it should be understood that it is not required to implement all of the illustrated components, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions.
  • Its hardware includes, but is not limited to, a microprocessor, a dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (Field-Programmable Gate Array, FPGA), digital processor (Digital Signal Processor, DSP), embedded equipment, etc.
  • ASIC Application Specific Integrated Circuit
  • FPGA Field-Programmable Gate Array
  • DSP Digital Signal Processor
  • the computer device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the computer device can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device.
  • the memory 61 includes at least one type of readable storage medium, the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc.
  • the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6.
  • the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk equipped on the computer device 6, a smart memory card (Smart Memory Card).
  • the memory 61 may also include both the internal storage unit of the computer device 6 and its external storage device.
  • the memory 61 is generally used to store an operating system and various application software installed in the computer device 6, such as program code of a data interactive conversion method based on artificial intelligence.
  • the memory 61 can also be used to temporarily store various types of data that have been output or will be output.
  • the processor 62 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips.
  • the processor 62 is generally used to control the overall operation of the computer device 6.
  • the processor 62 is configured to run the program code or process data stored in the memory 61, for example, run the program code of the artificial intelligence-based data interactive conversion method.
  • the network interface 63 may include a wireless network interface or a wired network interface, and the network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
  • This application also provides another implementation manner, that is, a computer-readable storage medium storing a data interaction conversion program based on artificial intelligence, and the artificial intelligence-based data interaction conversion program can be Is executed by at least one processor, so that the at least one processor executes the steps of the above-mentioned artificial intelligence-based data interactive conversion method.
  • the computer-readable storage medium may be a non-volatile storage medium or a volatile storage medium.
  • the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present application.
  • a terminal device which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.
  • the disclosed device and method may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the division of the modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules or components may be combined. Or it can be integrated into another system, or some features can be ignored or not implemented.
  • the modules or components may or may not be physically separated, and the components displayed as modules or components may or may not be physical modules, and may be located in one place or distributed on multiple network units. Some or all of the modules or components may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Provided are a data interaction conversion method and apparatus based on artificial intelligence, a device, and a storage medium, wherein same relate to the technical field of data conversion. The method comprises: receiving interaction data to be converted (201); acquiring a data conversion instruction for processing the interaction data, and calling a data converter in response to the data conversion instruction, wherein the data conversion instruction is provided with a conversion requirement (202); configuring a parameter table of the data converter on the basis of the conversion requirement, so as to update the data converter (203); and executing data conversion processing on the interaction data through the updated data converter, so as to acquire interaction conversion data required by a target user (204). According to the method, multiple types of sub-converters can be configured in a parameter table of a data converter, such that redundant codes can be reduced; and during data conversion, the data converter only needs to be called once, and flexible configuration and dynamic modification can be achieved through a database operation, thereby improving the conversion efficiency and better meeting data conversion requirements.

Description

基于人工智能的数据交互转换方法、装置、设备及介质Artificial intelligence-based data interactive conversion method, device, equipment and medium
本申请要求于2019年9月23日提交中国专利局、申请号为201910898998.4,发明名称为“基于人工智能的数据交互转换方法、装置、设备及介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on September 23, 2019, the application number is 201910898998.4, and the invention title is "artificial intelligence-based data interactive conversion method, device, equipment and medium", and its entire content Incorporated in this application by reference.
技术领域Technical field
本申请实施例涉及数据转换技术领域,特别是一种基于人工智能的数据交互转换方法、装置、设备及存储介质。The embodiments of the present application relate to the field of data conversion technology, in particular, an artificial intelligence-based data interactive conversion method, device, equipment, and storage medium.
背景技术Background technique
软件的开发和实际应用中,各个系统之间的数据交互是最常见的行为,此时数据交互往往发生在不同的数据库架构之间,而不同的数据库架构中数据的存储形式都不相同,在数据交互过程中,获取的数据中部分字段不能直接应用,需要对数据进行数据转换,以使数据适配交互两端的接收方。数据转换是将数据从一种表示形式变为另一种表现形式的过程。In software development and practical applications, data interaction between various systems is the most common behavior. At this time, data interaction often occurs between different database architectures, and the data storage forms in different database architectures are different. In the process of data interaction, some fields in the acquired data cannot be directly applied, and the data needs to be converted to adapt the data to the receivers at both ends of the interaction. Data conversion is the process of changing data from one form of representation to another.
发明人意识到,各系统之间进行数据交互的过程中,在需要对数据进行数据转换的处理时,会造成很多冗余代码,当修改映射关系时需要修改程序代码,使得处理过程非常不方便。The inventor realizes that in the process of data interaction between systems, when the data needs to be processed for data conversion, a lot of redundant codes will be created. When the mapping relationship is modified, the program code needs to be modified, which makes the processing process very inconvenient. .
技术问题technical problem
本申请实施例所要解决的技术问题是,提供一种基于人工智能的数据交互转换方法、装置、设备及存储介质,能减少冗余代码的产生,通过数据库操作便能实现对数据转换的灵活配置和动态修改。The technical problem to be solved by the embodiments of this application is to provide an artificial intelligence-based data interactive conversion method, device, equipment and storage medium, which can reduce the generation of redundant codes and realize flexible configuration of data conversion through database operations. And dynamic modification.
技术解决方案Technical solutions
为了解决上述技术问题,本申请实施例所述的一种基于人工智能的数据交互转换方法,采用了如下所述的技术方案。In order to solve the above technical problems, the artificial intelligence-based data interactive conversion method described in the embodiments of the present application adopts the following technical solutions.
一种基于人工智能的数据交互转换方法,包括:接收待转换的交互数据;获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取目标用户所需的交互转换数据。An artificial intelligence-based data interactive conversion method, including: receiving interactive data to be converted; obtaining a data conversion instruction for processing the interactive data, and invoking a data converter in response to the data conversion instruction, the data conversion A conversion requirement is set in the instruction; the parameter table of the data converter is configured based on the conversion requirement to update the data converter; the data conversion process is performed on the interactive data through the updated data converter to obtain the target The interactive conversion data required by the user.
本申请实施例所述的基于人工智能的数据交互转换方法,能够在数据转换器的参数表中配置多种类型的子转换器,从而能减少冗余代码,使进行数据转换时只需要对数据转换器调用一次,便能通过数据库操作便能实现灵活配置、动态修改,提高了转换效率并能较好地适应数据转换的需求。The artificial intelligence-based data interactive conversion method described in the embodiments of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes and making data conversion only necessary for data conversion. Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
为了解决上述技术问题,本申请实施例还提供一种基于人工智能的数据交互转换装置,采用了如下所述的技术方案。In order to solve the above technical problems, an embodiment of the present application also provides an artificial intelligence-based data interactive conversion device, which adopts the following technical solutions.
一种基于人工智能的数据交互转换装置,包括:数据接收模块,用于接收待转换的交互数据;指令获取模块,用于获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;转换器更新模块,用于基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;数据转换模块,用于通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取所述目标用户所需的交互转换数据。An artificial intelligence-based data interactive conversion device includes: a data receiving module for receiving interactive data to be converted; an instruction obtaining module for obtaining a data conversion instruction for processing the interactive data, and responding to the The data conversion instruction calls the data converter, and the conversion requirement is set in the data conversion instruction; the converter update module is used to configure the parameter table of the data converter based on the conversion requirement to update the data converter; The conversion module is configured to perform data conversion processing on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
本申请实施例所述的基于人工智能的数据交互转换装置,能够在数据转换器的参数表中配置多种类型的子转换器,从而能减少冗余代码,使进行数据转换时只需要对数据转换器调用一次,便能通过数据库操作便能实现灵活配置、动态修改,提高了转换效率并能较好地适应数据转换的需求。The artificial intelligence-based data interactive conversion device described in the embodiment of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes, so that only data conversion is required for data conversion. Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
为了解决上述技术问题,本申请实施例还提供一种计算机设备,采用了如下所述的技术方案。In order to solve the above technical problems, the embodiments of the present application also provide a computer device, which adopts the following technical solutions.
一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器执行所述计算机程序时实现如上述任意一项技术方案所述的基于人工智能的数据交互转换方法的步骤,例如,实现以下步骤:接收待转换的交互数据;获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取目标用户所需的交互转换数据。A computer device, including a memory and a processor, the memory is stored with a computer program, and the processor implements the artificial intelligence-based data interactive conversion method as described in any one of the above technical solutions when the computer program is executed. Steps, for example, the following steps are implemented: receiving interactive data to be converted; acquiring a data conversion instruction for processing the interactive data, and invoking a data converter in response to the data conversion instruction, the data conversion instruction is provided with a conversion Requirements; configure the parameter table of the data converter based on the conversion requirements to update the data converter; perform data conversion processing on the interaction data through the updated data converter to obtain the interaction required by the target user Convert the data.
为了解决上述技术问题,本申请实施例还提供一种计算机可读存储介质,采用了如下所述的技术方案。In order to solve the above technical problems, the embodiments of the present application also provide a computer-readable storage medium, which adopts the following technical solutions.
一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如上述任意一项技术方案所述的基于人工智能的数据交互转换方法的步骤,例如,实现以下步骤:接收待转换的交互数据;获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取目标用户所需的交互转换数据。A computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, it implements the artificial intelligence-based data interactive conversion method described in any one of the above technical solutions Steps, for example, the following steps are implemented: receiving interactive data to be converted; acquiring a data conversion instruction for processing the interactive data, and invoking a data converter in response to the data conversion instruction, the data conversion instruction is provided with a conversion Requirements; configure the parameter table of the data converter based on the conversion requirements to update the data converter; perform data conversion processing on the interaction data through the updated data converter to obtain the interaction required by the target user Convert the data.
有益效果Beneficial effect
本申请实施例能够在数据转换器的参数表中配置多种类型的子转换器,从而能减少冗余代码,使进行数据转换时只需要对数据转换器调用一次,便能通过数据库操作便能实现灵活配置、动态修改,提高了转换效率并能较好地适应数据转换的需求。The embodiment of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes, so that the data converter only needs to be called once during data conversion, and the data converter can be operated through the database. Realize flexible configuration and dynamic modification, improve conversion efficiency and better adapt to the needs of data conversion.
附图说明Description of the drawings
图1为本申请实施例可以应用于其中的示例性系统架构图。Fig. 1 is an exemplary system architecture diagram to which an embodiment of the application can be applied.
图2为本申请实施例中所述基于人工智能的数据交互转换方法的一个实施例的流程图。Fig. 2 is a flowchart of an embodiment of the artificial intelligence-based data interactive conversion method in an embodiment of the application.
图3为本申请实施例中所述基于人工智能的数据交互转换装置的一个实施例的结构示意图。FIG. 3 is a schematic structural diagram of an embodiment of the artificial intelligence-based data interaction conversion device in an embodiment of the application.
图4为本申请实施例中计算机设备的一个实施例的结构示意图。Fig. 4 is a schematic structural diagram of an embodiment of a computer device in an embodiment of the application.
本发明的实施方式Embodiments of the present invention
在本申请的权利要求书、说明书以及说明书附图中的术语,诸如“第一”和“第二”等之类的关系术语仅仅用来将一个实体/操作/对象与另一个实体/操作/对象区分开来,而不一定要求或者暗示这些实体/操作/对象之间存在任何这种实际的关系或者顺序。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其他实施例相结合。The terms in the claims, specification and drawings of this application, such as "first" and "second" and other relational terms are only used to associate one entity/operation/object with another entity/operation/ The distinction between objects does not necessarily require or imply any such actual relationship or order between these entities/operations/objects. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
本申请的技术方案可应用于人工智能领域或大数据技术领域,以实现数据库架构之间数据转换。The technical solution of the present application can be applied to the field of artificial intelligence or big data technology to realize data conversion between database architectures.
如图1所示,系统架构100可以包括终端设备101、102、103,网络104和服务器105。网络104用以在终端设备101、102、103和服务器105之间提供通信链路的介质。网络104可以包括各种连接类型,例如有线、无线通信链路或者光纤电缆等等。As shown in FIG. 1, the system architecture 100 may include terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links, or fiber optic cables, and so on.
用户可以使用终端设备101、102、103通过网络104与服务器105交互,以接收或发送消息等。终端设备101、102、103上可以安装有各种通讯客户端应用,例如网页浏览器应用、购物类应用、搜索类应用、即时通信工具、邮箱客户端、社交平台软件等。The user can use the terminal devices 101, 102, and 103 to interact with the server 105 through the network 104 to receive or send messages and so on. Various communication client applications, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, and social platform software, may be installed on the terminal devices 101, 102, and 103.
终端设备101、102、103可以是具有显示屏并且支持网页浏览的各种电子设备,包括但不限于智能手机、平板电脑、电子书阅读器、MP3播放器( Moving Picture Experts Group Audio Layer III,动态影像专家压缩标准音频层面3 )、MP4( Moving Picture Experts Group Audio Layer IV,动态影像专家压缩标准音频层面4 )播放器、膝上型便携计算机和台式计算机等等。The terminal devices 101, 102, 103 can be various electronic devices with display screens and support for web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, motion picture experts compress standard audio layer 3), MP4 ( Moving Picture Experts Group Audio Layer IV, moving picture experts compress standard audio layer 4) Players, laptops and desktop computers, etc.
服务器105可以是提供各种服务的服务器,例如对终端设备101、102、103上显示的页面提供支持的后台服务器。The server 105 may be a server that provides various services, for example, a background server that provides support for pages displayed on the terminal devices 101, 102, and 103.
需要说明的是,本申请实施例所提供的基于人工智能的数据交互转换方法一般由服务器/终端设备执行,相应地,基于人工智能的数据交互转换装置一般设置于服务器/终端设备中。It should be noted that the artificial intelligence-based data interactive conversion method provided in the embodiments of the present application is generally executed by a server/terminal device. Accordingly, the artificial intelligence-based data interactive conversion device is generally set in the server/terminal device.
应该理解,图1中的终端设备、网络和服务器的数目仅仅是示意性的。根据实现需要,可以具有任意数目的终端设备、网络和服务器。It should be understood that the numbers of terminal devices, networks, and servers in FIG. 1 are merely illustrative. According to implementation needs, there can be any number of terminal devices, networks, and servers.
继续参考图2,示出了本申请实施例中所述基于人工智能的数据交互转换方法的一个实施例的流程图。所述基于人工智能的数据交互转换方法,包括以下步骤。Continuing to refer to FIG. 2, there is shown a flowchart of an embodiment of the artificial intelligence-based data interactive conversion method in the embodiment of the present application. The artificial intelligence-based data interactive conversion method includes the following steps.
步骤201:接收待转换的交互数据。Step 201: Receive interactive data to be converted.
在本申请实施例中,在数据的交互过程中,当前服务器交互端首先从其它交互端接收到交互数据,但由于两个交互端的数据库架构不同,该交互数据不符合当前服务器中数据库的数据存储形式,因此需要对其进行数据转换处理。In the embodiment of the present application, during the data interaction process, the current server interaction terminal first receives interaction data from other interaction terminals. However, due to the different database architectures of the two interaction terminals, the interaction data does not conform to the data storage of the database in the current server. Form, so it needs to be processed by data conversion.
步骤202:获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求。Step 202: Obtain a data conversion instruction for processing the interactive data, and call a data converter in response to the data conversion instruction, and a conversion requirement is set in the data conversion instruction.
用于执行所述数据转换处理的数据转换指令,一般由目标用户根据需求编辑后发出,由当前服务器接收后进行响应。而目标用户编辑所述数据转换指令时,会根据实际需求在其中设置对本次交互数据进行数据转换的转换要求。所述数据转换器中可以包括若干种类型的子转换器,调用数据转换器时,可以基于转换要求中所指明的子转换器的类型,调用数据转换器中的一个或多个子转换器进行数据转换。The data conversion instruction used to execute the data conversion process is generally issued by the target user after editing according to requirements, and is received by the current server to respond. When the target user edits the data conversion instruction, a conversion requirement for data conversion of the interactive data will be set in it according to actual needs. The data converter may include several types of sub-converters. When the data converter is called, one or more sub-converters in the data converter may be called to perform data based on the type of the sub-converter specified in the conversion requirement. Conversion.
通过该步骤可以实现只需调用一次数据转换器,便能满足数据转换的多种需求,从而减少了冗余代码,提高了转换效率。Through this step, it can be realized that the data converter can be called only once to meet various requirements of data conversion, thereby reducing redundant codes and improving conversion efficiency.
在本申请的一些实施例中,步骤202中所述获取用于处理所述交互数据的数据转换指令的步骤包括:依次获取数据交互时发送方和接收方的系统标识,其中,所述接收方为当前服务器,所述发送方为向所述当前服务器发送所述交互数据的其他服务器;根据发送方和接收方的系统标识依次匹配预设的交互场景表;当与所述交互场景表中的一个标准场景相匹配时,获取与匹配到的标准场景所对应的数据转换指令。In some embodiments of the present application, the step of obtaining the data conversion instruction for processing the interactive data in step 202 includes: sequentially obtaining the system identifiers of the sender and the receiver during data interaction, wherein the receiver Is the current server, and the sender is another server that sends the interaction data to the current server; according to the system identifiers of the sender and the receiver, the preset interaction scene table is matched in sequence; When a standard scene is matched, a data conversion instruction corresponding to the matched standard scene is obtained.
在一些固定了交互时发送方和接收方的数据交互场景中,由于交互双方均已确定,便可以在系统中配置关于该类标准交互场景的交互场景表,在所述交互场景表中按指定顺序写入交互数据的发送方和接收方的系统标识,所述系统标识用于区分特定的交互方。其中,发送方和接收方系统标识的写入顺序可以任意设置。In some data interaction scenarios where the sender and the receiver are fixed at the time of interaction, since both parties of the interaction have been determined, the system can configure an interaction scene table for this type of standard interaction scene, in the interaction scene table as specified The system identifiers of the sender and receiver of the interactive data are written sequentially, and the system identifiers are used to distinguish specific interactive parties. Among them, the writing order of the system identification of the sender and the receiver can be set arbitrarily.
而对应于交互场景表中的每类标准场景,可以分别为每类标准场景预先设置一个相匹配的数据转换指令。若进行大批量的数据交互时,当前场景同预设的某一类标准场景相同时,便可以通过触发由系统预先设置的指令程序,由系统自动发送与该类标准场景对应的数据转换指令,并在交互的接收方处获取到该数据转换指令。若交互数据的转换要求与预设的数据转换指令中的转换要求一致时,便可以直接响应所述数据转换指令,执行后续的数据转换步骤。Corresponding to each type of standard scene in the interactive scene table, a matching data conversion instruction can be preset for each type of standard scene. If the current scene is the same as a certain type of preset standard scene during mass data interaction, the system can automatically send the data conversion instruction corresponding to this type of standard scene by triggering the instruction program preset by the system. And the data conversion instruction is obtained from the interactive receiver. If the conversion requirement of the interactive data is consistent with the conversion requirement in the preset data conversion instruction, the data conversion instruction can be directly responded to and the subsequent data conversion step can be executed.
且交互数据由A系统发送至B系统时的数据转换要求,与由B系统发送至A系统时的数据转换要求一般并不相同,因此获取数据交互时发送方和接收方的系统标识的顺序,需与所述交互场景表中配置的发送方和接收方的系统标识的顺序一致,再根据该顺序在所述交互场景表中匹配。Moreover, the data conversion requirements when the interactive data is sent from the A system to the B system are generally different from the data conversion requirements when the B system is sent to the A system. Therefore, the order of obtaining the system identification of the sender and the receiver when the data is exchanged, It needs to be consistent with the order of the system identifiers of the sender and receiver configured in the interaction scene table, and then matches in the interaction scene table according to the order.
进一步的,所述获取与匹配到的标准场景所对应的数据转换指令的步骤之后,所述基于人工智能的数据交互转换方法还包括步骤:向目标用户发送对转换要求的确认指令,所述确认指令用于确认所述数据转换指令中的转换要求是否与目标用户所期望的转换要求相同;若不同,则从所述目标用户处获取其所期望的转换要求,将所述数据转换指令中的转换要求替换为目标用户所期望的转换要求以更新所述数据转换指令。Further, after the step of obtaining the data conversion instruction corresponding to the matched standard scene, the artificial intelligence-based data interaction conversion method further includes the step of: sending a confirmation instruction to the target user for the conversion request, the confirmation The instruction is used to confirm whether the conversion requirement in the data conversion instruction is the same as the conversion requirement expected by the target user; if it is different, the expected conversion requirement is obtained from the target user, and the conversion requirement in the data conversion instruction The conversion requirement is replaced with the conversion requirement expected by the target user to update the data conversion instruction.
与预设的交互场景表中的一个标准场景相匹配时获取到的数据转换指令,其转换要求可能与当前交互场景下目标用户期望的转换要求不一致,因此还需要对数据转换指令中的转换要求进行确认。当前服务器将确认指令发送给目标用户,若目标用户确认该数据转换指令中的转换要求符合当前需求,该数据转换指令便能用于当前服务器执行后续步骤,而若其转换要求与目标用户期望的转换要求不同,则需重新获取目标用户所期望的转换要求后,替换掉所述数据转换指令中的转换要求。The data conversion instruction obtained when it matches with a standard scene in the preset interactive scene table, its conversion requirements may not be consistent with the conversion requirements expected by the target user in the current interactive scene, so the conversion requirements in the data conversion instructions are also required Undergo verification. The current server sends a confirmation command to the target user. If the target user confirms that the conversion requirements in the data conversion command meet the current requirements, the data conversion command can be used by the current server to perform subsequent steps, and if the conversion requirements match those expected by the target user If the conversion requirements are different, it is necessary to reacquire the conversion requirements expected by the target user, and then replace the conversion requirements in the data conversion instructions.
且在本申请实施例中,短期时间内在同一交互场景下进行大量的数据交互时,一般而言其对数据的转换要求相同,但交互过程中若有改变转换要求的需求时,同样需要以改变需求后的转换要求为准,重新设置转换指令中的转换要求,从而将转换指令更新以符合当前的需求。Moreover, in the embodiments of the present application, when a large amount of data interaction is performed in the same interaction scenario in a short period of time, generally speaking, the data conversion requirements are the same, but if there is a need to change the conversion requirements during the interaction process, the same needs to be changed. The post-demand conversion requirements shall prevail. Reset the conversion requirements in the conversion instructions to update the conversion instructions to meet the current requirements.
在本申请实施例中,所述基于人工智能的数据交互转换方法运行于其上的电子设备(例如图1所示的服务器/终端设备)可以通过有线连接方式或者无线连接方式接收用户发出的数据转换指令。需要指出的是,上述无线连接方式可以包括但不限于3G/4G连接、WiFi连接、蓝牙连接、WiMAX连接、Zigbee连接、UWB( ultra wideband )连接、以及其他现在已知或将来开发的无线连接方式。In the embodiment of the present application, the electronic device (such as the server/terminal device shown in FIG. 1) on which the artificial intelligence-based data interactive conversion method runs can receive data sent by the user through a wired connection or a wireless connection. Conversion instructions. It should be pointed out that the above-mentioned wireless connection methods can include but are not limited to 3G/4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, as well as other wireless connection methods that are currently known or developed in the future.
步骤203:基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器。Step 203: Configure the parameter table of the data converter based on the conversion requirement to update the data converter.
数据转换器可视为是一个专门用于对数据库中的数据进行数据转换的工具。其在数据库中预先自定义一张用于执行数据转换的参数表,使得调用数据转换器后,能够访问该参数表,并通过该参数表执行数据转换处理。在执行数据转换处理前,还需根据当前的转换要求更新所述参数表,使所述数据转换器应用于当前交互场景下的数据转换。当需要新增、修改、删除某个数据转换处理相关的设置时,通过修改数据库配置进行操作即可,无需修改代码,从而能方便目标用户进行灵活配置并有效减少冗余代码的产生。The data converter can be regarded as a tool specially used for data conversion of the data in the database. It pre-defines a parameter table for performing data conversion in the database, so that after calling the data converter, the parameter table can be accessed, and data conversion processing can be performed through the parameter table. Before performing the data conversion process, the parameter table needs to be updated according to the current conversion requirements, so that the data converter is applied to the data conversion in the current interactive scene. When you need to add, modify, or delete a certain data conversion processing-related setting, you can operate by modifying the database configuration without modifying the code, which can facilitate flexible configuration for target users and effectively reduce the generation of redundant codes.
在本申请的一些实施例中,所述数据转换器中配置有若干个不同类型的子转换器,在步骤203之前,所述基于人工智能的数据交互转换方法还包括步骤:在数据库中为所述数据转换器建立一张参数表;在参数表中配置若干个功能字段,所述功能字段包括用于区分所述子转换器类型的第一字段、用于存储转换规则的第二字段、用于表示交换数据来源的第三字段和用于表示不同类型转换器运行状态的第四字段;设置不同功能字段之间的关联关系。In some embodiments of the present application, the data converter is configured with several different types of sub-converters. Before step 203, the artificial intelligence-based data interactive conversion method further includes the step of: storing all data in a database. The data converter establishes a parameter table; configures a number of functional fields in the parameter table, and the functional fields include a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, and a For the third field indicating the source of the exchanged data and the fourth field for indicating the operating status of different types of converters; the association relationship between the different functional fields is set.
为数据转换器建立一张参数表后,于参数表中配置若干个涉及数据转换相关处理的功能字段,并设置不同功能字段之间的关联关系和各功能字段中的参数值,从而能方便地实现对数据转换器的配置。更新数据转换器的过程,便是根据当前的转换要求更新所述参数表中对应各字段的参数值,使所述数据转换器应用于当前交互场景下的数据转换的过程。After establishing a parameter table for the data converter, configure a number of function fields related to data conversion processing in the parameter table, and set the association relationship between different function fields and the parameter values in each function field, so as to be convenient Realize the configuration of the data converter. The process of updating the data converter is a process of updating the parameter values of the corresponding fields in the parameter table according to the current conversion requirements, so that the data converter is applied to the data conversion process in the current interactive scene.
其中,所述功能字段至少包括用于区分子转换器类型的第一字段、用于存储转换规则的第二字段、用于表示交换数据来源的第三字段和用于表示不同类型转换器运行状态的第四字段。本申请实施例的具体实施方式中,在建立的参数表中还可以预先设置多个备用的功能字段,用于需要增添功能时进行拓展。Wherein, the function field includes at least a first field for identifying the type of molecular converter, a second field for storing conversion rules, a third field for indicating the source of the exchanged data, and the operating state of different types of converters. The fourth field. In the specific implementation of the embodiment of the present application, a plurality of spare function fields may be preset in the established parameter table for expansion when additional functions are needed.
在本申请实施例的一种实施方式中,在所述第一字段下,可以设置如“普通”、“时间”、“金额”以及“正则表达式”等参数值以表示不同类型的子转换器。而表示子转换器类型的第一字段下需要关联若干个其他功能字段,以实现一个完整的数据转换功能。In an implementation of the embodiment of the present application, under the first field, parameter values such as "normal", "time", "amount", and "regular expression" can be set to indicate different types of sub-conversions. Device. A number of other functional fields need to be associated with the first field indicating the type of the sub-converter to realize a complete data conversion function.
其中,普通类型的子转换器用于对交互数据内的普通字段进行简单的数据转换;时间类型的子转换器用于对表示时间的交互数据统一处理进行数据转换;金额类型的子转换器用于对表示金额的交互数据统一处理进行数据转换;正则表达式类型的子转换器则用于根据在第二字段下设置的由正则转换式表示的转换规则,对交互数据进行较复杂的数据转换。Among them, the common type sub-converter is used to perform simple data conversion on the common fields in the interactive data; the time-type sub-converter is used to perform data conversion on the unified processing of interactive data representing time; the amount-type sub-converter is used to perform The interactive data of the amount is processed uniformly for data conversion; the regular expression type sub-converter is used to perform more complex data conversion on the interactive data according to the conversion rule represented by the regular conversion formula set under the second field.
用于存储转换规则的第二字段中,可以预先配置参数值以规定数据转换的规则,也可以根据所述数据转换指令中的转换要求实时修改转换规则进行动态更新。如普通类型的子转换器下,在第二字段中配置“{"Y":"1","N":"2" }”,表示会将对应的数据中的Y转换为1,N转换为2。在根据转换要求更新第二字段的过程中,同时需更新的内容还应该包括第三字段和第四字段的参数值。In the second field used to store the conversion rule, parameter values can be pre-configured to specify the data conversion rule, or the conversion rule can be modified in real time and dynamically updated according to the conversion requirement in the data conversion instruction. For example, under the common type of sub-converter, configure "{"Y":"1","N":"2" in the second field }” means that the Y in the corresponding data will be converted to 1, and N will be converted to 2. In the process of updating the second field according to the conversion requirements, the content to be updated should also include the parameters of the third field and the fourth field value.
用于表示交换数据来源的第三字段中,应配置所述交换数据中需进行数据转换的部分数据,具体地,其中可以写入需进行数据转换对应的数据集合,也可以配置为数据所在的具体路径。在进行数据转换处理的过程中,便会对该具体路径下的所有交互数据进行对应转换规则的数据转换。In the third field used to indicate the source of the exchanged data, part of the data to be converted in the exchanged data should be configured. Specifically, the data set corresponding to the data conversion can be written in it, or it can be configured as the location where the data is located. Specific path. In the process of data conversion processing, all interactive data under the specific path will be converted according to the conversion rules.
用于表示不同类型子转换器运行状态的第四字段中,其具体参数值可以实时动态修改,以适应转换要求的变化。在本提案的一种实施方式中,以“Y”表示该子转换器的运行状态为活动状态,以“N”表示该子转换器的运行状态为非活动状态。需要调用某一个子转换器时,便在参数表中将与该子转换器关联的第四字段下的参数值修改为“Y”,停止调用时便修改为“N”。In the fourth field used to indicate the operating status of different types of sub-converters, the specific parameter values can be dynamically modified in real time to adapt to changes in conversion requirements. In an implementation of this proposal, "Y" indicates that the operating state of the sub-converter is active, and "N" indicates that the operating state of the sub-converter is inactive. When a certain sub-converter needs to be called, the parameter value under the fourth field associated with the sub-converter is changed to "Y" in the parameter table, and it is changed to "N" when the call is stopped.
在本申请实施例的一种具体实施方式中,所述步骤2033包括:为所述第一字段的每个参数值,在所述第二字段下关联一个或多个参数值,以为每一个子转换器配置一种或多种转换规则。In a specific implementation of the embodiment of the present application, the step 2033 includes: for each parameter value of the first field, one or more parameter values are associated under the second field, so that each sub The converter is configured with one or more conversion rules.
在进行数据转换时,根据转换规则的变化,需要在对应的第二字段下修改参数值,如果每次转换规则发生变化后都需要重新修改进行更新,则比较浪费时间。When performing data conversion, according to the change of the conversion rule, the parameter value needs to be modified under the corresponding second field. If the conversion rule needs to be modified and updated every time the conversion rule changes, it will be a waste of time.
因此对于一些需要在多种转换规则下进行切换的交互场景,可以预先在第二字段下,为每一种子转换器配置多种转换规则,需要更新转换规则时,先在预先配置好的多种转换规则中进行匹配,查看是否有符合更新要求的转换规则。Therefore, for some interactive scenes that need to switch under multiple conversion rules, you can configure multiple conversion rules for each seed converter in the second field in advance. When you need to update the conversion rules, first configure multiple conversion rules in advance. Match in the conversion rules to check whether there are conversion rules that meet the update requirements.
进一步的,所述转换要求中指定有子转换器的类型并携有转换规则,所述步骤203包括步骤:基于所述转换要求中指定的子转换器的类型,匹配所述参数表中第一字段的参数值,进而基于所述转换要求中规定的转换规则,在匹配到的第一字段的参数值下匹配第二字段下的参数值,确认是否有符合所述转换规则的参数值;若有,将所述第二字段下对应的参数值设置为激活状态,并对第二字段下的其他参数值进行注销;若无,在所述第二字段下新增一个激活状态的参数值以记录所述转换规则,并对所述第二字段下的其他参数值进行注销。Further, the conversion request specifies the type of the sub-converter and carries the conversion rule, and the step 203 includes the step of matching the first in the parameter table based on the type of the sub-converter specified in the conversion request. If the parameter value of the field is matched with the parameter value of the second field based on the conversion rule specified in the conversion requirement, the parameter value of the second field is matched to confirm whether there is a parameter value that meets the conversion rule; if Yes, set the corresponding parameter value under the second field to the active state, and cancel other parameter values under the second field; if not, add an active parameter value under the second field to Record the conversion rule, and log out other parameter values under the second field.
在第二字段中预先配置多个转换规则或将经历的历史场景中的转换规则共同作为历史转换规则记录下来,根据数据转换指令中说明的子转换器类型和转换规则,首先根据子转换器类型匹配参数表中的第一字段的参数值,进而匹配与该参数值关联的第二字段下的参数值。Pre-configure multiple conversion rules in the second field or record the conversion rules in the historical scene as the historical conversion rule. According to the sub-converter type and conversion rule specified in the data conversion instruction, first according to the sub-converter type Match the parameter value of the first field in the parameter table, and then match the parameter value under the second field associated with the parameter value.
若第二字段中的参数值有符合数据转换指令中的转换规则的,便对应的参数值设置为激活状态作为当前的转换规则,对其他参数值作为历史转换规则均进行注销,以应用数据转换指令中的转换规则对参数表进行更新。而在下一次进行转换规则更新时,便可以首先匹配历史转换规则,若有符合项,便将当前的转换规则注销,记录和标记为历史转换规则,并激活匹配到的历史转换规则作为此次更新后的转换规则。在一种具体实施方式中,调用了某一子转换器时,还可以将该子转换器下记录的历史转换规则通过可视化交互界面展示出来供用户直接选择。If the parameter value in the second field conforms to the conversion rule in the data conversion instruction, the corresponding parameter value is set to the active state as the current conversion rule, and all other parameter values as the historical conversion rule are cancelled to apply the data conversion The conversion rules in the instruction update the parameter table. When the next conversion rule is updated, the historical conversion rule can be matched first. If there is a match, the current conversion rule will be cancelled, recorded and marked as a historical conversion rule, and the matched historical conversion rule will be activated as the update After the conversion rules. In a specific implementation, when a certain sub-converter is called, the historical conversion rules recorded under the sub-converter can also be displayed through a visual interactive interface for the user to directly select.
在本申请进一步的一种具体实施方式中,所述转换要求中规定有子转换器的执行顺序,所述在参数表中配置若干个功能字段的步骤包括:在功能字段中配置一个用于确定子转换器的执行顺序的第五字段。In a further specific implementation manner of the present application, the conversion request specifies the execution sequence of the sub-converters, and the step of configuring a number of function fields in the parameter table includes: configuring a function field for determining The fifth field of the execution order of the sub-converter.
所述设置不同功能字段之间的关联关系的步骤包括:为所述第一字段的每个参数值关联一个所述第五字段的参数值。The step of setting an association relationship between different function fields includes: associating a parameter value of the fifth field with each parameter value of the first field.
所述步骤203包括:基于所述转换要求中规定的子转换器的执行顺序,更新所述参数表中第五字段的参数值。The step 203 includes: updating the parameter value of the fifth field in the parameter table based on the execution sequence of the sub-converters specified in the conversion requirement.
在一些具体的交互场景中,还需要规定对交互数据执行数据转换的顺序,特别是对于不同类型子转换器的执行顺序,因此在接收数据转换指令,获取其中的转换要求后,若其中规定有子转换器的执行顺序,便以此更新参数表中第五字段的参数值,以设定需应用的多个子转换器之间的执行顺序。从而在调用数据转换器,应用其中的多个子转换器时,以更新的参数表中规定的子转换器之间的执行顺序依次对交互数据执行数据转换。In some specific interaction scenarios, it is also necessary to specify the order in which data conversion is performed on the interaction data, especially for different types of sub-converters. Therefore, after receiving the data conversion instruction and obtaining the conversion requirements, if there are The execution sequence of the sub-converters is used to update the parameter value of the fifth field in the parameter table to set the execution sequence among the multiple sub-converters to be applied. Therefore, when the data converter is called and multiple sub-converters are used, the data conversion is performed on the interactive data in the order of execution between the sub-converters specified in the updated parameter table.
步骤204:通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取目标用户所需的交互转换数据。Step 204: Perform data conversion processing on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
更新完数据转换器后,便能通过数据转换器方便地进行数据转换处理,最终将交互数据转换为所需的数据,完成交互系统之间的数据的对接。After the data converter is updated, the data conversion process can be conveniently performed through the data converter, and finally the interactive data is converted into the required data, and the data connection between the interactive systems is completed.
本申请实施例所述的基于人工智能的数据交互转换方法,能够在数据转换器的参数表中配置多种类型的子转换器,从而能减少冗余代码,使进行数据转换时只需要对数据转换器调用一次,便能通过数据库操作便能实现灵活配置、动态修改,提高了转换效率并能较好地适应数据转换的需求。The artificial intelligence-based data interactive conversion method described in the embodiments of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes and making data conversion only necessary for data conversion. Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,该计算机程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,前述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质,或随机存储记忆体(Random Access Memory,RAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing relevant hardware through a computer program. The computer program can be stored in a computer readable storage medium, and the program can be stored in a computer readable storage medium. When executed, it may include the procedures of the above-mentioned method embodiments. Among them, the aforementioned storage medium may be a magnetic disk, an optical disk, a read-only storage memory (Read-Only Memory, ROM) and other non-volatile storage media, or random storage memory (Random Access Memory, RAM) etc.
应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least part of the steps in the flowchart of the drawings may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the order of execution is also It is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
进一步参考图3,图3示出了为本申请实施例中所述基于人工智能的数据交互转换装置的一个实施例的结构示意图。作为对上述图2所示方法的实现,本申请提供了一种基于人工智能的数据交互转换装置的一个实施例,该装置实施例与图2所示的方法实施例相对应,该装置具体可以应用于各种电子设备中。With further reference to Fig. 3, Fig. 3 shows a schematic structural diagram of an embodiment of the artificial intelligence-based data interaction conversion apparatus in the embodiment of the present application. As an implementation of the method shown in FIG. 2, this application provides an embodiment of an artificial intelligence-based data exchange conversion device. The device embodiment corresponds to the method embodiment shown in FIG. Used in various electronic devices.
如图3所示,本实施例所述的基于人工智能的数据交互转换装置包括:数据接收模块301;用于接收待转换的交互数据。指令获取模块302;用于获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求。转换器更新模块303;用于基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器。数据转换模块304;用于通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取所述目标用户所需的交互转换数据。As shown in FIG. 3, the artificial intelligence-based data interactive conversion device in this embodiment includes: a data receiving module 301; used to receive interactive data to be converted. Instruction acquisition module 302; used to acquire a data conversion instruction for processing the interactive data, and call a data converter in response to the data conversion instruction, and the data conversion instruction is set with a conversion requirement. Converter update module 303; configured to configure the parameter table of the data converter based on the conversion requirements to update the data converter. Data conversion module 304; used to perform data conversion processing on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
在本申请的一些实施例中,所述指令获取模块302还包括:场景匹配子模块。所述场景匹配子模块用于依次获取数据交互时发送方和接收方的系统标识;根据发送方和接收方的系统标识依次匹配预设的交互场景表;当与所述交互场景表中的一个标准场景相匹配时,获取与匹配到的标准场景所对应的数据转换指令。其中,所述接收方为当前服务器,所述发送方为向所述当前服务器发送所述交互数据的其他服务器。In some embodiments of the present application, the instruction acquisition module 302 further includes: a scene matching sub-module. The scene matching submodule is used to sequentially obtain the system identifiers of the sender and the receiver during data interaction; sequentially match the preset interaction scene table according to the system identifiers of the sender and the receiver; when interacting with one of the interaction scene tables When the standard scene is matched, the data conversion instruction corresponding to the matched standard scene is obtained. Wherein, the receiver is a current server, and the sender is another server that sends the interactive data to the current server.
在本申请实施例的一种具体实施方式中,所述基于人工智能的数据交互转换模块还包括:指令确认模块。在所述场景匹配子模块获取与匹配到的标准场景所对应的数据转换指令的步骤之后,所述指令确认模块用于向目标用户发送对转换要求的确认指令,所述确认指令用于确认所述数据转换指令中的转换要求是否与目标用户所期望的转换要求相同;不同,则从所述目标用户处获取其所期望的转换要求,将所述数据转换指令中的转换要求替换为目标用户所期望的转换要求以更新所述数据转换指令。In a specific implementation of the embodiment of the present application, the artificial intelligence-based data interaction conversion module further includes: an instruction confirmation module. After the scene matching submodule obtains the data conversion instruction corresponding to the matched standard scene, the instruction confirmation module is used to send a confirmation instruction for the conversion requirement to the target user, and the confirmation instruction is used to confirm all Whether the conversion requirement in the data conversion instruction is the same as the conversion requirement expected by the target user; if it is different, the expected conversion requirement is obtained from the target user, and the conversion requirement in the data conversion instruction is replaced with the target user The desired conversion requires to update the data conversion instruction.
在本申请一些实施例中,所述基于人工智能的数据交互转换模块还包括:转换器配置模块。所述数据转换器中配置有若干个不同类型的子转换器,在所述转换器更新模块303基于所述转换要求配置所述数据转换器的参数表的步骤之前,所述转换器配置模块用于在数据库中为所述数据转换器建立一张参数表;在参数表中配置若干个功能字段;设置不同功能字段之间的关联关系。其中,所述功能字段包括用于区分所述子转换器类型的第一字段、用于存储转换规则的第二字段、用于表示交换数据来源的第三字段和用于表示不同类型转换器运行状态的第四字段。In some embodiments of the present application, the artificial intelligence-based data interaction conversion module further includes: a converter configuration module. The data converter is configured with several different types of sub-converters. Before the converter update module 303 configures the parameter table of the data converter based on the conversion requirements, the converter configuration module uses In the database, a parameter table is established for the data converter; a number of function fields are configured in the parameter table; and the association relationship between different function fields is set. Wherein, the function field includes a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, a third field for indicating the source of exchanged data, and a third field for indicating the operation of different types of converters. The fourth field of the status.
在本申请实施例的一种具体实施方式中,所述转换器配置模块用于为所述第一字段的每个参数值,在所述第二字段下关联一个或多个参数值,以为每一个子转换器配置一种或多种转换规则。In a specific implementation of the embodiment of the present application, the converter configuration module is used to associate one or more parameter values under the second field for each parameter value of the first field, so that each parameter value is One sub-converter is configured with one or more conversion rules.
进一步的,所述转换要求中指定有子转换器的类型并携有转换规则,所述转换器更新模块303还用于基于所述转换要求中指定的子转换器的类型,匹配所述参数表中第一字段的参数值,进而基于所述转换要求中规定的转换规则,在匹配到的第一字段的参数值下匹配第二字段下的参数值,确认是否有符合所述转换规则的参数值;若有,将所述第二字段下对应的参数值设置为激活状态,并对第二字段下的其他参数值进行注销;若无,在所述第二字段下新增一个激活状态的参数值以记录所述转换规则,并对所述第二字段下的其他参数值进行注销。Further, the conversion request specifies the type of the sub-converter and carries conversion rules, and the converter update module 303 is further configured to match the parameter table based on the type of the sub-converter specified in the conversion request. According to the conversion rule specified in the conversion requirement, match the parameter value of the second field under the parameter value of the matched first field based on the conversion rule specified in the conversion requirement, and confirm whether there is a parameter that meets the conversion rule Value; if so, set the corresponding parameter value under the second field to the active state, and cancel other parameter values under the second field; if not, add an active state under the second field The parameter value is used to record the conversion rule, and to cancel other parameter values under the second field.
在本申请进一步的一种具体实施方式中,所述转换要求中规定有子转换器的执行顺序,所述转换器配置模块用于在功能字段中配置一个用于确定子转换器的执行顺序的第五字段;为所述第一字段的每个参数值关联一个所述第五字段的参数值。所述转换器更新模块303用于基于所述转换要求中规定的子转换器的执行顺序,更新所述参数表中第五字段的参数值。In a further specific implementation of the present application, the conversion request specifies the execution order of the sub-converters, and the converter configuration module is used to configure a function field for determining the execution order of the sub-converters. The fifth field: Associate a parameter value of the fifth field with each parameter value of the first field. The converter update module 303 is configured to update the parameter value of the fifth field in the parameter table based on the execution sequence of the sub-converters specified in the conversion request.
本申请实施例所述的基于人工智能的数据交互转换装置,能够在数据转换器的参数表中配置多种类型的子转换器,从而能减少冗余代码,使进行数据转换时只需要对数据转换器调用一次,便能通过数据库操作便能实现灵活配置、动态修改,提高了转换效率并能较好地适应数据转换的需求。The artificial intelligence-based data interactive conversion device described in the embodiment of the present application can configure multiple types of sub-converters in the parameter table of the data converter, thereby reducing redundant codes, so that only data conversion is required for data conversion. Once the converter is called, flexible configuration and dynamic modification can be realized through database operation, which improves the conversion efficiency and can better adapt to the needs of data conversion.
为解决上述技术问题,本申请实施例还提供计算机设备。具体请参阅图4,图4为本实施例计算机设备基本结构框图。In order to solve the above technical problems, the embodiments of the present application also provide computer equipment. Please refer to FIG. 4 for details. FIG. 4 is a block diagram of the basic structure of the computer device in this embodiment.
所述计算机设备6包括通过系统总线相互通信连接存储器61、处理器62、网络接口63。需要指出的是,图中仅示出了具有组件61-63的计算机设备6,但是应理解的是,并不要求实施所有示出的组件,可以替代的实施更多或者更少的组件。其中,本技术领域技术人员可以理解,这里的计算机设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器 (Digital Signal Processor,DSP)、嵌入式设备等。The computer device 6 includes a memory 61, a processor 62, and a network interface 63 that are mutually communicatively connected via a system bus. It should be pointed out that the figure only shows the computer device 6 with components 61-63, but it should be understood that it is not required to implement all of the illustrated components, and more or fewer components may be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculation and/or information processing in accordance with pre-set or stored instructions. Its hardware includes, but is not limited to, a microprocessor, a dedicated Integrated Circuit (Application Specific Integrated Circuit, ASIC), Programmable Gate Array (Field-Programmable Gate Array, FPGA), digital processor (Digital Signal Processor, DSP), embedded equipment, etc.
所述计算机设备可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。所述计算机设备可以与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互。The computer device may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server. The computer device can interact with the user through a keyboard, a mouse, a remote control, a touch panel, or a voice control device.
所述存储器61至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等。在一些实施例中,所述存储器61可以是所述计算机设备6的内部存储单元,例如该计算机设备6的硬盘或内存。在另一些实施例中,所述存储器61也可以是所述计算机设备6的外部存储设备,例如该计算机设备6上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。当然,所述存储器61还可以既包括所述计算机设备6的内部存储单元也包括其外部存储设备。本实施例中,所述存储器61通常用于存储安装于所述计算机设备6的操作系统和各类应用软件,例如基于人工智能的数据交互转换方法的程序代码等。此外,所述存储器61还可以用于暂时地存储已经输出或者将要输出的各类数据。The memory 61 includes at least one type of readable storage medium, the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static Random access memory (SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disks, optical disks, etc. In some embodiments, the memory 61 may be an internal storage unit of the computer device 6, such as a hard disk or a memory of the computer device 6. In other embodiments, the memory 61 may also be an external storage device of the computer device 6, such as a plug-in hard disk equipped on the computer device 6, a smart memory card (Smart Memory Card). Media Card, SMC), Secure Digital (Secure Digital, SD) card, flash memory card (Flash Card) and so on. Of course, the memory 61 may also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 61 is generally used to store an operating system and various application software installed in the computer device 6, such as program code of a data interactive conversion method based on artificial intelligence. In addition, the memory 61 can also be used to temporarily store various types of data that have been output or will be output.
所述处理器62在一些实施例中可以是中央处理器(Central Processing Unit,CPU)、控制器、微控制器、微处理器、或其他数据处理芯片。该处理器62通常用于控制所述计算机设备6的总体操作。本实施例中,所述处理器62用于运行所述存储器61中存储的程序代码或者处理数据,例如运行所述基于人工智能的数据交互转换方法的程序代码。In some embodiments, the processor 62 may be a central processing unit (Central Processing Unit, CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 62 is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 62 is configured to run the program code or process data stored in the memory 61, for example, run the program code of the artificial intelligence-based data interactive conversion method.
所述网络接口63可包括无线网络接口或有线网络接口,该网络接口63通常用于在所述计算机设备6与其他电子设备之间建立通信连接。The network interface 63 may include a wireless network interface or a wired network interface, and the network interface 63 is generally used to establish a communication connection between the computer device 6 and other electronic devices.
本申请还提供了另一种实施方式,即提供一种计算机可读存储介质,所述计算机可读存储介质存储有基于人工智能的数据交互转换程序,所述基于人工智能的数据交互转换程序可被至少一个处理器执行,以使所述至少一个处理器执行如上述的基于人工智能的数据交互转换方法的步骤。可选的,该计算机可读存储介质可以是非易失性的存储介质,也可以是易失性的存储介质。This application also provides another implementation manner, that is, a computer-readable storage medium storing a data interaction conversion program based on artificial intelligence, and the artificial intelligence-based data interaction conversion program can be Is executed by at least one processor, so that the at least one processor executes the steps of the above-mentioned artificial intelligence-based data interactive conversion method. Optionally, the computer-readable storage medium may be a non-volatile storage medium or a volatile storage medium.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above implementation manners, those skilled in the art can clearly understand that the above-mentioned embodiment method can be implemented by means of software plus the necessary general hardware platform, of course, it can also be implemented by hardware, but in many cases the former is better.的实施方式。 Based on this understanding, the technical solution of this application essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to enable a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the method described in each embodiment of the present application.
在本申请所提供的上述实施例中,应该理解到,所揭露的装置和方法,可以通过其他的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如,多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。In the foregoing embodiments provided in this application, it should be understood that the disclosed device and method may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the division of the modules is only a logical function division, and there may be other divisions in actual implementation, for example, multiple modules or components may be combined. Or it can be integrated into another system, or some features can be ignored or not implemented.
所述模块或组件可以是或者也可以不是物理上分开的,作为模块或组件显示的部件可以是或者也可以不是物理模块,既可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块或组件来实现本实施例方案的目的。The modules or components may or may not be physically separated, and the components displayed as modules or components may or may not be physical modules, and may be located in one place or distributed on multiple network units. Some or all of the modules or components may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
本申请不限于上述实施方式,以上所述是本申请的优选实施方式,该实施例仅用于说明本申请而不用于限制本申请的范围,应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,其依然可以对前述各具体实施方式所记载的技术方案进行若干改进和修饰,或者对其中部分技术特征进行等效替换。凡是利用本申请说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理应视为包括在本申请的保护范围之内。This application is not limited to the above-mentioned embodiments. The above are the preferred embodiments of the application. This embodiment is only used to illustrate the application and not to limit the scope of the application. It should be noted that for those of ordinary skill in the art Without departing from the principle of this application, it is still possible to make several improvements and modifications to the technical solutions described in the foregoing specific embodiments, or to equivalently replace some of the technical features. All equivalent structures made by using the contents of the description and drawings of this application, directly or indirectly used in other related technical fields, shall be deemed to be included in the scope of protection of this application.
显然,以上所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例,附图中给出了本申请的较佳实施例,但并不限制本申请的专利范围。本申请可以以许多不同的形式来实现,相反地,提供这些实施例的目的是使对本申请的公开内容的理解更加透彻全面。尽管参照前述实施例对本申请进行了详细的说明,对于本领域的技术人员来而言,其依然可以对前述各具体实施方式所记载的技术方案进行修改,或者对其中部分技术特征进行等效替换。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,以及凡是利用本申请说明书及附图内容所做的等效结构,直接或间接运用在其他相关的技术领域,均同理在本申请专利保护范围之内。Obviously, the embodiments described above are only a part of the embodiments of the present application, rather than all of the embodiments. The drawings show preferred embodiments of the present application, but do not limit the patent scope of the present application. This application can be implemented in many different forms. On the contrary, the purpose of providing these examples is to make the understanding of the disclosure of this application more thorough and comprehensive. Although this application has been described in detail with reference to the foregoing embodiments, for those skilled in the art, it is still possible for those skilled in the art to modify the technical solutions described in each of the foregoing specific embodiments, or equivalently replace some of the technical features. . Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work, as well as any equivalent structures made using the contents of the description and drawings of this application, are directly or indirectly used in Other related technical fields are similarly within the scope of the patent protection of this application.

Claims (20)

  1. 一种基于人工智能的数据交互转换方法,其中,包括:An artificial intelligence-based data interactive conversion method, which includes:
    接收待转换的交互数据;Receive interactive data to be converted;
    获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;Acquiring a data conversion instruction used to process the interactive data, and invoking a data converter in response to the data conversion instruction, where a conversion requirement is set in the data conversion instruction;
    基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;Configure the parameter table of the data converter based on the conversion requirement to update the data converter;
    通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取目标用户所需的交互转换数据。Data conversion processing is performed on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
  2. 根据权利要求1所述的基于人工智能的数据交互转换方法,其中,所述获取用于处理所述交互数据的数据转换指令的步骤包括:The method for data interactive conversion based on artificial intelligence according to claim 1, wherein the step of obtaining a data conversion instruction for processing the interactive data comprises:
    依次获取数据交互时发送方和接收方的系统标识,其中,所述接收方为当前服务器,所述发送方为向所述当前服务器发送所述交互数据的其他服务器;Sequentially acquiring the system identifiers of the sender and receiver during data interaction, where the receiver is the current server, and the sender is another server that sends the interaction data to the current server;
    根据发送方和接收方的系统标识依次匹配预设的交互场景表;Match the preset interactive scene table in sequence according to the system identifiers of the sender and the receiver;
    当与所述交互场景表中的一个标准场景相匹配时,获取与匹配到的标准场景所对应的数据转换指令。When it matches a standard scene in the interactive scene table, a data conversion instruction corresponding to the matched standard scene is acquired.
  3. 根据权利要求2所述的基于人工智能的数据交互转换方法,其中,在所述获取与匹配到的标准场景所对应的数据转换指令的步骤之后,所述方法还包括步骤:The artificial intelligence-based data interactive conversion method according to claim 2, wherein, after the step of obtaining the data conversion instruction corresponding to the matched standard scene, the method further comprises the step of:
    向目标用户发送对转换要求的确认指令,所述确认指令用于确认所述数据转换指令中的转换要求是否与目标用户所期望的转换要求相同;Sending a confirmation instruction for the conversion requirement to the target user, where the confirmation instruction is used to confirm whether the conversion requirement in the data conversion instruction is the same as the conversion requirement expected by the target user;
    若不同,则从所述目标用户处获取其所期望的转换要求,将所述数据转换指令中的转换要求替换为目标用户所期望的转换要求以更新所述数据转换指令。If they are different, the desired conversion requirement is obtained from the target user, and the conversion requirement in the data conversion instruction is replaced with the conversion requirement expected by the target user to update the data conversion instruction.
  4. 根据权利要求1所述的基于人工智能的数据交互转换方法,其中,所述数据转换器中配置有若干个不同类型的子转换器,所述基于所述转换要求配置所述数据转换器的参数表的步骤之前,所述方法还包括步骤:The artificial intelligence-based data interactive conversion method according to claim 1, wherein a plurality of different types of sub-converters are configured in the data converter, and the parameters of the data converter are configured based on the conversion requirements Before the steps of the table, the method further includes the steps:
    在数据库中为所述数据转换器建立一张参数表;Establishing a parameter table for the data converter in the database;
    在参数表中配置若干个功能字段,所述功能字段包括用于区分所述子转换器类型的第一字段、用于存储转换规则的第二字段、用于表示交换数据来源的第三字段和用于表示不同类型转换器运行状态的第四字段;A number of functional fields are configured in the parameter table. The functional fields include a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, a third field for indicating the source of the exchanged data, and The fourth field used to indicate the operating status of different types of converters;
    设置不同功能字段之间的关联关系。Set the association relationship between different function fields.
  5. 根据权利要求4所述的基于人工智能的数据交互转换方法,其中,所述设置不同功能字段之间的关联关系的步骤包括:The method for data interactive conversion based on artificial intelligence according to claim 4, wherein the step of setting an association relationship between different functional fields comprises:
    为所述第一字段的每个参数值,在所述第二字段下关联一个或多个参数值,以为每一个子转换器配置一种或多种转换规则。For each parameter value of the first field, one or more parameter values are associated under the second field to configure one or more conversion rules for each sub-converter.
  6. 根据权利要求5所述的基于人工智能的数据交互转换方法,其中,所述转换要求中指定有子转换器的类型并携有转换规则,所述基于所述转换要求配置所述数据转换器的参数表的步骤包括:The artificial intelligence-based data interactive conversion method according to claim 5, wherein the conversion request specifies the type of the sub-converter and carries conversion rules, and the configuration of the data converter based on the conversion request The steps of the parameter table include:
    基于所述转换要求中指定的子转换器的类型,匹配所述参数表中第一字段的参数值,进而基于所述转换要求中规定的转换规则,在匹配到的第一字段的参数值下匹配第二字段下的参数值,确认是否有符合所述转换规则的参数值;Based on the type of the sub-converter specified in the conversion request, match the parameter value of the first field in the parameter table, and then based on the conversion rule specified in the conversion request, under the matched parameter value of the first field Match the parameter value under the second field, and confirm whether there is a parameter value that complies with the conversion rule;
    若有,将所述第二字段下对应的参数值设置为激活状态,并对第二字段下的其他参数值进行注销;If yes, set the corresponding parameter value under the second field to the activated state, and cancel other parameter values under the second field;
    若无,在所述第二字段下新增一个激活状态的参数值以记录所述转换规则,并对所述第二字段下的其他参数值进行注销。If not, add an activated parameter value under the second field to record the conversion rule, and cancel other parameter values under the second field.
  7. 根据权利要求4所述的基于人工智能的数据交互转换方法,其中,所述转换要求中规定有子转换器的执行顺序,所述在参数表中配置若干个功能字段的步骤包括:The artificial intelligence-based data interactive conversion method according to claim 4, wherein the conversion request specifies the execution sequence of the sub-converters, and the step of configuring a plurality of function fields in the parameter table comprises:
    在功能字段中配置一个用于确定子转换器的执行顺序的第五字段;Configure a fifth field in the function field to determine the execution order of the sub-converters;
    所述设置不同功能字段之间的关联关系的步骤包括:为所述第一字段的每个参数值关联一个所述第五字段的参数值;The step of setting an association relationship between different function fields includes: associating a parameter value of the fifth field with each parameter value of the first field;
    所述基于所述转换要求配置所述数据转换器的参数表的步骤包括:The step of configuring the parameter table of the data converter based on the conversion requirement includes:
    基于所述转换要求中规定的子转换器的执行顺序,更新所述参数表中第五字段的参数值。The parameter value of the fifth field in the parameter table is updated based on the execution sequence of the sub-converters specified in the conversion requirement.
  8. 一种基于人工智能的数据交互转换装置,其中,包括:An artificial intelligence-based data interactive conversion device, which includes:
    数据接收模块,用于接收待转换的交互数据;The data receiving module is used to receive the interactive data to be converted;
    指令获取模块,用于获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;An instruction acquisition module, configured to acquire a data conversion instruction for processing the interactive data, and call a data converter in response to the data conversion instruction, the data conversion instruction is set with a conversion requirement;
    转换器更新模块,用于基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;A converter update module, configured to configure the parameter table of the data converter based on the conversion requirement to update the data converter;
    数据转换模块,用于通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取所述目标用户所需的交互转换数据。The data conversion module is configured to perform data conversion processing on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
  9. 一种计算机设备,包括存储器和处理器,所述存储器中存储有计算机程序,所述处理器执行所述计算机程序时实现以下步骤:A computer device includes a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the following steps when the processor executes the computer program:
    接收待转换的交互数据;Receive interactive data to be converted;
    获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;Acquiring a data conversion instruction used to process the interactive data, and invoking a data converter in response to the data conversion instruction, where a conversion requirement is set in the data conversion instruction;
    基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;Configure the parameter table of the data converter based on the conversion requirement to update the data converter;
    通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取目标用户所需的交互转换数据。Data conversion processing is performed on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
  10. 根据权利要求9所述的计算机设备,其中,所述处理器执行获取用于处理所述交互数据的数据转换指令时,具体执行以下步骤:The computer device according to claim 9, wherein when the processor executes the data conversion instruction for processing the interactive data, the following steps are specifically executed:
    依次获取数据交互时发送方和接收方的系统标识,其中,所述接收方为当前服务器,所述发送方为向所述当前服务器发送所述交互数据的其他服务器;Sequentially acquiring the system identifiers of the sender and receiver during data interaction, where the receiver is the current server, and the sender is another server that sends the interaction data to the current server;
    根据发送方和接收方的系统标识依次匹配预设的交互场景表;Match the preset interactive scene table in sequence according to the system identifiers of the sender and the receiver;
    当与所述交互场景表中的一个标准场景相匹配时,获取与匹配到的标准场景所对应的数据转换指令。When it matches a standard scene in the interactive scene table, a data conversion instruction corresponding to the matched standard scene is acquired.
  11. 根据权利要求9所述的计算机设备,其中,所述数据转换器中配置有若干个不同类型的子转换器,所述处理器执行基于所述转换要求配置所述数据转换器的参数表的步骤之前,还执行以下步骤:The computer device according to claim 9, wherein a plurality of different types of sub-converters are configured in the data converter, and the processor executes the step of configuring the parameter table of the data converter based on the conversion requirements Previously, the following steps were also performed:
    在数据库中为所述数据转换器建立一张参数表;Establishing a parameter table for the data converter in the database;
    在参数表中配置若干个功能字段,所述功能字段包括用于区分所述子转换器类型的第一字段、用于存储转换规则的第二字段、用于表示交换数据来源的第三字段和用于表示不同类型转换器运行状态的第四字段;A number of functional fields are configured in the parameter table. The functional fields include a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, a third field for indicating the source of the exchanged data, and The fourth field used to indicate the operating status of different types of converters;
    设置不同功能字段之间的关联关系。Set the association relationship between different function fields.
  12. 根据权利要求11所述的计算机设备,其中,所述处理器执行设置不同功能字段之间的关联关系时,具体执行以下步骤:The computer device according to claim 11, wherein when the processor executes setting the association relationship between different function fields, the following steps are specifically executed:
    为所述第一字段的每个参数值,在所述第二字段下关联一个或多个参数值,以为每一个子转换器配置一种或多种转换规则。For each parameter value of the first field, one or more parameter values are associated under the second field to configure one or more conversion rules for each sub-converter.
  13. 根据权利要求12所述的计算机设备,其中,所述转换要求中指定有子转换器的类型并携有转换规则,所述处理器执行所述基于所述转换要求配置所述数据转换器的参数表时,具体执行以下步骤:The computer device according to claim 12, wherein the conversion request specifies the type of the sub-converter and carries a conversion rule, and the processor executes the configuration of the parameters of the data converter based on the conversion request When making a table, perform the following steps:
    基于所述转换要求中指定的子转换器的类型,匹配所述参数表中第一字段的参数值,进而基于所述转换要求中规定的转换规则,在匹配到的第一字段的参数值下匹配第二字段下的参数值,确认是否有符合所述转换规则的参数值;Based on the type of the sub-converter specified in the conversion request, match the parameter value of the first field in the parameter table, and then based on the conversion rule specified in the conversion request, under the matched parameter value of the first field Match the parameter value under the second field, and confirm whether there is a parameter value that complies with the conversion rule;
    若有,将所述第二字段下对应的参数值设置为激活状态,并对第二字段下的其他参数值进行注销;If yes, set the corresponding parameter value under the second field to the activated state, and cancel other parameter values under the second field;
    若无,在所述第二字段下新增一个激活状态的参数值以记录所述转换规则,并对所述第二字段下的其他参数值进行注销。If not, add an activated parameter value under the second field to record the conversion rule, and cancel other parameter values under the second field.
  14. 一种计算机可读存储介质,其中,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现以下步骤:A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the following steps are implemented:
    接收待转换的交互数据;Receive interactive data to be converted;
    获取用于处理所述交互数据的数据转换指令,并响应于所述数据转换指令调用数据转换器,所述数据转换指令中设置有转换要求;Acquiring a data conversion instruction used to process the interactive data, and invoking a data converter in response to the data conversion instruction, where a conversion requirement is set in the data conversion instruction;
    基于所述转换要求配置所述数据转换器的参数表,以更新所述数据转换器;Configure the parameter table of the data converter based on the conversion requirement to update the data converter;
    通过更新后的数据转换器对所述交互数据执行数据转换处理,以获取目标用户所需的交互转换数据。Data conversion processing is performed on the interactive data through the updated data converter to obtain the interactive conversion data required by the target user.
  15. 根据权利要求14所述的计算机可读存储介质,其中,所述获取用于处理所述交互数据的数据转换指令时,所述计算机程序被处理器执行以具体实现以下步骤:The computer-readable storage medium according to claim 14, wherein, when the data conversion instruction for processing the interactive data is acquired, the computer program is executed by a processor to specifically implement the following steps:
    依次获取数据交互时发送方和接收方的系统标识,其中,所述接收方为当前服务器,所述发送方为向所述当前服务器发送所述交互数据的其他服务器;Sequentially acquiring the system identifiers of the sender and receiver during data interaction, where the receiver is the current server, and the sender is another server that sends the interaction data to the current server;
    根据发送方和接收方的系统标识依次匹配预设的交互场景表;Match the preset interactive scene table in sequence according to the system identifiers of the sender and the receiver;
    当与所述交互场景表中的一个标准场景相匹配时,获取与匹配到的标准场景所对应的数据转换指令。When it matches a standard scene in the interactive scene table, a data conversion instruction corresponding to the matched standard scene is acquired.
  16. 根据权利要求15所述的计算机可读存储介质,其中,在所述获取与匹配到的标准场景所对应的数据转换指令的步骤之后,所述计算机程序还用于被处理器执行以实现以下步骤:The computer-readable storage medium according to claim 15, wherein, after the step of obtaining the data conversion instruction corresponding to the matched standard scene, the computer program is further used to be executed by the processor to implement the following steps :
    向目标用户发送对转换要求的确认指令,所述确认指令用于确认所述数据转换指令中的转换要求是否与目标用户所期望的转换要求相同;Sending a confirmation instruction for the conversion requirement to the target user, where the confirmation instruction is used to confirm whether the conversion requirement in the data conversion instruction is the same as the conversion requirement expected by the target user;
    若不同,则从所述目标用户处获取其所期望的转换要求,将所述数据转换指令中的转换要求替换为目标用户所期望的转换要求以更新所述数据转换指令。If they are different, the desired conversion requirement is obtained from the target user, and the conversion requirement in the data conversion instruction is replaced with the conversion requirement expected by the target user to update the data conversion instruction.
  17. 根据权利要求14所述的计算机可读存储介质,其中,所述数据转换器中配置有若干个不同类型的子转换器,所述基于所述转换要求配置所述数据转换器的参数表的步骤之前,所述计算机程序还用于被处理器执行以实现以下步骤:The computer-readable storage medium according to claim 14, wherein a plurality of different types of sub-converters are configured in the data converter, and the step of configuring the parameter table of the data converter based on the conversion requirements Previously, the computer program was also used to be executed by the processor to implement the following steps:
    在数据库中为所述数据转换器建立一张参数表;Establishing a parameter table for the data converter in the database;
    在参数表中配置若干个功能字段,所述功能字段包括用于区分所述子转换器类型的第一字段、用于存储转换规则的第二字段、用于表示交换数据来源的第三字段和用于表示不同类型转换器运行状态的第四字段;A number of functional fields are configured in the parameter table. The functional fields include a first field for distinguishing the type of the sub-converter, a second field for storing conversion rules, a third field for indicating the source of the exchanged data, and The fourth field used to indicate the operating status of different types of converters;
    设置不同功能字段之间的关联关系。Set the association relationship between different function fields.
  18. 根据权利要求17所述的计算机可读存储介质,其中,所述设置不同功能字段之间的关联关系时,所述计算机程序被处理器执行以具体实现以下步骤:18. The computer-readable storage medium according to claim 17, wherein when the association relationship between different functional fields is set, the computer program is executed by a processor to specifically implement the following steps:
    为所述第一字段的每个参数值,在所述第二字段下关联一个或多个参数值,以为每一个子转换器配置一种或多种转换规则。For each parameter value of the first field, one or more parameter values are associated under the second field to configure one or more conversion rules for each sub-converter.
  19. 根据权利要求18所述的计算机可读存储介质,其中,所述转换要求中指定有子转换器的类型并携有转换规则,所述基于所述转换要求配置所述数据转换器的参数表时,所述计算机程序被处理器执行以具体实现以下步骤:The computer-readable storage medium according to claim 18, wherein the conversion request specifies the type of the sub-converter and carries a conversion rule, and when the parameter table of the data converter is configured based on the conversion request , The computer program is executed by the processor to specifically implement the following steps:
    基于所述转换要求中指定的子转换器的类型,匹配所述参数表中第一字段的参数值,进而基于所述转换要求中规定的转换规则,在匹配到的第一字段的参数值下匹配第二字段下的参数值,确认是否有符合所述转换规则的参数值;Based on the type of the sub-converter specified in the conversion request, match the parameter value of the first field in the parameter table, and then based on the conversion rule specified in the conversion request, under the matched parameter value of the first field Match the parameter value under the second field, and confirm whether there is a parameter value that complies with the conversion rule;
    若有,将所述第二字段下对应的参数值设置为激活状态,并对第二字段下的其他参数值进行注销;If yes, set the corresponding parameter value under the second field to the activated state, and cancel other parameter values under the second field;
    若无,在所述第二字段下新增一个激活状态的参数值以记录所述转换规则,并对所述第二字段下的其他参数值进行注销。If not, add an activated parameter value under the second field to record the conversion rule, and cancel other parameter values under the second field.
  20. 根据权利要求17所述的计算机可读存储介质,其中,所述转换要求中规定有子转换器的执行顺序,所述在参数表中配置若干个功能字段时,所述计算机程序被处理器执行以具体实现以下步骤:The computer-readable storage medium according to claim 17, wherein the conversion request specifies an execution sequence of the sub-converters, and when a plurality of function fields are configured in the parameter table, the computer program is executed by the processor To implement the following steps:
    在功能字段中配置一个用于确定子转换器的执行顺序的第五字段;Configure a fifth field in the function field to determine the execution order of the sub-converters;
    所述设置不同功能字段之间的关联关系的步骤包括:为所述第一字段的每个参数值关联一个所述第五字段的参数值;The step of setting an association relationship between different function fields includes: associating a parameter value of the fifth field with each parameter value of the first field;
    所述基于所述转换要求配置所述数据转换器的参数表的步骤包括:The step of configuring the parameter table of the data converter based on the conversion requirement includes:
    基于所述转换要求中规定的子转换器的执行顺序,更新所述参数表中第五字段的参数值。The parameter value of the fifth field in the parameter table is updated based on the execution sequence of the sub-converters specified in the conversion requirement.
PCT/CN2020/093592 2019-09-23 2020-05-30 Data interaction conversion method and apparatus based on artificial intelligence, device, and medium WO2021057064A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910898998.4 2019-09-23
CN201910898998.4A CN110825807B (en) 2019-09-23 2019-09-23 Data interactive conversion method, device, equipment and medium based on artificial intelligence

Publications (1)

Publication Number Publication Date
WO2021057064A1 true WO2021057064A1 (en) 2021-04-01

Family

ID=69548183

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/093592 WO2021057064A1 (en) 2019-09-23 2020-05-30 Data interaction conversion method and apparatus based on artificial intelligence, device, and medium

Country Status (2)

Country Link
CN (1) CN110825807B (en)
WO (1) WO2021057064A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741904A (en) * 2021-08-27 2021-12-03 浙江惠瀜网络科技有限公司 Data processing method, device and storage medium
US11765604B2 (en) 2021-12-16 2023-09-19 T-Mobile Usa, Inc. Providing configuration updates to wireless telecommunication networks
CN117408231A (en) * 2023-12-14 2024-01-16 上海孤波科技有限公司 Method and device for converting format of chip test result and electronic equipment
CN117668090A (en) * 2024-02-01 2024-03-08 安徽容知日新科技股份有限公司 Data exchange method, data exchange device, electronic equipment and computer readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110825807B (en) * 2019-09-23 2023-07-25 平安科技(深圳)有限公司 Data interactive conversion method, device, equipment and medium based on artificial intelligence

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339384A (en) * 2015-07-07 2017-01-18 小米科技有限责任公司 Conversion method and device for storage procedures
CN108563768A (en) * 2018-04-19 2018-09-21 中国平安财产保险股份有限公司 Data transfer device, device, equipment and the storage medium of different data model
CN109558443A (en) * 2018-11-29 2019-04-02 北京数聚鑫云信息技术有限公司 A kind of method and device of data in integrated data sources
CN109871408A (en) * 2019-03-05 2019-06-11 深圳市网心科技有限公司 A kind of multi-type database adaptation method, device, electronic equipment and storage medium
CN110825807A (en) * 2019-09-23 2020-02-21 平安科技(深圳)有限公司 Data interaction conversion method, device, equipment and medium based on artificial intelligence

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108829727B (en) * 2018-05-09 2021-06-25 未鲲(上海)科技服务有限公司 Data storage method and device, computer equipment and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106339384A (en) * 2015-07-07 2017-01-18 小米科技有限责任公司 Conversion method and device for storage procedures
CN108563768A (en) * 2018-04-19 2018-09-21 中国平安财产保险股份有限公司 Data transfer device, device, equipment and the storage medium of different data model
CN109558443A (en) * 2018-11-29 2019-04-02 北京数聚鑫云信息技术有限公司 A kind of method and device of data in integrated data sources
CN109871408A (en) * 2019-03-05 2019-06-11 深圳市网心科技有限公司 A kind of multi-type database adaptation method, device, electronic equipment and storage medium
CN110825807A (en) * 2019-09-23 2020-02-21 平安科技(深圳)有限公司 Data interaction conversion method, device, equipment and medium based on artificial intelligence

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741904A (en) * 2021-08-27 2021-12-03 浙江惠瀜网络科技有限公司 Data processing method, device and storage medium
US11765604B2 (en) 2021-12-16 2023-09-19 T-Mobile Usa, Inc. Providing configuration updates to wireless telecommunication networks
CN117408231A (en) * 2023-12-14 2024-01-16 上海孤波科技有限公司 Method and device for converting format of chip test result and electronic equipment
CN117408231B (en) * 2023-12-14 2024-04-19 上海孤波科技有限公司 Method and device for converting format of chip test result and electronic equipment
CN117668090A (en) * 2024-02-01 2024-03-08 安徽容知日新科技股份有限公司 Data exchange method, data exchange device, electronic equipment and computer readable storage medium
CN117668090B (en) * 2024-02-01 2024-06-04 安徽容知日新科技股份有限公司 Data exchange method, data exchange device, electronic equipment and computer readable storage medium

Also Published As

Publication number Publication date
CN110825807B (en) 2023-07-25
CN110825807A (en) 2020-02-21

Similar Documents

Publication Publication Date Title
WO2021057064A1 (en) Data interaction conversion method and apparatus based on artificial intelligence, device, and medium
US11249969B2 (en) Data storage method and apparatus, and storage medium
CN110413673B (en) Database data unified acquisition and distribution method and system
CN105701122A (en) Log collection method, apparatus and system
CN111124917B (en) Method, device, equipment and storage medium for managing and controlling public test cases
CN108363684A (en) List creation method, device and server
CN112199442A (en) Distributed batch file downloading method and device, computer equipment and storage medium
CN107566480B (en) User activity information acquisition method and device for mobile terminal application and storage medium
CN112860953A (en) Data importing method, device, equipment and storage medium of graph database
WO2021012506A1 (en) Method and apparatus for realizing load balancing in speech recognition system, and computer device
WO2021012795A1 (en) Network node scheduling method and apparatus, electronic device and storage medium
CN111813418A (en) Distributed link tracking method, device, computer equipment and storage medium
CN109376148B (en) Data processing method and device for slow change dimension table and electronic equipment
CN111475468A (en) Log access method, device, equipment and storage medium of newly added system
CN113852718A (en) Voice channel establishing method and device, electronic equipment and storage medium
CN113850568A (en) Conference room configuration method and device, electronic equipment and storage medium
CN113392091A (en) Distributed cluster data migration method and device
CN111930690A (en) File generation method and device
CN111176715A (en) Information calling method and server
CN112417012A (en) Data processing method and system
CN116561106B (en) Configuration item data management method and system
WO2024113926A1 (en) Sensing data processing method, apparatus, electronic device and readable medium
CN112799929B (en) Root cause analysis method and system of alarm log
CN112925841B (en) Distributed JDBC implementation method, device and computer-readable storage medium
CN112083949B (en) Self-adaptive cross-platform method, device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20869321

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20869321

Country of ref document: EP

Kind code of ref document: A1