Method, device and medium for internationalization adaptation of Chinese web pages based on large model

By using a large model-based approach, combining natural language models and multilingual corpora for international adaptation of Chinese web pages, we have solved the problem that existing tools are unable to accurately understand semantics and context, achieved efficient and accurate international adaptation, reduced costs and improved adaptation quality.

CN120315799BActive Publication Date: 2025-09-12INSPUR GENERSOFT CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202510788392.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-12
Estimated Expiration
2045-06-13

AI Technical Summary

Technical Problem

Existing Chinese web page internationalization tools lack intelligence and cannot accurately understand semantics and context, resulting in content confusion and format mismatch, making it difficult to meet the requirements of efficient and accurate internationalization adaptation.

Method used

A large-scale model-based approach is used to parse Chinese web pages, combining natural language models and web page parsing algorithms. A large semantic understanding model is used in combination with multilingual corpora and domain terminology libraries for intelligent translation and domain terminology adaptation. Cultural adaptation is performed through a multimodal analysis model to generate internationalized resource files.

Benefits of technology

It achieves accurate translation and cultural adaptation of Chinese web pages, reduces content confusion and format mismatches, improves the efficiency and quality of internationalization adaptation, reduces development and maintenance costs, and ensures the accuracy and readability of web pages in different cultural environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120315799B_ABST
    Figure CN120315799B_ABST
Patent Text Reader

Abstract

The present application provides a method, device and medium for internationalization adaptation of Chinese web pages based on a large model, which belongs to the field of network technology. The method for internationalization adaptation of Chinese web pages includes: using a natural language model and a web page parsing algorithm to parse Chinese web pages to obtain Chinese text information, multimedia resource information and web page architecture information; based on the semantic understanding large model combined with a multilingual corpus and a domain terminology library, intelligently translate the Chinese text information and adapt the domain terminology to obtain internationalized text information; culturally adapt the internationalized text information, multimedia resource information and web page architecture information according to the cultural environment applicable to the internationalized text information to obtain an internationalized resource file; load the internationalized resource file according to the current language environment to obtain an internationalized web page in the current language environment. The present application can solve the problem that existing web page internationalization tools generally lack intelligence, cannot accurately understand the semantics and context of Chinese web pages, and are difficult to adapt to internationalization needs.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of digital network technology, and specifically relates to a method, device and medium for internationalization adaptation of Chinese web pages based on a large model. Background Art

[0002] With the development of digital network technology, the internet is showing a major trend of globalization and internationalization. The demand for internationalization of Chinese web pages is also increasing, which requires the internationalization adaptation of Chinese web pages. Traditionally, the internationalization adaptation of Chinese web pages generally relies on manual translation of content. To adapt to regional characteristics, corresponding web page versions need to be developed for different languages ​​and regions. This traditional approach has many drawbacks: First, the manual translation process is not only time-consuming and labor-intensive, but also prone to translation errors, resulting in inaccurate information transmission. Second, developing separate web page versions for different languages ​​and regions significantly increases development and maintenance costs, and makes it difficult to quickly respond to market changes and diverse user needs.

[0003] To address these drawbacks, automated web page internationalization tools have been developed. For example, a prior patent (CN115796190A) discloses a front-end internationalization and multi-language conversion method based on Vue and Webpack. Specifically, when an application project built with Vue and Webpack is first used, the project configuration module performs project initialization. Chinese characters in the project are then extracted and stored in a language pack storage directory configured in a settings file. A translation module then translates the files in the directory, automatically translating and generating a language pack. This automatically converts Chinese characters into language variables during project execution or packaging. Specifically, the translation module calls a translation API to translate Chinese strings until the translation is complete. Existing translation APIs are mostly integrated with natural language models. For example, this method uses contextual information about the text to be translated to search for Chinese text and build a corpus. The terminology in the corpus, combined with text representation vectors, is then input into a pre-trained recurrent neural network model with a multi-head attention mechanism to produce the target translated text.

[0004] However, these automated web internationalization tools generally lack intelligence and are unable to accurately understand the semantics and context of Chinese web pages, making them difficult to adapt to internationalization requirements. Problems such as content disorganization and format mismatches frequently occur during the adaptation process, making it difficult to meet the requirements of efficient and accurate internationalization adaptation. Summary of the Invention

[0005] This application aims to provide an intelligent and efficient large-scale model-based internationalization adaptation solution for Chinese web pages. By understanding the semantics of the large-scale model, combined with a preset multilingual corpus and domain terminology library, the Chinese text information is intelligently translated and the domain terminology is adapted to obtain internationalized text information. The internationalized text information, multimedia resource information and web page architecture information corresponding to the Chinese web page are culturally adapted to obtain an internationalized resource file. Finally, when the web page needs to be run, the internationalized resource file is loaded, which can solve the technical problem that the web page internationalization tools in the existing technology generally lack intelligence and have difficulty in accurately understanding the semantics and context of Chinese web pages.

[0006] According to a first aspect of the present application, an embodiment of the present application provides a method for internationalizing Chinese web pages based on a large model, comprising:

[0007] Use natural language models and web page parsing algorithms to parse Chinese web pages and obtain Chinese text information, multimedia resource information, and web page architecture information;

[0008] Based on the semantic understanding model, combined with the preset multilingual corpus and domain terminology database, Chinese text information is intelligently translated and domain terminology adapted to obtain internationalized text information;

[0009] According to the cultural environment applicable to the internationalized text information, cultural adaptation is performed on the internationalized text information, multimedia resource information, and web page architecture information to obtain internationalized resource files;

[0010] When a web page needs to be run, the internationalized resource file is loaded according to the current language environment to obtain the internationalized web page corresponding to the current language environment.

[0011] Preferably, in the above-mentioned Chinese web page internationalization adaptation method, the step of using a natural language model and a web page parsing algorithm to parse the Chinese web page to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web page includes:

[0012] Use natural language models to parse Chinese web pages and obtain the Chinese text information corresponding to the Chinese web pages;

[0013] Use natural language models to split Chinese text information into vocabulary and sentence forms, and analyze the grammatical structure and semantic information of vocabulary and sentence forms;

