Target conversion language determination method and device, equipment and storage medium

By performing character recognition and semantic analysis on the requirements document, combining the matching relationship between game scene types and element information, and using the typesetting information matching value to determine the target conversion language, the problems of low efficiency and poor accuracy in language recognition of the requirements document are solved, and efficient and accurate translation is achieved.

CN120654653APending Publication Date: 2025-09-16GUANGZHOU SANQI DREAM NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510511867.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-04-23
Publication Date
2025-09-16

AI Technical Summary

Technical Problem

In the existing technology, the language recognition efficiency and accuracy of the requirement documents are low, and the consistency and standardization of the format cannot be guaranteed, which affects the quality of game localization translation.

Method used

By obtaining the requirements document, performing character recognition and semantic analysis, determining the game scene type and element information, generating matching relationships, and determining the target conversion language through typesetting information matching values, the accuracy and efficiency of language recognition are improved.

Benefits of technology

The accuracy and recognition efficiency of the target conversion language are improved, ensuring the translation quality and consistency of game requirement documents.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120654653A_ABST
    Figure CN120654653A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a target conversion language determination method and device, equipment and a storage medium, and the method comprises the steps: carrying out the character recognition and semantic analysis of description information in a demand document, and obtaining a target character and a semantic analysis result; determining a game scene type and element information in the description information according to a semantic analysis result, and generating a matching relationship between the game scene type and the element information; determining a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship; under the condition that the type of the first conversion language is inconsistent with the type of the second conversion language, matching typesetting information of the description information with the first typesetting information and the second typesetting information respectively to obtain a first matching value and a second matching value; and determining the language type corresponding to the larger matching value as a target language type, and determining a local language associated with the target language type as a target conversion language. And the accuracy and the recognition efficiency of the target conversion language are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a method, apparatus, device, and storage medium for determining a target conversion language. Background Art

[0002] With the increasing integration of the global gaming market, game localization is playing an increasingly important role in the development of the gaming industry. To ensure widespread distribution across different regions, game developers must translate their game content into multiple languages. During this process, translation requirements documents (TRDs) serve as a crucial vehicle for communication between developers and localization teams. The consistency and standardization of their format significantly impacts both efficiency and quality.

[0003] In related technologies, in order to ensure the consistency of the format of requirement documents, local teams are usually required to identify the current language of the requirement documents received from various developers and determine the local language corresponding to the current language. However, when performing current language identification, a dictionary matching method is usually used to match the vocabulary in the header of the requirement document with the vocabulary in the dictionary of each type of language. This matching method cannot guarantee the accuracy and efficiency of current language recognition. Summary of the Invention

[0004] The present invention provides a method, apparatus, device, and storage medium for determining a target conversion language, addressing the current issues of low efficiency and accuracy in language recognition for requirements documents. The method can determine the target conversion language based on the matching relationship between the game scene type and element information, the target characters, and the layout of the description information, thereby improving the accuracy and recognition efficiency of the target conversion language.

[0005] In a first aspect, an embodiment of the present application provides a method for determining a target conversion language, comprising:

[0006] Obtaining a requirement document, parsing the requirement document to obtain description information, and performing character recognition and semantic analysis on the description information to obtain target characters and semantic analysis results;

[0007] Determining the game scene type and the element information in the description information according to the semantic analysis result, and generating a matching relationship between the game scene type and the element information;

[0008] determining a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship;

[0009] When the type of the first conversion language and the type of the second conversion language are inconsistent, matching the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language, respectively, to obtain a first matching value and a second matching value;

[0010] The language type corresponding to the larger matching value between the first matching value and the second matching value is determined as a target language type, and the local language associated with the target language type is determined as a target conversion language.

[0011] Optionally, determining the game scene type and element information in the description information according to the semantic analysis result includes:

[0012] According to the semantic analysis results, a target keyword in the description information that matches the semantics of a preset keyword is identified, and the game scene type corresponding to the target keyword is determined. According to the semantic analysis results, target information in the description information used to represent a game element is determined, and the target information is determined to be element information.

[0013] Optionally, matching the typesetting information of the description information with first typesetting information corresponding to the first conversion language and second typesetting information corresponding to the second conversion language to obtain a first matching value and a second matching value includes:

[0014] Matching the text direction and paragraph format corresponding to the description information with the first text direction and first paragraph format corresponding to the first conversion language, respectively, to obtain a first matching result, and calculating a first matching value based on a preset weight coefficient and the first matching result;

[0015] The text direction and paragraph format corresponding to the description information are matched with the second text direction and second paragraph format corresponding to the second conversion language to obtain a second matching result, and a second matching value is calculated according to the preset weight coefficient and the second matching result.

[0016] Optionally, the paragraph format includes alignment and indentation;

[0017] Accordingly, matching the paragraph format corresponding to the description information with the first paragraph format includes:

[0018] Match the indentation mode and alignment mode of the description information with the first indentation mode and the first alignment mode respectively;

[0019] Accordingly, matching the paragraph format corresponding to the description information with the second paragraph format includes:

