File renaming method and device and electronic equipment
By generating a file renaming method using a large language model, the problems of cumbersome and error-prone file renaming operations are solved, achieving efficient and intelligent file name generation and management.
Patent Information
- Application Number
- CN202511073268.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-31
- Publication Date
- 2025-11-25
AI Technical Summary
In existing technologies, file renaming is cumbersome and error-prone, making it difficult to efficiently generate descriptive and unique file names. This is especially true in managing large numbers of files, where efficiency is low, and renaming sensitive information files carries a high risk.
A file renaming method using a large language model is adopted. By obtaining file information and renaming rules, a reference file name is automatically and intelligently generated, and the file is renamed on the client or server.
It improves the convenience and accuracy of file renaming, reduces the tedious process of manual operation, lowers the probability of errors, and enhances the efficiency and security of file management.
Smart Images

Figure CN121009062A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of artificial intelligence, in particular to the technical field of deep learning, natural language processing, cloud computing, large model, and the like, and in particular to a file renaming method and device and electronic equipment. BACKGROUND
[0002] With the exponential growth of electronic files, the value of file renaming is increasingly prominent. By giving files more descriptive and targeted names, users can quickly understand the subject matter of the files, and when they need to find files, they do not need to search for a needle in a haystack among numerous disorganized files, but can quickly locate the target file, greatly improving work efficiency. Moreover, a reasonable renaming method can also help to build a clear classification system, making file management more organized. Furthermore, for files containing sensitive information, appropriate renaming can avoid using overly direct or easily thought-provoking names, which can reduce the risk of files being noticed and misoperated by irrelevant personnel to some extent. For this reason, file renaming has become an extremely important means in file management. SUMMARY
[0003] The present disclosure provides a file renaming method, device and electronic equipment.
[0004] According to an aspect of the present disclosure, a file renaming method is provided, applied to a server, the method comprising: in the case that a client requests to rename a target file, obtaining target file information of the target file; using a first language model to generate a reference file name corresponding to the target file based on the target file information and a target renaming rule; sending the reference file name to the client; wherein the reference file name is used to rename the target file.
[0005] According to another aspect of the present disclosure, a file renaming method is provided, applied to a client, the method comprising: in the case that a client requests to rename a target file, receiving a reference file name from the server; wherein the reference file name is generated by the server by obtaining target file information of the target file and using a first language model based on the target file information and a target renaming rule; renaming the target file based on the reference file name.
[0006] According to another aspect of the present disclosure, there is provided a file renaming apparatus applied to a server, the apparatus comprising: a first obtaining module configured to, in response to a request from a client to rename a target file, obtain target file information of the target file; a first generating module configured to generate, based on the target file information and a target renaming rule, a reference file name corresponding to the target file by using a first language model; and a first sending module configured to send the reference file name to the client, wherein the reference file name is used to rename the target file.
[0007] According to another aspect of the present disclosure, there is provided a file renaming apparatus applied to a client, the apparatus comprising: a receiving module configured to, in response to a request from a client to rename a target file, receive a reference file name from a server, wherein the reference file name is generated by the server based on target file information of the target file and a target renaming rule by using a first language model; and a renaming module configured to rename the target file based on the reference file name.
[0008] According to another aspect of the present disclosure, there is provided an electronic device comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the file renaming method according to the present disclosure.
[0009] According to another aspect of the present disclosure, there is provided a non-transitory computer-readable storage medium storing computer instructions for causing a computer to perform the file renaming method according to the present disclosure.
[0010] According to another aspect of the present disclosure, there is provided a computer program product comprising a computer program which, when executed by a processor, implements the steps of the file renaming method according to the present disclosure.
[0011] It should be understood that the content described in this section is not intended to identify key or important features of the embodiments of the present disclosure, nor is it used to limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description. BRIEF DESCRIPTION OF DRAWINGS
[0012] The accompanying drawings are used to better understand the present scheme, and do not limit the present disclosure. Among them:
[0013] Figure 1 is a schematic diagram according to the first embodiment of the present disclosure;
[0014] Figure 2is a schematic diagram according to a second embodiment of the present disclosure;
[0015] Figure 3 is a schematic diagram according to a third embodiment of the present disclosure;
[0016] Figure 4 is a schematic diagram according to a fourth embodiment of the present disclosure;
[0017] Figure 5 is a schematic diagram according to a fifth embodiment of the present disclosure;
[0018] Figure 6 is a schematic diagram according to a sixth embodiment of the present disclosure;
[0019] Figure 7 is a schematic diagram of a renaming interface provided by the present disclosure;
[0020] Figure 8 is a schematic diagram of a renamed renaming interface provided by the present disclosure;
[0021] Figure 9 is a schematic diagram of another renaming interface provided by the present disclosure;
[0022] Figure 10 is a schematic diagram according to a seventh embodiment of the present disclosure;
[0023] Figure 11 is a schematic diagram according to an eighth embodiment of the present disclosure;
[0024] Figure 12 is a block diagram of an electronic device for implementing a file renaming method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0025] Exemplary embodiments of the present disclosure are described below with reference to the accompanying drawings, which include various details of the embodiments of the present disclosure to assist in understanding, and should be considered as merely exemplary. Thus, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present disclosure. Also, for the sake of brevity and clarity, descriptions of well-known functions and constructions are omitted from the following description.
[0026] Figure 1 is a schematic diagram according to a first embodiment of the present disclosure, and it should be noted that the file renaming method of the present embodiment can be applied to a server.
[0027] As shown in Figure 1 , the file renaming method can include the following steps:
[0028] Step 101, in the case where a client requests to rename a target file, obtaining target file information of the target file.
[0029] The client refers to a software program running on an electronic device to provide services for users, such as an application with a file renaming function. The electronic device can be any device with computing capability, such as a PC (Personal Computer), a mobile terminal, and the like. The mobile terminal can be a mobile phone, a tablet computer, a personal digital assistant, a wearable device, and the like, which has various operating systems, touch screens, and / or display screens.
[0030] The target file refers to a file to be renamed. It should be noted that the number and format of the target file are not limited in the present disclosure.
[0031] In any one of the embodiments of the present disclosure, the target file information includes, but is not limited to, the original file name of the target file, the storage path of the target file, the text format of the target file, the file name of the associated file matched with the target file, and the text format of the associated file.
[0032] In any one of the embodiments of the present disclosure, when the number of target files is multiple, the multiple target files are files in the same directory.
[0033] In any one of the embodiments of the present disclosure, in order to effectively obtain the associated file, the storage path of the target file can be parsed to obtain the path structure of the storage path; according to the path structure, files in the same directory as the target file are queried, and the files in the same directory as the target file are determined as the associated file matched with the target file.
[0034] In some other embodiments of the present disclosure, the user can perform a selection operation on the multiple candidate file names displayed by the client, and in response to the selection operation of the user, a target candidate file name is determined from the multiple candidate file names, and the identification information of the candidate file matched with the target candidate file name is sent to the server. After receiving the identification information of the candidate file matched with the target candidate file name, the server queries the candidate file matched with the target candidate file name according to the identification information, and determines the candidate file as the associated file matched with the target file.
[0035] The identification information can be used to uniquely identify the corresponding file.
[0036] Therefore, not only the related information of the target file itself can be comprehensively considered and used, but also the related information of the associated file in the same directory as the target file can be considered. By analyzing the naming rule of the associated file in the same directory, the target file is renamed, which helps to improve the accuracy and practicality of file renaming.
[0037] In the embodiments of the present disclosure, in the case that the client requests to rename the target file, the server obtains target file information of the target file.
[0038] As an example, in response to renaming the target file at the client side, the client queries the target file information of the target file, and sends the target file information to the server, so that the server receives and obtains the target file information of the target file.
[0039] Step 102, using a first language model to generate a reference file name corresponding to the target file based on the target file information and a target renaming rule.
[0040] The first language model can be a large model and has the function of generating a file name.
[0041] The target renaming rule can be used to indicate the related requirements and specifications for performing the renaming operation on the target file.
[0042] It should be noted that the number of reference file names corresponding to the target file can be one, but is not limited to one, and the present disclosure does not limit this.
[0043] In the embodiments of the present disclosure, the first language model can be used to generate the reference file name corresponding to the target file based on the target file information and the target renaming rule.
[0044] In an example, the target file information and the target renaming rule can be input into the first language model, and the reference file name corresponding to the target file can be obtained in response to the output of the first language model.
[0045] In any one of the embodiments of the present disclosure, the first language model can be used to generate the reference file name corresponding to the target file based on the target file information or the target renaming rule.
[0046] Step 103, sending the reference file name to the client; wherein the reference file name is used to rename the target file.
[0047] As an example, when the reference file name is one, the server sends the reference file name to the client, and the client can update the original file name of the target file using the reference file name.
[0048] The file renaming method of this disclosure, when a client requests to rename a target file, obtains the target file information; uses a first language model to generate a reference file name corresponding to the target file based on the target file information and target renaming rules; and sends the reference file name to the client. The reference file name is used to rename the target file. Therefore, by leveraging the powerful processing capabilities of the language model, it is possible to perform in-depth analysis of the target file information and automatically and intelligently generate a precisely matching reference file name according to the target renaming rules. This allows the target file to be renamed using the reference file name, improving the convenience and efficiency of file renaming operations, effectively reducing the tedious process of manual operation, and lowering the probability of errors during the file renaming process.
[0049] like Figure 2 As shown, this disclosure also proposes a file renaming method. Figure 2 As shown in the schematic diagram of the second embodiment of this disclosure, the file renaming method may include the following steps:
[0050] Step 201: If the client requests to rename the target file, obtain the target file information.
[0051] The explanation of step 201 can be found in the relevant description in any embodiment of this disclosure, and will not be repeated here.
[0052] Step 202: Using a second language model, at least one reference renaming rule corresponding to the target file is generated based on the target file information.
[0053] The second language model can be a large model and has the function of generating renaming rules.
[0054] The reference renaming rules can be used to indicate the relevant requirements and specifications for performing renaming operations on the corresponding files. It should be noted that this disclosure does not limit the number of reference renaming rules generated; there can be one or more.
[0055] In this embodiment of the disclosure, the server may use a second language model to generate at least one reference renaming rule corresponding to the target file based on the target file information.
[0056] As an example, the server can use a second language model to extract features from the target file information and generate at least one reference renaming rule for the target file based on the extracted features.
[0057] In any embodiment of this disclosure, the reference renaming rule may be a name structure composed of a combination of fields and / or characters, which can be used to indicate the name of the generated reference file.
[0058] As an example, the reference renaming rule is "name according to file format_original file name". Assuming the original file name of the target file is "Grade 1 Materials Summary" and the file format is "PDF (Portable Document Format)", the name structure of the generated reference file name includes the field "file format", the symbol "_", and the field "PDF".
[0059] Therefore, the reference renaming rule, by adopting a combination of fields and / or characters, ensures that the generated reference file names are highly unique and identifiable, effectively avoiding file confusion caused by name duplication or ambiguity. Furthermore, the rule has good flexibility and scalability; fields can be dynamically adjusted and added or removed according to actual needs, and the selection of characters can also follow specific encoding standards or business logic, enabling the generated reference file names to better adapt to application needs in different scenarios.
[0060] Step 203: Send at least one reference renaming rule to the client; wherein the at least one reference renaming rule is used to determine the target renaming rule under the client's selection operation.
[0061] In this embodiment of the disclosure, after generating the reference renaming rule, the server sends the reference renaming rule to the client, so that the client can receive and display the reference renaming rule; when the user performs a selection operation on the reference renaming rule displayed by the client, the client can respond to the selection operation and determine the reference renaming rule selected by the user as the target renaming rule.
[0062] Step 204: Receive the target renaming rule from the client.
[0063] In this embodiment of the disclosure, the client can send the target renaming rule to the server, so that the server can receive the target renaming rule.
[0064] Step 205: Using a first language model, generate the reference file name corresponding to the target file based on the target file information and the target renaming rules.
[0065] Step 206: Send the reference file name to the client; the reference file name is used to rename the target file.
[0066] The explanation of steps 205 to 206 can be found in the relevant description in any embodiment of this disclosure, and will not be repeated here.
[0067] The file renaming method of this disclosure employs a second language model to generate at least one reference renaming rule corresponding to the target file based on the target file information; sends the at least one reference renaming rule to the client; wherein the at least one reference renaming rule is used to determine the target renaming rule under the client's selection operation; and receives the target renaming rule from the client. Thus, by leveraging the powerful information processing capabilities of the language model, it is possible to perform in-depth analysis of the target file information, thereby automatically and intelligently generating reference renaming rules adapted to the target file. Selecting the target renaming rule from at least one reference renaming rule improves the compatibility between the renaming rule and the target file, meets diverse user needs, effectively reduces manual trial-and-error costs, and enhances the flexibility and accuracy of file renaming.
[0068] like Figure 3 As shown, this disclosure also proposes a file renaming method. Figure 3 The diagram is based on a third embodiment of this disclosure. The file renaming method may include the following steps:
[0069] Step 301: If the client requests to rename the target file, obtain the target file information.
[0070] The explanation of step 301 can be found in the relevant description in any embodiment of this disclosure, and will not be repeated here.
[0071] In any embodiment of this disclosure, in order to obtain target file information, the server receives a renaming request from the client, wherein the renaming request carries the file identifier of the target file; and the target file information of the target file is obtained based on the file identifier.
[0072] The file identifier can be used to uniquely identify the corresponding file.
[0073] Optionally, in any embodiment of this disclosure, the file identifier may include, but is not limited to, file name, file type, user account information of the login client, etc.
[0074] As an example, in response to a user triggering a renaming component on the client to rename a target file, the client can query the file identifier of the target file, generate a renaming request based on the file identifier, and send the request to the server. When the server receives the request, it parses the request to obtain the file identifier of the target file, and then queries the relevant database based on the file identifier to obtain the target file information.
[0075] Therefore, by identifying the target file, it is possible to quickly and accurately locate and obtain the target file information, improve the accuracy and uniqueness of information acquisition, avoid subsequent operational errors caused by information confusion or incorrect acquisition, and help improve the accuracy and effectiveness of the subsequently generated reference file names.
[0076] Step 302: Obtain natural language instructions from the client.
[0077] Natural language instructions can be used to describe the specific requirements of the user's desired filename for the target file. For example, natural language instructions could be "add special markers to the filename" or "the original filename of the target file is the same as the filename of another file."
[0078] As an example, in response to user input on the client, the client obtains a natural language instruction, sends the natural language instruction to the server, and the server can then receive the natural language instruction.
[0079] The forms of input operations include, but are not limited to: keyboard input, voice input, mouse input, touchscreen input, scanner input, etc. Optionally, mouse input refers to selecting natural language commands on the client's interface by moving the mouse pointer and clicking or dragging; keyboard input refers to using a keyboard as an input device to convert characters, symbols, numbers, and specific commands into electrical signals recognizable by the electronic device by pressing a single key or a combination of keys, and then transmitting this information to the client to achieve natural language command input; voice input refers to using a dedicated voice acquisition device (such as a microphone) to convert the user's voice signals into digital information that the electronic device can recognize and process, thereby achieving natural language command input; touchscreen input refers to using a finger or stylus to touch, slide, zoom, etc., on the touchscreen surface to complete natural language command input; scanner input refers to scanning paper documents, images, etc., using optical scanning technology to convert their content into text information corresponding to natural language commands and inputting it into the client to achieve natural language command input.
[0080] Step 303: Parse the natural language instructions to obtain the operation intent.
[0081] As an example, the server can use an intent recognition model to parse natural language instructions to obtain the operation intent.
[0082] Among them, the intent recognition model has the function of recognizing the intention of an operation.
[0083] For example, the server can input natural language commands into the intent recognition model and respond to the output of the intent recognition model to obtain the operation intent. For example, assuming the natural language command is "The original file name of the target file is the same as the file name of other files", the intent recognition model will parse the natural language command and obtain the operation intent as "Change the original file name of the target file to a file name that is different from the file name of other files".
[0084] Step 304: Transform the operation intent to obtain the target renaming rule.
[0085] In this embodiment of the disclosure, the server can convert the operation intent to obtain the target renaming rule. In one example, assuming the operation intent is "to add special characters to the original file name of the target file", the target renaming rule obtained after converting the operation intent is "to name according to the original file name + * + file format".
[0086] Step 305: Using the first language model, a reference file name corresponding to the target file is generated based on the target file information and the target renaming rules.
[0087] Step 306: Send the reference file name to the client; the reference file name is used to rename the target file.
[0088] The explanation of steps 305 to 306 can be found in the relevant description in any embodiment of this disclosure, and will not be repeated here.
[0089] In any embodiment of this disclosure, in response to receiving a retry command sent by the client, a first language model is used to regenerate the reference file name corresponding to the target file based on the target file information and the target renaming rules.
[0090] As an example, when a client sends a retry command to the server, the server can receive the command and respond by inputting the target file information and target renaming rules into the first language model, and regenerating the reference file name corresponding to the target file. Then, the server can send the regenerated reference file name to the client, which can then use the regenerated reference file name to rename the target file.
[0091] Therefore, when the generated reference file name fails to meet the user's needs or is unreasonable, a retry mechanism can be used to provide the user with a way to correct and optimize it, thereby improving the flexibility and intelligence of the file renaming operation.
[0092] The file renaming method of this disclosure obtains natural language instructions from the client; parses the natural language instructions to obtain the operation intent; and converts the operation intent to obtain the target renaming rule. Therefore, users do not need to master complex renaming rule setting syntax; they can simply issue instructions in everyday natural language to complete the formulation of file renaming rules. This improves the accuracy and effectiveness of file renaming rules, increases user satisfaction with the determined renaming rules, and meets diverse personalized user needs.
[0093] The above are implementation examples of methods executed on the server side. This disclosure also proposes an implementation example of a method executed on the client side.
[0094] like Figure 4 As shown, this disclosure also proposes a file renaming method. Figure 4 As shown in the schematic diagram of the fourth embodiment of this disclosure, the file renaming method may include the following steps:
[0095] Step 401: When requesting the server to rename the target file, receive the reference file name from the server; wherein, the reference file name is generated by the server based on the target file information and the target renaming rules using a first language model.
[0096] It should be noted that the explanations of the target file information obtained by the server in step 101 and the explanations of the reference file name generated by the server in step 102 also apply to this embodiment, and will not be repeated here.
[0097] In this embodiment of the disclosure, when the client requests the server to rename the target file, the server can respond to the request, obtain the target file information of the target file, and generate a reference file name based on the target file information and the target renaming rules using a first language model, and then send the reference file name to the client, so that the client can receive the reference file name sent by the server.
[0098] Step 402: Rename the target file based on the reference file name.
[0099] As an example, when there is at least one reference file name, the client can display at least one reference file name and, in response to the user's selection of the target file name from the at least one reference file name, rename the target file using the target file name.
[0100] Therefore, by visually displaying reference file names, users are provided with intuitive naming suggestions, which helps them quickly determine appropriate file names. Users do not need to manually enter new names, avoiding spelling errors, reducing tedious manual input steps, and improving the convenience and efficiency of file renaming.
[0101] As another example, if there is only one reference filename, the client can use that reference filename as the target filename and rename the target file accordingly.
[0102] The file renaming method of this disclosure, when requesting the renaming of a target file from a server, receives a reference file name from the server. The reference file name is generated by the server using a first language model based on the target file information and target renaming rules, after obtaining the target file information. The target file is then renamed based on the reference file name. Therefore, by leveraging the powerful processing capabilities of the language model, the target file information can be deeply analyzed, and a precisely matching reference file name can be automatically and intelligently generated according to the target renaming rules. This allows the target file to be renamed using the reference file name, improving the convenience and efficiency of file renaming operations, effectively reducing the tedious process of manual operation, and lowering the probability of errors during the file renaming process.
[0103] like Figure 5 As shown, this disclosure also proposes a file renaming method. Figure 5 As shown in the schematic diagram of the fifth embodiment of this disclosure, the file renaming method may include the following steps:
[0104] Step 501: When requesting the server to rename the target file, receive and display at least one reference renaming rule from the server; wherein, the reference renaming rule is generated by the server based on the target file information obtained from the target file and using a second language model.
[0105] It should be noted that the explanations in step 201 regarding the server obtaining the target file information and in step 202 regarding the server generating reference renaming rules also apply to this embodiment, and will not be repeated here.
[0106] In this embodiment of the disclosure, when the client requests the server to rename the target file, the server can respond to the request, obtain the target file information of the target file, and generate at least one reference file name based on the target file information using a second language model, and then send at least one reference file name to the server, so that the client can receive and display at least one reference file name.
[0107] To clearly illustrate how the client requests the server to rename the target file, in any embodiment of this disclosure, the client sends a rename request to the server; wherein, the rename request may carry the file identifier of the target file, and the rename request may be used to request the server to rename the target file; the file identifier may be used by the server to obtain the target file information of the target file.
[0108] The file identifier can be used to uniquely identify the corresponding file.
[0109] In any embodiment of this disclosure, the file identifier may include, but is not limited to, file name, file type, user account information of the login client, etc.
[0110] As an example, in response to a user triggering a renaming component on the client to rename a target file, the client can query the file identifier of the target file, generate a renaming request based on the file identifier, and send the request to the server. When the server receives the request, it parses the request to obtain the file identifier of the target file. Then, the server can query the relevant database based on the file identifier of the target file to obtain the target file information.
[0111] Therefore, the client can accurately convey the renaming request to the server, and the server can quickly and accurately locate and obtain the target file information based on the file identifier.
[0112] Step 502: In response to the selection operation of at least one reference renaming rule, determine the target renaming rule from at least one reference renaming rule.
[0113] In this embodiment of the disclosure, the user can select at least one reference renaming rule displayed by the client, and the client can respond to the selection operation by determining the reference renaming rule selected by the user from at least one reference renaming rule as the target renaming rule.
[0114] Step 503: Send the target renaming rule to the server.
[0115] In this embodiment of the disclosure, the client can send the target renaming rule to the server.
[0116] Step 504: Receive the reference file name sent by the server; wherein the reference file name is generated by the server using a first language model based on the target file information and the target renaming rules.
[0117] In this embodiment of the disclosure, after the client sends the target renaming rule to the server, the server can use a first language model to generate a reference file name based on the target file information and the target renaming rule, and can send the generated reference file name to the client, so that the client can receive the reference file name sent by the server.
[0118] It should be noted that the explanation of how the server uses the first language model to generate the reference file name based on the target file information and the target renaming rules in any of the above embodiments also applies to this embodiment, and will not be repeated here.
[0119] Step 505: Rename the target file based on the reference file name.
[0120] It should be noted that the explanation of step 505 can be found in the relevant description in any embodiment of this disclosure, and will not be repeated here.
[0121] In any embodiment of this disclosure, after renaming the target file, the file name before renaming the target file (referred to as the original file name in this disclosure) and the file name after renaming the target file (referred to as the target file name in this disclosure) can be displayed.
[0122] Therefore, the file names before and after renaming can be displayed visually, allowing users to intuitively compare the differences without having to check file attributes one by one. This facilitates quick confirmation of whether the file name change meets expectations and improves the convenience of file management.
[0123] The file renaming method of this disclosure, when requesting a renaming of a target file from a server, receives and displays at least one reference renaming rule from the server. The reference renaming rule is generated by the server using a second language model based on the target file information obtained from the target file. In response to a selection operation of at least one reference renaming rule, a target renaming rule is determined from the at least one reference renaming rule. The target renaming rule is sent to the server. A reference file name is received from the server. The reference file name is generated by the server using a first language model based on the target file information and the target renaming rule. Thus, leveraging the powerful semantic understanding and generation capabilities of the language model, reference renaming rules matching the target file and meeting user needs are automatically and intelligently generated based on the target file information, providing users with diverse renaming options and avoiding the tedious process of thinking and manually inputting renaming rules, thereby improving the convenience and efficiency of the renaming operation. Simultaneously, the collaborative work of two different language models effectively improves the accuracy and rationality of the renaming results, contributing to increased user satisfaction and user experience.
[0124] like Figure 6 As shown, this disclosure also proposes a file renaming method. Figure 6 The diagram is based on the sixth embodiment of this disclosure. The file renaming method may include the following steps:
[0125] Step 601: When requesting the server to rename the target file, obtain the natural language instruction and send the natural language instruction to the server; wherein, the natural language instruction is used by the server to parse the operation intent, and convert the operation intent to obtain the target renaming rule.
[0126] Natural language instructions can be used to describe the specific requirements of the user's desired filename for the target file. For example, natural language instructions could be "add special markers to the filename" or "the original filename of the target file is the same as the filename of another file."
[0127] As an example, when a client requests the server to rename a target file, the client can respond to the user's input, obtain the natural language instruction, and send the natural language instruction to the server.
[0128] The forms of input operations include, but are not limited to: keyboard input, voice input, mouse input, touchscreen input, scanner input, etc. Optionally, mouse input refers to selecting natural language commands on the client's interface by moving the mouse pointer and clicking or dragging; keyboard input refers to using a keyboard as an input device to convert characters, symbols, numbers, and specific commands into electrical signals recognizable by the electronic device by pressing a single key or a combination of keys, and then transmitting this information to the client to achieve natural language command input; voice input refers to using a dedicated voice acquisition device (such as a microphone) to convert the user's voice signals into digital information that the electronic device can recognize and process, thereby achieving natural language command input; touchscreen input refers to using a finger or stylus to touch, slide, zoom, etc., on the touchscreen surface to complete natural language command input; scanner input refers to scanning paper documents, images, etc., using optical scanning technology to convert their content into text information corresponding to natural language commands and inputting it into the client to achieve natural language command input.
[0129] It should be noted that the explanations of natural language instruction parsing in step 303 and the explanations of operation intent conversion in step 304 are also applicable to this embodiment, and will not be repeated here.
[0130] Step 602: Receive the reference file name sent by the server; wherein, the reference file name is generated by the server based on the target file information and target renaming rules obtained from the target file and using the first language model.
[0131] Step 603: Rename the target file based on the reference file name.
[0132] It should be noted that the explanations of steps 602 to 603 can be found in the explanations of any embodiment of this disclosure, and will not be repeated here.
[0133] In any embodiment of this disclosure, in response to a user's triggering operation, a retry instruction is sent to the server; wherein, the retry instruction is used by the server to regenerate the reference file name corresponding to the target file based on the target file information and the target renaming rules using a first language model.
[0134] The triggering methods include, but are not limited to: click triggering, gesture triggering, keyboard shortcut triggering, voice triggering, etc. Click triggering refers to the operation of triggering a retry by the user actively clicking on an interface element (such as a control, button, etc.); gesture triggering refers to the operation of triggering a retry by the user's gesture operation (such as swiping, long pressing, dragging, shaking, etc.); keyboard shortcut triggering refers to the operation of triggering a retry quickly by combining keyboard keys; and voice triggering refers to the operation of triggering a retry by the user's voice command.
[0135] In one example, when a user clicks the retry control on the client's interactive interface, the client sends a retry instruction to the server to request the target file to be renamed again. After receiving the retry instruction, the server can use a first language model to regenerate the reference file name corresponding to the target file based on the target file information and the target renaming rules. Then, the server can send the regenerated reference file name to the client, so that the client can receive the regenerated reference file name.
[0136] Therefore, an error correction and optimization mechanism can be provided for users. When the generated reference file name does not meet the expected effect, users do not need to re-enter the command or adjust the rules in a complicated way. They can trigger the retry process by simply triggering the operation. After receiving the retry command, the server can quickly respond and call the first language model again. Combining the existing target file information and target renaming rules, it can efficiently generate a new reference file name, thereby effectively improving the success rate of file renaming and user satisfaction.
[0137] The file renaming method of this disclosure, when requesting a renaming of a target file from a server, obtains natural language instructions and sends these instructions to the server. The server parses these instructions to obtain the operation intent and converts them into target renaming rules. The method also receives a reference file name from the server. This reference file name is generated by the server using a first language model based on the target file information and the target renaming rules. Therefore, users can rename files using only natural language instructions, eliminating the need to manually input complex renaming rules or filenames, greatly simplifying the process and improving user experience. Simultaneously, the server intelligently processes the target file information and target renaming rules using a first language model, generating more accurate reference file names that meet user needs and enhance the efficiency and accuracy of file renaming.
[0138] To clearly illustrate the methods of the above embodiments of this disclosure, a detailed description is provided below with reference to examples.
[0139] As an example, when renaming multiple target files, the file renaming method disclosed herein may include the following steps:
[0140] 1. In response to a user triggering a rename control on the client's interactive interface, the client can display, for example: Figure 7 The renaming interface shown can display multiple target files to be renamed, and the client can send the file identifiers of multiple target files to the server.
[0141] Multiple target files are located in the same directory.
[0142] 2. The server queries the relevant database based on the file identifier to obtain the original file name, file format, and storage path of multiple target files.
[0143] 3. The server parses the storage path through the path scanning module to obtain the path structure, and uses the context analysis engine to query and obtain adjacent files (referred to as associated files in this disclosure) that are in the same directory as multiple target files, and determines the file name and file format of the adjacent files.
[0144] 4. The server uses a first AI (Artificial Intelligence) large language model (referred to as the second language model in this disclosure) to generate at least one renaming strategy (referred to as the reference renaming rule in this disclosure) based on the target file information of the target file, and sends at least one renaming strategy to the client.
[0145] The target file information may include, but is not limited to: the original file name, file format, and storage path of the target file, as well as the file name and file format of adjacent files.
[0146] 5. The client receives and displays at least one renaming strategy.
[0147] 6. In response to a user's selection of a target renaming policy (referred to as the target renaming rule in this disclosure) in at least one renaming policy, the target renaming policy is sent to the server.
[0148] 7. The server uses the second AI large language model (referred to as the first language model in this disclosure) to generate reference file names corresponding to multiple target files based on the target file information and target renaming strategy, and sends the generated reference file names corresponding to multiple target files to the client.
[0149] It is understandable that some users may be dissatisfied with the displayed renaming strategy. Therefore, optionally, the renaming interface can be set with an intent input box. When the user enters a natural language command in the intent input box, the client sends the natural language command to the server. The server can perform intent recognition on the natural language command, obtain the operation intent, and convert the operation intent to obtain the target renaming strategy.
[0150] 8. The client renames the target files using the reference file names corresponding to multiple target files.
[0151] Optionally, the client's renaming interface can display the original filenames of multiple target files before renaming, as well as the renamed filenames. The renaming interface after renaming is as follows: Figure 8 As shown.
[0152] Optionally, during the process of updating the original file name of the target file using the reference file names corresponding to multiple target files on the client, the renaming interface can be set to stop the renaming operation on multiple target files when the user triggers the stop component.
[0153] It is understandable that some users may be dissatisfied with the renamed file name. Therefore, optionally, the renaming interface can be equipped with a retry button (or retry control) (for example, placed after the name edit box). Users can click the retry button to request the server to regenerate a reference file name for the target file.
[0154] When renaming a single target file, the text renaming method disclosed herein may include:
[0155] 1. In response to a user triggering a rename control on the client's interactive interface, the client can display, for example: Figure 9The renaming interface shown displays the target file to be renamed, and the client can send the file identifier of the target file to the server.
[0156] 2. The server queries the relevant database based on the file identifier to obtain the original file name, file format, and storage path of the target file;
[0157] 3. The server parses the storage path through the path scanning module to obtain the path structure, and uses the context analysis engine to query and obtain adjacent files (referred to as associated files in this disclosure) in the same directory as the target file based on the path structure, and determines the file name and file format of the adjacent files;
[0158] 4. The server uses a third-party AI model to generate at least one reference file name based on the target file information, and sends the generated reference file name to the client.
[0159] 5. The client receives and displays at least one reference file name;
[0160] 6. In response to the user's selection of at least one reference file name, rename the target file using the user-selected reference file name.
[0161] Optionally, the client's renaming interface can display the original file name of the target file before renaming, as well as the file name after renaming.
[0162] Optionally,
[0163] In summary, the file renaming method disclosed herein has the function of batch renaming multiple files on the client side. This method utilizes AI large language model technology to accurately extract patterns from the original names of the files to be renamed, and then intelligently provides users with suitable renaming schemes (including renaming strategies and file names). Users can directly click to accept the solution to rename the files. Users only need to click to accept to complete the file renaming operation. If users have personalized naming needs for batch file renaming, they can clearly express their intentions. The AI large language model can accurately identify the user's intentions and intelligently rename the batch files based on the identification results, thus eliminating the tedious operation of manually editing each file one by one.
[0164] The file renaming method disclosed herein has intelligent analysis capabilities, which can intelligently recommend highly suitable renaming rules to users and generate scientific and reasonable file name suggestions. This effectively reduces the time cost for users to manually come up with names, significantly improves the efficiency of file renaming operations, and helps users establish a standardized file management system, thereby comprehensively improving the ease of operation and overall user experience in the process of file organization.
[0165] To implement the above embodiments, this disclosure also provides a file renaming apparatus. For example... Figure 10 As shown, Figure 10 This is a schematic diagram according to the seventh embodiment of the present disclosure. The file renaming device 1000 may include: a first acquisition module 1001, a first generation module 1002, and a first sending module 1003.
[0166] The first acquisition module 1001 is used to acquire the target file information of the target file when the client requests to rename the target file.
[0167] The first generation module 1002 is used to generate the reference file name corresponding to the target file based on the target file information and the target renaming rules using the first language model.
[0168] The first sending module 1003 is used to send a reference file name to the client; wherein the reference file name is used to rename the target file.
[0169] In one possible implementation of this disclosure, the file renaming device 1000 may further include:
[0170] The second generation module is used to generate at least one reference renaming rule corresponding to the target file based on the target file information using a second language model.
[0171] The second sending module is used to send at least one reference renaming rule to the client; wherein the at least one reference renaming rule is used to determine the target renaming rule under the client's selection operation.
[0172] The receiving module is used to receive the target renaming rules from the client.
[0173] In one possible implementation of this disclosure, the reference renaming rule is a name structure composed of a combination of fields and characters used to indicate the name of a reference file.
[0174] In one possible implementation of this disclosure, the file renaming device 1000 may further include:
[0175] The second acquisition module is used to acquire natural language instructions from the client.
[0176] The parsing module is used to parse natural language instructions to obtain the operation intent.
[0177] The conversion module is used to convert the operation intent to obtain the target renaming rule.
[0178] In one possible implementation of this disclosure, the first acquisition module 1001 is configured to: receive a renaming request from a client, wherein the renaming request carries a file identifier of the target file, for requesting the server to rename the target file; and acquire target file information of the target file based on the file identifier.
[0179] In one possible implementation of this disclosure, the target file information includes at least one of the following:
[0180] The original filename of the target file;
[0181] The storage path of the target file;
[0182] The target file's text format;
[0183] The filename of the associated file located in the same directory as the target file;
[0184] The text format of the associated file.
[0185] In one possible implementation of this disclosure, the file renaming device 1000 may further include:
[0186] The third generation module is used to respond to the retry command sent by the client by using the first language model to regenerate the reference file name corresponding to the target file based on the target file information and the target renaming rules.
[0187] The file renaming apparatus of this disclosure, when a client requests to rename a target file, obtains the target file information; uses a first language model to generate a reference file name corresponding to the target file based on the target file information and target renaming rules; and sends the reference file name to the client. The reference file name is used to rename the target file. Therefore, by leveraging the powerful processing capabilities of the language model, it can deeply analyze the target file information and automatically and intelligently generate a precisely matching reference file name according to the target renaming rules. This allows the target file to be renamed using the reference file name, improving the convenience and efficiency of file renaming operations, effectively reducing the tedious process of manual operation, and lowering the probability of errors during the file renaming process.
[0188] To implement the above embodiments, this disclosure also provides a filename renaming device. For example... Figure 11 As shown, Figure 11 This is a schematic diagram according to the eighth embodiment of the present disclosure. The file renaming device 1100 may include: a receiving module 1101 and a renaming module 1102.
[0189] The receiving module 1101 is used to receive a reference file name from the server when requesting the server to rename the target file; wherein the reference file name is generated by the server based on the target file information and the target renaming rules using a first language model after obtaining the target file information.
[0190] The renaming module 1102 is used to rename the target file based on the reference file name.
[0191] In one possible implementation of this disclosure, the receiving module 1101 is configured to: receive and display at least one reference renaming rule from the server when requesting the server to rename the target file; wherein the reference renaming rule is generated by the server based on the target file information obtained from the target file and using a second language model; in response to a selection operation of at least one reference renaming rule, determine a target renaming rule from the at least one reference renaming rule; send the target renaming rule to the server; and receive a reference file name sent by the server; wherein the reference file name is generated by the server based on the target file information and the target renaming rule using a first language model.
[0192] In one possible implementation of this disclosure, the receiving module 1101 is configured to: obtain natural language instructions and send natural language instructions to the server when requesting the server to rename the target file; wherein the natural language instructions are used by the server to parse the operation intent, convert the operation intent, and obtain the target renaming rule; and receive a reference file name sent by the server; wherein the reference file name is generated by the server based on the target file information and the target renaming rule using a first language module after obtaining the target file information of the target file.
[0193] In one possible implementation of this disclosure, the reference file name is at least one; the renaming module 1102 is used to: rename the target file using the target file name in response to the selection operation of the target file name in the at least one reference file name.
[0194] In one possible implementation of this disclosure, the file renaming device 1100 may further include:
[0195] The display module is used to display at least one of the following: the original filename of the target file; the target filename.
[0196] In one possible implementation of this disclosure, the receiving module 1101 is configured to: send a renaming request to the server, wherein the renaming request carries a file identifier of the target file; and receive a reference file name sent by the server, wherein the reference file name is generated by the server based on the file identifier, obtaining the target file information of the target file, and using a first language model based on the target file information and the target renaming rules.
[0197] In one possible implementation of this disclosure, the file renaming device 1100 may further include:
[0198] The sending module is used to send a retry command to the server in response to the triggering operation of the retry control; wherein, the retry command is used by the server to regenerate the reference file name corresponding to the target file based on the target file information and the target renaming rules using the first language model.
[0199] The file renaming apparatus of this disclosure receives a reference file name from the server when requesting renaming of a target file. The reference file name is generated by the server using a first language model based on the target file information and target renaming rules, obtained from the target file information. The target file is then renamed based on the reference file name. Thus, by leveraging the powerful processing capabilities of the language model, the target file information can be deeply analyzed, and a precisely matching reference file name can be automatically and intelligently generated according to the target renaming rules. This allows for renaming the target file using the reference file name, improving the convenience and efficiency of file renaming operations, effectively reducing the tedious process of manual operation, and lowering the probability of errors during the file renaming process.
[0200] The collection, storage, use, processing, transmission, provision, and disclosure of users' personal information are all conducted with the consent of the users and comply with relevant laws and regulations, and do not violate public order and good morals.
[0201] According to embodiments of this disclosure, this disclosure also provides an electronic device, a readable storage medium, and a computer program product.
[0202] Figure 12A schematic block diagram of an example electronic device 1200 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0203] like Figure 12 As shown, device 1200 includes a computing unit 1201, which can perform various appropriate actions and processes according to a computer program stored in read-only memory (ROM) 1202 or a computer program loaded from storage unit 1208 into random access memory (RAM) 1203. The RAM 1203 may also store various programs and data required for the operation of device 1200. The computing unit 1201, ROM 1202, and RAM 1203 are interconnected via bus 1204. Input / output (I / O) interface 1205 is also connected to bus 1204.
[0204] Multiple components in device 1200 are connected to I / O interface 1205, including: input unit 1206, such as keyboard, mouse, etc.; output unit 1207, such as various types of monitors, speakers, etc.; storage unit 1208, such as disk, optical disk, etc.; and communication unit 1209, such as network card, modem, wireless transceiver, etc. Communication unit 1209 allows device 1200 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.
[0205] The computing unit 1201 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 1201 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. The computing unit 1201 performs the various methods and processes described above, such as the file renaming method. For example, in some embodiments, the file renaming method may be implemented as a computer software program tangibly contained in a machine-readable medium, such as storage unit 1208. In some embodiments, part or all of the computer program may be loaded and / or installed on device 1200 via ROM 1202 and / or communication unit 1209. When the computer program is loaded into RAM 1203 and executed by the computing unit 1201, one or more steps of the file renaming method described above may be performed. Alternatively, in other embodiments, the computing unit 1201 may be configured to perform a file renaming method by any other suitable means (e.g., by means of firmware).
[0206] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.
[0207] The program code used to implement the methods of this disclosure may be written in any combination of one or more programming languages. This program code may be provided to a processor or controller of a general-purpose computer, special-purpose computer, or other programmable data processing apparatus, such that when executed by the processor or controller, the program code causes the functions / operations specified in the flowcharts and / or block diagrams to be implemented. The program code may be executed entirely on a machine, partially on a machine, as a standalone software package partially on a machine and partially on a remote machine, or entirely on a remote machine or server.
[0208] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.
[0209] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).
[0210] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.
[0211] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact via communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other. Servers can be cloud servers, servers in distributed systems, or servers incorporating blockchain technology.
[0212] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this disclosure can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this disclosure can be achieved, and this is not limited herein.
[0213] The specific embodiments described above do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this disclosure should be included within the scope of protection of this disclosure.
Claims
1. A file renaming method, applied on a server side, the method comprising: When a client requests to rename a target file, the target file information of the target file is obtained; A first language model is used to generate a reference file name corresponding to the target file based on the target file information and the target renaming rules; Send the reference file name to the client; wherein the reference file name is used to rename the target file.
2. The method according to claim 1, wherein, The process of obtaining the target renaming rule includes: Based on the target file information, a second language model is used to generate at least one reference renaming rule corresponding to the target file; Send the at least one reference renaming rule to the client; wherein the at least one reference renaming rule is used to determine the target renaming rule under the selection operation of the client; Receive the target renaming rule from the client.
3. The method according to claim 2, wherein, The reference renaming rule is a name structure composed of fields and / or characters used to indicate the name of the reference file.
4. The method according to claim 1, wherein, The process of obtaining the target renaming rule includes: Obtain natural language instructions from the client; The natural language instructions are parsed to obtain the operation intent; The operation intent is transformed to obtain the target renaming rule.
5. The method according to any one of claims 1-4, wherein, When a client requests to rename a target file, obtaining the target file information includes: A rename request is received from the client, wherein the rename request carries the file identifier of the target file; Based on the file identifier, obtain the target file information of the target file.
6. The method according to any one of claims 1-4, wherein, The target file information includes at least one of the following: The original file name of the target file; The storage path of the target file; The text format of the target file; The filename of the associated file located in the same directory as the target file; The text format of the associated file.
7. The method according to any one of claims 1-4, wherein, The method further includes: In response to receiving a retry command from the client, the reference file name corresponding to the target file is regenerated using a first language model based on the target file information and the target renaming rules.
8. A file renaming method, applied to a client, the method comprising: When requesting the server to rename the target file, a reference file name is received from the server; wherein, the reference file name is generated by the server based on the target file information and the target renaming rules using a first language model. The target file is renamed based on the reference file name.
9. The method according to claim 8, wherein, In the case of requesting the server to rename the target file, receiving the reference file name from the server includes: When requesting the server to rename a target file, the server receives and displays at least one reference renaming rule; wherein the reference renaming rule is generated by the server based on the target file information obtained from the target file and using a second language model. In response to the selection operation of the at least one reference renaming rule, the target renaming rule is determined from the at least one reference renaming rule; Send the target renaming rule to the server; The server receives the reference file name sent by the server; wherein the reference file name is generated by the server using the first language model based on the target file information and the target renaming rules.
10. The method according to claim 8, wherein, In the case of requesting the server to rename the target file, receiving the reference file name from the server includes: When requesting the server to rename a target file, a natural language instruction is obtained and sent to the server; wherein, the natural language instruction is used by the server to parse the operation intent, and the operation intent is converted to obtain the target renaming rule; The server receives the reference file name sent by the server; wherein the reference file name is generated by the server based on the target file information and the target renaming rules using the first language model, after obtaining the target file information of the target file.
11. The method according to claim 8, wherein, The reference file name is at least one; the renaming of the target file based on the reference file name includes: In response to the selection operation of a target file name from at least one of the reference file names, the target file is renamed using the target file name.
12. The method according to claim 11, wherein, The method further includes: Show at least one of the following: The original file name of the target file; The name of the target file.
13. The method according to any one of claims 8-12, wherein, The process by which the client requests the server to rename the target file includes: A rename request is sent to the server; wherein the rename request carries the file identifier of the target file, which is used to request the server to rename the target file; the file identifier is used by the server to obtain the target file information of the target file.
14. The method according to any one of claims 8-12, wherein, The method further includes: In response to a user's triggering operation, a retry instruction is sent to the server; wherein, the retry instruction is used by the server to regenerate the reference file name corresponding to the target file based on the target file information and the target renaming rule using the first language model.
15. A file renaming device, applied on a server, the device comprising: The first acquisition module is used to acquire the target file information of the target file when the client requests to rename the target file; The first generation module is used to generate a reference file name corresponding to the target file based on the target file information and the target renaming rules using a first language model; The first sending module is used to send the reference file name to the client; wherein the reference file name is used to rename the target file.
16. A file renaming apparatus, applied to a client, the apparatus comprising: The receiving module is used to receive a reference file name from the server when a request is made to the server to rename the target file; wherein the reference file name is generated by the server based on the target file information and the target renaming rules obtained by the server from the target file information and using a first language model. The renaming module is used to rename the target file based on the reference file name.
17. An electronic device comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions executable by the at least one processor, which, when executed by the at least one processor, enables the at least one processor to perform the method of any one of claims 1 to 7, or the method of any one of claims 8 to 14.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1 to 7, or the method according to any one of claims 8 to 14.
19. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1 to 7, or the method according to any one of claims 8 to 14.