[0014] Use web page parsing algorithms to parse Chinese web pages and obtain multimedia resource information and web page architecture information corresponding to the Chinese web pages;

[0015] Classify and identify multimedia resource information.

[0016] Preferably, the above-mentioned Chinese webpage internationalization adaptation method, before the step of performing intelligent translation and domain term adaptation on Chinese text information based on the semantic understanding large model in combination with a preset multilingual corpus and domain terminology library to obtain internationalized text information, further includes:

[0017] Extract keywords from Chinese text information as key values;

[0018] Use the key value to replace the keyword in the Chinese text information, and add a multilingual tag to the key value to obtain the new Chinese text information;

[0019] Generate Chinese resource files containing new Chinese text information;

[0020] Input Chinese resource files into the semantic understanding model.

[0021] Preferably, in the above-mentioned Chinese webpage internationalization adaptation method, the steps of performing intelligent translation and domain term adaptation on Chinese text information based on the semantic understanding large model in combination with a preset multilingual corpus and domain terminology library to obtain internationalized text information include:

[0022] Use multilingual corpora to construct a universal semantic space, and use the multilingual corpora to train a large semantic understanding model so that the large semantic understanding model can learn the universal semantic rules corresponding to the multilingual corpora;

[0023] Inputting Chinese text information into a semantic understanding model to learn the grammatical structure and semantic information corresponding to the Chinese text information, wherein the Chinese text information includes keywords;

[0024] Control the semantic understanding model, combine grammatical structure and semantic information, learn the semantic relationship between keywords and context, and capture the semantic role corresponding to the keyword;

[0025] Control the semantic understanding model and use universal semantic rules to map keywords into universal word vectors in the semantic space based on semantic associations and roles.

[0026] Furthermore, a professional semantic space is constructed using the domain terminology library, and a semantic understanding model is trained using the domain terminology library so that the semantic understanding model learns the professional semantic rules corresponding to the domain terminology library;

[0027] Control the semantic understanding model and map keywords containing professional domain terms into professional word vectors in professional semantic rules according to professional semantic rules;

[0028] According to the mapping relationship between Chinese and other language texts in the multilingual corpus, general word vectors and professional word vectors are mapped into foreign language texts respectively to obtain internationalized text information.

[0029] Preferably, in the above-mentioned Chinese web page internationalization adaptation method, the step of performing cultural adaptation on the internationalized text information, multimedia resource information, and web page architecture information according to the cultural environment applicable to the internationalized text information to obtain the internationalized resource file includes:

[0030] Acquire the cultural environments of different countries and regions to form a cultural feature library. Use the cultural features in the library to train a multimodal analysis model and construct a cultural semantic space. The multimodal deep analysis model is a dual-stream heterogeneous deep network architecture.

[0031] A text processing flow using a dual-stream heterogeneous deep network architecture is used to parse internationalized text information according to the cultural semantic space and extract culturally sensitive text features from internationalized text information.

[0032] Using a dual-stream heterogeneous deep network architecture for visual processing, the object detection algorithm is combined with a multi-scale attention mechanism to detect feature associations in multimedia resource information and web page architecture information, respectively, to obtain culturally sensitive visual features corresponding to the multimedia resource information or web page architecture information.

[0033] Replace culturally sensitive text features according to the cultural semantic space, and adjust the display of culturally sensitive visual features.

[0034] Preferably, the above-mentioned Chinese webpage internationalization adaptation method, after the step of culturally adapting the internationalized text information, multimedia resource information and webpage architecture information to obtain the internationalized resource file, further comprises:

[0035] Simulate multiple target resolutions and render web pages using common rendering methods;

[0036] Switch the display effect of each internationalized resource file on the web page in turn;

[0037] When there are problems with the display of internationalized resource files on a web page, adjust the web page architecture information.

[0038] Preferably, in the above-mentioned Chinese web page internationalization adaptation method, the step of loading the internationalization resource file according to the current language environment to obtain the internationalized web page corresponding to the current language environment includes:

[0039] When a web page needs to be run, the HTML script corresponding to the current web page is loaded, wherein the HTML script includes the current language environment;

[0040] Use HTML scripts to parse internationalized text information in internationalized resource files;

[0041] Load the internationalized resource file according to the current language environment to obtain the internationalized web page in the current language environment.

[0042] According to the second aspect of the present application, the present application further provides a Chinese webpage internationalization adaptation device based on a large model, comprising:

[0043] A web page parsing module is used to parse Chinese web pages using a natural language model and a web page parsing algorithm to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web pages;

[0044] The information adaptation module is used to intelligently translate Chinese text information and adapt domain terms based on the semantic understanding model, combined with the preset multilingual corpus and domain terminology database, to obtain internationalized text information;

[0045] A cultural adaptation module is used to perform cultural adaptation on internationalized text information, multimedia resource information, and web page architecture information according to the cultural environment applicable to the internationalized text information, thereby obtaining internationalized resource files.

[0046] The file loading module is used to load the internationalized resource file according to the current language environment when a web page needs to be run, and obtain the internationalized web page corresponding to the current language environment.

[0047] Preferably, in the above-mentioned large-model-based Chinese web page internationalization adaptation device, the web page parsing module is also used to use a natural language model to parse Chinese web pages to obtain Chinese text information corresponding to the Chinese web pages; use the natural language model to split the Chinese text information into vocabulary and sentence forms, and analyze the grammatical structure and semantic information of the vocabulary and sentence forms; use the web page parsing algorithm to parse the Chinese web pages to obtain multimedia resource information and web page architecture information corresponding to the Chinese web pages; and classify and identify the multimedia resource information.

[0048] Preferably, the above-mentioned Chinese web page internationalization adaptation device based on the big model also includes: a Chinese resource file generation module, which is used to extract keywords in Chinese text information as key values; use the key values ​​to replace keywords in the Chinese text information, and add multilingual tags to the key values ​​to obtain new Chinese text information; generate a Chinese resource file containing the new Chinese text information; and input the Chinese resource file into the semantic understanding big model.