[0020] The indentation mode and alignment mode of the description information are matched with the second indentation mode and the second alignment mode respectively.

[0021] Optionally, performing character recognition on the description information to determine target characters includes:

[0022] Identifying punctuation marks or currency symbols in the description information and determining target punctuation marks or target currency symbols;

[0023] Accordingly, determining the first conversion language associated with the target character includes:

[0024] The conversion language associated with the target punctuation mark is determined to be the first conversion language or the conversion language associated with the target currency symbol is determined to be the first conversion language.

[0025] Optionally, when the type of the first conversion language is consistent with the type of the second conversion language, the type of the first conversion language and the type of the second conversion language are determined to be target language types, and a local language associated with the target language type is determined to be a target conversion language.

[0026] Optionally, after determining the local language associated with the target language type as the target conversion language, the method further includes:

[0027] Sending the target conversion language and the requirements document to the client, and receiving feedback information from the client in real time. If the feedback information is confirmation information, continuing to translate the requirements document according to the target conversion language to generate a target requirements document;

[0028] In a case where the feedback information is adjustment information, mapping configuration information is generated based on the to-be-converted language in the adjustment information and the conversion language corresponding to the target conversion language, and the mapping configuration information is saved. The requirement document is translated based on the to-be-converted language to generate a target requirement document.

[0029] In a second aspect, an embodiment of the present application provides a device for determining a target conversion language, including:

[0030] An information processing module is used to obtain a demand document, parse the demand document to obtain description information, and perform character recognition and semantic analysis on the description information to obtain target characters and semantic analysis results;

[0031] a matching relationship generating module, configured to determine the game scene type and the element information in the description information according to the semantic analysis result, and generate a matching relationship between the game scene type and the element information;

[0032] a conversion language determining module, configured to determine a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship;

[0033] an information matching module, configured to, when the type of the first conversion language and the type of the second conversion language are inconsistent, match the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language, respectively, to obtain a first matching value and a second matching value;

[0034] The target conversion language determination module is configured to determine the language type corresponding to the larger matching value between the first matching value and the second matching value as the target language type, and determine the local language associated with the target language type as the target conversion language.

[0035] In a third aspect, an embodiment of the present application provides an electronic device comprising: one or more processors; a storage device configured to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the target conversion language determination method described in the first aspect.

[0036] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform the target conversion language determination method as described in the first aspect.

[0037] The embodiment of the present application obtains a requirement document, parses the requirement document to obtain description information, performs character recognition and semantic analysis on the description information, obtains a target character and a semantic analysis result; determines the game scene type and element information in the description information based on the semantic analysis result, and generates a matching relationship between the game scene type and the element information; determines a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship; when the type of the first conversion language and the type of the second conversion language are inconsistent, matches the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language to obtain a first matching value and a second matching value; determines the language type corresponding to the larger matching value of the first matching value and the second matching value as the target language type, and determines the local language associated with the target language type as the target conversion language. The target conversion language can be determined based on the matching relationship between the game scene type and the element information, the target character, and the typesetting information of the description information, thereby improving the accuracy and recognition efficiency of the target conversion language. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] Figure 1 This is a flow chart of a method for determining a target conversion language provided by an embodiment of the present application;

[0039] Figure 2This is a flow chart of a method for calculating a first matching value and a second matching value provided in an embodiment of the present application;

[0040] Figure 3 This is a flow chart of a method for generating a target requirement document provided in an embodiment of the present application;

[0041] Figure 4 This is a process diagram of a method for generating a target requirement document provided in an embodiment of the present application;

[0042] Figure 5 This is a schematic diagram of the structure of a target conversion language determination device provided by an embodiment of the present application;

[0043] Figure 6 Schematic diagram of a target conversion language determination device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0044] In order to make the purpose, technical solutions and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. It should also be noted that, for ease of description, only parts related to the present application, not all of the contents, are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow charts describe each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but can also have additional steps not included in the accompanying drawings. The process can correspond to a method, function, procedure, subroutine, subprogram, etc.

[0045] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.

[0046] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.

[0047] The target conversion language determination method, apparatus, device, and medium provided by the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0048] The target conversion language determination method provided in the embodiment of the present application is used in a scenario where a local game development team translates the requirement documents received from various game developers. Based on the above application scenario, it can be understood that the execution subject of this solution can be a server.

[0049] Figure 1 This is a flow chart of a method for determining a target conversion language provided by an embodiment of the present application. Figure 1 Shown, including:

[0050] Step S101: Obtain a requirement document, parse the requirement document to obtain description information, perform character recognition and semantic analysis on the description information, and obtain target characters and semantic analysis results.

