Data processing method and device, equipment and storage medium
By displaying the data processing component in the form, the user can input target text to obtain and insert the target formula, which solves the problem of inconvenient use of formulas in the prior art and improves user experience and data processing efficiency.
Patent Information
- Application Number
- CN202311120124.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-31
- Publication Date
- 2024-09-17
AI Technical Summary
The formula function of existing spreadsheet software is inconvenient for users to use, and it is difficult for users to understand and call the built-in formulas, resulting in low data processing efficiency.
Provide a data processing method. By displaying the data processing component in the table, the user can input the target text to obtain the target formula. The component includes a text input area and an insertion component, which automatically parses and inserts the target formula into the table, lowering the user threshold.
There is no need for users to understand specific formulas, and automatic input of formulas is realized, which improves user experience and data processing efficiency.
Smart Images

Figure CN118657124A
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] Currently, users can process data by calling formulas. Among them, the formula is the processing logic pre-deployed in the software with table editing function (hereinafter referred to as table software). The user can enter or select the corresponding formula and select the data corresponding to the formula from the table software. Then, the processing results obtained by processing the selected data through the processing logic can be displayed in the table software. Through the formula, complex processing can be performed on the data in the table software, which improves the efficiency of table editing.
[0004] However, the formula function of current spreadsheet software is not user-friendly. 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 receiving a trigger instruction in the form, 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 target text received through the text input area is parsed into a target formula and the target formula is displayed.
[0010] In some possible implementations, the target text includes a formula type description text, and the processing logic described in the formula type description text matches the processing logic of the target formula.
[0011] In some possible implementations, the method further includes:
[0012] At least one of the target formula, example information of the target formula and description information of the target formula is displayed in the data processing component, and the description information of the target formula is used to introduce the processing logic of the target formula.
[0013] In some possible implementations, the target text further includes a data range description text, and the data range description text is used to describe the first data range; and the method further includes:
[0014] The target formula is executed on the data in the first data range, and the execution result is displayed in the table.
[0015] In some possible implementations, the target display area further includes an insertion component; and the method further includes:
[0016] In response to a formula insertion operation triggered by the insertion component, the target formula is inserted into the target table.
[0017] In some possible implementations, the trigger instruction is triggered for a target cell in the table; and inserting the target formula into the target table includes:
[0018] Insert the target formula in the target cell.
[0019] In some possible implementations, parsing the target text received through the text input area into a target formula includes:
[0020] Sending the target text to the target model;
[0021] Receive a target formula parsed by the target model based on the target text.
[0022] 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:
[0023] Acquire a target text, where the target text is acquired by a client of the target software and sent to the server;
[0024] Sending the target text to the target model;
[0025] Receiving a target formula fed back by the target model, wherein the target formula matches the target text;
[0026] The target formula is sent to the client.
[0027] In some possible implementations, after sending the target text to the target model, the method further includes:
[0028] Receiving instruction parsing information sent by the target model, wherein the instruction parsing information is obtained by semantically parsing the target text;
[0029] Determine at least one intermediate formula according to the instruction parsing information;
[0030] Information of the at least one intermediate formula is sent to the target model, the target formula being determined from the plurality of intermediate formulas.
[0031] In some possible implementations, the instruction parsing information includes a first vector, and the first vector corresponds to the target text;
[0032] Determining a plurality of intermediate formulas according to the first parsing information comprises:
[0033] Obtaining feature vectors of multiple candidate formulas;
[0034] At least one intermediate formula is determined from the multiple candidate formulas according to the first vector and the feature vector of the candidate formula.
[0035] In a third aspect, the present application provides a data processing device, comprising: a display unit for displaying a data processing component in response to receiving a trigger instruction in a table, wherein the data processing component includes a text input area; and a processing unit for parsing a target text received through the text input area into a target formula in response to a data processing instruction for the data processing component.
[0036] In some possible implementations, the target text includes a formula type description text, and the processing logic described in the formula type description text matches the processing logic of the target formula.
[0037] In some possible implementations, the display unit is specifically used to display at least one of the target formula, example information of the target formula, and description information of the target formula in the data processing component, and the description information of the target formula is used to introduce the processing logic of the target formula.
[0038] In some possible implementations, the target text also includes a data range description text, and the data range description text is used to describe a first data range; the processing unit is also used to execute the target formula on the data in the first data range and display the execution results in the table.
[0039] In some possible implementations, the target display area also includes an insertion component; the display unit is specifically configured to insert the target formula into the target table in response to a formula insertion operation triggered by the insertion component.
[0040] In some possible implementations, the trigger instruction is triggered for a target cell in the table; and the display unit is specifically configured to insert the target formula into the target cell.
[0041] In some possible implementations, the device further includes a sending unit and an acquiring unit, wherein the sending unit is configured to send the target text to the target model; and the receiving unit is configured to receive a target formula parsed by the target model based on the target text.
[0042] In a fourth aspect, the present application provides a data processing device, which is applied to a server side of a target software, and the target software has a table processing function. The device includes: an acquisition unit, used to acquire a target text, and the target text is acquired by a client of the target software and sent to the server side; a first sending unit, used to send the target text to a target model; a receiving unit, used to receive a target formula fed back by the target model, and the target formula matches the target text; and a second sending unit, used to send the target formula to the client.
[0043] 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 formula based on the instruction parsing information; the first sending unit is further used to send information of the at least one intermediate formula to the target model, and the target formula is determined from the multiple intermediate formulas.
[0044] 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 formulas; and determine at least one intermediate formula from the multiple candidate formulas based on the first vector and the feature vectors of the candidate formulas.
[0045] In a fifth aspect, the present application provides an electronic device, including:
[0046] one or more processors;
[0047] a storage device having one or more programs stored thereon,
[0048] 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.
[0049] 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.
[0050] 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.
[0051] It can be seen that this application has the following beneficial effects:
[0052] 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 trigger instruction for the table. According to the trigger 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. The target text is used to indicate the formula that the user wants to insert into the table. After obtaining the data processing instruction for the data processing component, the corresponding target formula can be determined according to the target text. In other words, if the user needs to insert a formula in the table, the user can first trigger the trigger instruction, then enter the target text in the text input area, and then trigger the data processing instruction to display the target formula corresponding to the target text. In this way, the automatic input of the formula can be realized without the user knowing the specific formula, which reduces the usage threshold and improves the user experience.
[0053] Figure Description
[0054] 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.
[0055] 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.
[0056] Figure 1 A schematic diagram of an application scenario provided in an embodiment of the present application;
[0057] Figure 2 A flowchart of a data processing method provided in an embodiment of the present application;
[0058] Figure 3 A schematic diagram of an exemplary application scenario provided for an embodiment of the present application;
[0059] Figure 4 A flowchart of a data processing method provided in an embodiment of the present application;
[0060] Figure 5 An interactive schematic diagram of a data processing method provided in an embodiment of the present application;
[0061] Figure 6 A schematic diagram of a data processing device provided in an embodiment of the present application;
[0062] Figure 7 A schematic diagram of a data processing device provided in an embodiment of the present application;
[0063] Figure 8 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0064] 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.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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".
[0069] 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 processing function. Software with table processing function can be called table software. For example, in order to facilitate users to process data, table processing function can be integrated into instant messaging (IM) software. Accordingly, IM software that inherits the table processing function can be called table software.
[0070] 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 order to facilitate user operations, table software can provide a formula insertion function. Users can use the formula insertion function to insert a formula into a table. The formula is the calculation logic pre-set in the table software. By inserting the formula, the data can be processed according to the calculation logic.
[0071] Next, the user can select or input the data corresponding to the formula so that the data can be processed according to the processing logic corresponding to the formula. Finally, the processed data can be displayed in a table. In other words, the user can use the preset processing logic by inserting the formula. In this way, the preset processing logic is presented in the form of a formula, and the user can process the data by calling the formula, thereby improving the efficiency of data processing.
[0072] The more formulas there are, the more processing logics are preset in the spreadsheet software. Accordingly, when users use spreadsheet applications to process data, they are more likely to call the preset processing logic by inserting formulas. For this reason, current spreadsheet applications often pre-deploy a large number of formulas to meet the different needs of different users.
[0073] However, in actual application scenarios, users may not have a sufficient understanding of spreadsheet software and are not clear about which formulas are built into spreadsheet software. Therefore, even if one (or more) steps in the data processing process can be completed by calling formulas, users are not able to improve the efficiency of data processing by calling formulas because they do not have a sufficient understanding of the built-in formulas in the software.
[0074] For example, suppose that a formula B is built into spreadsheet software A, and formula B is used to perform sum operations. After entering formula B, the user can select the data to be summed. Spreadsheet software A can automatically sum the data according to formula B. In this way, the user does not need to manually enter each data and addition operator, which reduces the user's input and improves processing efficiency.
[0075] However, if the user does not understand formula B and does not know that addition can be performed by formula B, the user cannot quickly sum the data by formula B. Thus, even if the table selection software A has a built-in formula B for summing, it cannot improve the efficiency of the user's summing operation.
[0076] 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.
[0077] 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.
[0078] 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.
[0079] The target model 130 can run on a server or a server cluster. Optionally, the server (or server cluster) used to implement the model method 130 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).
[0080] 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.
[0081] 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.
[0082] It should be noted that Figure 1 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 4 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.
[0083] 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.
[0084] like Figure 2 As shown, the method specifically comprises the following steps:
[0085] S201: In response to receiving a trigger instruction in a table, displaying a data processing component.
[0086] In an embodiment of the present application, the data processing device can receive a trigger instruction triggered by a user, and display a data processing component according to the trigger instruction. Wherein, the table is a table displayed by a client of a table-type software. The trigger instruction is an instruction triggered by a user in the table. The data processing component includes a text input area. The text input area is used to receive text input by the user.
[0087] 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 trigger instruction. Specifically, before the trigger instruction is obtained, the data processing component may be in a hidden state. After the trigger instruction is obtained, the data processing component may be displayed. Among them, the operation corresponding to the trigger instruction may include a first operation. The first operation may include the operation of pressing a preset shortcut key, and may also include the operation of clicking a preset control, and may also include operations such as issuing voice instructions. The embodiment of the present application does not limit the first operation.
[0088] Optionally, the trigger instruction may be for a table displayed by the client, or for part of the data in the table. For example, in some possible implementations, the trigger instruction may be for a first data range in the table. The first data range corresponds to part of the data or all of the data in the table. For ease of explanation, the data corresponding to the first data range is referred to as first data.
[0089] Optionally, the first data range may correspond to a cell in a table. Specifically, a user may select a cell in a table and trigger a trigger instruction in the cell. Accordingly, the target formula inserted into the table described below may be inserted into this cell. For ease of introduction, the cell into which the target formula is inserted may be referred to as a target cell. In other words, the trigger instruction may be triggered by the user on the target cell.
[0090] Accordingly, the operation corresponding to the trigger 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.
[0091] Optionally, the second operation can be triggered before the first operation. That is, in order to trigger the trigger 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.
[0092] That is, if the user wants to use a formula to process the data, the user can trigger the first operation. After obtaining 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.
[0093] 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.
[0094] 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.
[0095] In some possible implementations, the formula 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.
[0096] 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 determine the formula that the user wants to enter into the table by calling the server of the first cloud service.
[0097] 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.
[0098] In the above implementation, the data processing component is displayed based on the trigger instruction. In some other possible implementations, the data processing component can also be deployed in a specific area of the client interface of the spreadsheet software, for example, it can be deployed in the menu bar of the client interface. Accordingly, if the user wants to insert a formula in the spreadsheet, 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.
[0099] 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, wherein the target text is used to indicate the formula that the user wants to insert into the table, and the data processing instruction is used to start the process of determining the formula based on the target text.
[0100] In an embodiment of the present application, the target formula is determined according to the target text. Accordingly, the target text may include relevant information for indicating the target formula. Optionally, the target text may include a formula type description text, and the formula type description text is used to describe the target formula. Specifically, the processing logic described by the formula type description text is the same as the processing logic of the target formula.
[0101] Optionally, the target text may further include a target cell description text. The target cell description text is used to describe the target cell.
[0102] Optionally, in some other possible implementations, the target text may further include a data range description text, which is used to describe the data range to be processed by the target formula. For an introduction to the data range description text, please refer to the following, which will not be repeated here.
[0103] Optionally, the user can obtain the data processing instruction by triggering the third operation. The third operation can, for example, include a single-click operation triggered by the user on 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.
[0104] S202: In response to the data processing instruction for the data processing component, the target text received through the text input area is parsed into a target formula
[0105] After receiving the data processing instruction triggered by the user, the data processing device can determine the formula that the user wants to insert into the table according to the target text received in the text input area. Optionally, the formula parsed according to the target text can be called the target formula.
[0106] In some possible implementations, the target text input by the user may be clear enough. Accordingly, a complete target formula can be determined based on the target text. Alternatively, in some other possible implementations, the target text input by the user may not be sufficient to determine a complete target formula. Then the example information of the target formula and / or the description information of the target formula can be determined based on the target text. That is, parsing the target text into a target formula may include parsing the target text into the example information of the target formula and / or the description information of the target formula. Among them, the complete target formula includes a formula that can be directly used for data processing. The introduction of the example information of the target formula and the description information of the target formula can be found below and will not be repeated here.
[0107] Optionally, the data processing device may send a data processing instruction and a target text to the server, so that the server can determine the target formula according to the target text. After the server determines the target formula, the client may receive the target formula sent by the server. Optionally, the server may parse the target text through a model to determine the user's intention, thereby obtaining the target formula. For an introduction to this part, please refer to the following text and will not be repeated here.
[0108] After determining the target formula, the data processing device may display the target formula to the user and / or process the data in the table according to the target formula.
[0109] First, let's introduce how to display the target formula.
[0110] In some possible implementations, the data processing device may display the target formula in a cell in the table. Specifically, the data processing device may insert the target formula into a cell in the table. Optionally, the cell into which the formula is inserted may be a cell selected by the user, a pre-set cell, or a randomly selected cell.
[0111] For example. If the user wants to insert formula B into cell A in the table, the user can first select the cell by clicking on cell A or the like. Then, the user can trigger the first and third operations described above, and trigger the third operation after entering the target text in the text input area. Accordingly, according to the data processing instruction corresponding to the third operation, the target formula corresponding to the target text, i.e., formula B, can be determined. Then, the data processing device can insert formula B into cell A and display formula B at the position corresponding to cell A.
[0112] Alternatively, in some other possible implementations, the target formula may also be displayed in a preset display area. For example, as described above, the target text is input by the user in the text input area in the data processing component. Accordingly, after determining the target formula corresponding to the target text, the target formula may be displayed in the data processing component.
[0113] Specifically, the data display component may include a target display area. After determining the target formula, the target formula may be displayed in the target display area. The target display area is a relevant area in the data display component for displaying the target formula. Optionally, before displaying the target formula, the target display area may be in a hidden state and / or a folded state.
[0114] According to the foregoing description, parsing the target text into the target formula may include parsing the target text into example information of the target formula and / or description information of the target formula. Accordingly, displaying the target formula may include displaying the target formula and may also include displaying the target formula, displaying example information of the target formula, and displaying at least one item of description information of the target formula. This is described in detail below.
[0115] Among them, the example information of the target formula is used to indicate the basic form of the target formula. According to the example information of the target formula, the user can determine the logical structure of the target formula and the various input parameters in the target formula. For example, the input parameters in the target formula can be replaced with the example information of the input parameters to obtain the example information of the target formula. The example information of the input parameters is a typical input parameter. According to the example information of the input parameters, the data type of the input parameters can be determined. In this way, according to the example information of the target formula, the user can understand the input parameters of the target formula and the basic information of each input parameter, so that the user can use the target formula to process the target data.
[0116] The description information of the target formula is used to introduce the target formula. Optionally, the description information of the target formula can be used to introduce the purpose of the target formula and / or the processing logic corresponding to the target formula. In this way, based on the description information of the target formula, the user can determine whether the target formula can meet the requirements for processing the target data.
[0117] And / or, the description information of the target formula may also include introduction information of each input parameter in the target formula. The introduction information of the input parameter may be used to introduce the meaning represented by the input parameter and the value range of the input parameter. In this way, based on the description information of the target formula, the user can determine which data needs to be input in the target formula and the specific format of the input data.
[0118] In this way, based on the example information of the target formula and the description information of the target formula, the user can understand the target formula and thereby determine whether the target data can be processed by the target formula, and what data needs to be input into the target formula when processing the target data by the target formula.
[0119] According to the above description, the target formula, the example information of the target formula and the description information of the target formula can be displayed in the target display area of the data component. In order to distinguish the different contents displayed in the target display area, the target formula, the example information of the target formula and the description information of the target formula (if any) can be displayed in different ways.
[0120] For example, the target formula, example information of the target formula, and description information of the target formula (if any) may be displayed in different sub-areas of the target display area in different display modes.
[0121] That is to say, the target formula can be displayed in the first sub-area of the target display area by the first display method, example information of the target formula can be displayed in the second sub-area of the target display area by the second display method, and descriptive information of the target formula can be displayed in the third sub-area of the target display area by the third display method.
[0122] Optionally, the target formula, the example information of the target formula, and the description information of the target formula (if any) can be distinguished by different background colors. Alternatively, the example information of the target formula and the description information of the target formula can be distinguished by different fonts, font sizes, etc. Alternatively, a separator can be added between the first sub-area, the second sub-area, and the third sub-area to prompt the user that the first sub-area, the second sub-area, and the third sub-area are different display areas and display different contents.
[0123] Optionally, since the target formula and the example information of the target formula have similar functions, the first sub-region and the second sub-region may be the same display region, and the first display mode and the second display mode may also be the same display mode.
[0124] In the implementation described above, the target formula and related information of the target formula can be displayed in the target display area. However, the fundamental purpose of the user is not to view the target formula or related information of the target formula, but to process the target data through the target formula. Accordingly, in order to meet the needs of data processing, the user also needs to insert the target data into the target cell.
[0125] In some possible implementations, the information displayed in the target display area is in a copyable state. Accordingly, the user can select the target formula (or example information of the target formula) from the target display area and copy it, and then paste the copied target formula (or example information of the target formula) into the target cell.
[0126] Although the above implementation can add the target formula to the target cell in the table, the user needs to manually select, copy and paste, which is cumbersome and has a poor user experience. To this end, in some possible implementations, the data processing device can automatically insert the target formula into the table.
[0127] Specifically, the user can trigger the fourth operation. After acquiring the fourth operation, the data processing device can insert the target formula into the table. The fourth operation can be triggered by inserting a control. The inserting control can be a control displayed in the target display area. In other words, the user can first view the information of the target formula displayed in the target display area. After confirming that the target formula is correct, the target formula can be inserted into the table by triggering the inserting control.
[0128] When data is displayed through a table, the data can be filled in the cells of the table. Accordingly, when inserting a target formula into a table, the target formula can be inserted into a specific cell. The specific cell for inserting the target formula can be referred to as a target cell. Optionally, the target cell can be a pre-set cell in the target table. Alternatively, the target cell can be a cell corresponding to the first operation. That is, if the user triggers the first operation for cell A in the target table, then after obtaining the fourth operation, the target formula can be inserted into cell A.
[0129] The following is an introduction to the method of displaying the target formula based on actual application scenarios. Figure 3 After determining the first information, the screen displayed by the client may include: Figure 3 The interface shown. Figure 3 The interface shown includes a table display area 310 and a data processing component 320. The table display area 310 is used to display the table and the data in the table, and the data processing component 320 is used to display the relevant information of the target formula. The data processing component 320 corresponds to the aforementioned data processing component
[0130] The table display area 310 includes a cell 311. The user can trigger a first operation on the cell 311 so that the client displays the data processing component to the user, and inputs a target text through the data processing component and triggers a third operation. After obtaining the third operation triggered by the user, the target formula can be determined and displayed through the data processing component 320.
[0131] The data processing component 320 corresponds to the data processing described above, and includes a display area 321 , a display area 322 , an operation control 323 , and an operation control 324 .
[0132] The display area 321 corresponds to the aforementioned target display area, including the display sub-area 321-1 and the display sub-area 321-2. The display sub-area 321-1 corresponds to the aforementioned first display area, which is used to display the example information of the target formula. The display sub-area 321-2 corresponds to the aforementioned third display area, which is used to display the description information of the target formula. Figure 3 In a corresponding implementation, the background colors of the display sub-area 321 - 1 and the display sub-area 321 - 2 are different, so as to distinguish the target formula and the example information of the target formula.
[0133] The display area 322 is used to display a text input box. Optionally, the text input box can be used to input a target text, that is, the aforementioned target text input area. The sub-display area 322 can include prompt information 322-1. The prompt information 322-1 is used to prompt the user that the sub-display area 322 includes a text input area.
[0134] The operation control 323 is used to trigger the fourth operation. The user can trigger the fourth operation by clicking the operation control 323. After obtaining the click operation triggered by the user on the operation control 323, the target formula can be inserted into the cell 311.
[0135] The operation control 324 is used to trigger a reset operation. After the reset operation is acquired, the content displayed in the data processing component 320 can be cleared.
[0136] The above describes how to display the target formula. The following describes how to process the data in the table based on the target formula.
[0137] In the embodiment of the present application, the target formula can be determined according to the target text input by the user. Optionally, if the target text input by the user contains sufficient information to determine the data to be processed according to the target text, then after the target formula is determined, the data to be processed can be processed by the target formula.
[0138] Specifically, the target text may include a data range description text. The data range description text is used to describe the first data range. The first data range is the data range of the data to be processed in the table. In this way, after determining the target formula and the first data range, the target formula can be executed on the data in the first data range, and the execution result obtained by executing the target formula can be displayed in the table. Optionally, the execution result can be displayed in the target cell.
[0139] The present application provides a data processing method. Specifically, first, data can be displayed to the user through a table. Then, the user can trigger a trigger instruction for the table. According to the trigger 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. The target text is used to indicate the formula that the user wants to insert into the table. After obtaining the data processing instruction for the data processing component, the corresponding target formula can be determined according to the target text. In other words, if the user needs to insert a formula in the table, the user can first trigger the trigger instruction, then enter the target text in the text input area, and then trigger the data processing instruction to display the target formula corresponding to the target text. In this way, the automatic input of the formula can be realized without the user understanding the specific formula, which lowers the usage threshold and improves the user experience.
[0140] 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.
[0141] Combine the following Figure 4, 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.
[0142] See also Figure 4 , Figure 4 The present application embodiment provides a flow chart of a data processing method, which can be applied to the application scenario of inserting a formula in a table. The data processing method can be executed by a data processing device running on a server.
[0143] It should be noted that Figure 4 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 4 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.
[0144] 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.
[0145] 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.
[0146] like Figure 4 As shown, the method specifically comprises the following steps:
[0147] S401: Obtain target text.
[0148] In order to determine the formula that the user wants to insert into the table, 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.
[0149] S402: Sending the target text to the target model.
[0150] 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 target formula parsed from the target text may be implemented based on a structured language. For example, the target formula may be implemented based on the JavaScript Object Notation (JSON) language.
[0151] 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 target formula through the target model, please refer to the following text. Figure 5 The corresponding embodiments are described in detail here.
[0152] S403: Receive the target formula fed back by the target model.
[0153] After obtaining the target text, the target model can parse the target text to determine the corresponding target formula.
[0154] Optionally, the target model may also send relevant information of the target formula to the server, for example, example information of the target formula and / or description information of the target formula may be sent to the server. Alternatively, relevant information of the target formula may be stored in advance in the server. After obtaining the target formula fed back by the target model, the server may query relevant information of the target formula according to the target formula, thereby displaying the target formula and relevant information of the target formula to the user.
[0155] As described above, the formula may be the operation logic pre-set in the spreadsheet software. Accordingly, the target formula may be a formula that can be recognized by the spreadsheet software.
[0156] S404: Send the target formula to the client.
[0157] After determining the target formula corresponding to the target text through the target model, the data processing device can send the target formula to the client so that the client can display the target formula to the user.
[0158] In the implementation described above, the target formula can be determined by the target model according to the target text. Figure 1 Taking the implementation shown in the figure as an example, the method of determining the target formula through the target model is introduced.
[0159] 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 target formula, and then send relevant information of the target formula to the client 110 through the server 120.
[0160] 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 information related to the formula function, and then process the target text according to the result of the context learning. In this way, by performing context learning on information related to the formula function, the target formula determined by the target model 130 is more in line with the user's intention.
[0161] Optionally, the information related to the formula function can be pre-organized and stored. When the target model is required to determine the target formula, the server 120 can obtain the information related to the formula function and send the information related to the formula function to the target model 130 through prompt information, so that the target model 130 performs context learning based on the information related to the formula function.
[0162] According to the above introduction, the target formula may correspond to the formula function provided by the table software. According to the target formula, the processing logic provided by the table software may be called to process the data. Therefore, in the process of determining the target formula, the relevant information used for context learning may include relevant information of the formula function provided by the table software. For example, it may include a document corresponding to the table software for introducing the formula function provided by the table software.
[0163] In actual scenarios, table software may provide multiple formula functions. Accordingly, if there are many formula functions, and the amount of data that can be carried by prompt information is limited, then prompt information may not be able to fully carry the relevant information of all formula functions in table software. In this way, target model 130 cannot fully learn the relevant information of the formula function of table software in context, and may not be able to accurately determine the target formula.
[0164] To this end, in some possible implementations, multiple identifications may be performed using the target model 130. Figure 5 Provide a detailed introduction.
[0165] See also Figure 5 , Figure 5 A flow chart of a method for determining a target formula provided in an embodiment of the present application is applicable to Figure 1The network architecture shown in FIG. 1 is used to determine the application scenario of the formula 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.
[0166] like Figure 5 As shown, the method specifically comprises the following steps:
[0167] S501: The client 110 sends a target text to the server 120 .
[0168] For the introduction of the target text, please refer to the previous article and will not be repeated here.
[0169] S502: The server 120 sends the target text to the target model 130.
[0170] 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.
[0171] 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 target formula according to the target text.
[0172] S503: The target model 130 determines instruction parsing information according to the target text.
[0173] 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.
[0174] In the embodiment of the present application, the instruction parsing information may be a vector. That is, the target model 130 may embed the target text. For ease of introduction, the vector corresponding to the instruction parsing information may be referred to as a first vector.
[0175] S504: The target model 130 sends instruction parsing information to the server 120.
[0176] 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 .
[0177] S505: The server 120 determines at least one intermediate formula according to the instruction parsing information.
[0178] After acquiring the instruction parsing information, the server 120 may determine at least one intermediate formula according to the instruction parsing information. Moreover, the degree of similarity between the intermediate formula and the target formula is higher than the degree of similarity between the non-intermediate formula and the target formula.
[0179] In an embodiment of the present application, the intermediate formula is determined according to the formula function provided by the table software. The intermediate formula can be used to call the formula function. In other words, the intermediate formula is a formula that can be provided by the table software. In addition, the description information corresponding to the intermediate formula matches the instruction parsing information. In other words, if the formula that can be provided by the client 110 is used as a candidate formula, the server 120 can select a target formula that matches the instruction parsing information from multiple candidate formulas.
[0180] Specifically, multiple candidate formulas can be predetermined. Among them, the intermediate formula is a formula function that can be provided by spreadsheet software. And the description information corresponding to the intermediate formula matches the instruction parsing information. That is to say, if the formula that can be provided by the client 110 is taken as a candidate formula, the server 120 can select an intermediate formula that matches the instruction parsing information from multiple candidate formulas. In this embodiment, the intermediate formula can be determined based on the feature vector of the candidate formula. For example, the intermediate formula can be determined based on the similarity between the feature vector of the candidate formula and the vector corresponding to the instruction parsing information.
[0181] Optionally, the feature vector of the candidate formula can be obtained by vectorizing the description information of the candidate formula. The description information of the candidate formula is the relevant information used to describe the candidate formula. For example, it may include information such as the role of the candidate formula, the function corresponding to the candidate formula, and the relevant parameters required by the candidate formula. Optionally, the description information of the formula can be determined through 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.
[0182] In actual application, the description information of the candidate formulas may be vectorized in advance to obtain a feature vector of each candidate formula. Then, the feature vector of the candidate formula may be stored in a database 140 (not shown in the figure). After obtaining the instruction parsing information, the feature vector of the candidate formula may be obtained from the database.
[0183] Next, the similarity between the first vector and the feature vector of each candidate formula 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 formula may be calculated, and then at least one intermediate formula may be determined according to the calculation results.
[0184] S506: The server 120 sends information of at least one intermediate formula to the target model 130 .
[0185] After determining at least one intermediate formula, the server 120 may send relevant information of the at least one intermediate formula to the target model 130. The relevant information of the intermediate formula may include, for example, the expression of the intermediate formula, the description information of the intermediate formula, and the vector corresponding to the intermediate formula.
[0186] 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 formula. Optionally, the second prompt message may also include target text or instruction parsing information.
[0187] 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 formula 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 formula and the target text is reasonable. After the judgment is passed, the corresponding second prompt information may be generated.
[0188] S507: The target model 130 performs context learning on information of at least one intermediate formula and determines a target formula.
[0189] After acquiring information of at least one intermediate formula, the target model 130 may perform context learning according to the information of the intermediate formula, and process the target text (or instruction parsing information) after the context learning to determine information of the target formula corresponding to the target text.
[0190] S408 : The target model 130 sends information of the target formula to the client 110 via the server 120 .
[0191] After determining the information of the target formula, the target model 130 may send the information of the target formula to the client 110 through the server 120. Accordingly, the data processing device may obtain the information of the target formula and display it.
[0192] That is to say, if there is too much relevant information of the formula 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 formulas according to the instruction parsing information to find out the information of the intermediate formula with a high correlation with the instruction parsing information. In this way, through the screening of the server 120, formulas that are irrelevant to the target text can be filtered out, and intermediate formulas with a high correlation with the target text can be screened out. Since the number of intermediate formulas is less than the number of candidate formulas, the prompt information can carry the relevant information of the intermediate formula. In addition, since the information of the intermediate formula is screened out according to the instruction parsing information, the degree of association between the intermediate formula and the target formula is higher than the degree of association between the non-intermediate formula and the target formula, the target model 130 performs context learning according to the information of the intermediate formula, and it will not affect the accuracy of the target model 130. In this way, on the basis of ensuring the accuracy of the target formula, the amount of data of the prompt information is reduced.
[0193] 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.
[0194] 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 client of a table-type software provided by an embodiment of the present application. Figure 6 As shown, the data processing device 600 includes:
[0195] A display unit 610, for displaying a data processing component in response to receiving a trigger instruction in a table, wherein the data processing component includes a text input area;
[0196] The processing unit 620 is used to parse the target text received through the text input area into a target formula in response to the data processing instruction for the data processing component.
[0197] In some possible implementations, the target text includes a formula type description text, and the processing logic described in the formula type description text matches the processing logic of the target formula.
[0198] In some possible implementations, the display unit 610 is specifically used to display at least one of the target formula, example information of the target formula, and description information of the target formula in the data processing component, and the description information of the target formula is used to introduce the processing logic of the target formula.
[0199] In some possible implementations, the target text also includes a data range description text, and the data range description text is used to describe the first data range; the processing unit 620 is also used to execute the target formula on the data in the first data range and display the execution results in the table.
[0200] In some possible implementations, the target display area also includes an insertion component; the display unit 620 is specifically configured to insert the target formula into the target table in response to a formula insertion operation triggered by the insertion component.
[0201] In some possible implementations, the trigger instruction is triggered for a target cell in the table; and the display unit 620 is specifically configured to insert the target formula into the target cell.
[0202] In some possible implementations, the device further includes a sending unit and an acquiring unit, wherein the sending unit is configured to send the target text to the target model; and the receiving unit is configured to receive a target formula parsed by the target model based on the target text.
[0203] See also Figure 7 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 7 As shown, the data processing device 700 includes:
[0204] An acquisition unit 710 is used to acquire a target text, where the target text is acquired by the client of the target software and sent to the server;
[0205] A first sending unit 720, configured to send the target text to a target model;
[0206] A receiving unit 730 is configured to receive a target formula fed back by the target model, wherein the target formula matches the target text;
[0207] The second sending unit 740 is used to send the target formula to the client.
[0208] Optionally, the acquiring unit 710 and the receiving unit 720 may be the same unit or different units. The first sending unit 720 and the second sending unit 740 may be the same unit or different units.
[0209] In some possible implementations, the device also includes a processing unit; the receiving unit 730 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 formula based on the instruction parsing information; the first sending unit 720 is further used to send information of the at least one intermediate formula to the target model, and the target formula is determined from the multiple intermediate formulas.
[0210] 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 formulas; and determine at least one intermediate formula from the multiple candidate formulas based on the first vector and the feature vectors of the candidate formulas.
[0211] 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.
[0212] Reference below Figure 8 , which shows a schematic diagram of the structure of an electronic device 800 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.
[0213] like Figure 8As shown, the electronic device 800 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage device 808 into a random access memory (RAM) 803. In the RAM 803, various programs and data required for the operation of the electronic device 800 are also stored. The processing device 801, the ROM 802, and the RAM 803 are connected to each other via a bus 804. An input / output (I / O) interface 805 is also connected to the bus 804.
[0214] Typically, the following devices may be connected to the I / O interface 805: input devices 808 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 807 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 808 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 809. The communication device 809 may allow the electronic device 800 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 800 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.
[0215] 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 809, or installed from the storage device 808, or installed from the ROM 802. When the computer program is executed by the processing device 801, the above-mentioned functions defined in the method of the embodiment of the present application are executed.
[0216] 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.
[0217] 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.
[0218] 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.
[0219] 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.
[0220] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0221] 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.
[0222] 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).
[0223] 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.
[0224] 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".
[0225] 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.
[0226] 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.
[0227] 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.
[0228] 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.
[0229] 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.
[0230] 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 receiving a trigger instruction in the form, 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 target text received through the text input area is parsed into a target formula.
2. The method according to claim 1, characterized in that: The target text includes a formula type description text, and the processing logic described in the formula type description text matches the processing logic of the target formula.
3. The method according to claim 2, characterized in that The method further comprises: At least one of the target formula, example information of the target formula and description information of the target formula is displayed in the data processing component, and the description information of the target formula is used to introduce the processing logic of the target formula.
4. The method according to claim 2 or 3, characterized in that: The target text also includes a data range description text, and the data range description text is used to describe the first data range; the method also includes: The target formula is executed on the data in the first data range, and the execution result is displayed in the table.
5. The method according to claim 4, characterized in that The target display area also includes an insertion component; the method further includes: In response to a formula insertion operation triggered by the insertion component, the target formula is inserted into the target table.
6. The method according to claim 5, characterized in that The trigger instruction is triggered for a target cell in the table; and inserting the target formula into the target table includes: Insert the target formula in the target cell.
7. The method according to claim 1, characterized in that The step of parsing the target text received through the text input area into a target formula comprises: Sending the target text to the target model; Receive a target formula parsed by the target model based on the target text.
8. 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, where the target text is acquired by a client of the target software and sent to the server; Sending the target text to the target model; Receiving a target formula fed back by the target model, wherein the target formula matches the target text; The target formula is sent to the client.
9. The method according to claim 8, 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 formula according to the instruction parsing information; Information of the at least one intermediate formula is sent to the target model, the target formula being determined from the plurality of intermediate formulas.
10. The method according to claim 9, 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 formulas according to the first parsing information comprises: Obtaining feature vectors of multiple candidate formulas; At least one intermediate formula is determined from the multiple candidate formulas according to the first vector and the feature vector of the candidate formula.
11. A data processing device, characterized in that: The device comprises: A display unit, for displaying a data processing component in response to receiving a trigger instruction in a form, wherein the data processing component includes a text input area; a processing unit, configured to parse a target text received through the text input area into a target formula in response to a data processing instruction for the data processing component; The display unit is also used to display the target formula.
12. 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 a client of the target software and sent to the server; A first sending unit, configured to send the target text to a target model; A receiving unit, configured to receive a target formula fed back by the target model, wherein the target formula matches the target text; The second sending unit is used to send the target formula to the client.
13. 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 10.
14. 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 10 is implemented.
Citation Information
Patent Citations
Formula subtitle editing method and device, electronic equipment, medium and product
CN114781335A
Numerical value operation method and system for WORD table data
CN116187287A