[0049] Preferably, the above-mentioned information adaptation module is specifically used to construct a general semantic space using a multilingual corpus, and train a semantic understanding large model using the multilingual corpus, so that the semantic understanding large model learns the general semantic rules corresponding to the multilingual corpus; inputs Chinese text information into the semantic understanding large model, and learns the grammatical structure and semantic information corresponding to the Chinese text information, wherein the Chinese text information includes keywords; controls the semantic understanding large model, combines the grammatical structure and semantic information, learns the semantic association relationship between the keywords and the context, and captures the semantic roles corresponding to the keywords; controls the semantic understanding large model, based on the semantic association relationship and semantic role, uses general semantic rules to map the keywords to general word vectors of the semantic space; and, uses a domain terminology library to construct a professional semantic space, and uses the domain terminology library to train the semantic understanding large model, so that the semantic understanding large model learns the professional semantic rules corresponding to the domain terminology library; controls the semantic understanding large model, based on professional semantic rules, maps keywords containing professional domain terms to professional word vectors in professional semantic rules; according to the mapping relationship between Chinese and other language texts in the multilingual corpus, maps the general word vectors and professional word vectors to foreign texts respectively to obtain internationalized text information.

[0050] Preferably, in the above-mentioned Chinese web page internationalization adaptation device based on a large model, the cultural adaptation module is specifically used to obtain the cultural environment of different countries and regions, form a cultural feature library, use the cultural features in the cultural feature library to train the multimodal analysis model, and construct a cultural semantic space; wherein the multimodal deep analysis model is a dual-stream heterogeneous deep network architecture; the text processing flow of the dual-stream heterogeneous deep network architecture is used to parse the internationalized text information according to the cultural semantic space, and extract the culturally sensitive text features in the internationalized text information; the visual processing flow of the dual-stream heterogeneous deep network architecture is used, and the target detection algorithm is combined with the multi-scale attention mechanism to respectively detect the feature associations in the multimedia resource information and the web page architecture information, and obtain the culturally sensitive visual features corresponding to the multimedia resource information or the web page architecture information; the culturally sensitive text features are replaced according to the cultural semantic space, and the display of the culturally sensitive visual features is adjusted.

[0051] Preferably, in the above-mentioned large-model-based Chinese web page internationalization adaptation device, the file loading module is specifically used to load the HTML script corresponding to the current web page when the web page needs to be run, wherein the HTML script includes the current language environment; use the HTML script to parse the internationalized text information in the internationalized resource file; load the internationalized resource file according to the current language environment to obtain the internationalized web page under the current language environment.

[0052] According to the third aspect of the present application, the present application also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and runnable on the processor. When the processor executes the program, it implements the large model-based Chinese web page internationalization adaptation method provided by any of the above technical solutions.

[0053] According to the fourth aspect of the present application, the present application also provides a computer storage medium on which computer executable instructions are stored. When the computer program is executed by the processor, the internationalization adaptation method of Chinese web pages based on a large model provided by any of the above technical solutions is implemented.

[0054] The technical solution of this application has at least the following technical effects:

[0055] The internationalization adaptation scheme of Chinese web pages based on a large model provided by the present application first uses a natural language model and a web page parsing algorithm to parse Chinese web pages, so that the Chinese text information, multimedia resource information and web page architecture information of the Chinese web pages can be obtained; then the semantic understanding large model is used, combined with a preset multilingual corpus and a domain terminology library, to perform intelligent translation and domain terminology adaptation on the Chinese text information, thereby obtaining internationalized text information, because the semantic understanding large model is used in combination with a preset multilingual corpus and a domain terminology library to perform intelligent translation and domain terminology adaptation on the above-mentioned Chinese text information after natural language parsing, so that the semantics and context in the Chinese text information can be accurately understood, and the cultural differences between different countries and regions are fully considered, and the professional terminology in the relevant fields is accurately adapted, thereby reducing the problems of content confusion and format mismatch during the adaptation process, and in addition, the internationalized text information, multimedia resource information and web page architecture information are culturally adapted in combination with the cultural environment that the internationalized text needs to be applicable, thereby adapting to the cultural needs of internationalization. Finally, when the web page needs to be run, the internationalized resource file is loaded according to the current language environment, and the internationalized web page corresponding to the current language environment can be obtained. The above-mentioned method can solve the problem that web page internationalization tools in the prior art generally lack intelligence, have difficulty in accurately understanding the semantics and context of Chinese web pages, and have difficulty in adapting to internationalization needs. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0057] Figure 1 A flowchart of a method for internationalizing Chinese web pages based on a large model provided in an embodiment of the present application;

[0058] Figure 2 for Figure 1A schematic flow chart of a method for parsing Chinese web pages provided in the illustrated embodiment;

[0059] Figure 3 A flowchart of a method for marking keywords in Chinese text information provided in an embodiment of the present application;

[0060] Figure 4 for Figure 1 A flowchart of a method for intelligent translation of Chinese text information and adaptation of domain terms provided by the illustrated embodiment;

[0061] Figure 5 for Figure 1 A flowchart of a method for cultural adaptation of an internationalized resource file provided by the illustrated embodiment;

[0062] Figure 6 A flowchart of a web page formatting adaptation method provided in an embodiment of the present application;

[0063] Figure 7 for Figure 1 A schematic flow chart of a method for loading an internationalized resource file provided by the illustrated embodiment;

[0064] Figure 8 A schematic diagram of the structure of a large-model-based Chinese web page internationalization adaptation device provided in an embodiment of the present application;

[0065] Figure 9 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0066] In order to more clearly illustrate the overall concept of the present application, a detailed description is given below in an illustrative manner in conjunction with the accompanying drawings.

[0067] The following description sets forth many specific details to facilitate a thorough understanding of the present application. However, the present application may also be implemented in other ways than those described herein, and therefore, the scope of protection of the present application is not limited by the specific embodiments disclosed below. It should be noted that the embodiments of the present application and the features of each embodiment may be combined with each other unless there is a conflict.

[0068] In this application, unless otherwise clearly specified and limited, a first feature "above" or "below" a second feature may be that the first and second features are in direct contact, or the first and second features are in indirect contact through an intermediate medium. In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representation of the above terms does not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in an appropriate manner in any one or more embodiments or examples.

[0069] The existing technology has the following defects:

[0070] Existing automated web internationalization tools generally lack intelligence and are unable to accurately understand the semantics and context of Chinese web pages, making them difficult to adapt to internationalization requirements. Problems such as content disorganization and format mismatches frequently occur during the adaptation process, making it difficult to meet the requirements of efficient and accurate internationalization adaptation.

[0071] To address the aforementioned issues, the following embodiments of the present invention provide a large-scale model-based internationalization adaptation solution for Chinese web pages. This solution addresses the existing difficulties in accurately understanding the semantics and context of Chinese web pages, adapting to internationalization requirements, and prone to confusion and format mismatches. This allows for the rapid and accurate adaptation of Chinese web pages to various international environments, effectively reducing development and maintenance costs and significantly improving adaptation efficiency and quality.

[0072] To achieve the above purpose, see Figure 1 , this application provides a flowchart of a method for internationalizing Chinese web pages based on a large model. Figure 1 As shown, the internationalization adaptation method of Chinese web pages based on the large model includes:

[0073] S110: Parsing the Chinese web page using a natural language model and a web page parsing algorithm to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web page.

[0074] Natural language processing (NLP) is a core area of ​​artificial intelligence. The natural language processing model here can use the word embedding model Word2Vec, the generative pre-training module GPT, and the dynamic word vector model ELMo, etc. The web page parsing algorithm can use the Python crawler algorithm. The embodiment of the present application combines the natural language model and the web page parsing algorithm to parse Chinese web pages, and can perform text analysis and information extraction on Chinese web pages, thereby obtaining a large amount of valuable information from the web pages. Specifically, in the embodiment of the present application, Chinese text information, multimedia resource information and web page architecture information of Chinese web pages can be obtained. Then, the Chinese text information is intelligently translated, and the multimedia resource information and web page architecture information are adapted to professional fields and cultures, thereby obtaining an internationalized web page that meets the needs of the destination.

[0075] Specifically, as a preferred embodiment, Figure 2 As shown, the above step S110: using the natural language model and web page parsing algorithm to parse the Chinese web page to obtain the Chinese text information, multimedia resource information and web page architecture information of the Chinese web page, specifically includes:

[0076] S111: parse the Chinese web page using a natural language model to obtain Chinese text information corresponding to the Chinese web page.

[0077] S112: Using a natural language model, the Chinese text information is split into vocabulary and sentence forms, and the grammatical structure and semantic information of the vocabulary and sentence forms are obtained through analysis.

[0078] S113: Parse the Chinese web page using a web page parsing algorithm to obtain multimedia resource information and web page architecture information corresponding to the Chinese web page.

[0079] S114: Classify and identify multimedia resource information.

[0080] The technical solution provided by the embodiments of this application can deeply analyze Chinese web pages. By combining natural language processing technology and web page parsing algorithms, it can comprehensively and deeply analyze Chinese web pages, thereby obtaining Chinese text information (primarily the text content of the web page), as well as multimedia resource information such as images, audio, and video, and web page architecture information including the HTML structure and CSS style information of the Chinese web page. The web page architecture information obtained here can be adaptively formatted according to the display requirements of the destination.

[0081] Among them, for Chinese text information, it is necessary to split the Chinese text in the Chinese text information into vocabulary and sentence forms, and deeply analyze its grammatical structure and semantic information to facilitate the subsequent use of large models to accurately understand the semantics and context of Chinese text information; at the same time, the multimedia resources in the web pages are classified and identified to lay the foundation for the subsequent processing of professional field terminology and cultural adaptation.

[0082] In addition, as a preferred embodiment, Figure 3 As shown, the above-mentioned Chinese web page internationalization adaptation method, after step 110: using a natural language model and a web page parsing algorithm to parse the Chinese web page to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web page, further includes:

[0083] S201: extract keywords from Chinese text information as key values;

[0084] S202: Using the key value to replace the keyword in the Chinese text information, and adding a multilingual tag to the key value to obtain new Chinese text information;

[0085] S203: Generate a Chinese resource file containing new Chinese text information;

[0086] S204: Input the Chinese resource file into the semantic understanding model.

[0087] The technical solution provided by the embodiment of the present application requires processing the Chinese text after obtaining the Chinese text information. Specifically, the Chinese text is refined and summarized into keywords as key values, and the Chinese text in the HTML code is replaced with the corresponding key values, and the multilingual tag __i18n__ is added at the beginning and end to facilitate the subsequent efficient replacement and mapping of keywords. After the Chinese text is processed, a Chinese language resource file is generated. Specifically, a sentence of recognized and parsed Chinese text and key value automatically generates a Chinese resource file, which can be named zh_CHS.json; if the Chinese resource file already exists, the new content is appended to the file and automatically sorted in alphabetical order of the key. In this way, when using the large model later, it can be replaced, mapped and translated in alphabetical order of the key, thereby improving data processing efficiency and avoiding garbled characters.

[0088] Figure 1 The technical solution provided by the illustrated embodiment, after the step of using a natural language model and a web page parsing algorithm to parse a Chinese web page to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web page, further includes:

[0089] S120: Based on the semantic understanding big model, combined with the preset multilingual corpus and domain terminology library, the Chinese text information is intelligently translated and domain terminology adapted to obtain internationalized text information. In combination with the above content, it can be seen that after generating a Chinese resource file containing new Chinese text information, the application inputs the Chinese resource file into the semantic understanding big model. The semantic understanding big model can directly parse the Chinese resource file, specifically perform intelligent translation and domain terminology adaptation on the Chinese text information, which can be understood as directly performing intelligent translation and domain terminology adaptation on the new Chinese text information contained in the Chinese resource file.

[0090] The embodiment of the present application calls on intelligent capabilities (i.e., large models) to translate the Chinese text information contained in the Chinese resource file, and performs domain adaptation and cultural adaptation during the translation, thereby generating resource files in other languages, such as English: en.json and / or Traditional Chinese: zh_CHT.json, etc.

[0091] Specifically, as a preferred embodiment, Figure 4 As shown, in the above-mentioned Chinese webpage internationalization adaptation method, step S120: based on the semantic understanding large model, combined with the preset multilingual corpus and domain terminology library, the Chinese text information is intelligently translated and domain terminology adapted to obtain the internationalized text information, specifically includes:

[0092] S121: Use the multilingual corpus to construct a universal semantic space, and use the multilingual corpus to train a large semantic understanding model so that the large semantic understanding model learns the universal semantic rules corresponding to the multilingual corpus.

[0093] S122: Inputting Chinese text information into a semantic understanding model to learn the grammatical structure and semantic information corresponding to the Chinese text information, wherein the Chinese text information includes keywords.

[0094] S123: Control the semantic understanding model, combine grammatical structure and semantic information, learn the semantic association between keywords and context, and capture the semantic roles corresponding to keywords.

[0095] S124: Control the semantic understanding model and use general semantic rules to map keywords into general word vectors in the semantic space based on semantic association relationships and semantic roles.

[0096] First, a multilingual corpus is combined with a semantic understanding model to learn general semantic rules. After training, the Chinese text is fed into the semantic understanding model. This model then learns the grammatical structure and semantic information corresponding to the Chinese text. This grammatical structure and semantic information can be parsed using a natural language model in the previous step. Using the semantic understanding model to learn this grammatical structure and semantic information allows it to combine this information to learn the semantic associations between the keywords and the context, capturing the keywords' semantic roles (e.g., agent, patient, time, and location). Specifically, in the sentence "Yesterday she took a walk in the park," the model can label "yesterday" as a time adverbial and "park" as a location adverbial, thereby constructing a complete context. The semantic understanding model then uses general semantic rules to learn the semantic associations and roles of the keywords, accurately understanding the semantics and context of the keywords in the Chinese text. It then maps colloquial or informal keywords into formal universal word vectors in the semantic space. These universal word vectors accurately represent the semantic and contextual characteristics of the keywords in the Chinese text, enabling accurate translation of the word vectors.

[0097] as well as,

[0098] S125: Use the domain terminology library to construct a professional semantic space, and use the domain terminology library to train the semantic understanding big model so that the semantic understanding big model learns the professional semantic rules corresponding to the domain terminology library.

[0099] S126: Control the semantic understanding model to map keywords containing domain-specific terms to domain-specific word vectors according to domain-specific semantic rules. The steps for mapping keywords containing domain-specific terms to domain-specific word vectors according to domain-specific semantic rules are similar to the aforementioned keyword mapping method using general semantic rules and are not further described here.

[0100] S127: According to the mapping relationship between Chinese and other language texts in the multilingual corpus, the general word vectors and the professional word vectors are respectively mapped into foreign language texts to obtain internationalized text information.

[0101] For terminology in professional fields, the embodiment of the present application can also use a large semantic understanding model to learn the professional semantic rules corresponding to the terminology library in this field, so as to map the keywords containing professional field terms into professional word vectors in the professional semantic rules according to the professional semantic rules, and accurately understand the meaning of Chinese text and accurately translate professional terms.

[0102] In summary, the technical solution provided in the embodiments of the present application, by combining a multilingual corpus and a large semantic understanding model, accurately understands the meaning of Chinese text based on the context and linguistic context of keywords in Chinese text information, and realizes intelligent translation of Chinese text information; for professional terms and specific field vocabulary, they are accurately translated through a customized field term library.

[0103] Figure 1 The technical solution provided by the illustrated embodiment includes, in step S120: intelligently translating and adapting domain terms to Chinese text information based on the semantic understanding large model in combination with a preset multilingual corpus and domain terminology library to obtain internationalized text information, further comprising:

[0104] S130: Performing cultural adaptation on the internationalized text information, multimedia resource information, and web page architecture information according to the cultural environment applicable to the internationalized text information to obtain an internationalized resource file.

[0105] The technical solution provided in the embodiments of the present application can fully consider the cultural differences between different countries and regions and perform cultural adaptation processing on the translated content, such as replacing culturally sensitive words, adjusting the style of pictures and icons, etc., to ensure that the web page content can be accurately understood and accepted in different cultural environments.

[0106] Specifically, as a preferred embodiment, Figure 5 As shown, in the above-mentioned Chinese web page internationalization adaptation method, step S130: performing cultural adaptation on the internationalized text information, multimedia resource information, and web page architecture information according to the cultural environment applicable to the internationalized text information to obtain the internationalized resource file includes:

[0107] S131: Acquire the cultural environments of different countries and regions to form a cultural feature library. Use the cultural features in the cultural feature library to train a multimodal analysis model and construct a cultural semantic space. The multimodal deep analysis model is a dual-stream heterogeneous deep network architecture.

[0108] S132: Use a text processing flow with a dual-stream heterogeneous deep network architecture to parse internationalized text information according to the cultural semantic space and extract culturally sensitive text features from the internationalized text information;

[0109] S133: Using a dual-stream heterogeneous deep network architecture for visual processing, an object detection algorithm combined with a multi-scale attention mechanism is used to detect feature associations in multimedia resource information and web page architecture information, respectively, to obtain culturally sensitive visual features corresponding to the multimedia resource information or web page architecture information;

[0110] S134: Replace culturally sensitive text features according to the cultural semantic space and adjust the display of culturally sensitive visual features.

[0111] The technical solution provided by the embodiment of the present application uses a multimodal analysis model to perform multimodal analysis on the above-mentioned internationalized text information, multimedia resource information and web page architecture information. Specifically, the multimodal analysis model is a dual-stream heterogeneous deep network architecture, which can process the text processing flow and the visual processing flow respectively. For the text processing flow, the internationalized text information is parsed according to the cultural semantic space, thereby extracting culturally sensitive text features. Specifically, the word vectors in the internationalized text information of the manuscript can be matched with the word vectors in the cultural semantic space for feature similarity. If the similarity is higher than or equal to a predetermined threshold, the keyword corresponding to the word vector is considered to be a culturally sensitive text feature. Then, using the visual processing flow, by adding a multi-scale attention mechanism to the target detection algorithm in the network architecture, the feature association in the multimedia resource information and the web page architecture information can be monitored, such as the color, object or person associated with a specific culture in the picture, so that culturally sensitive visual features can be obtained. By replacing the culturally sensitive text features according to the cultural semantic space in the above manner and adjusting the display of culturally sensitive visual features in a targeted manner, it is possible to adapt to the internationalized cultural environment. Specifically: if it is determined that culturally sensitive words exist, the cultural feature library is used to replace the culturally sensitive words in the internationalized text information; the cultural feature library is used to determine whether the multimedia resource information has a sensitive display style; if it is determined that a sensitive display style exists, the cultural feature library is used to adjust the display style corresponding to the multimedia resource information; and, the cultural feature library is used to determine whether the layout style corresponding to the web page architecture information is adapted to the local cultural environment; if it is determined that it is not adapted to the local cultural environment, the cultural feature library is used to adjust the layout style of the web page architecture information.