[0051] A requirements document is a document that details all the requirements and details for game development. It serves as a crucial foundation for the game development process and can include requirements for gameplay, target user groups, game interface, game audio, game performance, and game testing. It can also include requirements numbers, planned start and end times, and information about relevant responsible individuals. Descriptive information provides detailed descriptions of all aspects of the game, ensuring that development team members fully understand the game's design intent and specific requirements. Semantic analysis involves analyzing vocabulary, sentence structure, and semantic roles within a text to obtain accurate semantic information. In one embodiment, a requirements document is received from a game developer and the various requirements described in the document are thoroughly understood, analyzed, organized, and refined to clarify the project's specific requirements and goals. Detailed descriptions of all aspects of the game are obtained, and numerical symbols and punctuation marks within the descriptive information are identified. Semantic analysis is then performed on the descriptive information to determine the actual development requirements and gameplay scenarios.

[0052] Optionally, character recognition is performed on the description information to determine target characters, including: recognizing punctuation marks or currency symbols in the description information, and determining target punctuation marks or target currency symbols; correspondingly, determining a first conversion language associated with the target characters, including: determining the conversion language associated with the target punctuation marks as the first conversion language or determining the conversion language associated with the target currency symbols as the first conversion language.

[0053] Among them, a currency symbol is a specific symbol or identifier used to represent a currency. It is a graphical representation of the currency and is used to quickly and clearly identify different currency types on various occasions. Currency symbols can include the Chinese yuan symbol "¥", the US dollar symbol "$", the euro symbol "€", etc. In one embodiment, the currency symbols corresponding to different languages are usually different. If it is recognized that the description information includes "¥", the first conversion language associated with this currency symbol can be determined as "ZH", "Chinese", or "Chinese". The symbol identification forms corresponding to different languages are usually also different. For example, "comma", "semicolon", and "colon" are usually punctuation marks unique to Chinese. When the above punctuation marks are recognized, the first conversion language associated with the target character can be determined as "ZH", "Chinese", or "Chinese".

[0054] In the embodiment of the present application, by recognizing punctuation marks or currency symbols in the description information, and determining target punctuation marks or target currency symbols, the conversion language associated with the target punctuation marks is determined as the first conversion language or the conversion language associated with the target currency symbols is determined as the first conversion language. In the above solution, the corresponding first conversion language can be determined by recognizing any one of the punctuation marks or currency symbols in the description information, which improves the accuracy of determining the first conversion language and the generality of the method for determining the first conversion language.

[0055] Step S102: Determine the game scene type and the element information in the description information according to the semantic analysis result, and generate a matching relationship between the game scene type and the element information.

[0056] The game scenario type refers to the classification of games based on various factors such as gameplay, mechanics, theme, and target audience, and can include action games, role-playing games, and casual games. Element information refers to the various basic elements that make up a game and their related details, including characters, props, scenes, quests, rules, and so on. In one embodiment, based on semantic analysis results, the game requirements are determined as follows: "①, different terrains such as forests, mountains, deserts, and swamps, with monsters and resources distributed throughout for players to explore, fight, and gather; ②, music corresponding to the scene and plot is played, such as a relaxing and enjoyable main city, thrilling battles, and melodious and natural wilderness exploration." Based on the description of this requirement, it can be determined that the game scenario type is an action game. The element information in this description is determined to include forests, mountains, deserts, swamps, and so on. Matching relationships between each element information and the game scenario type are generated, such as matching forests with action games, matching mountains with action games, matching deserts with action games, and matching swamps with action games.

[0057] Optionally, the game scene type and element information in the description information are determined based on the semantic analysis results, including: identifying a target keyword in the description information that matches the semantics of a preset keyword based on the semantic analysis results, and determining the game scene type corresponding to the target keyword, and determining the target information in the description information used to represent the game element based on the semantic analysis results, and determining the target information as element information. Among them, the preset keyword refers to a word used to represent the game scene type, such as "fighting", "adventure", "fantasy", "elimination", "chess", "racing", "rhythm", "flying", etc. The target keyword is a word in the description information that has the same or similar semantics as the preset keyword, or it can be a word of the same type as the preset keyword.

[0058] In one embodiment, based on the results of semantic analysis, keywords in the description information that have the same or similar semantics as preset keywords are identified as target keywords, or words of the same type as the preset keywords are identified as target keywords. For example, if the preset keywords are "fighting" or "adventure," then words such as "fight" and "confrontation" that appear in the description information can be determined as target keywords, and the game scene types corresponding to "fighting," "adventure," "fighting," and "confrontation" are determined to be action games. Because different words may have different meanings in different contexts, the information used to represent game elements in the description information is determined to be target information based on the results of semantic analysis. For example, if the description information is "the main activity center for players, with shops, taverns, quest publishing centers, auction houses and other facilities, and a fantasy architectural style," "shops," "taverns," and "auction houses" can be determined as element information based on semantic analysis.

[0059] The embodiment of the present application identifies a target keyword in the description information that semantically matches a preset keyword based on the results of semantic analysis, determines the type of game scene corresponding to the target keyword, and determines the target information in the description information used to represent a game element based on the results of semantic analysis, and determines that the target information is element information. In the above scheme, the target keyword that matches the preset keyword is determined by semantic matching, and the element information in the description information is determined by semantic analysis, which improves the accuracy of identifying the target keyword and element information.

