Data processing method and device, equipment and storage medium
By introducing data processing components into form-based software, users can automatically process form data through simple text input operations, solving the problem of high barriers to use in existing technologies and improving user experience and data processing efficiency.
Patent Information
- Application Number
- CN202311116948.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2043-08-31
AI Technical Summary
The threshold for using the data processing functions of existing spreadsheet software is high, making it difficult for users to find and use the required data processing functions, resulting in poor user experience.
Provides a data processing method. By introducing data processing components into the form, users can input target text through the text input area to trigger data processing instructions and automatically process table data without knowing specific processing rules. The method includes displaying data processing components, receiving target text, parsing instructions, determining processing rules and performing data processing, supporting conditional filtering, sorting and formatting.
It reduces the complexity and difficulty of user operations, improves data processing efficiency and user experience, and enables users to process and display tabular data conveniently.
Smart Images

Figure CN118656134A
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a data processing method, device, equipment and storage medium. Background Art
[0002] With the development of computer technology, displaying data in tables has become a common technical means. By displaying data in tables, data with the same attributes can be displayed in the same row / column, making it easier for users to view.
[0003] In addition, when viewing data, users can also adjust the arrangement and display of data in the table. For example, users can sort, filter, and highlight data to adjust the sorting and display of data in the table. Through these operations, the characteristics of the data can be further reflected, making it easier for users to view data.
[0004] Currently, various data processing functions can be pre-deployed in applications for viewing tables, but it is still difficult for users to use them. Summary of the invention
[0005] In order to solve the problems of the prior art, the present application provides a data processing method, apparatus, device and storage medium.
[0006] Based on this, the technical solutions provided by this application are as follows:
[0007] In a first aspect, the present application provides a data processing method, the method comprising:
[0008] In response to a display instruction for a first data range in the table, displaying a data processing component, the data processing component including a text input area;
[0009] In response to the data processing instruction for the data processing component, the data in the first data range is processed and the adjustment result is displayed according to the target text received through the text input area.
[0010] In some possible implementations, the target text includes a target instruction text, and the target instruction text indicates a first operation instruction; and the processing of the data in the first data range includes:
[0011] The first adjustment instruction is executed on data in the first data range.
[0012] In some possible implementations, the target instruction text further includes a condition information text, where the condition information text indicates first condition information; and executing the first adjustment instruction on the data in the first data range includes:
[0013] Determining first target data, wherein the first target data matches the first condition information;
[0014] The first target data is processed according to the first operation instruction.
[0015] In some possible implementations, the processing the first target data according to the first operation instruction includes:
[0016] a second data range within the first data range displays the first target data; or,
[0017] The first target data is displayed in a first display mode, and the target text further includes display mode indication text, and the display mode indication text indicates the first display mode.
[0018] In some possible implementations, the processing the first target data according to the first operation instruction includes displaying the first target data in a second data range within the first data range, and the displaying the first target data in the second data range within the first data range includes:
[0019] The non-first target data in the first data range is hidden and displayed.
[0020] In some possible implementations, the processing of the data in the first data range according to the target text received through the text input area includes:
[0021] An instruction control is added in at least one cell corresponding to the first data range.
[0022] In some possible implementations, before processing the data in the first data range, the method further includes:
[0023] Sending the target text to the target model;
[0024] receiving a first processing rule sent by the target model;
[0025] The processing of the data in the first data range comprises:
[0026] The data in the first data range is processed according to the first processing rule.
[0027] In some possible implementations, before processing the data in the first data range according to the first processing rule, the method further includes:
[0028] The feasibility of the first processing rule is verified by processing the data in the first data range.
[0029] In a second aspect, the present application provides a data processing method, which is applied to a server of a target software, the target software having a table processing function, and the method comprises:
[0030] Acquire a target text, wherein the target text is acquired by the client of the target software in the process of processing the data in the first data range in the table and sent to the server;
[0031] Send the target text to the target model;
[0032] A first processing rule fed back by the target model is received, where the first processing rule is used to process data in the first data range.
[0033] In some possible implementations, after sending the target text to the target model, the method further includes:
[0034] Receiving instruction parsing information sent by the target model, wherein the instruction parsing information is obtained by semantically parsing the target text;
[0035] Determine at least one intermediate processing rule according to the instruction parsing information;
[0036] Information of the at least one intermediate processing rule is sent to the target model, wherein the first processing rule is determined from the plurality of intermediate processing rules.
[0037] In some possible implementations, the instruction parsing information includes a first vector, and the first vector corresponds to the target text;
[0038] Determining a plurality of intermediate processing rules according to the first parsing information includes:
[0039] Obtaining feature vectors of multiple candidate processing rules;
[0040] At least one intermediate processing rule is determined from the plurality of candidate processing rules according to the first vector and the feature vector of the candidate processing rule.
[0041] In a third aspect, the present application provides a data processing device, the device comprising:
[0042] A display unit, configured to display a data processing component in response to a display instruction for a first data range in the table, wherein the data processing component includes a text input area;
[0043] a processing unit, for processing the data in the first data range according to the target text received through the text input area in response to a data processing instruction for the data processing component;
[0044] The display unit is further used to display the adjusted data in the first range.
[0045] In some possible implementations, the target text includes a target instruction text, and the target instruction text indicates a first operation instruction; the processing unit is specifically configured to execute the first adjustment instruction on the data in the first data range.
[0046] In some possible implementations, the target instruction text also includes a condition information text, and the condition information text indicates first condition information; the processing unit is specifically used to determine first target data, and the first target data matches the first condition information; and the first target data is processed according to the first operation instruction.
[0047] In some possible implementations, the processing unit is specifically used to display the first target data in a second data range within the first data range; or, to display the first target data in a first display mode, and the target text also includes a display mode indication text, and the display mode indication text indicates the first display mode.
[0048] In some possible implementations, the processing of the first target data according to the first operating instruction includes displaying the first target data in a second data range within the first data range; and the display unit is specifically used to hide and display non-first target data in the first data range.
[0049] In some possible implementations, the processing unit is further used to add an instruction control in at least one cell corresponding to the first data range.
[0050] In some possible implementations, the device also includes a sending unit and a receiving unit, the sending unit is used to send the target text to the target model; the receiving unit is used to receive a first processing rule sent by the target model; the processing unit is also used to process the data in the first data range according to the first processing rule.
[0051] In some possible implementations, the processing unit is further configured to perform feasibility verification on the first processing rule based on processing data in the first data range.
[0052] In a fourth aspect, the present application provides a data processing device, the method being applied to a server side of a target software, the target software having a table processing function, the device comprising: an acquisition unit, for acquiring a target text, the target text being acquired by a client of the target software in the process of processing data in a first data range in a table and sent to the server side; a sending unit, for sending the target text to a target model; and a receiving unit, for receiving a first processing rule fed back by the target model, the first processing rule being used to process the data in the first data range.
[0053] In some possible implementations, the device also includes a processing unit; the receiving unit is further used to receive instruction parsing information sent by the target model, and the instruction parsing information is obtained by semantically parsing the target text; the processing unit is used to determine at least one intermediate processing rule based on the instruction parsing information; the sending unit is further used to send information about the at least one intermediate processing rule to the target model, and the first processing rule is determined from the multiple intermediate processing rules.
[0054] In some possible implementations, the instruction parsing information includes a first vector, which corresponds to the target text; the processing unit is specifically used to obtain feature vectors of multiple candidate processing rules; and determine at least one intermediate processing rule from the multiple candidate processing rules based on the first vector and the feature vectors of the candidate processing rules.
[0055] In a fifth aspect, the present application provides an electronic device, including:
[0056] one or more processors;
[0057] a storage device having one or more programs stored thereon,
[0058] When the one or more programs are executed by the one or more processors, the one or more processors implement any method described in the first aspect, or implement any method described in the second aspect.
[0059] In a sixth aspect, the present application provides a computer-readable medium having a computer program stored thereon, wherein when the program is executed by a processor, the program implements any of the methods described in the first aspect, or implements any of the methods described in the second aspect.
[0060] In a seventh aspect, the present application provides a computer program product. When the computer program product runs on a device, the device executes the method described in the first aspect, or executes the method described in the second aspect.
[0061] It can be seen that this application has the following beneficial effects:
[0062] The present application provides a data processing method, apparatus, device and storage medium. Specifically, data can first be displayed to the user through a table. Then, the user can trigger a display instruction for the first data range in the table. According to the display instruction triggered by the user, the data processing component can be displayed. The data processing component includes a text input area. The user can enter the target text through the text input area. After obtaining the data processing instruction for the data processing component, the data in the first data range can be processed according to the target text and the adjustment result can be displayed. In other words, if the user needs to process the data in the first data range in the table, the user can first trigger the display instruction, then enter the target text in the text input area, and then trigger the data processing instruction so that the data can be processed according to the data processing instruction. In this way, the automatic processing of data can be achieved without the user understanding the specific processing rules, which reduces the usage threshold and improves the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0064] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0065] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;
[0066] Figure 3 A flowchart of a data processing method provided in an embodiment of the present application;
[0067] Figure 4 An interactive schematic diagram of a data processing method provided in an embodiment of the present application;
[0068] Figure 5 A schematic diagram of a data processing device provided in an embodiment of the present application;
[0069] Figure 6 A schematic diagram of a data processing device provided in an embodiment of the present application;
[0070] Figure 7 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0071] The embodiments of the present application will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present application. It should be understood that the drawings and embodiments of the present application are only for exemplary purposes and are not intended to limit the scope of protection of the present application.
[0072] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.
[0073] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.
[0074] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different objects, devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0075] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0076] Processing data through tables is convenient and fast. Currently, more and more users choose to process data through tables. Therefore, many applications provide the function of processing data through tables. The function of processing data through tables can be called table function. Software with table function can be called table software. For example, in order to facilitate users to process data, table function can be integrated into instant messaging (IM) software. Accordingly, IM software that inherits the table function can be called table software.
[0077] When processing data through a table, users may need to perform operations such as calculation, conversion, and analysis on the data in the table. In actual applications, the operations performed by users on the data in the table may be relatively complex. If the user processes the data manually, there will be problems of low processing efficiency and poor user experience.
[0078] In order to facilitate user operation, the processing logic of some data processing functions can be integrated into the table software. In this way, users can process data by calling the data processing functions integrated in the table software. For example, users can process the data in the table by triggering the operation control. Or, users can process the data in the table by inputting instructions. In this way, the efficiency of data processing is improved and the user experience is enhanced.
[0079] However, the processing logic of some data processing functions may be relatively complex. When calling the data processing function, the user is not only required to call the data processing function through instructions, but may also be required to make selections based on the actual situation of the data in the table, or even input auxiliary instruction information or reference information. In this way, the user is required to understand how to use the data processing function, and the threshold for use is relatively high.
[0080] In addition, as the functions of spreadsheet software increase, the data processing functions provided by spreadsheet software will also increase. In this way, although the functions of spreadsheet software are enriched, there may also be problems that are inconvenient for users to use.
[0081] On the one hand, users may not understand the data processing functions of spreadsheet software and cannot use the required data processing functions. In actual application scenarios, users may use spreadsheet software as a tool for processing data and do not have a deep understanding of spreadsheet software. Therefore, users may not understand the data processing functions of spreadsheet software. Even if the data processing functions provided by spreadsheet software can meet the needs of user operations, due to lack of sufficient understanding, users may find it difficult to think of processing data by using the data processing functions of spreadsheet software.
[0082] On the other hand, even if users understand the functions of spreadsheet software, they may not be able to use the function to process data because they cannot find how to use a certain function.
[0083] Specifically, in actual scenarios, if a function provided by a spreadsheet software is triggered by an operation control, and the user cannot find the corresponding operation control, then the user cannot use the function corresponding to the operation control.
[0084] In actual scenarios, the display area of spreadsheet software is limited. Therefore, in order to save the display area of spreadsheet software, the operation controls corresponding to some less frequently used data processing functions may be deployed in an inconspicuous position in the display interface, or hidden in the expanded menu, or displayed in the form of small icons. In this way, even if the user knows that the spreadsheet software provides a certain data processing function, the user may not be able to find the operation control corresponding to the data processing function, and cannot call the giant data processing function to process the data.
[0085] It can be seen that users may lack understanding of spreadsheet software and are unable to use the functions provided by spreadsheet software to process data, resulting in a poor user experience.
[0086] In order to solve the problems of the prior art, an embodiment of the present application provides a data processing method, which is described in detail below in conjunction with the drawings in the specification.
[0087] First, an exemplary application scenario of the embodiment of the present application is introduced. Figure 1 , which is a schematic diagram of the framework of an exemplary application scenario provided by an embodiment of the present application. Figure 1 The implementation shown includes a client 110, a server 120 and a target model 130. The client 110 and the server 120 may be connected via a network. The server 120 and the target model 130 may also be connected via a network.
[0088] The client 110 may be run on a terminal device used by a user, such as a mobile phone, a computer, or other terminal device. The server 120 may be run on a server or a server cluster to provide services for the client 110. Data may be exchanged between the client 110 and the server 120.
[0089] The target model 130 can run on a server or a server cluster. Optionally, the server (or server cluster) used to implement the target 0 and the server (or server cluster) used to implement the server 120 can be the same or different. The target model 130 is used to provide services of the target model to the outside. For example, a target model can be run in the target model 130. The server 120 can send data to be processed to the target model 130, and the target model 130 can process the data to be processed through the target model and send the processed data to the server 120. Optionally, the above-mentioned target model can be a language model (Language Model, LM) or a large language model (Large Language Model, LLM).
[0090] The above introduces an exemplary application scenario of the embodiment of the present application. The following is an exemplary introduction to the data processing method provided by the embodiment of the present application.
[0091] See also Figure 2 , Figure 2 The present application provides a flowchart of a data processing method, which can be applied to application scenarios where data is processed through a table. The data processing method can be executed by a data processing device, and the data processing determination device can be implemented by software.
[0092] It should be noted that Figure 3 The data processing device in the corresponding embodiment, and Figure 2 The data processing device in the corresponding embodiment may be a different device. For example, Figure 3 The data processing device in the corresponding embodiment can be run on the server side of the spreadsheet software. Figure 2 The data processing device in the corresponding embodiment can be run on the client of the spreadsheet software.
[0093] Optionally, the data processing device can be integrated into the client of the spreadsheet software. The client of the software runs on the terminal device used by the user, such as a mobile phone or computer. The client can be an application client or a web client of the spreadsheet software. The server of the software can run on a server or a server cluster to provide corresponding services for the client of the software. Optionally, the spreadsheet software can be an instant messaging (IM) software with spreadsheet functions. If the data processing device is integrated into the client, the data processing device can communicate with the server to use the target model through the server. Optionally, in Figure 1 In the application scenario shown, the data processing device can be integrated into the client 110. For ease of introduction, the following description is made by taking the data processing device integrated into the client as an example.
[0094] like Figure 2 As shown, the method specifically comprises the following steps:
[0095] S201: In response to a display instruction for a first data range in a table, display a data processing component.
[0096] In an embodiment of the present application, a data processing device may display a data processing component according to a display instruction for a first data range in a table. The first data range is a data range in a table, corresponding to a portion or the entire table in the table. The display instruction is an instruction triggered by a user. The data processing component includes a text input area. The text input area is used to receive text input by a user. For ease of introduction, the data in the first data range may be referred to as first data or target data.
[0097] In an embodiment of the present application, the data processing component may be displayed based on the user's operation. The operation corresponds to a display instruction. Specifically, before the display instruction is obtained, the data processing component may be in a hidden state. After the display instruction is obtained, the data processing component may be displayed. Among them, the operation corresponding to the display instruction may include a first operation. The first operation may include an operation of pressing a preset shortcut key, an operation of clicking a preset control, and an operation of issuing a voice instruction. The embodiment of the present application does not limit the first operation.
[0098] Furthermore, the display instruction is for the first data range in the table. Accordingly, the operation corresponding to the display instruction may also include an operation for determining the first data range. The operation for determining the first data range may be referred to as a second operation. Optionally, the second operation may include, for example, a box selection operation. The user may select the data to be processed through the box selection operation to obtain the first data range.
[0099] Optionally, the second operation can be triggered before the first operation. That is, in order to trigger the display instruction, the user can first trigger the second operation and select the first data range corresponding to the target data to be processed in the table. Then, the user can trigger the first operation to evoke the hidden data processing component.
[0100] That is, if the user wants to use the target function to process the target data, the user can trigger the first operation. After acquiring the first operation triggered by the user, the data processing component can be displayed to the user. The data processing component includes a text input area. After the data processing component is displayed, the user can enter the target text in the text input area.
[0101] Optionally, the data processing component may further include prompt information. The prompt information may correspond to the text input area and is used to prompt the user to process the data in the table by inputting text information in the text input area.
[0102] Optionally, the data processing component may further include a data processing control. The data processing control is used to trigger a third operation. The third operation corresponds to the data processing instruction. For an introduction to the third operation and the data processing instruction, please refer to the following, which will not be repeated here.
[0103] In some possible implementations, the processing rules corresponding to the target text may be determined by a model. The model may be a model with a natural language processing (NLP) function, such as a language model or a large language model. Optionally, the data processing component may correspond to a cloud service corresponding to the model. For ease of explanation, the cloud service may be referred to as a first cloud service.
[0104] That is, the user can call the first cloud service to process the data in the first data range in the table through the target text. Accordingly, the data processing device can be a software module on the client for implementing the first cloud service. The data processing component can be a display area corresponding to the first cloud service. The data processing device can process the data by calling the server of the first cloud service.
[0105] In this way, the first operation can be an operation of using the first cloud service. For example, the user can first trigger the second operation to determine the first data display range, then trigger a right-click operation to call up a menu, and then trigger a left-click operation on the operation control corresponding to the first cloud service in the menu.
[0106] In the above implementation, the data processing component is displayed based on the display instruction. In some other possible implementations, the data processing component can also be deployed in a specific area of the client interface of the table software, for example, it can be deployed in the menu bar of the client interface. Accordingly, when processing the target data, if the user wants to process the target data, the user can switch the text input cursor to the data processing component, thereby inputting the target text through the text input area of the data processing component.
[0107] After the data processing component is displayed to the user, the user can enter the target text in the text input area and trigger the data processing instruction. The target text is used to indicate the user's intention to process the target data, and the data processing instruction is used to start the processing flow of the target data. Optionally, the user can obtain the data processing instruction by triggering a third operation. The third operation may, for example, include a single-click operation triggered by the user for the data processing control. That is, after completing the input of the target text, the user can trigger the third operation. Accordingly, the data processing device can obtain the data processing instruction according to the third operation and execute step S202 described below.
[0108] S202: In response to a data processing instruction for a data processing component, according to a target text received through a text input area, processing data in a first data range and displaying an adjustment result.
[0109] After receiving the data processing instruction triggered by the user, the data processing device can process the data in the first data range according to the target text received in the text input area, and display the adjustment result. Optionally, the processing rule based on which the data in the first data range is processed can be referred to as the first processing rule. That is, the first processing rule can include the first operation instruction, target condition information and the first display mode described below.
[0110] Optionally, the data processing device may send a data processing instruction and a target text to the server, so that the server processes the data in the first data range according to the target text. The data processing device may receive the adjusted data sent by the server and display it to the user. Optionally, the server may parse the target text through a model, and then adjust the data in the first data range according to the parsed data. For an introduction to this part, please refer to the following text and will not be repeated here.
[0111] The following describes an implementation method for partially adjusting the data in the first data range. Optionally, the data can be processed on the client, or the data processing device of the client can send the data to the server so that the data can be processed by the server. The implementation method described below does not limit the execution subject of adjusting the data.
[0112] In an embodiment of the present application, the adjustment of the data in the first data range is performed according to the instructions of the target text. Optionally, the target text may include a target instruction text, and the target instruction text is used to indicate the first operation instruction. The first operation instruction matches the adjustment made to the data in the first data range. Optionally, the first operation instruction can be obtained by parsing the target instruction text by the model. In other words, when processing the data in the first data range, the first adjustment instruction can be executed on the data in the first data range.
[0113] In actual scenarios, users may need to process data according to certain conditions. Accordingly, the target text input by the user may also include conditional information text, and the conditional information text is used to indicate the first conditional information. Accordingly, when processing the data in the first data range according to the target text, the target text can be parsed to obtain the first conditional information corresponding to the conditional information text, and then the data is processed according to the first conditional information. Optionally, the conditional information text and the aforementioned target instruction text can be the same text, for example, they can be different parts of the same natural sentence.
[0114] When processing the data in the first data range according to the first condition information, data matching the first condition information can be determined from the data in the first data range according to the first condition information. The data matching the first condition information can be referred to as first target data. After the first target data is determined, the first target data can be processed according to the first operation instruction.
[0115] Optionally, the first operation instruction may include a conditional screening instruction, a conditional sorting instruction and a conditional format setting instruction, which are introduced below respectively.
[0116] In a first possible implementation, the first operation instruction includes a conditional screening instruction. Accordingly, after the first target data is determined, the first target data can be displayed in a second data range in the first data range. The second data range can be a pre-selected data range in the first data range, for example, it can be the data range on the leftmost and topmost side of the first data range except for the header. Furthermore, non-first target data in the first data range can also be displayed abnormally.
[0117] In a second possible implementation, the first operation instruction includes a conditional sorting instruction. Accordingly, after the first target data is determined, the data in the first data range may be sorted, and the first target data may be displayed before the non-first target data.
[0118] In a third possible implementation, the first operation instruction includes a conditional format setting instruction. Accordingly, after the target data is determined, the first target data can be displayed in a first display mode. The first display mode is a display mode set by a user for displaying the first target data. Optionally, the first display mode can be determined based on the target text. For example, the target text may include a display mode indication text, and the display mode indication text is used to indicate the first display mode.
[0119] The third possible implementation is described below in combination with actual usage scenarios. It is understandable that what is described below is only one implementation and does not represent the only implementation.
[0120] Assume that the target data includes data of type A, data of type B, and data of type C, and the user wants to highlight and view the data of type A in the target data.
[0121] First, the user can trigger the first operation and the second operation to control the display of the data processing component. For example, the user can first select the target data and trigger the right-click operation. According to the right-click operation triggered by the user, the client can display an operation menu to the user. The operation menu may include a first cloud service operation control. By triggering the first cloud service operation control, the user can control the client to display the data processing component. Then, the user can enter the text "Find data of type A and highlight it with a yellow background" in the text input area of the data processing component and trigger the confirmation operation (i.e., the aforementioned third operation).
[0122] After obtaining the text "find data of type A and highlight it with a yellow background", the client can send the text to the target model through the server, and receive the information obtained by the model from parsing the text. The information may include relevant information of the first operation instruction, first condition information, and relevant information of the first display mode. Among them, the relevant information of the first operation instruction is used to indicate that the first operation instruction is an instruction for setting a conditional type, the first condition information includes relevant information indicating data of "type A", and the relevant information of the first display mode includes relevant information indicating "yellow background".
[0123] Next, the data processing device can call the operation interface for setting conditional format provided by the table software to set the background color of the data of "type A" in the target data to "yellow", and display it to the user through the client.
[0124] The embodiment of the present application provides a data processing method. Specifically, data can first be displayed to the user through a table. Then, the user can trigger a display instruction for the first data range in the table. According to the display instruction triggered by the user, a data processing component can be displayed. The data processing component includes a text input area. The user can enter the target text through the text input area. After obtaining the data processing instruction for the data processing component, the data in the first data range can be processed according to the target text and the adjustment result can be displayed. In other words, if the user needs to process the data in the first data range in the table, the user can first trigger the display instruction, then enter the target text in the text input area, and then trigger the data processing instruction so that the data can be processed according to the data processing instruction. In this way, the automatic processing of data can be achieved without the user understanding the specific processing rules, which reduces the usage threshold and improves the user experience.
[0125] In some possible implementations, the processing of data by the data processing device may deviate from the actual needs of the user. That is, the processing of the target data according to the target text may not meet the needs of the user. In some possible implementations, in order to achieve the correct processing of the target data, the user can cancel the processing of the target data by triggering an operation.
[0126] Specifically, if the user wants to cancel the processing of the target data, the user can trigger the fourth operation. The fourth operation is used to cancel the processing of the target data. After the fourth operation is obtained, the modification of the target data can be canceled according to the fourth operation, and the target data is displayed in the display area corresponding to the target data.
[0127] In some possible implementations, the fourth operation may be triggered by an existing shortcut key or operation control. For example, the user may use a shortcut key corresponding to the undo operation to trigger the fourth operation. Alternatively, the user may also trigger the fourth operation by clicking an operation control corresponding to the undo operation.
[0128] In some other possible implementations, the user may also trigger the fourth operation through a control in the data processing component. Specifically, after the target data is processed through the first processing rule, the first control may be displayed in the data processing component. If the user wants to cancel the processing of the target data, the user may trigger the fourth operation through the first control. Optionally, the first control may include prompt information to prompt the user that the processing of the target data may be canceled through the first control.
[0129] The above describes the relevant contents of the data processing device in the client in the data processing method provided in the embodiment of the present application. In some possible implementations, the target text can be processed by a model.
[0130] Combine the following Figure 3 , from the perspective of the server of spreadsheet software, an exemplary introduction is given to the data processing method provided in the embodiment of the present application.
[0131] See also Figure 3 , Figure 3 The present application provides a flow chart of a data processing method, which can be applied to application scenarios where data is processed through a table. The data processing method can be executed by a data processing device running on a server.
[0132] It should be noted that Figure 3 The data processing device in the corresponding embodiment, and Figure 2 The data processing device in the corresponding embodiment may be a different device. For example, Figure 3 The data processing device in the corresponding embodiment can be run on the server side of the spreadsheet software. Figure 2 The data processing device in the corresponding embodiment can be run on the client of the spreadsheet software.
[0133] The data processing device can be implemented by software. Optionally, the device can include a model for processing the target request data according to the example data, or the device can be associated with a model for processing the target request data according to the example data. Optionally, the above-mentioned model can include, for example, an LM model or an LLM model. In the embodiment of the present application, the model can be referred to as a target model.
[0134] Optionally, the data processing device can be integrated into the server of the table software. The server of the table software can run on a server or a server cluster to provide corresponding services for the client of the software. If the data processing device is integrated into the server, the data processing device can communicate with the client to obtain the target request data to be processed sent by the client. Optionally, the data processing device can also communicate with the target model to send sample data and target request data to the target model. For ease of introduction, the following is an example of the data processing device being integrated into the server.
[0135] like Figure 3 As shown, the method specifically comprises the following steps:
[0136] S301: Obtain target text.
[0137] In order to process the target data, the user can call up the data processing component on the client of the table software and input the target text through the text input box of the data processing component. According to the data processing instruction for the data processing component, the client of the table software can send the target text to the server of the table software. Accordingly, the data processing device running on the server of the table software can obtain the target text.
[0138] S302: Sending the target text to the target model.
[0139] After acquiring the target text, the data processing device may send the target text to the target model. Optionally, the target model may be a model with a semantic parsing function, such as LM or LLM. Accordingly, the target text is a natural language text, and the first processing rule parsed from the target text may be implemented based on a structured language. For example, the first processing rule may be implemented based on a JavaScript Object Notation (JSON) language.
[0140] Accordingly, the data processing device may send a prompt message to the target model. The prompt message may include the target text and other information. For a detailed description of determining the first processing rule by the target model, please refer to the following text. Figure 4 The corresponding embodiments are described in detail here.
[0141] S303: Receive the first processing rule fed back by the target model.
[0142] After acquiring the target text, the target model can parse the target text to determine the corresponding first processing rule. Then, the target model can send the first processing rule to the server so that the data in the first data range can be processed according to the first processing rule. Optionally, before the data in the first data range is processed according to the first processing rule, the feasibility of the first processing rule can be checked.
[0143] In an embodiment of the present application, the data processing device may be configured in advance with the ability to parse the first processing rule. In this way, after obtaining the first processing rule, the first processing rule may be parsed, so that the target data may be processed according to the corresponding processing flow. For example, according to the foregoing description, the target model may be LM or LLM, and the first processing rule may be implemented based on JSON. Accordingly, the data processing device may be configured with the ability to parse JSON.
[0144] According to the foregoing description, the table software can be preset with a variety of data processing functions. Accordingly, when the target data is processed according to the first processing rule, the data processing function provided by the table software can be called according to the first processing rule to process the target data. Specifically, an interface for calling the data processing function can be configured in the table software. After obtaining the first processing rule, the corresponding data processing interface can be called according to the first processing rule to process the target data.
[0145] In the embodiment of the present application, the target data may be processed by a data processing device according to a first processing rule, or may be processed by other modules or devices.
[0146] In some possible implementations, the client of the table software has the function of processing data, so the data processing device can call the client of the table software to process the target data according to the first processing rule. For example, if the data processing device runs on the client, the data processing device can locally call the interface of the data processing function to process the target data according to the first processing rule. Alternatively, if the data processing device runs on the server, the data processing device can send the first processing rule to the client, or send instruction information obtained by parsing the first processing rule. The client of the table software can process the target data according to the first processing rule or the instruction information.
[0147] In some other possible implementations, the client of the spreadsheet software does not have the function of processing data, and the data processing is performed by the server of the spreadsheet software. For example, in some cloud service scenarios, the client used by the user does not have the ability to process data, and the data processing is implemented by the server running on the cloud. Then the data processing device can run on the server to process the target data according to the first processing rule. Alternatively, if the data processing device runs on the client, the data processing device can send the first processing rule to the server to process the target data according to the first processing rule.
[0148] In the implementation described above, the first processing rule may be determined by the target model according to the target text. Figure 1 Taking the implementation shown as an example, a method for determining the first processing rule through a target model is introduced.
[0149] In some possible implementations, the client 110 may send the target text to the target model through the server 120. The target model 130 may parse the target text to determine the user's intention, and then determine the corresponding first processing rule, and then send relevant information of the first processing rule to the client 110 through the server 120.
[0150] Alternatively, if the target model 130 is a model with context learning capability such as LM or LLM, the target model 130 may first perform context learning on the relevant information of the processing rule, and then process the target text according to the result of the context learning. In this way, by performing context learning on the relevant information of the processing rule, the first processing rule determined by the target model 130 is more in line with the user's intention.
[0151] Optionally, the relevant information about the processing rules can be pre-organized and stored. When the target model is required to determine the first processing rule, the server 120 can obtain the relevant information about the processing rule and send the relevant information about the processing rule to the target model 130 through prompt information, so that the target model 130 performs context learning according to the relevant information about the processing rule.
[0152] According to the above introduction, the first processing rule may correspond to the data processing function provided by the table software. According to the first processing rule, the data processing function provided by the table software may be called to process the data. Therefore, in the process of determining the first processing rule, the relevant information used for context learning may include the relevant information of the data processing function provided by the table software. For example, it may include a document corresponding to the table software for introducing the data processing function provided by the table software.
[0153] In actual scenarios, table-type software may provide multiple data processing functions. Accordingly, if the number of data processing functions is large, and the amount of data that can be carried by prompt information is limited, then prompt information may not be able to completely carry the relevant information of all data processing functions in the table-type software. In this way, the target model 130 cannot completely learn the relevant information of the data processing functions of the table-type software in the context, and may not be able to accurately determine the first processing rule.
[0154] To this end, in some possible implementations, multiple identifications may be performed using the target model 130. Figure 4 Provide a detailed introduction.
[0155] See also Figure 4 , Figure 4 A flowchart of a method for determining a first processing rule provided in an embodiment of the present application is applicable to Figure 1 The network architecture shown in FIG. 1 is used to determine the application scenario of the processing rule corresponding to the target text through the target model 130. The target model 130 is a model with semantic recognition capability, and the target model 130 can perform context learning. For example, the target model 130 can include an LM model or an LLM model.
[0156] like Figure 4As shown, the method specifically comprises the following steps:
[0157] S401: The client 110 sends a target text to the server 120 .
[0158] For an introduction to the target text, please refer to the previous article and will not be repeated here.
[0159] S402: The server 120 sends the target text to the target model 130.
[0160] After acquiring the target text sent by the client 110, the server 120 may send the target text to the target model 130. Optionally, the server 120 may send the target text to the target model 130 through the first prompt information.
[0161] It should be noted that, before step S405 , the target model 130 may not have performed context learning on the target text and does not have the ability to determine the first processing rule according to the target text.
[0162] S403: The target model 130 determines instruction parsing information according to the target text.
[0163] After acquiring the target text, the target model 130 can perform semantic analysis on the target text to determine the instruction parsing information corresponding to the target text. Optionally, the first prompt information may include relevant information for semantic analysis so that the target model 130 can perform context learning. In this way, the target model 130 first performs context learning and then parses the target text, so that the instruction parsing information can be accurately determined.
[0164] In the embodiment of the present application, the instruction parsing information may be a vector. That is, the target model 130 may vectorize (embedding) the target text. For ease of introduction, the vector corresponding to the instruction parsing information may be referred to as a first vector.
[0165] S404: The target model 130 sends instruction parsing information to the server 120 .
[0166] After determining the instruction parsing information corresponding to the target text, the target model 130 may send the instruction parsing information to the server 120 .
[0167] S405: The server 120 determines at least one intermediate processing rule according to the instruction parsing information.
[0168] After acquiring the instruction parsing information, the server 120 may determine at least one intermediate processing rule according to the instruction parsing information. Moreover, the similarity between the intermediate processing rule and the first processing rule is higher than the similarity between the non-intermediate processing rule and the first processing rule.
[0169] In the embodiment of the present application, the intermediate processing rule is determined according to the data processing function provided by the table-type software. The intermediate processing rule can be a processing rule for calling the data processing function. That is, the intermediate processing rule can correspond to a data processing function of the table-type software. Processing data according to the intermediate processing rule is equivalent to processing the data using the data processing function.
[0170] Specifically, multiple candidate processing rules can be predetermined. The candidate processing rules correspond to the data processing functions provided by the table-type software. After the instruction parsing information is obtained, the intermediate processing rule can be determined from the multiple candidate processing rules according to the instruction parsing information. In this embodiment, the intermediate processing rule can be determined according to the feature vector of the candidate processing rule. For example, the intermediate processing rule can be determined according to the similarity between the feature vector of the candidate processing rule and the vector corresponding to the instruction parsing information.
[0171] Optionally, the feature vector of the candidate processing rule can be obtained by vectorizing the description information of the candidate processing rule. The description information of the candidate processing rule is the relevant information used to describe the candidate processing rule. For example, it may include the role of the candidate processing rule, the interface of the candidate processing rule corresponding to the data processing function, and the relevant parameters required by the candidate processing rule. Optionally, the description information of the processing rule can be determined by the introduction information of the table software. The introduction information of the table software may include, for example, the instruction manual or user manual of the table software.
[0172] In actual application, the description information of the candidate processing rules can be vectorized in advance to obtain the feature vector of each candidate processing rule. Then, the feature vector of the candidate processing rule can be stored in the database 140 (not shown in the figure). After obtaining the instruction parsing information, the feature vector of the candidate processing rule can be obtained from the database.
[0173] Next, the similarity between the first vector and the feature vector of each candidate processing rule may be calculated respectively, for example, the cosine similarity and double dot product (doubledot, ddot) between the first vector and the feature vector of the candidate processing rule may be calculated, and then at least one intermediate processing rule may be determined according to the calculation results.
[0174] S406: The server 120 sends information of at least one intermediate processing rule to the target model 130 .
[0175] After determining at least one intermediate processing rule, the server 120 may send relevant information of the at least one intermediate processing rule to the target model 130. The relevant information of the intermediate processing rule may include, for example, the expression of the intermediate processing rule, the description information of the intermediate processing rule, and the vector corresponding to the intermediate processing rule.
[0176] Specifically, the server 120 may generate a second prompt message, and then send the second prompt message to the target model 130. The second prompt message may include information of the intermediate processing rule. Optionally, the second prompt message may also include target text or instruction parsing information.
[0177] Before generating the second prompt information, one or more judgments may be performed. For example, it may be determined whether the target text is irrelevant to the data processing function of the spreadsheet software, whether the number of tokens included in the second prompt information exceeds a preset threshold, and whether the correlation between the intermediate processing rules and the target text is reasonable. After the judgment is passed, the corresponding second prompt information may be generated.
[0178] S407: The target model 130 performs context learning on information of at least one intermediate processing rule and determines a first processing rule.
[0179] After acquiring information about at least one intermediate processing rule, the target model 130 may perform context learning based on the information about the intermediate processing rule, and process the target text (or instruction parsing information) after the context learning to determine information about the first processing rule corresponding to the target text.
[0180] S408 : The target model 130 sends information of the first processing rule to the client 110 through the server 120 .
[0181] After determining the information of the first processing rule, the target model 130 may send the information of the first processing rule to the client 110 through the server 120. Accordingly, the data processing device may obtain the information of the first processing rule and display it.
[0182] That is to say, if there is too much relevant information of the processing rule and it cannot be carried by the prompt information, then the target model 130 can first perform a preliminary analysis on the target text to determine the instruction parsing information corresponding to the target text. Then, the server 120 can perform a preliminary screening of the candidate processing rules according to the instruction parsing information to find out the information of the intermediate processing rules with a high correlation with the instruction parsing information. In this way, through the screening of the server 120, the processing rules that are irrelevant to the target text can be filtered out, and the intermediate processing rules with a high correlation with the target text can be screened out. Since the number of intermediate processing rules is less than the number of candidate processing rules, the prompt information can carry the relevant information of the intermediate processing rules. In addition, since the information of the intermediate processing rules is screened out according to the instruction parsing information, the degree of association between the intermediate processing rules and the first processing rule is higher than the degree of association between the non-intermediate processing rules and the first processing rule, the target model 130 performs context learning according to the information of the intermediate processing rules, and the accuracy of the target model 130 will not be affected. In this way, on the basis of ensuring the accuracy of the first processing rule, the data volume of the prompt information is reduced.
[0183] Based on a data processing method provided by the above method embodiment, the present application embodiment also provides two data processing devices, which respectively run on the client and server of the table software. The data processing device will be described below in conjunction with the accompanying drawings.
[0184] See also Figure 5 As shown in FIG. 1 , this figure is a schematic diagram of the structure of a data device running on a client of a table-type software provided in an embodiment of the present application. Figure 5 As shown, the data processing device 500 includes:
[0185] A display unit 510, for displaying a data processing component in response to a display instruction for a first data range in a table, wherein the data processing component includes a text input area;
[0186] A processing unit 520, for processing the data in the first data range according to the target text received through the text input area in response to the data processing instruction for the data processing component;
[0187] The display unit 510 is further configured to display the adjusted data in the first range.
[0188] In some possible implementations, the target text includes a target instruction text, and the target instruction text indicates a first operation instruction; the processing unit 520 is specifically configured to execute the first adjustment instruction on the data in the first data range.
[0189] In some possible implementations, the target instruction text also includes a condition information text, and the condition information text indicates first condition information; the processing unit 520 is specifically used to determine first target data, and the first target data matches the first condition information; and the first target data is processed according to the first operation instruction.
[0190] In some possible implementations, the processing unit 520 is specifically used to display the first target data in a second data range within the first data range; or, to display the first target data in a first display mode, and the target text also includes a display mode indication text, and the display mode indication text indicates the first display mode.
[0191] In some possible implementations, the processing of the first target data according to the first operating instruction includes displaying the first target data in a second data range within the first data range; and the display unit 510 is specifically used to hide and display non-first target data in the first data range.
[0192] In some possible implementations, the processing unit 520 is further used to add an instruction control in at least one cell corresponding to the first data range.
[0193] In some possible implementations, the device also includes a sending unit and a receiving unit, the sending unit is used to send the target text to the target model; the receiving unit is used to receive a first processing rule sent by the target model; the processing unit is also used to process the data in the first data range according to the first processing rule.
[0194] In some possible implementations, the processing unit is further configured to perform feasibility verification on the first processing rule based on processing data in the first data range.
[0195] See also Figure 6 As shown in FIG. 1 , this figure is a schematic diagram of the structure of a data device running on a server of a table-type software provided in an embodiment of the present application. Figure 6 As shown, the data processing device 600 includes:
[0196] An acquisition unit 610 is used to acquire a target text, wherein the target text is acquired by the client of the target software in the process of processing the data in the first data range in the table and sent to the server;
[0197] A sending unit 620, configured to send the target text to the target model;
[0198] The receiving unit 630 is used to receive a first processing rule fed back by the target model, where the first processing rule is used to process the data in the first data range.
[0199] Optionally, the acquiring unit 610 and the receiving unit 630 may be the same unit or different units.
[0200] In some possible implementations, the device also includes a processing unit; the receiving unit 630 is further used to receive instruction parsing information sent by the target model, and the instruction parsing information is obtained by semantically parsing the target text; the processing unit is used to determine at least one intermediate processing rule based on the instruction parsing information; the sending unit 620 is further used to send information of the at least one intermediate processing rule to the target model, and the first processing rule is determined from the multiple intermediate processing rules.
[0201] In some possible implementations, the instruction parsing information includes a first vector, which corresponds to the target text; the processing unit is specifically used to obtain feature vectors of multiple candidate processing rules; and determine at least one intermediate processing rule from the multiple candidate processing rules based on the first vector and the feature vectors of the candidate processing rules.
[0202] Based on the data processing method provided by the above method embodiments, the present application also provides an electronic device, including: one or more processors; a storage device, on which one or more programs are stored, when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method as described in any of the above embodiments.
[0203] Reference below Figure 7 , which shows a schematic diagram of the structure of an electronic device 700 suitable for implementing an embodiment of the present application. The terminal device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (portable android devices), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs (televisions), desktop computers, etc. The electronic device shown in the figure is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0204] like Figure 7As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0205] Typically, the following devices may be connected to the I / O interface 705: an input device 708 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0206] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a non-transitory computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0207] The electronic device provided in the embodiment of the present application and the data processing method and file sending method provided in the above embodiment belong to the same inventive concept. The technical details not fully described in this embodiment can be referred to the above embodiment, and this embodiment has the same beneficial effects as the above embodiment.
[0208] Based on the method provided in the above method embodiments, an embodiment of the present application provides a computer storage medium on which a computer program is stored, wherein when the program is executed by a processor, the data processing method as described in any of the above embodiments is implemented.
[0209] It should be noted that the computer-readable medium mentioned above in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0210] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.
[0211] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0212] The computer-readable medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device executes the data processing method.
[0213] Computer program code for performing the operations of the present application may be written in one or more programming languages or a combination thereof, including, but not limited to, object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0214] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present application. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0215] The units involved in the embodiments described in this application may be implemented by software or hardware. The name of a unit / module does not limit the unit itself in some cases. For example, a voice data acquisition module may also be described as a "data acquisition module".
[0216] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.
[0217] In the context of the present application, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0218] It should be noted that the various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the various embodiments can be referred to each other. For the system or device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part description.
[0219] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0220] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0221] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A data processing method, characterized in that: The method comprises: In response to a display instruction for a first data range in the table, displaying a data processing component, the data processing component including a text input area; In response to the data processing instruction for the data processing component, the data in the first data range is processed and the adjustment result is displayed according to the target text received through the text input area.
2. The method according to claim 1, characterized in that The target text includes a target instruction text, and the target instruction text indicates a first operation instruction; and the processing of the data in the first data range includes: The first adjustment instruction is executed on data in the first data range.
3. The method according to claim 2, characterized in that The target instruction text further includes a condition information text, wherein the condition information text indicates first condition information; and executing the first adjustment instruction on the data in the first data range includes: Determining first target data, wherein the first target data matches the first condition information; The first target data is processed according to the first operation instruction.
4. The method according to claim 3, characterized in that The processing of the first target data according to the first operation instruction includes: a second data range within the first data range displays the first target data; or, The first target data is displayed in a first display mode, and the target text further includes display mode indication text, and the display mode indication text indicates the first display mode.
5. The method according to claim 4, characterized in that The processing of the first target data according to the first operation instruction includes displaying the first target data in a second data range within the first data range, and the displaying of the first target data in the second data range within the first data range includes: The non-first target data in the first data range is hidden and displayed.
6. The method according to claim 1, characterized in that The processing of the data in the first data range according to the target text received through the text input area includes: An instruction control is added in at least one cell corresponding to the first data range.
7. The method according to any one of claims 1 to 6, characterized in that: Before processing the data in the first data range, the method further includes: Sending the target text to the target model; receiving a first processing rule sent by the target model; The processing of the data in the first data range comprises: The data in the first data range is processed according to the first processing rule.
8. The method according to claim 7, characterized in that Before processing the data in the first data range according to the first processing rule, the method further includes: The first processing rule is checked for feasibility based on the data in the first data range.
9. A data processing method, characterized in that: The method is applied to the server side of the target software, the target software has a table processing function, and the method includes: Acquire a target text, wherein the target text is acquired by the client of the target software in the process of processing the data in the first data range in the table and sent to the server; Send the target text to the target model; A first processing rule fed back by the target model is received, where the first processing rule is used to process data in the first data range.
10. The method according to claim 9, characterized in that After sending the target text to the target model, the method further includes: Receiving instruction parsing information sent by the target model, wherein the instruction parsing information is obtained by semantically parsing the target text; Determine at least one intermediate processing rule according to the instruction parsing information; Information of the at least one intermediate processing rule is sent to the target model, wherein the first processing rule is determined from the plurality of intermediate processing rules.
11. The method according to claim 10, characterized in that The instruction parsing information includes a first vector, and the first vector corresponds to the target text; Determining a plurality of intermediate processing rules according to the first parsing information includes: Obtaining feature vectors of multiple candidate processing rules; At least one intermediate processing rule is determined from the plurality of candidate processing rules according to the first vector and the feature vector of the candidate processing rule.
12. A data processing device, characterized in that: The device comprises: A display unit, configured to display a data processing component in response to a display instruction for a first data range in the table, wherein the data processing component includes a text input area; a processing unit, for processing the data in the first data range according to the target text received through the text input area in response to a data processing instruction for the data processing component; The display unit is further used to display the adjusted data in the first range.
13. A data processing device, characterized in that: The device is applied to the server side of the target software, the target software has a table processing function, and the device includes: An acquisition unit, used for acquiring a target text, wherein the target text is acquired by the client of the target software in the process of processing the data in the first data range in the table and sent to the server; A sending unit, used for sending the target text to the target model; A receiving unit is used to receive a first processing rule fed back by the target model, where the first processing rule is used to process the data in the first data range.
14. An electronic device, characterized in that: include: one or more processors; a storage device having one or more programs stored thereon, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 11.
15. A computer readable medium, characterized in that A computer program is stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 11 is implemented.
Citation Information
Patent Citations
Service rule processing method, server and computer readable storage medium
CN109783802A
Method and system for generating spreadsheet and related device
CN112632936A
Data insertion method and device, equipment and storage medium
CN114564924A
Numerical value operation method and system for WORD table data
CN116187287A