[0112] In summary, the technical solutions provided in the above embodiments of this application fully consider the cultural differences between different countries and regions, and perform cultural adaptation processing on the translated content, such as replacing culturally sensitive words, adjusting the styles of pictures and icons, etc., to ensure that the web page content can be accurately understood and accepted in different cultural environments.

[0113] In addition, after mapping and translating the internationalized text information, multimedia resource information, and web page architecture information corresponding to the above-mentioned Chinese web pages, as well as adapting the professional terminology and culture, format adaptive adjustment is also required to avoid format mismatch issues.

[0114] Specifically, as a preferred embodiment, Figure 6 As shown, the above-mentioned Chinese web page internationalization adaptation method, after the step S130 of performing cultural adaptation on the internationalized text information, multimedia resource information and web page architecture information to obtain the internationalized resource file, further includes:

[0115] S301: Rendering a web page using a common rendering method under simulated multiple target resolutions;

[0116] S302: Switching the display effect of each internationalized resource file on the web page in turn;

[0117] S303: When there is a problem with the display effect of the internationalized resource file on the web page, adjust the web page architecture information.

[0118] The technical solution provided by the embodiments of this application can simulate a wide range of target resolutions, virtually render web pages using common rendering methods, switch between each language resource file in turn, check for issues such as text obstruction, incomplete display, and overlap, and provide suggestions for adjusting the web page layout, fonts, and translated content. After receiving user confirmation, the corresponding modification operations (such as content reduction) are performed to ensure that the web page presents a good visual effect and user experience on all target devices and browsers.

[0119] Figure 1 The technical solution provided by the illustrated embodiment further includes the following steps after obtaining the internationalized resource file:

[0120] S140: When a web page needs to be run, an internationalized resource file is loaded according to the current language environment to obtain an internationalized web page corresponding to the current language environment.

[0121] Specifically, as a preferred embodiment, Figure 7 As shown, in the above-mentioned Chinese web page internationalization adaptation method, step S140: loading the internationalization resource file according to the current language environment to obtain the internationalized web page corresponding to the current language environment includes:

[0122] S141: When a web page needs to be run, an HTML script corresponding to the current web page is loaded, wherein the HTML script includes the current language environment.

[0123] S142: Using HTML script to parse internationalized text information in the internationalized resource file.

[0124] S143: Loading the internationalized resource file according to the current language environment to obtain an internationalized web page in the current language environment.

[0125] The technical solution provided by the embodiments of this application specifically loads an HTML script included with the system during web page execution, automatically parsing all key values ​​wrapped in the multilingual tag "__i18n__," loading the corresponding internationalization resource file based on the current locale, and replacing the key values ​​with the corresponding language resource text. Specifically, an external HTML script runs the internationalization resource file (e.g., en.json for English and zh_CHT.json for Traditional Chinese), searches for the corresponding multilingual tag, and then searches for the key value corresponding to the multilingual tag. Based on the key value, the corresponding foreign language text is found. The HTML language is then parsed by the web page to display the corresponding internationalized web page.

[0126] In summary, the Chinese web page internationalization adaptation method based on the big model provided in the above embodiment of the present application first uses a natural language model and a web page parsing algorithm to parse the Chinese web page, so that the Chinese text information, multimedia resource information and web page architecture information of the Chinese web page can be obtained; then the semantic understanding big model is used, combined with a preset multilingual corpus and a domain terminology library, to perform intelligent translation and domain terminology adaptation on the Chinese text information, thereby obtaining internationalized text information, because the semantic understanding big model is used in combination with a preset multilingual corpus and a domain terminology library to perform intelligent translation and domain terminology adaptation on the above-mentioned Chinese text information after natural language parsing, so that the semantics and context in the Chinese text information can be accurately understood, and the cultural differences of different countries and regions are fully considered, and the professional terminology in the relevant fields is accurately adapted, thereby reducing the problems of content confusion and format mismatch during the adaptation process, and in addition, the internationalized text information, multimedia resource information and web page architecture information are culturally adapted in combination with the cultural environment that the internationalized text needs to be applicable, so as to meet the cultural needs of internationalization. Finally, when the web page needs to be run, the internationalized resource file is loaded according to the current language environment, and the internationalized web page corresponding to the current language environment can be obtained. The above-mentioned method can solve the problem that web page internationalization tools in the prior art generally lack intelligence, have difficulty in accurately understanding the semantics and context of Chinese web pages, and have difficulty in adapting to internationalization needs.

[0127] In addition, the following embodiments of the present application also provide product embodiments for internationalization adaptation of Chinese web pages based on large models. The beneficial effects of the following product embodiments are the same as the beneficial effects of the method for internationalization adaptation of Chinese web pages based on large models provided by the above method embodiments, and other technical features in the product embodiments are the same as the features disclosed in the above embodiment methods, which will not be repeated here.

[0128] See also Figure 8 , Figure 8 A schematic diagram of the structure of a Chinese web page internationalization adaptation device based on a large model provided in an embodiment of the present application is shown in FIG. Figure 8 As shown, the Chinese web page internationalization adaptation device includes:

[0129] The web page parsing module 110 is used to parse Chinese web pages using a natural language model and a web page parsing algorithm to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web page;

[0130] The information adaptation module 120 is used to perform intelligent translation and domain term adaptation on Chinese text information based on the semantic understanding model, combined with a preset multilingual corpus and domain terminology database, to obtain internationalized text information;

[0131] A cultural adaptation module 130 is used to perform cultural adaptation on the internationalized text information, multimedia resource information and web page architecture information according to the cultural environment applicable to the internationalized text information, and obtain an internationalized resource file;