[0060] Step S103: Determine a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship.

[0061] Among them, the first conversion language can be the target document language to be translated that is associated with the target character, and the second conversion language is the target document language to be translated that is associated with the matching relationship. In one embodiment, the symbol identification forms corresponding to different languages ​​are usually different. For example, the ellipsis in English is "...", and the ellipsis in Chinese is "...", and "comma", "semicolon" and "colon" are usually punctuation marks unique to Chinese. Therefore, the association relationship between characters and languages ​​can be set in advance, and the corresponding first conversion language can be determined according to the association relationship after the target character is determined. In another embodiment, due to the different development habits of different game developers, the different ways of understanding the corresponding games, and the cultural differences in the regions where different game developers are located, different game demand styles will be generated. The language usually used in the demand document can be judged by the matching relationship between the game scene type and the element information. For example, developers in Western countries usually apply the "dragon" element to action games in the requirements documents and use it as a monster, such as in the UK. Therefore, the matching relationship between action games and the "dragon" element can be pre-set, and the second conversion language corresponding to the matching relationship can be determined to be "EN". Developers in China usually use the "dragon" element as a skill element and as a clearance reward element for casual games in the requirements documents. Therefore, the matching relationship between casual games and the "dragon" element can be pre-set, and the second conversion language corresponding to the matching relationship can be determined to be "zh-CN".

[0062] Step S104: When the type of the first conversion language and the type of the second conversion language are inconsistent, the layout information of the description information is matched with the first layout information corresponding to the first conversion language and the second layout information corresponding to the second conversion language to obtain a first matching value and a second matching value.

[0063] Layout information refers to the information related to the layout and organization of text, images, charts, and other elements in various media such as documents, web pages, and publications to achieve specific visual effects and information communication purposes. Due to differences in the text characteristics, grammatical structure, and cultural habits of different languages, the layout methods corresponding to description information in different languages ​​are generally different. In one embodiment, when the type of the first conversion language and the type of the second conversion language are inconsistent, it is understandable that there is a deviation in the method of determining the first conversion language through character recognition or the method of determining the second conversion language through semantic analysis. In this case, it is impossible to accurately determine whether the type of the first conversion language is the target language type or the type of the second conversion language is the target language type. Therefore, the layout information of the description information can be used for verification to determine whether the type of the first conversion language or the type of the second conversion language is the target language type. The layout information of the description information can be matched with the first layout information corresponding to the first conversion language to obtain a first matching value, and with the second layout information corresponding to the second conversion language to obtain a second matching value. Exemplarily, the line spacing of the description information is matched with the line spacing corresponding to the first conversion language. If the line spacing corresponding to the description information is the same as the line spacing corresponding to the first conversion language, the first matching value is 1; if they are different, the first matching value is 0. The line spacing of the description information is matched with the line spacing corresponding to the second conversion language. If the line spacing corresponding to the description information is the same as the line spacing corresponding to the second conversion language, the second matching value is 1; if they are different, the second matching value is 0.

[0064] Step S105: Determine the language type corresponding to the larger matching value between the first matching value and the second matching value as the target language type, and determine the local language associated with the target language type as the target conversion language.

[0065] Among them, the target language type can be used to represent different languages, such as Chinese type, English type, French type, Japanese type, etc. The local language is a unified document translation language set by the local game development team for different languages. For example, the local language corresponding to the Chinese type language is "zh-CN", and the local language corresponding to the English type language is "EN". In one embodiment, the first matching value and the second matching value are compared, and the language type corresponding to the larger matching value is determined as the target language type. For example, if the first conversion language is "ZH", the first matching value corresponding to the first conversion language is 1, and the second conversion language is "English", and the second matching value corresponding to the second conversion language is 0, then the language type corresponding to the first conversion language is determined as the target language type, that is, the "Chinese language type" corresponding to "ZH" is determined as the target language type, and the local language associated with "ZH" is determined to be "zh-CN", and "zh-CN" is determined as the target conversion language. In another possible embodiment, the language sets the mapping relationship between each conversion language and the language type, such as the mapping relationship between "ZH" and "zh-CN", the mapping relationship between "Chinese" and "zh-CN", and the mapping relationship between "CN" and "zh-CN".

[0066] The embodiment of the present application obtains a requirement document, parses the requirement document to obtain description information, performs character recognition and semantic analysis on the description information, and obtains a target character and a semantic analysis result; determines the game scene type and the element information in the description information according to the semantic analysis result, and generates a matching relationship between the game scene type and the element information; determines a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship; when the type of the first conversion language and the type of the second conversion language are inconsistent, matches the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language to obtain a first matching value and a second matching value; determines the language type corresponding to the larger matching value of the first matching value and the second matching value as the target language type, and determines the local language associated with the target language type as the target conversion language. In the above scheme, the target conversion language can be determined based on the matching relationship between the game scene type and the element information, the target character, and the typesetting information of the description information, thereby improving the accuracy and recognition efficiency of the target conversion language.

