Multi-language interface adaptation method, device, equipment and computer program product
The multilingual interface context perception and translation processing is performed through a large language model, which solves the problems of high cost and low efficiency of traditional multilingual interface adaptation, and realizes efficient and accurate multilingual interface adaptation, which is suitable for the international market.
Patent Information
- Application Number
- CN202411095245.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-09
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2044-08-09
AI Technical Summary
In the prior art, multilingual interface adaptation relies on manual translation and proofreading, resulting in high cost and inefficiency, making it difficult to effectively support the multilingual needs of the international market.
The large language model is used to perform context-aware processing and translation processing on the multilingual interface, and automatically generate target display text to achieve efficient adaptation of the multilingual interface.
It reduces the cost of multilingual interface adaptation, improves the efficiency and accuracy of adaptation, improves user experience, and is suitable for international markets of different cultures and languages.
Smart Images

Figure CN119127359A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of interface technology, and in particular to a multi-language interface adaptation method, device, equipment and computer program product. Background Art
[0002] With the rapid development of the global economy, more and more products need to be oriented to the international market to adapt to the needs of users in different cultures, languages and regions. Among them, for software products and Internet services, the implementation of multilingual support and internationalized interface is a complex and time-consuming process.
[0003] At present, traditional multi-language interfaces often rely on manual translation and manual proofreading to achieve adaptive display, which not only leads to high adaptation costs for multi-language interfaces, but also makes the display efficiency of multi-language interfaces low. Summary of the invention
[0004] The embodiments of the present invention provide a method, apparatus, device and computer program product for adapting a multi-language interface, which can efficiently and accurately adapt the multi-language interface and effectively reduce the adaptation cost of the multi-language interface.
[0005] In a first aspect, an embodiment of the present invention provides a method for adapting a multi-language interface, comprising:
[0006] Acquire a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed;
[0007] Performing context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data;
[0008] The multi-language interface is translated using the large language model based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
[0009] In a second aspect, an embodiment of the present invention provides a multi-language interface adaptation device, including:
[0010] A first acquisition module, used to acquire a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed;
[0011] A first determination module, configured to perform context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data;
[0012] The first processing module is used to use the large language model and translate the multi-language interface based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
[0013] In a third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the multi-language interface adaptation method in the above-mentioned first aspect.
[0014] In a fourth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement the multi-language interface adaptation method in the first aspect when executed.
[0015] In a fifth aspect, an embodiment of the present invention provides a computer program product, comprising: a computer-readable storage medium storing computer instructions, which, when executed by one or more processors, causes the one or more processors to execute the steps in the multi-language interface adaptation method shown in the first aspect above.
[0016] In a sixth aspect, an embodiment of the present invention provides a method for adapting a dialogue interface, comprising:
[0017] Acquire a dialogue display interface and a target language for adapting the dialogue display interface, wherein the dialogue display interface includes an original dialogue text in an original language;
[0018] Performing context-aware processing on the dialog display interface using a large language model to obtain context information of the dialog display interface, wherein the large language model is trained based on preset sample data;
[0019] Using the large language model, translating the original dialogue text based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text;
[0020] The original dialogue text and the target dialogue text are adapted and displayed on the dialogue display interface.
[0021] In a seventh aspect, an embodiment of the present invention provides an adaptation device for a dialogue interface, including:
[0022] A second acquisition module, used to acquire a dialogue display interface and a target language for adapting the dialogue display interface, wherein the dialogue display interface includes an original dialogue text in an original language;
[0023] a second determination module, configured to perform context-aware processing on the dialog display interface using a large language model to obtain context information of the dialog display interface, wherein the large language model is trained based on preset sample data;
[0024] A second processing module is used to translate the original dialogue text using the large language model based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text;
[0025] The second display module is used to adapt and display the original dialogue text and the target dialogue text on the dialogue display interface.
[0026] In an eighth aspect, an embodiment of the present invention provides an electronic device, comprising: a memory, and a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the adaptation method of the dialogue interface in the above-mentioned sixth aspect.
[0027] In a ninth aspect, an embodiment of the present invention provides a computer storage medium for storing a computer program, wherein the computer program enables a computer to implement the method for adapting the dialogue interface in the sixth aspect when executed.
[0028] In the tenth aspect, an embodiment of the present invention provides a computer program product, comprising: a computer-readable storage medium storing computer instructions, which, when the computer instructions are executed by one or more processors, causes the one or more processors to execute the steps in the method for adapting the dialogue interface shown in the sixth aspect above.
[0029] In an eleventh aspect, an embodiment of the present invention provides a multi-language interface adaptation system, including:
[0030] A data processing platform, for obtaining a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed; performing context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data; performing translation processing on the multi-language interface using the large language model and based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed;
[0031] The e-commerce platform is used to display the target display interface.
[0032] The multi-language interface adaptation method, apparatus, device and computer program product provided in this embodiment obtains a multi-language interface and a target language for adapting the multi-language interface, and then uses a large language model to perform context-aware processing on the multi-language interface to obtain context information of the multi-language interface, and uses the large language model to translate the multi-language interface based on the context information and the target language to obtain a target display interface, thereby effectively realizing the automatic and efficient adjustment operation of the display content of the interface based on the target language through the large language model, wherein, since the target language can be flexibly adjusted based on the user's interface adaptation requirements, the requirements of different users in different application scenarios for viewing the interface content of the multi-language interface can be met, thereby facilitating improving the user's good experience of viewing the multi-language interface; in addition, the large language model combines the context information of the multi-language interface to perform efficient and automatic adaptation operations on the multi-language interface, which not only improves the accuracy of expressing the content of the multi-language interface, reduces the adaptation cost of the multi-language interface, but also helps to improve the display efficiency of the multi-language interface, thereby effectively ensuring the practicality of the method. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0034] Figure 1 A schematic diagram of a scenario of a multi-language interface adaptation method provided by an embodiment of the present invention;
[0035] Figure 2A flowchart of a multi-language interface adaptation method provided by an embodiment of the present invention;
[0036] Figure 3 A schematic diagram of obtaining a target display interface by using the large language model and translating the multilingual interface based on the context information and the target language provided in an embodiment of the present invention;
[0037] Figure 4 A schematic diagram of real-time adjustment of target display text in a target display interface provided by an embodiment of the present invention;
[0038] Figure 5 A flowchart of another method for adapting a multi-language interface provided by an embodiment of the present invention;
[0039] Figure 6 A flowchart of another multi-language interface adaptation method provided by an embodiment of the present invention;
[0040] Figure 7 A flowchart of a method for adapting a dialogue interface provided by an embodiment of the present invention;
[0041] Figure 8 A system flow chart of a multi-language interface adaptation method provided by an application embodiment of the present invention;
[0042] Fig. 9 A schematic diagram of the structure of a multi-language interface adaptation device provided by an embodiment of the present invention;
[0043] Fig.10 For Fig. 9 A schematic diagram showing the structure of an electronic device corresponding to the multi-language interface adaptation device provided in the embodiment;
[0044] Fig.11 A schematic diagram of the structure of an adaptation device for a dialogue interface provided by an embodiment of the present invention;
[0045] Fig.12 For Fig.11 A schematic diagram showing the structure of an electronic device corresponding to an adaptation device for a dialogue interface provided in an embodiment;
[0046] Fig.13 A schematic diagram of the structure of a multi-language interface adaptation system provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0048] The terms used in the embodiments of the present invention are only for the purpose of describing specific embodiments, and are not intended to limit the present invention. The singular forms "a", "an", and "the" used in the embodiments of the present invention and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings, and "multiple" generally includes at least two, but does not exclude the situation of including at least one.
[0049] It should be understood that the term "and / or" used in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0050] As used herein, the words "if" and "if" may be interpreted as "at the time of" or "when" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrases "if it is determined" or "if (stated condition or event) is detected" may be interpreted as "when it is determined" or "in response to determining" or "when detecting (stated condition or event)" or "in response to detecting (stated condition or event)", depending on the context.
[0051] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a product or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such a product or system. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the product or system including the elements.
[0052] In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0053] Definition of terms:
[0054] Context-Aware: In Natural Language Processing (NLP), context-aware means that the model takes into account the context of previous and subsequent sentences and texts, so that it can generate more accurate and coherent translations or content.
[0055] Consistency Check: A mechanism to ensure the consistency of translation results. It automatically detects and corrects translation inconsistencies caused by different contexts or terminology, thereby improving the overall translation quality.
[0056] In order to facilitate understanding of the specific implementation process and implementation effect of the multi-language interface adaptation method, device, equipment and computer program product in this embodiment, the relevant technology is briefly described below:
[0057] With the rapid development of the global economy, more and more products need to face the international market to adapt to the needs of users in different cultures, languages and regions. Among them, for software products and Internet services, the implementation of multilingual support and internationalized interfaces is a complex and time-consuming process. At present, traditional multilingual interfaces often rely on manual translation and manual proofreading to achieve adaptive display, which not only leads to high adaptation costs for multilingual interfaces, but also makes the display efficiency of multilingual interfaces low.
[0058] In response to the above problems, the related art provides some translation services, such as text translation services, voice translation services, and image translation services, so as to achieve efficient and intelligent automatic translation and content generation. However, since the above translation services are often implemented through preset language translation data packets, for example, the translation service is pre-configured with a Chinese language data packet and an English language data packet, the above Chinese language data packet includes a fixed number of Chinese words, and the English language data packet includes a fixed number of English words corresponding to the above Chinese words. When a Chinese-English translation operation is required, the translation operation can be implemented through the words included in the above Chinese language data packet and the English language data packet. However, this makes the provided translation service prone to the following defects:
[0059] (1) However, when dealing with complex texts and long paragraphs, inaccurate translation may still occur, resulting in incoherent or misleading content;
[0060] (2) Since the content of the translation is relatively fixed, the translation results may not be natural or accurate enough when faced with subtle cultural differences and industry terminology in a specific language.
[0061] In order to solve the above technical problems, this embodiment provides a multi-language interface adaptation method, device, equipment and computer program product. Figure 1 As shown, the execution subject of the multi-language interface adaptation method can be a multi-language interface adaptation device 200, and the multi-language interface adaptation device 200 can be implemented as a local server, a server in the cloud, or a preset device. In the case where the multi-language interface adaptation device 200 is implemented as a server in the cloud, the multi-language interface adaptation method can be executed in the cloud, and several computing nodes (cloud servers) can be deployed in the cloud, and each computing node has computing, storage and other processing resources. In the cloud, multiple computing nodes can be organized to provide a certain service. Of course, a computing node can also provide one or more services. The way to provide the service in the cloud can be to provide a service interface to the outside, and the user calls the service interface to use the corresponding service. The service interface includes a software development kit (Software Development Kit, referred to as SDK), an application programming interface (Application Programming Interface, referred to as API), and the like.
[0062] The multi-language interface adaptation device 200 is connected to the client 100 for communication, wherein the client 100 is used for users to apply so as to trigger the adaptation operation of the multi-language interface. The above-mentioned client 100 can be any computing device with a certain data transmission capability. When implemented specifically, the client 100 can be a mobile phone, a personal computer PC, a tablet computer, a setting application, etc. In addition, the basic structure of the client 100 may include: at least one processor. The number of processors depends on the configuration and type of the client. The client 100 may also include a memory, which may be volatile, such as a random access memory (RAM), or non-volatile, such as a read-only memory (ROM), flash memory, etc., or may include both types. The memory usually stores an operating system (OS), one or more application programs, and may also store program data, etc. In addition to the processing unit and the memory, the client 100 also includes some basic configurations, such as a network card chip, an IO bus, a display component, and some peripheral devices, etc. Optionally, some peripheral devices may include, for example, a keyboard, a mouse, an input pen, a printer, etc. Other peripheral devices are well known in the art and will not be described in detail here.
[0063] The multi-language interface adaptation device 200 refers to a device that can provide multi-language interface adaptation operations in a network virtual environment, and generally refers to a device that uses the network to perform information planning and multi-language interface adaptation operations. In physical implementation, the video generation device 200 can be any device that can provide computing services and can perform corresponding multi-language interface adaptation operations, for example: it can be a cluster server, a conventional server, a cloud server, a cloud host, a virtual center, etc. The multi-language interface adaptation device 200 mainly includes a processor, a hard disk, a memory, a system bus, etc., which is similar to a general computer architecture.
[0064] In the above embodiment, the client 100 is connected to the multi-language interface adapter 200 through a network, and the network connection can be a wireless or wired network connection. If the client 100 can be connected to the multi-language interface adapter 200 through a communication connection, the network standard of the mobile network can be any one of 2G (GSM), 2.5G (GPRS), 3G (WCDMA, TD-SCDMA, CDMA2000, UTMS), 4G (LTE), 4G+ (LTE+), WiMax, 5G, 6G, etc.
[0065] In the embodiment of the present application, the client 100 is used by the user to generate an adaptation request for the multi-language interface, wherein the adaptation request for the multi-language interface can be generated by a human-computer interaction operation or a voice interaction operation. After obtaining the adaptation request for the multi-language interface, the adaptation request for the multi-language interface can be sent to the adaptation device 200 for the multi-language interface, so that the adaptation device 200 for the multi-language interface can perform a corresponding adaptation operation of the multi-language interface based on the adaptation request for the multi-language interface.
[0066] The multi-language interface adaptation device 200 is used to obtain an adaptation request of the multi-language interface sent by the client 100, and then obtain the multi-language interface and the target language for adapting the multi-language interface based on the adaptation request of the multi-language interface, wherein the multi-language interface may refer to a display interface that can correspond to multiple language types, which may include text to be displayed; since different users may expect to view interface content in different target languages, in order to accurately express and display the content in the multi-language interface based on the target language, the multi-language interface may be context-awarely processed using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data; then the multi-language interface may be translated using the large language model based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed, and then the target display interface may be displayed, thereby effectively realizing the adaptive display operation of the multi-language interface.
[0067] This embodiment effectively realizes the automatic and efficient adjustment of the display content of the interface based on the target language through the large language model. Among them, since the target language can be flexibly adjusted based on the user's interface adaptation needs, it can meet the needs of different users in different application scenarios to view the interface content of the multi-language interface, which is conducive to improving the user's good experience of viewing the multi-language interface; in addition, the large language model combines the context information of the multi-language interface to efficiently and automatically adapt the multi-language interface, which not only improves the accuracy of expressing the multi-language interface content, reduces the adaptation cost of the multi-language interface, but also helps to improve the display efficiency of the multi-language interface.
[0068] Some embodiments of the present invention are described in detail below in conjunction with the accompanying drawings. In the case where there is no conflict between the embodiments, the following embodiments and the features in the embodiments can be combined with each other. In addition, the step sequence in the following method embodiments is only an example and not a strict limitation.
[0069] Figure 2 A flowchart of a multi-language interface adaptation method provided by an embodiment of the present invention; Figure 2As shown, this embodiment provides a method for adapting a multi-language interface. The execution subject of the method is an adaptation device for a multi-language interface. Specifically, the adaptation device for a multi-language interface can be implemented as software, or a combination of software and hardware. When the adaptation device for a multi-language interface is implemented as hardware, it can be various electronic devices that can implement the adaptation operation of a multi-language interface, including but not limited to personal computers, servers, databases, etc. When the adaptation device for a multi-language interface is implemented as software, it can be installed in the electronic devices listed above. Based on the above-mentioned adaptation device for a multi-language interface, the adaptation operation of a multi-language interface can be implemented. Specifically, the method for adapting a multi-language interface can include:
[0070] Step S201: Acquire a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed.
[0071] Step S202: Utilize a large language model to perform context-aware processing on the multi-language interface to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data.
[0072] Step S203: translating the multi-language interface using the large language model based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
[0073] The specific implementation process and effects of each of the above steps are described in detail below:
[0074] Step S201: Acquire a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed.
[0075] Among them, a multilingual interface refers to a user interface that can support display and interaction in multiple languages. Users can dynamically switch the content display language in the interface according to their language preferences to improve the localized user experience. Since a multilingual interface can support multiple types of languages to express interface content, in order to accurately display interface content in different languages, a multilingual interface and a target language for adapting the multilingual interface can be obtained. The obtained multilingual interface may include text to be displayed, and the text to be displayed may correspond to an original language. In different application scenarios, the text to be displayed may correspond to different original languages. It can be understood that the multilingual interface may include not only text to be displayed, but also other display content, such as image data, video data, etc. The display content included in the multilingual interface is not specifically limited here.
[0076] In addition, this embodiment does not limit the specific method for obtaining the multilingual interface and the target language. In some instances, the multilingual interface and the target language can be obtained by accessing a preset device. At this time, obtaining the multilingual interface and the target language for adapting the multilingual interface may include: obtaining a preset device that is communicatively connected to an adaptation device of the multilingual interface (hereinafter referred to as the "adaptation device"), wherein the preset device stores the multilingual interface and the target language for adapting the multilingual interface; by actively or passively accessing the preset device, the multilingual interface and the target language for adapting the multilingual interface can be stably obtained.
[0077] In other instances, the multilingual interface and the target language can be obtained not only by accessing a preset device, but also by a human-computer interaction operation. In this case, obtaining the multilingual interface and the target language for adapting the multilingual interface may include: displaying the human-computer interaction interface; displaying multiple alternative multilingual interfaces and multiple alternative languages in the human-computer interaction interface; obtaining a selection operation input by a user for at least one alternative multilingual interface; determining the alternative multilingual interface corresponding to the selection operation as the multilingual interface that needs to be adapted; similarly, obtaining a selection operation input by a user for at least one alternative language; determining the alternative language corresponding to the selection operation as the target language for the adaptation operation, thereby effectively ensuring the accuracy and reliability of obtaining the multilingual interface and the target language.
[0078] In addition, the multilingual interface can be obtained not only through human-computer interaction operations, but also through the user's startup operation for a preset application. At this time, obtaining the multilingual interface may include: obtaining the startup operation input by the user for the preset application, wherein the preset application includes the multilingual interface; based on the startup operation, determining the multilingual interface configured in the preset application, for example: the homepage of the preset application, the operation interface of the preset application, etc., thereby achieving the adaptation operation of the multilingual interface without the user selecting the multilingual interface operation, thereby effectively improving the flexibility of the use of the method.
[0079] Similarly, the target language can be obtained not only through human-computer interaction, but also through analyzing and processing the IP address of the adapter device. At this time, obtaining the target language for adapting the multi-language interface may include: obtaining the IP address of the adapter device; determining the regional information corresponding to the adapter device based on the IP address; determining the target language for adapting the multi-language interface based on the regional information. For example, when the regional information of the adapter device is "Shanghai, China", the target language for adapting the multi-language interface can be determined to be "Chinese"; when the regional information of the adapter device is "Los Angeles, USA", the target language for adapting the multi-language interface can be determined to be "English"; when the regional information of the adapter device is "Russia", the target language for adapting the multi-language interface can be determined to be "Russian", which effectively ensures the accuracy and reliability of automatic identification and determination of the target language.
[0080] Step S202: Utilize a large language model to perform context-aware processing on the multi-language interface to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data.
[0081] Since multilingual interfaces in different application scenarios often correspond to different interface display styles, in order to ensure that the interface content of the multilingual interface in different application scenarios is accurately expressed, when the multilingual interface is adapted and displayed using the target language, the context information of the multilingual interface can be combined to perform the adaptation display operation. Specifically, after the multilingual interface is acquired, the large language model can be used to perform context-aware processing operations on the multilingual interface, so that the context information of the multilingual interface can be obtained, wherein the context information can include at least one of the following: interface style (including font, size, color, layout, display style, etc.), interface interaction controls, navigation information in the interface, display content information in the interface, etc. Obtaining the context information of the multilingual interface through the large language model effectively ensures the accuracy and reliability of the acquisition of the context information, and then facilitates the improvement of the accuracy of the interface adaptation operation based on the context information.
[0082] Step S203: translating the multi-language interface using the large language model based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
[0083] After obtaining the context information, the large language model can be used to perform translation processing operations on the multilingual interface based on the context information and the target language. Specifically, after obtaining the context information, the target language and the multilingual interface, the context information, the target language and the multilingual interface can be input into the large language model for translation processing, so that the target display interface output by the large language model can be directly obtained, wherein the target display interface can include a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed, that is, the meaning that the target display text intends to express is the same as or consistent with the meaning that the text to be displayed intends to express.
[0084] It should be noted that, for the target display text and the target display interface, the adaptation of the target display text and the target display interface may include at least one of the following: the font size of the target display text is adapted to the target display interface, the font color of the target display text is adapted to the target display interface, the length of the target display text is adapted to the target display interface, the position of the target display text is adapted to the target display interface, etc. The above specific implementation method of "adapting the target display text to the target display interface" is only for illustration. Those skilled in the art can flexibly adjust or configure the specific implementation method of "adapting the target display text to the target display interface" according to specific application scenarios or application requirements, which will not be repeated here.
[0085] In some other instances, after obtaining the target display interface, the target display interface can be cached. At this time, the method in this embodiment can also include: obtaining a local cache area; the multilingual interface, the target language and the target display interface can be associated and stored in the local cache area, which not only allows the user to view and call the target display interface at any time, but also because the target display interface is stored in the local cache area, when the target display interface needs to be called or viewed, the access path of the target display interface is effectively shortened, thereby improving the efficiency of accessing or viewing the target display interface.
[0086] The multi-language interface adaptation method provided in this embodiment obtains a multi-language interface and a target language for adapting the multi-language interface, and then uses a large language model to perform context-aware processing on the multi-language interface to obtain context information of the multi-language interface, and uses the large language model to translate the multi-language interface based on the context information and the target language to obtain a target display interface, thereby effectively realizing the automatic and efficient adjustment operation of the display content of the interface based on the target language through the large language model, wherein, since the target language can be flexibly adjusted based on the user's interface adaptation requirements, the requirements of different users in different application scenarios for viewing the interface content of the multi-language interface can be met, thereby facilitating improving the user's good experience of viewing the multi-language interface; in addition, the large language model combines the context information of the multi-language interface to perform efficient and automatic adaptation operations on the multi-language interface, which not only improves the accuracy of expressing the content of the multi-language interface, reduces the adaptation cost of the multi-language interface, but also helps to improve the display efficiency of the multi-language interface, thereby effectively ensuring the practicality of the method.
[0087] Figure 3 A schematic diagram of a target display interface obtained by translating a multilingual interface using a large language model based on context information and a target language according to an embodiment of the present invention; based on the above embodiment, referring to the attached Figure 3 As shown, when translating the multi-language interface using the large language model, in order to ensure the accuracy, fluency and naturalness of the target display interface, the text to be displayed can be translated first, and then the translated text to be displayed can be adapted to obtain the target display interface. At this time, translating the multi-language interface using the large language model based on the context information and the target language to obtain the target display interface may include:
[0088] Step S301: translating the text to be displayed using a large language model based on context information and a target language to obtain a target translated text.
[0089] After obtaining the context information and target language of the multilingual interface, the multilingual interface, the context information and the target language can be input into a large language model so that the large language model can translate the text to be displayed in the multilingual interface based on the context information and the target language, thereby obtaining the target translated text in the target language.
[0090] Step S302: Adapt the target translation text using the large language model and based on the multi-language interface to obtain the target display text.
[0091] Since the target language of the target translation text is often different from the original language of the text to be displayed, the length of the obtained target translation text may be different from the length of the text to be displayed. At this time, in order to adaptively display the target translation text in the multilingual interface, after obtaining the target translation text, the large language model can be used to adapt and adjust the multilingual interface and the target translation text. In some instances, the dimensions of adapting and adjusting the multilingual interface and the target translation text using the large language model may include at least one of the following: color adaptation dimension, font adaptation dimension, font size adaptation dimension, text length adaptation dimension, text width adaptation dimension, relative position dimension between text and interface, etc., so that the target display text adapted to the multilingual interface can be obtained.
[0092] Step S303: Replace the text to be displayed in the multi-language interface with the target display text to obtain the target display interface.
[0093] After the target display text is obtained, the text to be displayed in the multilingual interface can be replaced with the target display text, so that the target display interface including the target display text can be obtained, which effectively ensures the accuracy and reliability of obtaining the target display interface. The target display interface can then be displayed so that the user can accurately obtain the information to be expressed by the target display interface. For example, for the same multilingual interface, user A can view the English multilingual interface, user B can view the Chinese multilingual interface, and user C can view the Russian multilingual interface, thereby effectively realizing that the content of the multilingual interface can be expressed and displayed in different target languages, so that users with different language requirements can accurately obtain the information to be expressed by the target display interface, which is conducive to improving the user's good experience in viewing the multilingual interface.
[0094] In some other instances, in order to ensure consistent expression of the interface content of the multilingual interface, after obtaining the target display text, a consistency check operation can be performed on the text to be displayed and the target display text. At this time, the method in this embodiment can also include: performing a consistency check on the text to be displayed and the target display text based on context information, and obtaining consistency information for identifying whether the target display text is reasonable; when the consistency information identifies that the target display text is reasonable, it is allowed to replace the text to be displayed in the multilingual interface with the target display text; when the consistency information identifies that the target display text is unreasonable, it is prohibited to replace the text to be displayed in the multilingual interface with the target display text.
[0095] Among them, since the target display text is obtained by adapting the multilingual interface and the target language based on the large language model, the expression accuracy of the target display text is closely related to the reasoning accuracy of the large language model. In order to avoid the expression errors of the target display text and the incorrect communication of the interface content by the multilingual interface, after obtaining the target display text, the context information can be used to perform consistency detection operations on the target display text and the target display text, and consistency information can be obtained to identify whether the target display text is reasonable.
[0096] In some instances, consistency detection can be achieved through a preset consistency verification tool / consistency detection model. In this case, consistency detection is performed on the text to be displayed and the target display text based on the context information, and obtaining consistency information for identifying whether the target display text is reasonable may include: obtaining a consistency detection tool for performing consistency detection operations; inputting the context information, the text to be displayed, and the target display text into the consistency detection tool / consistency detection model to perform a consistency detection operation, and obtaining consistency information output by the consistency detection tool / consistency detection model for identifying whether the target display text is reasonable.
[0097] Specifically, the consistency information may include: a detection result for identifying that the target display text is reasonable, and a detection result for identifying that the target display text is unreasonable. For example, when the consistency information is "1", the target display text can be determined to be reasonable; when the consistency information is "0", the target display text can be determined to be unreasonable; or, when the consistency information is "0", the target display text can be determined to be reasonable; when the consistency information is "1", the target display text can be determined to be unreasonable.
[0098] In order to ensure the consistency of translation content between different languages and avoid translation inconsistencies caused by different contexts or terminology, after obtaining the consistency test results of the text to be displayed and the target display text, different data processing operations can be performed based on different test results. Specifically, when the consistency information indicates that the target display text is reasonable, it means that the target display text can accurately express the content of the multilingual interface, and thus allows the text to be displayed in the multilingual interface to be replaced by the target display text; when the consistency information indicates that the target display text is unreasonable, it means that the target display text cannot accurately express the content of the multilingual interface. In order to avoid incorrect expression of information, it can be prohibited to replace the text to be displayed in the multilingual interface with the target display text. This not only ensures the data consistency of different language versions and improves the overall translation quality of the multilingual interface, but also effectively ensures the accurate expression of the target display interface.
[0099] In this embodiment, a large language model is used to translate the text to be displayed based on context information and the target language to obtain a target translated text, and then the large language model is used to adapt the target translated text based on the multilingual interface to obtain a target display text, and the text to be displayed in the multilingual interface is replaced with the target display text to obtain a target display interface, thereby not only ensuring the accuracy and reliability of obtaining the target display interface, but also because the target display text is adapted to the multilingual interface, the coherence and fluency of the target display interface can be guaranteed, which is conducive to improving the user's experience of viewing or browsing the interface.
[0100] Figure 4 A schematic diagram of real-time adjustment of target display text in a target display interface provided by an embodiment of the present invention; based on any of the above embodiments, refer to the attached Figure 4 As shown, after obtaining the target display interface, the user can flexibly adjust the target display text in the target display interface according to the needs. At this time, the method in this embodiment may also include:
[0101] Step S401: display at least one interactive control in the target display interface.
[0102] After acquiring the target display interface, in order to promptly obtain user feedback information on the target display interface, at least one interactive control may be displayed in the target display interface, that is, the number of interactive controls may be one or more. In some instances, when the number of interactive controls is one, the interactive control may be dynamically displayed on one side of the target display interface, such as the left side, the right side, the upper left side, the upper right side, the lower left side, the lower right side, etc.; when the number of interactive controls is multiple, the multiple interactive controls may be flexibly deployed and displayed based on the position of the target display text included in the target display interface, for example: one target display text may correspond to one interactive control, and the interactive control may be deployed on one side of the target display text, so that the user's feedback information on the above-mentioned target display text may be obtained through the interactive control.
[0103] Step S402: obtaining adjustment information input by the user for the target display text in the target display interface through at least one interactive control.
[0104] Among them, since the target display text in the target display interface is obtained through reasoning operations on the large language model, the translation accuracy of the target display text is closely related to the reasoning accuracy of the large language model. When the user finds that there are errors or mistakes in the target display text in the target display interface, in order to improve the flexibility and reliability of displaying the content of the target display interface, the user is allowed to adjust the target display text of the target display interface, which can be specifically achieved through at least one interactive control.
[0105] Specifically, for at least one interactive control displayed in the target display interface, it can be displayed in at least one of the following ways: a floating window, a pop-up window, a fixed window, etc., and the interactive controls in different scenes can correspond to different interactive operations. For example: when the interactive control is an information interactive control, the user can perform information input operations on the above-mentioned information interactive control, so as to obtain the user's adjustment information for the target display text in the target display interface.
[0106] Step S403: when it is determined that the adjustment information is reasonable, the target display text in the target display interface is adjusted in real time based on the adjustment information to obtain an adjusted display interface.
[0107] After obtaining the adjustment information, in order to prevent any user from making arbitrary and malicious adjustments to the target display text in the target display interface and to ensure the rationality of real-time adjustments to the target display text, the adjustment information can be checked for rationality. In some instances, the rationality check of the adjustment information may include: obtaining a detection model or detection rule for performing a rationality check operation on the adjustment information; and then using the detection model or detection rule to perform a rationality check on the adjustment information based on context information, a multilingual interface, text to be displayed, a target display interface, and target display text, thereby obtaining a detection result for identifying whether the adjustment information is reasonable.
[0108] When the detection result indicates that the adjustment information is unreasonable, there is no need to perform any adjustment operations based on the adjustment information; when the detection result indicates that the adjustment information is reasonable, the target display text in the target display interface can be adjusted in real time based on the adjustment information, so that the adjusted display interface can be obtained, thereby avoiding any malicious adjustment operations on the target display interface.
[0109] In some instances, after obtaining the adjustment information, not only can the rationality check operation be performed on the adjustment information, but the legality check operation can also be performed on the adjustment information. At this time, after obtaining the adjustment information, the identity identification or portrait information of the source user of the adjustment information can be obtained first; and then, based on the identity identification or portrait information of the source user, it is determined whether the adjustment information is legal; specifically, when the identity identification or portrait information of the source user can identify the source user as a preset legal user, the adjustment information can be determined to be legal adjustment information; when the identity identification or portrait information of the source user can identify the source user as a preset illegal user, the adjustment information can be determined to be illegal adjustment information.
[0110] When it is determined that the adjustment information is reasonable and legal, real-time adjustment of the target display text in the target display interface is allowed based on the adjustment information, thereby effectively realizing reasonable and legal adjustment operations on the target display text in the target display interface, and then the adjusted display interface can be obtained; when it is determined that the adjustment information is unreasonable or illegal, real-time adjustment of the target display text in the target display interface based on the adjustment information is prohibited, thereby ensuring the accuracy of displaying the target display text in the target display interface, which effectively enables users to flexibly adjust erroneous target display text in the target display interface.
[0111] It should be noted that, for the obtained adjustment information, the number of source users corresponding thereto may be one or more. When the number of source users is one, the method in the above-mentioned embodiment may be used to perform rationality detection and / or legality detection operations on the adjustment information; when the number of source users is multiple (for example, community users), the obtained adjustment information may be obtained by summarizing or aggregating the adjustment information corresponding to each of the multiple source users. At this time, rationality detection and / or legality detection operations may be performed based on the number of source users corresponding to the adjustment information. Specifically, after obtaining the adjustment information, the number of legitimate source users (referring to source users who have passed the identity legality detection operation) corresponding to the adjustment information may be counted; when the number of legitimate source users is greater than or equal to a preset threshold, When the number of legitimate source users is less than the preset threshold (for example: 100, 200, 500, etc.), it means that multiple legitimate users have proposed the same adjustment information for the same target display text in the target display interface, and it can be determined that the above adjustment information is relatively reasonable and legal, and then the target display text in the target display interface is allowed to be adjusted in real time based on the adjustment information to obtain the adjusted display interface; when the number of legitimate source users is less than the preset threshold, it means that the number of legitimate users who have proposed the same adjustment information for the same target display text in the target display interface is small, and then it can be determined that the above adjustment information is not reasonable or legal, and then any adjustment operation based on the adjustment information is prohibited, which effectively avoids illegal adjustment operations on the target display interface and ensures the accuracy and reliability of the target display text in the target display interface.
[0112] In some other instances, after displaying at least one interactive control in the target display interface, feedback information from the user regarding the target display interface can be obtained based on the interactive control, and the large language model can be optimized based on the feedback information. At this time, the method in this embodiment may further include: obtaining feedback information from the user regarding the target display interface through at least one interactive control; optimizing the large language model based on the feedback information and the multilingual interface to obtain an optimized large language model.
[0113] Since the target display interface is obtained by performing reasoning operations based on the large language model, the accuracy of the target display text of the target display interface is related to the reasoning accuracy of the large language model. In order to ensure the accuracy and reliability of the display content of the target display interface, the large language model can be continuously optimized. Specifically, after displaying at least one interactive control in the target display interface, the user can input feedback information to the target display interface through at least one interactive control. When the interactive control is a click interactive control, for example, "like control" or "dislike control", the user can input a click operation on the above-mentioned "click interactive control" to obtain the user's feedback information on the target display interface. The feedback information may include positive feedback information (like information), negative feedback information (dislike information), etc. After obtaining the feedback information input by the user for the target display interface, the large language model can be optimized based on the feedback information and the multilingual interface, so as to obtain an optimized large language model. The reasoning accuracy of the optimized large language model is higher than the reasoning accuracy of the large language model before the optimization operation, so that the accuracy and reliability of the target display text in the target display interface can be improved.
[0114] Furthermore, after obtaining the optimized large language model, the version of the large language model may be managed. At this time, the method in this embodiment may include: obtaining version information of the large language model; and managing the large language model based on the version information.
[0115] Specifically, after the large language model is optimized, the version of the large language model will also be updated. For example, before the large language model is optimized, the version of the large language model is 1.0. After the large language model is optimized, the updated version of the large language model may be 2.0. Since the large language model may be optimized multiple times, the version of the large language model may be continuously updated with the number of optimization operations. For example, the version of the large language model may include: version 1.0, version 2.0, version 3.0, version 4.0, etc. In order to be able to adapt the multi-language interface based on the latest version of the large language model, the version information of the large language model may be obtained first, and then the large language model may be managed based on the version information of the large language model. When the multi-language interface needs to be adapted, the latest version of the large language model may be used to perform data inference operations.
[0116] When it is found that the reasoning accuracy of the latest version of the large language model does not meet the preset conditions or preset requirements, it means that the reasoning performance of the large language model has declined. At this time, in order to ensure the adaptation accuracy of the multi-language interface, the large language model can be rolled back. For example, when the latest version of the large language model is version 4.0, the adaptation operation of the multi-language interface can be performed based on the large language model of version 4.0. When the adaptation accuracy of the multi-language interface does not meet the preset conditions, the stored next-latest version of the large language model (for example, version 3.0 of the large language model) can be used to adapt the multi-language interface. This not only ensures that normal data processing operations can be performed based on the large language model, but also improves the adaptation accuracy of the multi-language interface.
[0117] In this embodiment, at least one interactive control is displayed in the target display interface, and adjustment information input by the user for the target display text in the target display interface is obtained through the at least one interactive control. When it is determined that the adjustment information is reasonable, the target display text in the target display interface is adjusted in real time based on the adjustment information to obtain the adjusted display interface. This effectively enables the user to perform reasonable and legal adjustment operations on the content in the target display interface, thereby meeting the personalized needs of different users for the target display interface and further improving the flexibility and reliability of the use of the method.
[0118] Figure 5 A flowchart of another method for adapting a multi-language interface provided by an embodiment of the present invention; based on any of the above embodiments, refer to the attached Figure 5 As shown, after obtaining the target display interface, the target display interface may be optimized based on the translation quality of the target display interface. At this time, the method in this embodiment may include:
[0119] Step S501: Obtain the translation quality of the target display interface.
[0120] In order to understand the accuracy of the content expression of the target display interface, after the target display interface is obtained, the target display interface can be analyzed and processed to obtain the translation quality of the target display interface. In some instances, the translation quality of the target display interface can be obtained through human-computer interaction. At this time, obtaining the translation quality of the target display interface may include: obtaining feedback information input by the user for the target display interface, and the feedback information may include at least one of the following: scoring feedback information (for example: 50-60 points, 70-80 points, 90 points or more), grade feedback information (excellent level, good level, medium level, lower level, etc.), evaluation direction information (like, step on), etc. After obtaining the feedback information, the translation quality of the target display interface can be determined based on the feedback information. Specifically, a mapping relationship between feedback information and translation quality is pre-configured, and then the translation quality of the target display interface can be determined based on the feedback information and the mapping relationship.
[0121] In some other instances, the translation quality of the target display interface can be obtained not only through human-computer interaction operations, but also can be determined through preset translation evaluation rules. In this case, obtaining the translation quality of the target display interface may include: determining the translation evaluation rules corresponding to the target display interface; evaluating the target display interface using the translation evaluation rules to obtain evaluation information; and determining the translation quality of the target display interface based on the evaluation information. Specifically, a mapping relationship between the evaluation information and the translation quality is pre-configured, and then the translation quality of the target display interface may be determined based on the evaluation information and the mapping relationship.
[0122] In other instances, the translation quality of the target display interface can be determined in combination with human-computer interaction operations and preset translation evaluation rules. In this case, obtaining the translation quality of the target display interface can include: obtaining feedback information input by the user for the target display interface; determining the translation evaluation rules corresponding to the target display interface; evaluating the target display interface using the translation evaluation rules to obtain evaluation information; and determining the translation quality of the target display interface based on the evaluation information and the feedback information.
[0123] Specifically, after obtaining the evaluation information and feedback information, since the feedback information is directly input by the user for the target display interface, and the evaluation information is obtained by automatically analyzing the target display interface based on the translation evaluation rules, that is, two different dimensions of factors for determining the translation quality are obtained, in order to accurately obtain the translation quality of the target display interface, the above-mentioned evaluation information and feedback information can be comprehensively analyzed to determine the translation quality of the target display interface.
[0124] In some instances, determining the translation quality of the target display interface based on the evaluation information and the feedback information may include: determining weight information corresponding to each of the evaluation information and the feedback information, and then performing weighted summation of the evaluation information and the feedback information based on the weight information corresponding to each of the evaluation information and the feedback information to obtain a comprehensive evaluation of the target display interface; and then determining the translation quality of the target display interface based on the comprehensive evaluation, thereby effectively ensuring the accuracy and reliability of obtaining the translation quality of the target display interface.
[0125] Step S502: When the translation quality is greater than or equal to a preset threshold, the target display interface is allowed to be displayed.
[0126] Step S503: when the translation quality is less than a preset threshold, the target display interface is optimized to obtain an optimized display interface, wherein the translation quality of the optimized display interface is higher than the translation quality of the target display interface.
[0127] After obtaining the translation quality, in order to improve the accuracy of the expression of the target display interface and ensure the accuracy and naturalness of the translation, the translation quality can be analyzed and compared with the preset threshold, wherein the preset threshold is a pre-configured lower limit of the translation quality that can be accepted for the adaptation operation of the target display interface. When the translation quality is greater than or equal to the preset threshold, it means that the translation quality of the target display interface at this time can meet the preset requirements, and then the target display interface is allowed to be displayed. When the translation quality is less than the preset threshold, it means that the translation quality of the target display interface at this time cannot meet the preset requirements, and then the target display interface can be optimized to obtain an optimized display interface with higher translation quality, and then the optimized display interface can be displayed, which effectively ensures the accuracy of the adaptation adjustment of the target display interface.
[0128] In addition, this embodiment does not limit the specific implementation method for optimizing the target display interface. In some instances, the target display interface can be adapted and adjusted using an optimized large language model, or the target display interface can be adapted and adjusted in combination with a translation model and a large language model. As long as an optimized display interface with higher translation quality can be obtained, it will not be elaborated here.
[0129] In this embodiment, by obtaining the translation quality of the target display interface, when the translation quality is greater than or equal to a preset threshold, the target display interface is allowed to be displayed, and when the translation quality is less than the preset threshold, the target display interface is optimized to obtain an optimized display interface. The translation quality of the optimized display interface is higher than the translation quality of the target display interface, which effectively ensures the translation quality of the target display interface, thereby improving the accuracy of the content expression of the target display interface, which is conducive to ensuring a good user experience.
[0130] Figure 6 A flowchart of another multi-language interface adaptation method provided by an embodiment of the present invention; based on any of the above embodiments, refer to the attached Figure 6 As shown, since some multi-language interfaces and target display interfaces after the multi-language interfaces are adapted are stored in the local cache area, in order to improve the adaptation efficiency of the multi-language interface, after obtaining the multi-language interface, it is possible to first identify in the local cache area whether there is a target display interface adapted to the multi-language interface. Specifically, the method may include:
[0131] Step S601: Acquire multiple translated interfaces stored in a local cache area.
[0132] Step S602: Identify whether there is a target translated interface matching the multi-language interface among the multiple translated interfaces.
[0133] Step S603: When there is a target translated interface that matches the multi-language interface, the target translated interface is determined as a target display interface corresponding to the multi-language interface.
[0134] Among them, the local cache area may include multiple multilingual interfaces that have undergone interface adaptation operations at historical moments. After obtaining the multilingual interface, it is possible to first determine whether the currently obtained multilingual interface has undergone interface adaptation operations at historical moments. If the currently obtained multilingual interface has undergone interface adaptation operations at historical moments, there is no need to perform the interface adaptation operation again, and the target display interface obtained at the historical moment can be obtained directly through the local cache area, which can improve the efficiency of obtaining the target display interface. If the currently obtained multilingual interface has not undergone interface adaptation operations at historical moments, it is necessary to perform interface adaptation operations to accurately adapt and express the multilingual interface based on the target language.
[0135] Specifically, in order to achieve the above operations, after obtaining the multilingual interface, you can first obtain multiple translated interfaces stored in the local cache area, where different translated interfaces can correspond to different interface identifiers. After obtaining multiple translated interfaces and multilingual interfaces, you can analyze and match the multiple translated interfaces and multilingual interfaces to identify whether there is a target translated interface among the multiple translated interfaces that is compatible with the multilingual interface.
[0136] In some instances, identifying whether there is a target translated interface that matches the multilingual interface among multiple translated interfaces may include: obtaining an interface identifier of the multilingual interface and optional interface identifiers corresponding to each of the multiple translated interfaces; then determining whether there is a target optional interface identifier that is the same as or corresponding to the interface identifier among the multiple optional interface identifiers; if so, determining that there is a target translated interface that matches the multilingual interface among the multiple translated interfaces, specifically, the translated interface corresponding to the target optional interface identifier is the target translated interface; if not, determining that there is no target translated interface that matches the multilingual interface among the multiple translated interfaces, thereby effectively achieving the judgment or identification operation of whether there is a target translated interface that matches the multilingual interface among the multiple translated interfaces.
[0137] When the recognition result is that there is a target translated interface that matches the multilingual interface among the multiple translated interfaces, it means that the currently obtained multilingual interface has been adapted in the historical moment. At this time, there is no need to adapt the multilingual interface again. Instead, the target translated interface can be directly determined as the target display interface corresponding to the multilingual interface, which effectively improves the quality and efficiency of obtaining the target display interface. Figure 2 The illustrated embodiment scheme is used to perform adaptation operation on the multi-language interface to obtain a target display interface corresponding to the multi-language interface, thereby stably implementing the adaptation operation of the multi-language interface.
[0138] In the present embodiment, by acquiring multiple translated interfaces stored in a local cache area, and then identifying whether there is a target translated interface that matches the multilingual interface among the multiple translated interfaces, when there is a target translated interface that matches the multilingual interface, the target translated interface is determined as the target display interface corresponding to the multilingual interface. This effectively achieves that for the multilingual interfaces that have been adapted at historical moments, there is no need to perform the adaptation operation again, and the target display interface after the adaptation operation can be directly acquired through the local cache area, thereby improving the quality and efficiency of acquiring the target display interface.
[0139] Figure 7 A flowchart of a method for adapting a dialog interface provided by an embodiment of the present invention; see attached Figure 7As shown, this embodiment provides a method for adapting a dialog interface. The execution subject of the method is an adaptation device for the dialog interface. Specifically, the adaptation device for the dialog interface can be implemented as software, or a combination of software and hardware. When the adaptation device for the dialog interface is implemented as hardware, it can be various electronic devices that can implement adaptation operations of the dialog interface, including but not limited to personal computers, servers, databases, etc. When the adaptation device for the dialog interface is implemented as software, it can be installed in the electronic devices listed above. Based on the above-mentioned adaptation device for the dialog interface, the adaptation operation of the dialog interface can be implemented. Specifically, the adaptation method for the dialog interface can include:
[0140] Step S701: Acquire a dialogue display interface and a target language for adapting the dialogue display interface, wherein the dialogue display interface includes an original dialogue text in an original language.
[0141] Among them, the dialogue display interface refers to the user interface when two or more users conduct a real-time dialogue operation. The dialogue display interface may include the identification information corresponding to the two or more users and the dialogue content input by the users in the dialogue display interface. Since the two or more users may include users from different countries and regions, and users from different countries and regions may use different languages to conduct dialogues, in order to enable each user to accurately know the dialogue content input by other users, the original dialogue text in the dialogue display interface may be adapted. At this time, in order to implement the adaptation operation of the dialogue display interface, the dialogue display interface and the target language used to adapt the dialogue display interface may be obtained. Specifically, the specific acquisition method of the dialogue display interface and the target language is similar to the specific implementation method of step S201 in the above embodiment. For details, please refer to the above statement content, which will not be repeated here.
[0142] Step S702: Utilize a large language model to perform context-aware processing on the dialogue display interface to obtain context information of the dialogue display interface, wherein the large language model is trained based on preset sample data.
[0143] Step S703: translating the original dialogue text using the large language model based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text.
[0144] The specific implementation method and implementation principle of step S702 and step S703 in this embodiment are similar to the specific implementation method and implementation principle of the above-mentioned steps S202 and S203. Please refer to the above-mentioned statements for details, and no further details will be given here.
[0145] Step S704: Adapt and display the original dialogue text and the target dialogue text on the dialogue display interface.
[0146] In order to enable each user to accurately understand the interface content in the dialogue display interface and obtain the expression content in the dialogue display interface, after obtaining the target dialogue text, the original dialogue text and the target dialogue text can be adapted and displayed in the dialogue display interface. Specifically, the target dialogue text can be synchronously displayed below the original dialogue text. This effectively realizes the ability to display the original dialogue text in the original language and the target dialogue text in the target language in the dialogue display interface, so that each user can accurately understand the dialogue content through the adapted dialogue display interface, which is beneficial to improving the quality and efficiency of the dialogue.
[0147] It should be noted that the method in this embodiment may also include the above Figure 1-Figure 6 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 6 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 6 The description in the illustrated embodiment will not be repeated here.
[0148] The method for adapting a dialogue interface provided in the present embodiment obtains a dialogue display interface and a target language for adapting the dialogue display interface, performs context-aware processing on the dialogue display interface using a large language model to obtain context information of a multilingual interface, and uses the large language model to translate an original dialogue text based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text, and adapts and displays the original dialogue text and the target dialogue text on the dialogue display interface, so that each user can accurately understand the dialogue content through the dialogue display interface after the adaptation display, which is beneficial to improving the quality and efficiency of dialogue operations and further ensuring the practicality of the method.
[0149] For specific applications, refer to the attached Figure 8 As shown, this application embodiment provides a multi-language interface adaptation method based on a large language model. The execution subject of the method can be a multi-language interface adaptation system. The multi-language interface adaptation system can include: a user interface application layer, an adaptation engine core layer, a data processing layer, and a model training and management layer; the multi-language interface adaptation method implemented by the multi-language interface adaptation system can include the following steps:
[0150] Step 1: Obtain operation information input by the user through the user interface application layer, and determine an adaptation request for the multi-language interface based on the operation information.
[0151] Among them, one or more applications for users to call can be deployed on the user interface application layer. Users can perform operations (such as selecting language, entering text) on the above one or more applications (Web or mobile terminal), so that an adaptation request for the multilingual interface can be obtained through the API gateway. The adaptation request is used to trigger the adaptation operation for the multilingual interface. In order to realize the adaptation operation of the multilingual interface, the adaptation request of the multilingual interface can be sent to the adaptation engine core layer for analysis and processing. Specifically, the adaptation request of the multilingual interface can be sent to the adaptation engine core layer for processing through the routing module.
[0152] Step 2: Based on the adaptation request, a real-time adaptation operation is performed on the multi-language interface to obtain a real-time adaptation result of the multi-language interface.
[0153] After obtaining the adaptation request, the adaptation engine core layer can be used to perform real-time adaptation operations on the multilingual interface. In some instances, after the translation engine core layer obtains the adaptation request, it can first analyze and process the adaptation request to determine the multilingual interface and the target language corresponding to the adaptation request. The multilingual interface can include the text to be displayed in the original language. Then, the context awareness module in the large language model can perform context awareness operations on the multilingual interface to obtain the context information of the multilingual interface, and the large language model can be used to perform adaptation adjustments based on the context information, the multilingual interface and the target language. Specifically, the large language model has a built-in translation database. The large language model can use the translation database, context information, the multilingual interface and the target language to perform adaptation adjustments to obtain real-time adaptation results. The real-time adaptation results can refer to a multilingual interface including a target display text in the target language. The real-time adaptation results can include the target display text in the target language. This effectively achieves accurate and coherent translation of the multilingual interface with the help of the context understanding ability of the large model.
[0154] It should be noted that the large language model can be obtained by training the model training and management layer based on preset sample data. Specifically, the model training and management layer can first be used to perform data collection and annotation operations to obtain preset sample data, and then the model training operation can be performed based on the preset sample data to obtain a large language model for implementing interface adaptation operations. Specifically, the model training and management layer can collect and annotate data from multiple sources, and then the annotated data can be cleaned to obtain cleaned data to ensure the quality of the training data; thereafter, the cleaned data can be used to train and optimize the large language model, thereby obtaining an optimized large language model.
[0155] After training and obtaining the large language model, the large language model can be safely deployed and versioned to improve the practicality of calling the large language model and ensure that the large language model will not be subject to other security threats during normal operation. Specifically, the implementation of the safe deployment of the large language model may include at least one of the following: (1) using a secure communication protocol for data transmission to prevent data from being stolen or tampered with during transmission; (2) identity authentication strategy, performing identity authentication on users who call the large language model for adaptation operations, ensuring that users and services have only the minimum permissions required to complete their tasks, and limiting access to key system resources; (3) security code review strategy, performing vulnerability detection operations on the code in real time or irregularly to detect potential code security issues, etc.
[0156] Step 3: Display the real-time adaptation results.
[0157] After obtaining the real-time adaptation results, the real-time adaptation results can be directly displayed, which effectively realizes the dynamic real-time translation operation, that is, seamless translation is achieved when the user interface language is switched without reloading the page or application.
[0158] In addition, after the real-time adaptation results are displayed, an interactive interface can be configured on the multi-language interface, allowing users and developers to make real-time translation adjustments to the real-time adaptation results through the interactive interface. In addition, in order to ensure the accuracy and consistency of the translation, a multi-language consistency detection tool is pre-configured. Before the real-time adaptation results are displayed, the real-time adaptation results can be subjected to a consistency detection operation. When the real-time adaptation results pass the consistency detection operation, the real-time adaptation results are allowed to be displayed; when the real-time adaptation results do not pass the consistency detection operation, the real-time adaptation results are prohibited from being displayed.
[0159] Step 4: Obtain user feedback information inputted by the user interface regarding the real-time adaptation result through the user interface application layer.
[0160] Since the real-time adaptation result is obtained by performing reasoning operations based on the large language model, in order to improve the reasoning accuracy of the large language model, after obtaining the feedback information input by the user regarding the real-time adaptation result, the large language model can be adaptively optimized based on the feedback information, thereby obtaining an optimized large language model.
[0161] It should be noted that the above-mentioned users can be community users, that is, by utilizing the power of a large number of users in the community to participate in feedback operations, not only can translation errors be quickly discovered and corrected, and translation results can be iteratively optimized, but also the collection of diverse translation results can be used to perform adaptive optimization operations on large language models, which is conducive to improving the accuracy and diversity of adaptation adjustments to multi-language interfaces.
[0162] In other examples, for the real-time adaptation results, not only can the feedback information input by the user for the real-time adaptation results be obtained, but also the real-time adaptation results can be automatically evaluated using a preset quality evaluation system, wherein the quality evaluation system can perform text extraction operations on the multilingual interface to obtain the text to be displayed in the multilingual interface, and then use the translation database corresponding to the target language to perform adaptation translation operations on the text to be displayed to obtain a standard translation text, and then the standard translation text can be used to evaluate the target display text included in the real-time adaptation results, thereby obtaining the automatic evaluation information of the real-time adaptation results. After obtaining the automatic evaluation information, the large language model can be optimized using the automatic evaluation information to obtain the optimized large language model.
[0163] Since the large language model can be continuously optimized and updated, in order to improve the quality and efficiency of using the large language model, the various version information of the large language model can be obtained, and then the large language model can be managed based on the various version information. Specifically, when performing interface adaptation operations, the latest version of the large language model can be used for adaptation operations first. When it is found that the performance of the latest version of the large language model has regressed, the interface adaptation operation can be performed by falling back to the pre-stored next latest version of the large language model to ensure stable data processing.
[0164] In some other instances, after the real-time adaptation result is obtained, the real-time adaptation result, the original multilingual interface and the target language can be stored in association. Specifically, the real-time adaptation result, the original multilingual interface and the target language can be stored in association in a local preset cache area. In this way, when the user has an adaptation requirement for the original multilingual interface, the real-time adaptation result can be obtained in the preset cache area based on the target language in the adaptation requirement without having to adapt the multilingual interface again. This is conducive to improving the adaptation response speed of the multilingual interface.
[0165] The technical solution provided by this application embodiment has the following advantages:
[0166] (1) High accuracy: Based on the context-awareness of the large language model, a more accurate and natural adaptive translation operation for multilingual interfaces is achieved, which effectively avoids the limitations of word-for-word translation, ensures accuracy in different contexts, and also improves the coherence and accuracy of adaptive translation.
[0167] (2) High flexibility: The solution can support dynamic real-time translation of multi-language interfaces, so that the content of multi-language interfaces can be seamlessly switched based on the target language without reloading the page or application, thus ensuring a smooth multi-language interface user experience;
[0168] (3) Continuous optimization: Continuously optimizing and updating the large language model through automated quality evaluation and user feedback is conducive to improving the quality of the large language model's adaptive translation of multi-language interfaces and ensuring the accuracy of the translation results;
[0169] (4) High usability: When displaying the real-time adaptation results, an interactive interface can be provided in the interface of the real-time adaptation results, so that users and developers can easily make translation adjustments; and before displaying the real-time adaptation results, the consistency of multi-language translation can be automatically checked, thereby ensuring the consistency and accuracy of the interface content expression in different language versions;
[0170] In general, the solution achieves high accuracy, high flexibility and high ease of use. When the multi-language interface is translated and adapted through the above solution, global users browsing the multi-language interface can obtain a smooth and consistent good experience. At the same time, enterprises can more efficiently realize product internationalization, which not only reduces the adaptation and translation costs of the multi-language interface, but also helps to enhance the market competitiveness of the product, further ensuring the practicality of the method.
[0171] Fig. 9 A schematic diagram of a multi-language interface adapter provided by an embodiment of the present invention; Fig. 9 As shown, this embodiment provides a multi-language interface adaptation device, which is used to perform the above Figure 2 The multi-language interface adaptation method shown in the figure, specifically, the multi-language interface adaptation device may include:
[0172] A first acquisition module 11 is used to acquire a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed;
[0173] A first determination module 12 is used to perform context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data;
[0174] The first processing module 13 is used to translate the multi-language interface using a large language model based on context information and a target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
[0175] In some instances, when the first processing module 13 uses the large language model and translates the multilingual interface based on context information and the target language to obtain a target display interface, the first processing module 13 is used to execute: using the large language model and translating the text to be displayed based on the context information and the target language to obtain a target translated text; using the large language model and adapting the target translated text based on the multilingual interface to obtain a target display text; replacing the text to be displayed in the multilingual interface with the target display text to obtain a target display interface.
[0176] In some instances, after obtaining the target display text, the first processing module 13 in this embodiment is used to execute: performing consistency detection on the to-be-displayed text and the target display text based on context information to obtain consistency information used to identify whether the target display text is reasonable; when the consistency information identifies that the target display text is reasonable, it is allowed to replace the to-be-displayed text in the multilingual interface with the target display text; when the consistency information identifies that the target display text is unreasonable, it is prohibited to replace the to-be-displayed text in the multilingual interface with the target display text.
[0177] In some examples, after obtaining the target display interface, the first processing module 13 and the first acquisition module 11 in this embodiment are used to perform the following steps:
[0178] A first processing module 13, configured to display at least one interactive control in a target display interface;
[0179] A first acquisition module 11 is used to acquire adjustment information input by a user for a target display text in a target display interface through at least one interactive control;
[0180] The first processing module 13 is used to adjust the target display text in the target display interface in real time based on the adjustment information to obtain an adjusted display interface when it is determined that the adjustment information is reasonable.
[0181] In some examples, after at least one interactive control is displayed in the target display interface, the first acquisition module 11 and the first processing module 13 in this embodiment are used to perform the following steps:
[0182] A first acquisition module 11 is used to acquire feedback information input by a user on a target display interface through at least one interactive control;
[0183] The first processing module 13 is used to optimize the large language model based on the feedback information and the multi-language interface to obtain an optimized large language model.
[0184] In some examples, after obtaining the optimized large language model, the first acquisition module 11 and the first processing module 13 in this embodiment are used to perform the following steps:
[0185] A first acquisition module 11 is used to acquire version information of a large language model;
[0186] The first processing module 13 is used to manage the large language model based on the version information.
[0187] In some examples, after obtaining the target display interface, the first acquisition module 11 and the first processing module 13 in this embodiment are used to perform the following steps:
[0188] A first acquisition module 11, used to acquire the translation quality of the target display interface;
[0189] The first processing module 13 is used to allow the target display interface to be displayed when the translation quality is greater than or equal to a preset threshold; when the translation quality is less than the preset threshold, the target display interface is optimized to obtain an optimized display interface, and the translation quality of the optimized display interface is higher than the translation quality of the target display interface.
[0190] In some instances, when the first acquisition module 11 acquires the translation quality of the target display interface, the first acquisition module 11 is used to execute: acquiring feedback information input by the user for the target display interface; determining a translation evaluation rule corresponding to the target display interface; evaluating the target display interface using the translation evaluation rule to obtain evaluation information; and determining the translation quality of the target display interface based on the evaluation information and the feedback information.
[0191] In some examples, after obtaining the target display interface, the first acquisition module 11 and the first processing module 13 in this embodiment are used to perform the following steps:
[0192] A first acquisition module 11 is used to acquire a local cache area;
[0193] The first processing module 13 is used to associate and store the multi-language interface, the target language and the target display interface in a local cache area.
[0194] In some examples, after acquiring the multi-language interface, the first acquisition module 11 and the first processing module 13 in this embodiment are used to perform the following steps:
[0195] A first acquisition module 11 is used to acquire a plurality of translated interfaces stored in a local cache area;
[0196] The first processing module 13 is used to identify whether there is a target translated interface matching the multilingual interface among the multiple translated interfaces; if there is a target translated interface matching the multilingual interface, the target translated interface is determined as the target display interface corresponding to the multilingual interface.
[0197] Fig. 9 The device shown can perform Figure 1-Figure 6 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 6 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 6 The description in the illustrated embodiment will not be repeated here.
[0198] In one possible design, Fig. 9 The structure of the multi-language interface adapter shown in the figure can be implemented as an electronic device, which can be a controller, a personal computer, a server, or other devices. Fig.10 As shown, the electronic device may include: a first processor 21 and a first memory 22. The first memory 22 is used to store the corresponding electronic device to execute the above Figure 1-Figure 6 The program of the multi-language interface adaptation method provided in the illustrated embodiment, the first processor 21 is configured to execute the program stored in the first memory 22 .
[0199] The program includes one or more computer instructions, wherein the one or more computer instructions can implement the following steps when executed by the first processor 21: obtaining a multilingual interface and a target language for adapting the multilingual interface, wherein the multilingual interface includes text to be displayed; performing context-aware processing on the multilingual interface using a large language model to obtain context information of the multilingual interface, wherein the large language model is trained based on preset sample data; using the large language model and translating the multilingual interface based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
[0200] Furthermore, the first processor 21 is also used to execute the aforementioned Figure 1-Figure 6 All or part of the steps in the illustrated embodiments.
[0201] The structure of the electronic device may further include a first communication interface 23 for the electronic device to communicate with other devices or a communication network.
[0202] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 1-Figure 6The program involved in the multi-language interface adaptation method in the illustrated embodiment.
[0203] In addition, an embodiment of the present invention provides a computer program product, including: a computer-readable storage medium storing computer instructions, when the computer instructions are executed by one or more processors, causing the one or more processors to execute the above Figure 1-Figure 6 The steps in the method for adapting a multi-language interface in the method embodiment are shown.
[0204] Fig.11 A schematic diagram of a structure of a dialogue interface adaptation device provided by an embodiment of the present invention; Fig.11 As shown, this embodiment provides an adaptation device for a dialogue interface, which is used to perform the above Figure 7 The adaptation method of the dialogue interface shown, specifically, the adaptation device of the dialogue interface may include:
[0205] A second acquisition module 31 is used to acquire a dialogue display interface and a target language for adapting the dialogue display interface, wherein the dialogue display interface includes an original dialogue text in an original language;
[0206] A second determination module 32 is used to perform context-aware processing on the dialogue display interface using a large language model to obtain context information of the dialogue display interface, wherein the large language model is trained based on preset sample data;
[0207] A second processing module 33 is used to translate the original dialogue text using the large language model based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text;
[0208] The second display module 34 is used to adapt and display the original dialogue text and the target dialogue text on the dialogue display interface.
[0209] Fig.11 The device shown can perform Figure 7 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 7 The implementation process and technical effects of this technical solution refer to Figure 7 The description in the exemplary embodiments is omitted here.
[0210] In one possible design, Fig.11 The structure of the adaptation device of the dialogue interface shown can be implemented as an electronic device, which can be a controller, a personal computer, a server, or other devices. Fig.12 As shown, the electronic device may include: a second processor 41 and a second memory 42. The second memory 42 is used to store the corresponding electronic device executing the above Figure 7 The program of the dialogue interface adaptation method provided in the illustrated embodiment, the second processor 41 is configured to execute the program stored in the second memory 42 .
[0211] The program includes one or more computer instructions, wherein the one or more computer instructions can implement the following steps when executed by the second processor 41: obtaining a dialogue display interface and a target language for adapting the dialogue display interface, wherein the dialogue display interface includes an original dialogue text in an original language; performing context-aware processing on the dialogue display interface using a large language model to obtain context information of a multilingual interface, wherein the large language model is trained based on preset sample data; performing translation processing on the original dialogue text using the large language model and based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text; and adapting and displaying the original dialogue text and the target dialogue text on the dialogue display interface.
[0212] Furthermore, the second processor 41 is also used to execute the aforementioned Figure 7 All or part of the steps in the illustrated embodiments.
[0213] The structure of the electronic device may further include a second communication interface 43 for the electronic device to communicate with other devices or a communication network.
[0214] In addition, an embodiment of the present invention provides a computer storage medium for storing computer software instructions used by electronic devices, which includes instructions for executing the above Figure 7 The program involved in the method for adapting the dialogue interface in the illustrated embodiment.
[0215] In addition, an embodiment of the present invention provides a computer program product, including: a computer-readable storage medium storing computer instructions, when the computer instructions are executed by one or more processors, causing the one or more processors to execute the above Figure 7 The steps in the method for adapting the dialogue interface in the method embodiment are shown.
[0216] Fig.13 A schematic diagram of a multi-language interface adaptation system provided by an embodiment of the present invention; Fig.13 As shown, this embodiment provides an adaptation system for a multi-language interface, and the adaptation system may include:
[0217] The data processing platform 51 is used to obtain a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed; perform context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data; perform translation processing on the multi-language interface using the large language model and based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed;
[0218] The e-commerce platform 52 is used to display the target display interface.
[0219] The multi-language interface adaptation system shown in this embodiment can execute Figure 1-Figure 7 For the method of the embodiment shown in the figure, the part not described in detail in this embodiment can be referred to Figure 1-Figure 7 The implementation process and technical effects of this technical solution refer to Figure 1-Figure 7 The description in the illustrated embodiment will not be repeated here.
[0220] The multi-language interface adaptation system provided in this embodiment can obtain the multi-language interface and the target language for adapting the multi-language interface through the data processing platform 51, and then use the large language model to perform context-aware processing on the multi-language interface to obtain the context information of the multi-language interface, and use the large language model to translate the multi-language interface based on the context information and the target language to obtain the target display interface. After obtaining the target display interface, the target display interface can be played or displayed through the e-commerce platform 52, which effectively realizes the automatic and efficient adaptation of the display content of the interface based on the target language through the large language model. The target language can be flexibly adjusted based on the user's interface adaptation needs, so that the needs of different users in different application scenarios to view the interface content of the multi-language interface can be met, which is conducive to improving the user's good experience in viewing the multi-language interface; in addition, the large language model combines the context information of the multi-language interface to efficiently and automatically adapt the multi-language interface, which not only improves the accuracy of expressing the multi-language interface content, reduces the adaptation cost of the multi-language interface, but also helps to improve the display efficiency of the multi-language interface, thereby effectively ensuring the practicality of the system.
[0221] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0222] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, i.e., they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Those of ordinary skill in the art may understand and implement it without creative effort.
[0223] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by adding a necessary general hardware platform, and of course can also be implemented by combining hardware and software. Based on such an understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a computer product, and the present invention can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0224] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable device to produce a machine, so that the instructions executed by the processor of the computer or other programmable device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0225] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable device to work in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1These computer program instructions can also be loaded onto a computer or other programmable device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide the functions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps of the functions specified in the blocks or multiple blocks. In a typical configuration, the computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory. The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0226] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0227] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for adapting a multi-language interface, characterized in that: include: Acquire a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed; Performing context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data; The multi-language interface is translated using the large language model based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
2. The method according to claim 1, characterized in that The multi-language interface is translated using the large language model based on the context information and the target language to obtain a target display interface, including: translating the text to be displayed using the large language model and based on the context information and the target language to obtain a target translated text; Using the large language model and based on the multi-language interface, the target translation text is adapted and adjusted to obtain a target display text; The text to be displayed in the multi-language interface is replaced with the target display text to obtain the target display interface.
3. The method according to claim 2, characterized in that After obtaining the target display text, the method further includes: Performing consistency detection on the to-be-displayed text and the target display text based on the context information to obtain consistency information for identifying whether the target display text is reasonable; If the consistency information indicates that the target display text is reasonable, it is allowed to replace the to-be-displayed text in the multi-language interface with the target display text; In the case where the consistency information indicates that the target display text is unreasonable, it is prohibited to replace the to-be-displayed text in the multi-language interface with the target display text.
4. The method according to any one of claims 1 to 3, characterized in that: After obtaining the target display interface, the method further includes: Displaying at least one interactive control in the target display interface; Acquiring, through the at least one interactive control, adjustment information input by the user for the target display text in the target display interface; When it is determined that the adjustment information is reasonable, the target display text in the target display interface is adjusted in real time based on the adjustment information to obtain an adjusted display interface.
5. The method according to claim 4, characterized in that After displaying at least one interactive control in the target display interface, the method further includes: Acquiring feedback information input by the user for the target display interface through the at least one interactive control; The large language model is optimized based on the feedback information and the multi-language interface to obtain an optimized large language model.
6. The method according to claim 5, characterized in that After obtaining the optimized large language model, the method further includes: Get the version information of the large language model; The large language model is managed based on the version information.
7. The method according to any one of claims 1 to 3, characterized in that: After obtaining the target display interface, the method further includes: Obtaining the translation quality of the target display interface; When the translation quality is greater than or equal to a preset threshold, the target display interface is allowed to be displayed; When the translation quality is less than a preset threshold, the target display interface is optimized to obtain an optimized display interface, and the translation quality of the optimized display interface is higher than the translation quality of the target display interface.
8. The method according to claim 7, characterized in that Obtaining the translation quality of the target display interface includes: Obtaining feedback information input by the user with respect to the target display interface; Determining a translation evaluation rule corresponding to the target display interface; Using the translation evaluation rule to evaluate the target display interface to obtain evaluation information; Based on the evaluation information and the feedback information, the translation quality of the target display interface is determined.
9. The method according to any one of claims 1 to 3, characterized in that: After obtaining the target display interface, the method further includes: Get the local cache area; The multi-language interface, the target language, and the target display interface are associated and stored in the local cache area.
10. The method according to claim 9, characterized in that After acquiring the multi-language interface, the method further includes: Acquire multiple translated interfaces stored in the local cache area; Identifying whether there is a target translated interface matching the multilingual interface among the multiple translated interfaces; When there is a target translated interface that matches the multi-language interface, the target translated interface is determined as a target display interface corresponding to the multi-language interface.
11. A method for adapting a dialogue interface, characterized in that: include: Acquire a dialogue display interface and a target language for adapting the dialogue display interface, wherein the dialogue display interface includes an original dialogue text in an original language; Performing context-aware processing on the dialog display interface using a large language model to obtain context information of the dialog display interface, wherein the large language model is trained based on preset sample data; Using the large language model, translating the original dialogue text based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text; The original dialogue text and the target dialogue text are adapted and displayed on the dialogue display interface.
12. A multi-language interface adaptation device, characterized in that: include: A first acquisition module, used to acquire a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed; A first determination module, configured to perform context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data; The first processing module is used to use the large language model and translate the multi-language interface based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed.
13. An adaptation device for a dialogue interface, characterized in that: include: A second acquisition module, used to acquire a dialogue display interface and a target language for adapting the dialogue display interface, wherein the dialogue display interface includes an original dialogue text in an original language; a second determination module, configured to perform context-aware processing on the dialog display interface using a large language model to obtain context information of the dialog display interface, wherein the large language model is trained based on preset sample data; A second processing module is used to translate the original dialogue text using the large language model based on the context information and the target language to obtain a target dialogue text corresponding to the original dialogue text; The second display module is used to adapt and display the original dialogue text and the target dialogue text on the dialogue display interface.
14. An electronic device, characterized in that: include: A memory, a processor; wherein the memory is used to store one or more computer instructions, wherein the one or more computer instructions, when executed by the processor, implement the method as described in any one of claims 1-11.
15. A multi-language interface adaptation system, characterized in that: include: A data processing platform, for obtaining a multi-language interface and a target language for adapting the multi-language interface, wherein the multi-language interface includes text to be displayed; performing context-aware processing on the multi-language interface using a large language model to obtain context information of the multi-language interface, wherein the large language model is trained based on preset sample data; performing translation processing on the multi-language interface using the large language model and based on the context information and the target language to obtain a target display interface, wherein the target display interface includes a target display text adapted to the target display interface, and the target display text corresponds to the text to be displayed; The e-commerce platform is used to display the target display interface.
16. A computer storage medium, characterized in that: Used to store a computer program, which enables a computer to implement the method of any one of claims 1 to 11 when executed by the computer.
17. A computer program product, characterized in that include: A computer program, when executed by a processor of an electronic device, causes the processor to execute the steps of any one of the methods of claims 1-11.
Citation Information
Patent Citations
Text translation method and device, electronic equipment and storage medium
CN111368560A
Multi-language interface display adjusting method and device, electronic equipment and storage medium
CN116775198A
Multimedia page generation method and device, equipment, medium and program product
CN117011875A
Professional text translation method and device, electronic equipment and storage medium
CN117273026A
Code generation method and device, electronic equipment and storage medium
CN117762389A