[0132] The file loading module 140 is used to load the internationalized resource file according to the current language environment when a web page needs to be run, so as to obtain an internationalized web page corresponding to the current language environment.

[0133] In summary, the large-model-based internationalization adaptation solution for Chinese web pages provided in the above embodiments of the present application can achieve the following technical effects compared to the existing technology:

[0134] (1) Significantly improved efficiency: Through automated deep analysis, text processing, language resource file generation and other steps, the tedious process of traditional manual translation and separate development of web page versions has been abandoned, greatly shortening the time for internationalization adaptation of Chinese web pages, and being able to quickly respond to market demand and meet users' timeliness requirements for web page internationalization.

[0135] (2) Significant cost reduction: It reduces the large amount of human and material resources required for manual translation and multi-version development, reduces development and maintenance costs, and alleviates the economic burden of enterprises in the process of web internationalization.

[0136] (3) High adaptation accuracy: By utilizing intelligent capabilities combined with multilingual corpora, semantic understanding models, and custom terminology libraries, it is able to accurately understand the semantics and context of Chinese texts and achieve accurate translation. At the same time, it fully considers cultural differences in adaptation processing, avoiding information communication deviations caused by translation errors or cultural conflicts, and ensuring the accuracy and readability of web page content in different international environments.

[0137] (4) Comprehensive format adaptation: By virtually rendering web pages at the target resolution and checking for problems, comprehensive layout, font, and translation content adjustment suggestions are given, effectively solving format problems such as text obstruction, incomplete display, and overlap, ensuring that web pages can present good visual effects and user experience on various devices and browsers, thereby improving user satisfaction and web page usability.

[0138] (5) Flexible and intelligent operation: When a web page is running, the system can automatically load the corresponding resource file according to the current language environment, and quickly replace the key value with the corresponding language resource text without manual intervention, so that the web page can flexibly adapt to different language environments, enhancing the versatility and practicality of the system.

[0139] In addition, it should be noted that the above examples are only used to understand the present application and do not constitute a limitation on the method of the present application. More simple transformations based on this technical concept are all within the scope of protection of the present application.

[0140] In addition, see Figure 9 The electronic device provided in the present application includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the target detection-based large model-based Chinese web page internationalization adaptation method of any of the above embodiments.

[0141] Reference below Figure 9 , which shows a schematic diagram of the structure of an electronic device suitable for implementing the embodiments of the present application. The electronic devices in the embodiments of the present application can include, but are not limited to, mobile terminals such as mobile phones, laptop computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), in-vehicle terminals (such as in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 9 The device shown is only an example and should not limit the functions and scope of use of the embodiments of the present application.

[0142] like Figure 9As shown, the electronic device may include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes based on programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. RAM 1004 also stores various programs and data required for the operation of the electronic device. Processing device 1001, ROM 1002, and RAM 1004 are interconnected via a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Typically, the following systems can be connected to I / O interface 1006: input devices 1007 including, for example, a touchscreen, touchpad, keyboard, mouse, image sensor, microphone, accelerometer, gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), speaker, vibrator, etc.; storage device 1003 including, for example, a magnetic tape or hard disk; and communication device 1009. The communication device 1009 can enable the electronic device to communicate with other devices wirelessly or by wire to exchange data. Although the figure shows a model building device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or have instead.

[0143] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0144] It should be understood that the various parts disclosed in this application can be implemented using hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in any appropriate manner in any one or more embodiments or examples.

[0145] The above description is merely a specific embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of the present application. Therefore, the scope of protection of the present application should be based on the scope of protection of the claims.

[0146] The present application provides a computer-readable storage medium having computer-readable program instructions (ie, computer program) stored thereon, and the computer-readable program instructions are used to execute the large model-based Chinese web page internationalization adaptation method in the above-mentioned embodiment.

[0147] The computer-readable storage medium provided in this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, systems or devices, or any combination thereof. More specific examples of computer-readable storage media can include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, system or device. The program code contained on the computer-readable storage medium can be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (Radio Frequency), etc., or any suitable combination thereof.

[0148] The computer-readable storage medium carries one or more programs that, when executed by the model building device, can be written in one or more programming languages ​​or a combination thereof to implement computer program code for performing the operations of the present application. The programming languages ​​include object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0149] The flow charts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, program segment or a part of code, and the module, program segment or a part of code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented using a dedicated hardware-based system that performs the specified function or operation, or can be implemented using a combination of dedicated hardware and computer instructions.

[0150] The modules described in the embodiments of the present application can be implemented in software or hardware, wherein the name of a module does not necessarily limit the unit itself.

[0151] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referred to each other. Each embodiment focuses on the differences from other embodiments.

[0152] The foregoing is merely an embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application should all be included in the protection scope of the present application.

Claims

1. A method for internationalizing Chinese web pages based on a large model, characterized in that: include: Parsing Chinese web pages using a natural language model and a web page parsing algorithm to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web pages; Based on the semantic understanding model, combined with the preset multilingual corpus and domain terminology library, the Chinese text information is intelligently translated and domain terminology adapted to obtain internationalized text information; Performing cultural adaptation on the internationalized text information, the multimedia resource information, and the webpage architecture information according to the cultural environment applicable to the internationalized text information to obtain an internationalized resource file; When a web page needs to be run, the internationalized resource file is loaded according to the current language environment to obtain an internationalized web page corresponding to the current language environment; The step of using a natural language model and a web page parsing algorithm to parse a Chinese web page to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web page includes: using a natural language model to parse the Chinese web page to obtain Chinese text information corresponding to the Chinese web page; using the natural language model to split the Chinese text information into vocabulary and sentence forms, and analyzing to obtain grammatical structure and semantic information of the vocabulary and sentence forms; using a web page parsing algorithm to parse the Chinese web page to obtain multimedia resource information and web page architecture information corresponding to the Chinese web page; and classifying and identifying the multimedia resource information; The step of culturally adapting the internationalized text information, the multimedia resource information and the web page architecture information according to the cultural environment applicable to the internationalized text information to obtain an internationalized resource file includes: obtaining the cultural environments of different countries and regions, forming a cultural feature library, using the cultural features in the cultural feature library to train a multimodal analysis model, and constructing a cultural semantic space; wherein the multimodal deep analysis model is a dual-stream heterogeneous deep network architecture; using the text processing flow of the dual-stream heterogeneous deep network architecture to parse the internationalized text information according to the cultural semantic space and extract culturally sensitive text features in the internationalized text information; using the visual processing flow of the dual-stream heterogeneous deep network architecture to use a target detection algorithm combined with a multi-scale attention mechanism to respectively detect feature associations in the multimedia resource information and the web page architecture information, and obtain culturally sensitive visual features corresponding to the multimedia resource information or the web page architecture information; replacing the culturally sensitive text features according to the cultural semantic space, and adjusting the display of the culturally sensitive visual features.