[0067] In one embodiment, when the types of the first conversion language and the second conversion language are consistent, the types of the first conversion language and the second conversion language are determined to be the target language types, and the native language associated with the target language type is determined to be the target conversion language. It is understood that when the types of the first conversion language and the second conversion language are consistent, the first conversion language and the second conversion language can be considered accurate. In this case, there is no need to verify the accuracy of the first conversion language and the second conversion language through other conditions. It can be directly determined that the types of the first conversion language and the second conversion language are both the target language types, and the native language associated with the target language type is determined to be the target conversion language. In the above scheme, when the types of the first conversion language and the second conversion language are consistent, the target conversion language type and the target conversion language can be directly determined, thereby ensuring the accuracy of the target conversion language while improving the efficiency of determining the target conversion language.

[0068] Figure 2 This is a flow chart of a method for calculating a first matching value and a second matching value provided in an embodiment of the present application. Figure 2 Shown, including:

[0069] Step S1041 : Match the text direction and paragraph format corresponding to the description information with the first text direction and first paragraph format corresponding to the first conversion language to obtain a first matching result, and calculate a first matching value based on a preset weight coefficient and the first matching result.

[0070] Step S1042: Match the text direction and paragraph format corresponding to the description information with the second text direction and second paragraph format corresponding to the second conversion language to obtain a second matching result, and calculate a second matching value based on the preset weight coefficient and the second matching result.

[0071] Among them, the text direction is used to indicate the direction in which the fonts are arranged on the page or screen. Different languages ​​have different corresponding text directions, such as Chinese is typeset from left to right, and text is typeset from top to bottom. Paragraph formatting refers to various formats for setting the appearance and layout of paragraphs in a document, such as line spacing, paragraph indentation, and paragraph spacing. The paragraph formats corresponding to texts in different languages ​​may be different. For example, the line spacing corresponding to Chinese is usually 1.5 times or a fixed value of 18 points, while the line spacing corresponding to English is usually 1.5 times or a fixed value of about 12 points. Therefore, the target language type can be determined by matching the paragraph format and text direction corresponding to the conversion language with the paragraph format and text direction corresponding to the description information, and determining the corresponding matching values.

[0072] In one embodiment, the text direction and paragraph format corresponding to the description information are matched with the first text direction and first paragraph format corresponding to the first conversion language, respectively, to obtain a first matching result, and a first matching value is calculated based on a preset weight coefficient and the first matching result. The text direction and paragraph format corresponding to the description information are matched with the second text direction and second paragraph format corresponding to the second conversion language, respectively, to obtain a second matching result, and a second matching value is calculated based on the preset weight coefficient and the second matching result. For example, if the first matching result is a text direction match and a paragraph format mismatch, and the second matching result is a text direction match and a paragraph format match, and the preset weight coefficient corresponding to the text direction is 0.3 and the weight coefficient corresponding to the paragraph format is 0.7, then the first matching value calculated based on the first matching result and the preset weight coefficient is 0.3, and the second matching value calculated based on the second matching result and the preset weight coefficient is 1.0.

[0073] In an embodiment of the present application, the text direction and paragraph format corresponding to the description information are matched with the first text direction and first paragraph format corresponding to the first conversion language, respectively, to obtain a first matching result, and a first matching value is calculated based on a preset weight coefficient and the first matching result; the text direction and paragraph format corresponding to the description information are matched with the second text direction and second paragraph format corresponding to the second conversion language, respectively, to obtain a second matching result, and a second matching value is calculated based on the preset weight coefficient and the second matching result. In the above scheme, by matching the text direction and the paragraph format separately, and calculating the first matching value and the second matching value based on the preset weight coefficient and the corresponding matching result, the accuracy of determining the matching value is improved, and accordingly, the accuracy of subsequently determining the target language type based on the matching value is improved.

[0074] In one embodiment, the paragraph format includes an alignment and an indentation; accordingly, matching the paragraph format corresponding to the description information with the first paragraph format includes: matching the indentation and alignment of the description information with the first indentation and the first alignment, respectively; accordingly, matching the paragraph format corresponding to the description information with the second paragraph format includes: matching the indentation and alignment of the description information with the second indentation and the second alignment, respectively. Alignment refers to the arrangement of text, graphics, or other elements on a page or in a container, used to determine their horizontal or vertical positional relationship, such as left alignment, right alignment, justification, and center alignment. Different alignments are pre-set for different languages. For example, the alignment of Chinese in a requirements document is usually center alignment, while the alignment of English in a requirements document is usually justification. Indentation refers to the method of indenting paragraph text in document typesetting, such as first line indent, hanging indent, left indent, and right indent. Different languages ​​have different corresponding indentation methods. For example, Chinese usually has a first line indent of 2 characters, while English usually has a first line indent of 0.5 inches. The first indentation mode is associated with the first conversion language, the first alignment mode is associated with the first conversion language, the second indentation mode is associated with the second conversion language, and the second alignment mode is associated with the second conversion language.

[0075] In one embodiment, the indentation and alignment of the description information are matched with the first indentation and alignment corresponding to the first conversion language, and the indentation and alignment of the description information are matched with the second indentation and alignment corresponding to the second conversion language, thereby improving the accuracy of determining the target language type based on paragraph format matching.

[0076] Figure 3 This is a flow chart of a method for generating a target requirement document provided by an embodiment of the present application, such as Figure 3 Shown, including:

[0077] Step S201: Send the target conversion language and the requirement document to the client, and receive feedback information from the client in real time. If the feedback information is confirmation information, continue to translate the requirement document according to the target conversion language to generate a target requirement document.

[0078] Step S202: If the feedback information is adjustment information, generate conversion language mapping configuration information corresponding to the target conversion language according to the language to be converted in the adjustment information and save the mapping configuration information; translate the requirement document based on the language to be converted to generate the target requirement document.

[0079] Among them, feedback information is used to indicate the information sent by the client to the server or related system regarding user operations or experience feedback, which may include user experience data and user operation information, etc. Optionally, the feedback information may also include confirmation information and adjustment information, wherein the confirmation information is used to indicate whether the client recognizes the received information, so the confirmation information includes "OK" and "Reset" information, etc., and the adjustment information is used to indicate the customer's feedback on the received information or the proposed adjustment strategy, etc. Mapping configuration information refers to the mapping relationship between document languages, such as the mapping relationship between "Chinese" and "zh-CN". Translating a requirement document refers to the process of converting the requirement document in the current language into the target conversion language. The target requirement document refers to the requirement document generated by the system after the translation of the requirement document is completed, which is easy for the local development team to understand. The language to be converted is the target language that meets the client's needs and is manually generated by the client based on the received target conversion language and the corresponding requirement document.

[0080] Figure 4 This is a process diagram of a method for generating a target requirement document provided by an embodiment of the present application, such as Figure 4 As shown, the requirements document processing system sends the target conversion language and the requirements document to the client and receives feedback from the client in real time. If the feedback is confirmation information, the target conversion language can be considered to meet the client's management requirements. Therefore, the requirements document can be further translated according to the target conversion language to generate the target requirements document. If the feedback is adjustment information, it can be considered that the target conversion language does not meet the client's management requirements. Therefore, mapping configuration information corresponding to the target conversion language and the target conversion language can be generated based on the adjustment information. The mapping configuration information is saved, and the requirements document is translated based on the target conversion language to generate a target requirements document that is easy for the client to understand. The target requirements document is then sent to the client.

[0081] The embodiment of the present application sends the target conversion language to the client and receives feedback from the client in real time. If the feedback is confirmation information, the requirements document is translated according to the target conversion language to generate the target requirements document. If the feedback is adjustment information, the translation language corresponding to the target conversion language is generated based on the adjustment information and the conversion language mapping configuration information is saved. The requirements document is translated based on the target conversion language to generate the target requirements document. In the above scheme, the target conversion language can be determined by combining the system and manual methods, which ensures both flexibility and accuracy in the target conversion language confirmation.

[0082] Figure 5 This is a schematic diagram of the structure of a target conversion language determination device provided by an embodiment of the present application. Figure 5 Shown, including:

[0083] An information processing module 31 is used to obtain a demand document, parse the demand document to obtain description information, and perform character recognition and semantic analysis on the description information to obtain target characters and semantic analysis results;

[0084] A matching relationship generating module 32 is configured to determine the game scene type and the element information in the description information according to the semantic analysis result, and generate a matching relationship between the game scene type and the element information;

[0085] a conversion language determining module 33, configured to determine a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship;

[0086] an information matching module 34 configured to, when the type of the first conversion language and the type of the second conversion language are inconsistent, match the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language, respectively, to obtain a first matching value and a second matching value;

[0087] The target conversion language determination module 35 is configured to determine the language type corresponding to the larger matching value between the first matching value and the second matching value as the target language type, and determine the local language associated with the target language type as the target conversion language.

[0088] The embodiment of the present application obtains a requirement document, parses the requirement document to obtain description information, performs character recognition and semantic analysis on the description information, and obtains a target character and a semantic analysis result; determines the game scene type and the element information in the description information according to the semantic analysis result, and generates a matching relationship between the game scene type and the element information; determines a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship; when the type of the first conversion language and the type of the second conversion language are inconsistent, matches the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language to obtain a first matching value and a second matching value; determines the language type corresponding to the larger matching value of the first matching value and the second matching value as the target language type, and determines the local language associated with the target language type as the target conversion language. In the above scheme, the target conversion language can be determined based on the matching relationship between the game scene type and the element information, the target character, and the typesetting information of the description information, thereby improving the accuracy and recognition efficiency of the target conversion language.

[0089] In one possible implementation, the matching relationship generating module 32 is configured to:

[0090] According to the semantic analysis results, a target keyword in the description information that matches the semantics of a preset keyword is identified, and the game scene type corresponding to the target keyword is determined. According to the semantic analysis results, target information in the description information used to represent a game element is determined, and the target information is determined to be element information.