2. The method according to claim 1, wherein Before the step of performing intelligent translation and domain term adaptation on the Chinese text information based on the semantic understanding large model in combination with a preset multilingual corpus and domain terminology library to obtain internationalized text information, the method further includes: Extracting keywords from the Chinese text information as key values; Using the key value to replace the keyword in the Chinese text information, and adding a multilingual tag to the key value to obtain new Chinese text information; Generate Chinese resource files containing new Chinese text information; The Chinese resource file is input into the semantic understanding model.

3. The method according to claim 1, wherein The step of performing intelligent translation and domain term adaptation on the Chinese text information based on the semantic understanding large model in combination with a preset multilingual corpus and domain terminology library to obtain internationalized text information includes: Constructing a universal semantic space using the multilingual corpus, and training a semantic understanding model using the multilingual corpus, so that the semantic understanding model learns universal semantic rules corresponding to the multilingual corpus; Inputting the Chinese text information into the semantic understanding model to learn the grammatical structure and semantic information corresponding to the Chinese text information, wherein the Chinese text information includes keywords; Controlling the semantic understanding model, combining the grammatical structure and semantic information, learning the semantic association between the keyword and the context, and capturing the semantic role corresponding to the keyword; Controlling the semantic understanding model to map the keywords into universal word vectors in the semantic space using the universal semantic rules according to the semantic association relationship and the semantic role; Furthermore, a professional semantic space is constructed using the domain terminology library, and the semantic understanding large model is trained using the domain terminology library, so that the semantic understanding large model learns the professional semantic rules corresponding to the domain terminology library; Controlling the semantic understanding model to map keywords containing professional domain terms into professional word vectors in the professional semantic rules according to the professional semantic rules; According to the mapping relationship between Chinese and other language texts in the multilingual corpus, the general word vectors and the professional word vectors are respectively mapped into foreign language texts to obtain the internationalized text information.

4. The method according to claim 1, wherein After the step of performing cultural adaptation on the internationalized text information, the multimedia resource information, and the webpage architecture information to obtain an internationalized resource file, the method further includes: Simulate multiple target resolutions and render web pages using common rendering methods; Switch the display effect of each internationalized resource file on the web page in turn; When there is a problem with the display effect of the internationalized resource file on the web page, the web page architecture information is adjusted.

5. The method according to claim 1, wherein The step of loading the internationalized resource file according to the current language environment to obtain the internationalized webpage corresponding to the current language environment includes: When a web page needs to be run, the HTML script corresponding to the current web page is loaded, wherein the HTML script includes the current language environment; Parsing the internationalized text information in the internationalized resource file using the HTML script; The internationalized resource file is loaded according to the current language environment to obtain an internationalized web page in the current language environment.

6. A Chinese web page internationalization adaptation device based on a large model, characterized in that: include: A web page parsing module is used to parse Chinese web pages using a natural language model and a web page parsing algorithm to obtain Chinese text information, multimedia resource information, and web page architecture information of the Chinese web pages; An information adaptation module is used to perform intelligent translation and domain term adaptation on the Chinese text information based on the semantic understanding large model, combined with a preset multilingual corpus and domain terminology library, to obtain internationalized text information; A cultural adaptation module, configured to perform cultural adaptation on the internationalized text information, the multimedia resource information, and the webpage architecture information according to the cultural environment to which the internationalized text information is applicable, to obtain an internationalized resource file; The file loading module is used to load the internationalized resource file according to the current language environment when a web page needs to be run, and obtain the internationalized web page corresponding to the current language environment; wherein, The web page parsing module is further configured to parse the Chinese web page using a natural language model to obtain Chinese text information corresponding to the Chinese web page; split the Chinese text information into vocabulary and sentence forms using the natural language model, and analyze the grammatical structure and semantic information of the vocabulary and sentence forms; parse the Chinese web page using a web page parsing algorithm to obtain multimedia resource information and web page architecture information corresponding to the Chinese web page; and classify and identify the multimedia resource information; The cultural adaptation module is specifically used to obtain the cultural environment of different countries and regions, form a cultural feature library, use the cultural features in the cultural feature library to train a multimodal analysis model, and construct a cultural semantic space; wherein the multimodal deep analysis model is a dual-stream heterogeneous deep network architecture; the text processing flow of the dual-stream heterogeneous deep network architecture is used to parse internationalized text information according to the cultural semantic space, and extract culturally sensitive text features in the internationalized text information; the visual processing flow of the dual-stream heterogeneous deep network architecture is used to use the target detection algorithm combined with the multi-scale attention mechanism to respectively detect feature associations in multimedia resource information and web page architecture information, and obtain culturally sensitive visual features corresponding to the multimedia resource information or web page architecture information; the culturally sensitive text features are replaced according to the cultural semantic space, and the display of the culturally sensitive visual features is adjusted.

7. A computer storage medium having computer executable instructions stored thereon, characterized in that: When the computer program is executed by a processor, the method for internationalization adaptation of Chinese web pages based on a large model as described in any one of claims 1 to 5 is implemented.

Citation Information

Patent Citations

  • Front-end internationalization multi-language conversion method and system based on vue and webpack

    CN115796190A

  • Processing method and device of page internalization, computer and storage medium

    CN108228179A

  • Text translation method and device based on natural language model and electronic equipment

    CN116955533A

  • Method for realizing internationalized multiple languages of website, medium and electronic equipment

    CN119089911A