[0091] In one possible implementation, the information matching module 34 is configured to:

[0092] Matching the text direction and paragraph format corresponding to the description information with the first text direction and first paragraph format corresponding to the first conversion language, respectively, to obtain a first matching result, and calculating a first matching value based on a preset weight coefficient and the first matching result;

[0093] The text direction and paragraph format corresponding to the description information are matched with the second text direction and second paragraph format corresponding to the second conversion language to obtain a second matching result, and a second matching value is calculated according to the preset weight coefficient and the second matching result.

[0094] In one possible implementation, the paragraph format includes alignment and indentation; the information matching module 34 is used to:

[0095] Match the indentation mode and alignment mode of the description information with the first indentation mode and the first alignment mode respectively;

[0096] The indentation mode and alignment mode of the description information are matched with the second indentation mode and the second alignment mode respectively.

[0097] In one possible implementation, the information processing module 31 is configured to:

[0098] Identifying punctuation marks or currency symbols in the description information and determining target punctuation marks or target currency symbols;

[0099] The conversion language associated with the target punctuation mark is determined to be the first conversion language or the conversion language associated with the target currency symbol is determined to be the first conversion language.

[0100] In one possible implementation, the target conversion language determination module 35 is configured to:

[0101] When the type of the first conversion language and the type of the second conversion language are consistent, the type of the first conversion language and the type of the second conversion language are determined to be target language types, and the local language associated with the target language types is determined to be the target conversion language.

[0102] In one possible implementation, the target requirements document module is used to:

[0103] Sending the target conversion language and the requirements document to the client, and receiving feedback information from the client in real time. If the feedback information is confirmation information, continuing to translate the requirements document according to the target conversion language to generate a target requirements document;

[0104] In a case where the feedback information is adjustment information, mapping configuration information is generated based on the to-be-converted language in the adjustment information and the conversion language corresponding to the target conversion language, and the mapping configuration information is saved. The requirement document is translated based on the to-be-converted language to generate a target requirement document.

[0105] An embodiment of the present application further provides an electronic device, and the target conversion language determination device may be integrated with a target conversion language determination apparatus provided in an embodiment of the present application. Figure 6 This is a schematic diagram of a target conversion language determination device provided by an embodiment of the present application, with reference to Figure 6 The target conversion language determination device includes: an input device 43, an output device 44, a memory 42, and one or more processors 41; the memory 42 is used to store one or more programs; when the one or more programs are executed by the one or more processors 41, the one or more processors 41 implement the target conversion language determination method provided in the above embodiment. The input device 43, the output device 44, the memory 42, and the processor 41 can be connected by a bus or other means. Figure 6 The bus connection is taken as an example.

[0106] The memory 42 is a computing device-readable storage medium that can be used to store software programs, computer executable programs, and modules, such as the program instructions / modules corresponding to the target conversion language determination method provided in any embodiment of the present application. The memory 42 may mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and application programs required for at least one function; the data storage area can store data created based on the use of the device, etc. In addition, the memory 42 may include a high-speed random access memory and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 42 may further include a memory remotely located relative to the processor 41, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0107] The input device 43 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 44 may include a display device such as a display screen.

[0108] The processor 41 executes the software programs, instructions and modules stored in the memory 42 to perform various functional applications and data processing of the device, that is, to implement the above-mentioned target conversion language determination method.

[0109] The target conversion language determination apparatus, device, and computer provided above can be used to execute the target conversion language determination method provided in any of the above embodiments, and have corresponding functions and beneficial effects.

[0110] The present application also provides a storage medium storing computer-executable instructions. When executed by a computer processor, the computer-executable instructions are used to perform the target conversion language determination method provided in the above embodiment. The target conversion language determination method includes:

[0111] Obtaining a requirement document, parsing the requirement document to obtain description information, and performing character recognition and semantic analysis on the description information to obtain target characters and semantic analysis results;

[0112] Determining the game scene type and the element information in the description information according to the semantic analysis result, and generating a matching relationship between the game scene type and the element information;

[0113] determining a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship;

[0114] When the type of the first conversion language and the type of the second conversion language are inconsistent, matching the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language, respectively, to obtain a first matching value and a second matching value;

[0115] The language type corresponding to the larger matching value between the first matching value and the second matching value is determined as a target language type, and the local language associated with the target language type is determined as a target conversion language.

[0116] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROMs, floppy disks, or tape drives; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disks or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or it may be located in a different second computer system that is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that can reside in different locations (e.g., in different computer systems connected via a network). The storage medium can store program instructions (e.g., embodied as a computer program) that can be executed by one or more processors.

[0117] Of course, the computer executable instructions of the storage medium containing computer executable instructions provided in the embodiment of the present application are not limited to the target conversion language determination method described above, and can also execute related operations in the target conversion language determination method provided in any embodiment of the present application.

[0118] The target conversion language determination apparatus, device, and storage medium provided in the above embodiments can execute the target conversion language determination method provided in any embodiment of the present application. For technical details not fully described in the above embodiments, please refer to the target conversion language determination method provided in any embodiment of the present application.

[0119] The above are only preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions that are possible for those skilled in the art will not depart from the scope of protection of the present application. Therefore, although the present application has been described in more detail through the above embodiments, the present application is not limited to the above embodiments and may include more other equivalent embodiments without departing from the concept of the present application. The scope of the present application is determined by the scope of the claims.

Claims

1. A method for determining a target conversion language, characterized in that: include: Obtaining a requirement document, parsing the requirement document to obtain description information, and performing character recognition and semantic analysis on the description information to obtain target characters and semantic analysis results; Determining the game scene type and the element information in the description information according to the semantic analysis result, and generating a matching relationship between the game scene type and the element information; determining a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship; When the type of the first conversion language and the type of the second conversion language are inconsistent, matching the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language, respectively, to obtain a first matching value and a second matching value; The language type corresponding to the larger matching value between the first matching value and the second matching value is determined as a target language type, and the local language associated with the target language type is determined as a target conversion language.

2. The method for determining the target conversion language according to claim 1, wherein: The determining of the game scene type and the element information in the description information according to the semantic analysis result includes: According to the semantic analysis results, a target keyword in the description information that matches the semantics of a preset keyword is identified, and the game scene type corresponding to the target keyword is determined. According to the semantic analysis results, target information in the description information used to represent a game element is determined, and the target information is determined to be element information.

3. The method for determining the target conversion language according to claim 1, wherein: The step of matching the layout information of the description information with the first layout information corresponding to the first conversion language and the second layout information corresponding to the second conversion language to obtain a first matching value and a second matching value includes: Matching the text direction and paragraph format corresponding to the description information with the first text direction and first paragraph format corresponding to the first conversion language, respectively, to obtain a first matching result, and calculating a first matching value based on a preset weight coefficient and the first matching result; The text direction and paragraph format corresponding to the description information are matched with the second text direction and second paragraph format corresponding to the second conversion language to obtain a second matching result, and a second matching value is calculated according to the preset weight coefficient and the second matching result.

4. The method for determining the target conversion language according to claim 3, wherein: The paragraph format includes alignment and indentation; Accordingly, matching the paragraph format corresponding to the description information with the first paragraph format includes: Match the indentation mode and alignment mode of the description information with the first indentation mode and the first alignment mode respectively; Accordingly, matching the paragraph format corresponding to the description information with the second paragraph format includes: The indentation mode and alignment mode of the description information are matched with the second indentation mode and the second alignment mode respectively.

5. The method for determining the target conversion language according to claim 1, wherein: Performing character recognition on the description information to determine target characters includes: Identifying punctuation marks or currency symbols in the description information and determining target punctuation marks or target currency symbols; Accordingly, determining the first conversion language associated with the target character includes: The conversion language associated with the target punctuation mark is determined to be the first conversion language or the conversion language associated with the target currency symbol is determined to be the first conversion language.

6. The method for determining the target conversion language according to claim 1, wherein: include: When the type of the first conversion language and the type of the second conversion language are consistent, the type of the first conversion language and the type of the second conversion language are determined to be target language types, and the local language associated with the target language types is determined to be the target conversion language.

7. The method for determining the target conversion language according to claim 1, wherein: After determining the local language associated with the target language type as the target conversion language, the method further includes: Sending the target conversion language and the requirements document to the client, and receiving feedback information from the client in real time. If the feedback information is confirmation information, continuing to translate the requirements document according to the target conversion language to generate a target requirements document; In a case where the feedback information is adjustment information, mapping configuration information is generated based on the to-be-converted language in the adjustment information and the conversion language corresponding to the target conversion language, and the mapping configuration information is saved. The requirement document is translated based on the to-be-converted language to generate a target requirement document.

8. A target conversion language determination device, characterized in that: include: An information processing module is used to obtain a demand document, parse the demand document to obtain description information, and perform character recognition and semantic analysis on the description information to obtain target characters and semantic analysis results; a matching relationship generating module, configured to determine the game scene type and the element information in the description information according to the semantic analysis result, and generate a matching relationship between the game scene type and the element information; a conversion language determining module, configured to determine a first conversion language associated with the target character and a second conversion language corresponding to the matching relationship; an information matching module, configured to, when the type of the first conversion language and the type of the second conversion language are inconsistent, match the typesetting information of the description information with the first typesetting information corresponding to the first conversion language and the second typesetting information corresponding to the second conversion language, respectively, to obtain a first matching value and a second matching value; The target conversion language determination module is configured to determine the language type corresponding to the larger matching value between the first matching value and the second matching value as the target language type, and determine the local language associated with the target language type as the target conversion language.

9. An electronic device, comprising: one or more processors; The storage device is configured to store one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors implement the target conversion language determination method according to any one of claims 1 to 7.

10. A storage medium storing computer-executable instructions, wherein the computer-executable instructions, when executed by a computer processor, are used to perform the target conversion language determination method according to any one of claims 1 to 7.