A game processing method, device and equipment, and a readable storage medium

By constructing a knowledge graph of the game, the commentary topics and dimensional links of game matches are predicted, generating logically sound commentary content. This solves the problem of low accuracy in commentary content in existing technologies and achieves efficient game commentary.

CN123148663APending Publication Date: 2026-11-24TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510684002.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-24
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In existing technologies, game commentary relies on large language models to generate commentary content with poor logic and low accuracy, resulting in high commentary costs.

Method used

Construct a thematic and dimensional knowledge graph based on the game's historical matches. Generate commentary content through commentary content analysis, predict the commentary themes and dimensional links of game matches, and call the commentary prediction model to generate logically sound commentary content.

Benefits of technology

Improve the accuracy of commentary content, reduce commentary costs, and ensure that the generated content matches the actual game situation, thus reducing human intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123148663A_ABST
    Figure CN123148663A_ABST
Patent Text Reader

Abstract

This application discloses a game processing method, apparatus, device, and readable storage medium. The method includes: acquiring first commentary content and a first commentary topic corresponding to the first commentary content in a game; acquiring a pre-configured topic knowledge graph and dimension knowledge graph; predicting a second commentary topic for the game based on the first commentary topic and the topic knowledge graph; acquiring a dimension graph corresponding to the second commentary topic from the dimension knowledge graph, and determining the commentary dimension link of the second commentary topic based on the dimension graph corresponding to the second commentary topic; the commentary dimension link of the second commentary topic is used to indicate the commentary approach of the second commentary topic; and, based on the first commentary topic, the second commentary topic, and the commentary dimension link of the second commentary topic, calling a commentary prediction model to perform commentary prediction processing to obtain second commentary content corresponding to the second commentary topic. Using this application, the accuracy of commentary content can be improved and the commentary cost reduced in game commentary scenarios.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, and in particular to a game processing method, apparatus, device, and readable storage medium. Background Technology

[0002] The rapid development of electronic device technologies and the widespread adoption of the internet have provided the gaming industry, which relies on electronic devices, with a tremendous opportunity for growth. In particular, the emergence of smart terminals such as smartphones and tablets has further highlighted the gaming industry's development potential.

[0003] In esports, games are often complex in operation, fast-paced, and intensely competitive, requiring commentators to explain the game footage and help viewers understand gameplay and strategies. In practice, game commentary requires experienced professional commentators, leading to high costs. To reduce these costs, existing solutions have abandoned manual commentary and instead introduced Large Language Models (LLMs) to generate commentary based on relevant game background knowledge. However, this method relies solely on background knowledge, resulting in superficial commentary with poor logic and a lack of accuracy in capturing the actual gameplay. Therefore, there is an urgent need for a game commentary solution that can reduce costs while improving accuracy. Summary of the Invention

[0004] This application provides a game processing method, apparatus, device, and readable storage medium, which can improve the accuracy of commentary content and reduce commentary costs in game commentary scenarios.

[0005] One embodiment of this application provides a game processing method, including:

[0006] Get the first commentary content in a game and the first commentary topic corresponding to the first commentary content;

[0007] Obtain pre-configured topic knowledge graph and dimension knowledge graph. The topic knowledge graph contains at least one topic node and at least one first connecting edge. A topic node represents a commentary topic of the game, and a first connecting edge is used to connect two topic nodes with a commentary connection relationship. The dimension knowledge graph contains a dimension graph corresponding to each commentary topic. A dimension graph contains at least one dimension node and at least one second connecting edge. A dimension node represents a commentary dimension, and a second connecting edge is used to connect two dimension nodes.

[0008] Based on the first commentary topic and the topic knowledge graph, predict the second commentary topic for the game;

[0009] Obtain the dimension graph corresponding to the second explanation topic from the dimension knowledge graph, and determine the explanation dimension link of the second explanation topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic; the explanation dimension link of the second explanation topic is used to indicate the explanation approach of the second explanation topic;

[0010] Based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, the explanation prediction model is invoked to perform explanation prediction processing to obtain the second explanation content corresponding to the second explanation topic.

[0011] One embodiment of this application provides a game processing device, including:

[0012] The first acquisition module is used to acquire the first commentary content in the game and the first commentary topic corresponding to the first commentary content;

[0013] The second acquisition module is used to acquire pre-configured topic knowledge graphs and dimension knowledge graphs. The topic knowledge graph contains at least one topic node and at least one first connecting edge. A topic node represents a commentary topic of the game, and a first connecting edge is used to connect two topic nodes with a commentary connection relationship. The dimension knowledge graph contains a dimension graph corresponding to each commentary topic. A dimension graph contains at least one dimension node and at least one second connecting edge. A dimension node represents a commentary dimension, and a second connecting edge is used to connect two dimension nodes.

[0014] The topic prediction module is used to predict the second topic of the game based on the first commentary topic and the topic knowledge graph;

[0015] The link determination module is used to obtain the dimension graph corresponding to the second explanation topic from the dimension knowledge graph, and determine the explanation dimension link of the second explanation topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic; the explanation dimension link of the second explanation topic is used to indicate the explanation idea of ​​the second explanation topic;

[0016] The explanation prediction module is used to call the explanation prediction model to perform explanation prediction processing based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, so as to obtain the second explanation content corresponding to the second explanation topic.

[0017] In one embodiment, the pre-configuration process for a topic knowledge graph includes:

[0018] Retrieve the game's historical game matches and their commentary content. The commentary content refers to a sequence of commentary content consisting of K historical commentary items, where K is a positive integer. The commentary content sequence contains at least one content pair, which consists of any two adjacent historical commentary items in the commentary content sequence.

[0019] Each historical explanation is analyzed to obtain the content analysis results for each historical explanation.

[0020] Based on the content analysis results of each historical commentary, at least one commentary theme for the game is determined;

[0021] Based on the content analysis results of each historical explanation, the explanation connection relationship corresponding to each content pair is determined; the explanation connection relationship corresponding to the content pair refers to the connection relationship from the first historical explanation content to the second historical explanation content in the content pair, and the first historical explanation content is located before the second historical explanation content in the explanation content sequence;

[0022] Construct a thematic knowledge graph based on at least one explanatory theme of the game and the corresponding explanatory connections for each set of content.

[0023] In one embodiment, based on the content analysis results of each historical commentary, the specific implementation method of at least one commentary theme of the game is determined, including:

[0024] Based on the content analysis results of each historical commentary, the content theme of each historical commentary is determined;

[0025] By performing topic filtering on K content topics according to topic filtering rules, at least one explanatory topic for the game can be obtained.

[0026] In one embodiment, a specific implementation of constructing a topic knowledge graph based on at least one explanatory theme of the game and the corresponding explanatory connections between each set of content includes:

[0027] For each commentary topic, a corresponding topic node is constructed to obtain at least one topic node for the game;

[0028] Based on the two historical explanatory contents contained in each content pair, query the two topic nodes corresponding to the content pair in at least one topic node;

[0029] Based on the explanatory connections corresponding to each content pair, a first connection edge is established between the two topic nodes corresponding to the content pair to obtain a topic knowledge graph.

[0030] In one embodiment, the pre-configuration process for the dimension graph corresponding to each explanatory topic includes:

[0031] Choose any one of the at least one explanatory topics as the target explanatory topic;

[0032] Among the K historical commentaries, those whose content theme is the target commentary theme are identified as the target historical commentary content corresponding to the target commentary theme;

[0033] An explanatory dimension analysis was conducted on the target historical explanatory content to obtain at least one explanatory dimension of the target explanatory theme in the target historical explanatory content;

[0034] According to the dimensional sorting rules, sort the target explanatory topic in at least one explanatory dimension in the target historical explanatory content to obtain the explanatory dimension sequence corresponding to the target explanatory topic;

[0035] For each explanatory dimension in the explanatory dimension sequence, construct a corresponding dimension node, and establish a second connection edge between at least one dimension node according to the arrangement order of each explanatory dimension in the explanatory dimension sequence to obtain the dimension graph corresponding to the target explanatory topic.

[0036] In one embodiment, the topic prediction module predicts the specific implementation of the second commentary topic for a game match based on the first commentary topic and the topic knowledge graph, including:

[0037] Obtain the game progress corresponding to the first commentary content, and determine the corresponding progress weight for each theme node according to the game progress;

[0038] The topic node corresponding to the first explanation topic is determined as the target topic node, and W first neighbor nodes of the target topic node are obtained in the topic knowledge graph; W is an integer, and the first neighbor node refers to the topic node that has a first connecting edge with the target topic node;

[0039] The first number of first connecting edges between the target topic node and W first neighbor nodes is counted, and the second number corresponding to each first neighbor node is counted. The second number corresponding to the first neighbor node refers to the number of first connecting edges between the first neighbor node and the target topic node.

[0040] Based on the ratio between the first quantity and the second quantity corresponding to each first neighbor node, determine the corresponding edge weight for each first neighbor node;

[0041] Based on the progress weight of each topic node and the edge weight of each first neighbor node, the optimal topic node is determined from at least one topic node, and the commentary topic corresponding to the optimal topic node is determined as the second commentary topic of the game.

[0042] In one embodiment, the specific implementation of the topic prediction module determining the optimal topic node from at least one topic node based on the progress weight corresponding to each topic node and the edge weight corresponding to each first neighbor node includes:

[0043] The progress weight and the corresponding edge weight of each first neighbor node are summed to obtain the comprehensive weight of each first neighbor node.

[0044] The remaining topic nodes are identified by taking at least one topic node and excluding the W first neighbor nodes, and the progress weights corresponding to the remaining topic nodes are identified as the comprehensive weights corresponding to the remaining topic nodes.

[0045] The topic node with the highest overall weight among at least one topic node is identified as the optimal topic node.

[0046] In one embodiment, the link determination module determines the specific implementation of the explanation dimension link of the second explanation topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic, including:

[0047] The dimension diagram corresponding to the second explanatory topic is identified as the target dimension diagram;

[0048] Based on the connection relationship between at least one dimension node in the second explanation topic and the target dimension graph, N dimension nodes of the second explanation topic are determined sequentially from the target dimension graph, where N is a positive integer;

[0049] Obtain the explanatory dimension represented by each of the N dimension nodes to get N explanatory dimensions;

[0050] Based on the chronological order of the N dimension nodes, the N explanation dimensions are sequentially connected to obtain the explanation dimension link of the second explanation topic.

[0051] In one embodiment, the N dimension nodes of the second explanatory topic include dimension node S. i , where i is a positive integer less than or equal to N;

[0052] The link determination module determines the specific implementation methods of N dimension nodes of the second explanation topic from the target dimension graph based on the connection relationships between at least one dimension node in the second explanation topic and the target dimension graph, including:

[0053] When i equals 1, based on the connection relationships between at least one dimension node in the target dimension graph, calculate the out-degree of each node corresponding to at least one dimension node in the target dimension graph, and determine the dimension node with the largest out-degree in the target dimension graph as dimension node S. i ;

[0054] When i is greater than 1, obtain dimension node S in the target dimension graph based on the connection relationship between at least one dimension node in the target dimension graph. i-1 Find R second neighbor nodes and count the number of each second neighbor node and the dimension node S. i-1 The third number of second connecting edges exists between them, and the second neighbor node with the largest third number is determined as the dimension node S. i R is an integer, and the second neighbor node refers to the node in dimension S. i-1 There are dimension nodes with a second connecting edge between them.

[0055] In one embodiment, the explanation prediction module, based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, calls the explanation prediction model to perform explanation prediction processing to obtain the specific implementation of the second explanation content corresponding to the second explanation topic, including:

[0056] Based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, predictive prompt words are constructed;

[0057] Input the prediction prompts into the explanation prediction model;

[0058] The interpretation prediction model is used to perform interpretation prediction processing to obtain the second interpretation content corresponding to the second interpretation topic.

[0059] In one embodiment, the explanation prediction module constructs a specific implementation of predictive prompts based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, including:

[0060] Obtain the game knowledge graph; the game knowledge graph contains resource nodes corresponding to at least one game resource in the game and at least one third connection edge, each third connection edge is used to connect two resource nodes that have a resource relationship;

[0061] Based on the game data and the game knowledge graph, determine the background knowledge corresponding to the game.

[0062] Based on the first commentary topic, the second commentary topic, the commentary dimension link of the second commentary topic, and the background knowledge of the game, predictive prompts are constructed.

[0063] In one embodiment, the explanation and prediction module determines the specific implementation method of the game background knowledge corresponding to the game match based on the game match data and the game knowledge graph, including:

[0064] Based on the game data, obtain the target game resources involved in the game.

[0065] In the game knowledge graph, the resource node corresponding to the target game resource is identified as the target resource node;

[0066] In the game knowledge graph, obtain the third neighbor node of the target resource node; the third neighbor node is a resource node that has a third connecting edge with the target resource node.

[0067] The game knowledge reflected in the knowledge subgraph formed by the target resource node and the third neighbor node is determined as the game background knowledge corresponding to the game.

[0068] In one embodiment, the pre-configuration process for a game knowledge graph includes:

[0069] Obtain at least one game resource included in the game, as well as a game guide;

[0070] Based on the resource attributes of each game resource, determine at least one attribute association relationship between game resources;

[0071] Determine the resource utilization relationship between at least one game resource based on the game strategy;

[0072] For each game resource, construct a corresponding resource node, and based on the attribute association and resource utilization relationship between at least one game resource, construct a corresponding third connection edge between at least one resource node.

[0073] One embodiment of this application provides a computer device, including: a processor and a memory;

[0074] The memory stores a computer program, which, when executed by a processor, causes the processor to perform the methods described in the embodiments of this application.

[0075] One aspect of this application provides a computer-readable storage medium storing a computer program, which includes program instructions. When executed by a processor, the program instructions perform the methods described in this application.

[0076] One aspect of this application provides a computer program product comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the method provided in one aspect of the embodiments of this application.

[0077] In this application embodiment, a game commentary scheme based on a knowledge graph is provided. In this scheme, for any game, a knowledge graph can be constructed based on a large amount of commentary content from historical game matches of the game. The knowledge graph may include a topic knowledge graph and a dimension knowledge graph. The topic knowledge graph contains topic nodes for different commentary topics, and the connection relationship between these topic nodes can reflect the commentary connection relationship between different commentary topics. The dimension knowledge graph contains a dimension graph corresponding to each commentary topic. The dimension graph contains dimension nodes for different commentary dimensions under the commentary topic, and the connection relationship between these dimension nodes can reflect the relationship between different commentary dimensions in this commentary topic. Based on pre-configured topic knowledge graphs and dimensional knowledge graphs, whenever it is necessary to predict commentary content for a game match, the latest commentary content for that game match (referred to as the first commentary content) can be obtained in real time, along with the corresponding commentary topic (referred to as the first commentary topic). Subsequently, based on the first commentary topic and the topic knowledge graph, the next commentary topic for the game match (referred to as the second commentary topic) can be predicted. After predicting the second commentary topic, the commentary dimensional link of the second commentary topic can be determined based on the connection relationship between at least one dimensional node in the dimensional graph corresponding to the second commentary topic (this commentary dimensional link is used to indicate the commentary approach of the second commentary topic). Finally, based on the first commentary topic, the second commentary topic, and the commentary dimensional link of the second commentary topic, the commentary prediction model can be invoked to predict the commentary content corresponding to the second commentary topic (the second commentary content). As can be seen, this application constructs a thematic knowledge graph and a dimensional knowledge graph for the game using real game commentary content. This allows for accurate prediction of commentary themes for game matches, and the identification of precise commentary dimensional links that align with the actual commentary logic for the predicted themes. These commentary dimensional links essentially provide the commentary prediction model with a logical framework, which the model can use as a reference to generate corresponding commentary content for the predicted themes. This ensures that the generated commentary content is logically sound, better matches the actual game situation, and is more accurate. Furthermore, the entire commentary content generation process requires no manual intervention, significantly reducing commentary costs. In summary, this application can improve the accuracy of commentary content and reduce commentary costs in game commentary scenarios. Attached Figure Description

[0078] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0079] Figure 1 This is a schematic diagram of the architecture of a game commentary system provided in an exemplary embodiment of this application;

[0080] Figure 2 This is a flowchart illustrating a pre-configured topic knowledge graph provided in an embodiment of this application;

[0081] Figure 3 This is a schematic diagram illustrating the construction of a topic knowledge graph according to an embodiment of this application;

[0082] Figure 4 This is a schematic diagram illustrating the construction of a dimension graph for an explanatory topic, provided in an embodiment of this application.

[0083] Figure 5 This is a flowchart illustrating a game processing method provided in an embodiment of this application;

[0084] Figure 6 This is a schematic diagram provided by an embodiment of the present application, illustrating the sequential selection of N dimension nodes for a second explanatory topic;

[0085] Figure 7 This is a logical architecture diagram for generating commentary game content provided in an embodiment of this application;

[0086] Figure 8 This is a schematic diagram of the structure of a game processing device provided in an embodiment of this application;

[0087] Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Detailed Implementation

[0088] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0089] For ease of understanding, the relevant technical terms used in the embodiments of this application will be introduced first below.

[0090] Knowledge Graph:

[0091] A knowledge graph is a graph data structure consisting of nodes and edges. Nodes typically represent entities, such as people, places, organizations, and events; edges represent relationships between different entities. Knowledge graphs can integrate large amounts of knowledge in a structured way and can be understood and reasoned at the semantic level.

[0092] Large Language Model (LLM):

[0093] Large language models are artificial intelligence models trained on massive amounts of text data using deep learning. They consist of artificial neural networks with many parameters (typically billions or more weights) and are capable of understanding, generating, and reasoning about natural language. At their core, they learn the statistical patterns of language through a Transformer architecture (or a similar structure), thereby enabling them to perform various tasks such as text generation, question answering, translation, and code writing.

[0094] Prompt:

[0095] The instructions, questions, or text input into a large language model guide it to generate specific outputs. It is a key medium for human-computer interaction, determining the model's response direction, style, and content quality.

[0096] Supervised Fine-tuning (SFT):

[0097] SFT refers to further training a pre-trained model (such as an LLM model) using labeled task-specific data (i.e., supervised data) to adapt the model to downstream tasks (such as text classification, question answering, and summarization). Its core purpose is to improve the model's performance in a specific domain by fine-tuning the parameters of the pre-trained model.

[0098] The design concept of this application will be introduced below.

[0099] The gaming industry boasts a vast number of esports tournaments, where different teams battle it out in matches. Because games are often complex to operate, fast-paced, and intensely competitive, commentators are needed to explain the gameplay and strategies employed by different teams. In practice, game commentary requires experienced professional commentators, leading to high costs. To reduce these costs, traditional solutions have abandoned human commentary and instead introduced Large Language Models (LLMs) to generate commentary based on relevant game background knowledge. However, this approach relies solely on background information, resulting in superficial, illogical, and inaccurate commentary that doesn't accurately reflect the actual gameplay. In other words, traditional methods produce commentary with low accuracy.

[0100] Therefore, to improve the accuracy of commentary content in game commentary scenarios and reduce commentary costs, this application provides a knowledge graph-based game commentary solution. This solution can generate commentary content for game matches based on the commentary approach of real game commentators, resulting in more logical commentary that better matches the actual situation of the current game match. The knowledge graph-based game commentary solution provided in this application generally includes six consecutive steps:

[0101] 1. Based on the commentary content of historical game matches, a commentary knowledge graph is configured for the game. This commentary knowledge graph includes a thematic knowledge graph and a dimensional knowledge graph. The commentary content of historical game matches refers to the live commentary content of those historical game matches. This application can obtain each historical game match commentated by the commentator and the complete commentary content for each historical game match. For the commentator's commentary content of historical game matches, this application can perform content analysis to extract different commentary themes (e.g., team status, team background, tactical suggestions, etc.) and the commentary connection relationships between different commentary themes (e.g., transitional relationships, causal relationships, progressive relationships, etc.). For each commentary theme obtained by analysis, this application can construct a corresponding theme node, thus forming different theme nodes. Then, based on the commentary connection relationships between the different commentary themes obtained by analysis, corresponding connecting edges can be constructed between these theme nodes (the connecting edges between theme nodes are referred to as the first connecting edges in this application). This yields a thematic knowledge graph. Furthermore, for each thematic knowledge graph, this application analyzes the game commentary content to obtain the commentary dimensions (i.e., the angles / dimensions from which the commentator explains the topic, such as resource availability, status, and combat descriptions) presented by the commentator. For each commentary dimension under a given theme, this application constructs corresponding dimension nodes, forming different dimension nodes for that theme. Then, based on the order in which the commentary dimensions under that theme are explained, corresponding connecting edges (called second connecting edges) can be constructed between these dimension nodes, resulting in a dimension graph for that theme. Merging (e.g., aggregating) the dimension graphs from various commentary themes yields the game's dimensional knowledge graph. For specific construction methods of the thematic and dimensional knowledge graphs, please refer to subsequent sections. Figure 2The relevant descriptions in the corresponding embodiments; 2. Obtain the first commentary content and the first commentary theme corresponding to the first commentary content in the game match. In this application, a game match refers to a game match that needs to be commented on. The first commentary content refers to a segment of content that comments on the current game screen of the game match. The current game screen refers to the visual screen presented at the current progress of the game match. The first commentary theme refers to the theme obtained after content analysis of the first commentary content (i.e., the theme reflected by the first commentary content); 3. Predict the second commentary theme of the game match based on the first commentary theme and the theme knowledge graph. The second commentary theme is the theme that will be commented on after the first commentary theme; 4. Obtain the dimension graph corresponding to the second commentary theme from the dimension knowledge graph, and determine the commentary dimension link of the second commentary theme based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second commentary theme. The explanation dimension link can be used to indicate the explanation ideas of the second explanation topic; 5. Based on the first explanation topic, the second explanation topic and the explanation dimension link of the second explanation topic, the unlock prediction model can be called to perform explanation prediction processing and output the second explanation content corresponding to the second explanation topic (that is, a piece of content used to explain the second explanation topic).

[0102] Therefore, in game commentary scenarios, this application does not rely on simple game background knowledge to predict commentary content. Instead, it constructs a game commentary knowledge graph based on real-world commentary content from historical game matches. This knowledge graph reflects the commentary topics and the commentary dimensions for each topic. Thus, when predicting commentary content for a real-time game match, it can be done based on the commentary knowledge graph. The generated commentary content has stronger logic, better matches the actual game situation, and improves accuracy. At the same time, the entire prediction process does not require human intervention, which can save labor costs and reduce commentary costs.

[0103] Furthermore, the knowledge graph-based game explanation scheme provided in this application embodiment can be executed by a computer device, which may include a terminal or a server, and may also include both a terminal and a server. To facilitate understanding of the knowledge graph-based game explanation scheme provided in this application embodiment, the following is combined with... Figure 1 The game commentary system shown introduces the application scenarios involved in the embodiments of this application; wherein, Figure 1 This is a schematic diagram of the architecture of a game commentary system provided in an exemplary embodiment of this application, such as... Figure 1 As shown, the game commentary system includes terminal 101 and server 102; wherein:

[0104] 1) Terminal 101 may include the terminal device used by the user. Of course, depending on the application scenario and field in which the game commentary solution is applied, the terminal providing the game commentary solution in this application embodiment may vary. Terminal devices may include, but are not limited to: smartphones (such as smartphones running the Android system, or smartphones running the Internetworking Operating System (IOS), tablet computers, portable personal computers, mobile Internet devices (MIDs), in-vehicle devices, head-mounted smart home devices, and smart voice interaction devices, etc. This application embodiment does not limit the type of terminal device, which is stated here.

[0105] For example, the terminal device can be a tablet computer. In this implementation, the game commentary solution provided in this application embodiment can be deployed on the tablet computer. The tablet computer continuously generates corresponding commentary content for the real-time changing game screen according to the game commentary solution provided in this application, and outputs the commentary content. In this way, users watching the game using the tablet computer can understand the gameplay, the game strategies adopted by the teams participating in the game, and other information through the tablet computer. As another example, in a smart vehicle scenario, the game commentary solution provided in this application embodiment is deployed as an in-vehicle application in the vehicle device; the type of the in-vehicle application may include, but is not limited to, video, music, etc.

[0106] An application can refer to a computer program designed to perform one or more specific tasks. Classifying applications according to different dimensions (such as how they run and their functions) can yield different types of the same application. For example, based on how they run, applications can include, but are not limited to: clients installed on a terminal, small programs that can be used without downloading and installation (as subroutines of the client), and World Wide Web (Web) applications opened through a browser. Another example is based on their functional type, which can include, but is not limited to: instant messaging (IM) applications, interactive content applications, audio applications, or video applications. Instant messaging applications refer to applications that facilitate instant communication and social interaction over the internet, and can include, but are not limited to: applications with communication functions, map applications with interactive functions, and game applications. Interactive content applications are applications capable of content interaction, such as sharing platforms, personal spaces, and news applications. Audio applications are applications that implement audio functions over the internet, and can include, but are not limited to: music applications with music playback and editing capabilities, radio applications with radio playback capabilities, or live streaming applications with live streaming capabilities. A video application is an application that can play videos. Video applications can include, but are not limited to, applications that play short videos (videos are often short, such as a few seconds or a few minutes), applications that play long videos (such as movies or TV series, which are often longer), and so on.

[0107] Of course, the game commentary solution provided in this application embodiment can be deployed directly on a device (such as a tablet computer) or outside of an application, as described above, or it can be deployed on a device or application in the form of a plugin. This application embodiment does not limit the carrier for deploying the game commentary solution.

[0108] 2) Server 102 can be a server corresponding to the terminal, used to interact with the terminal to provide computing and application service support. Specifically, this server is a backend server corresponding to the application deployed in the terminal, used to interact with the terminal to provide computing and application services for the application. Server 102 can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.

[0109] The terminal 101 and the server 102 can be directly or indirectly connected via wired or wireless communication, and this application does not impose any limitations on this. Furthermore, this application does not limit the number of terminals and servers; Figure 1 The number of terminals 101 and servers 102 is only a single example. In actual applications, multiple servers may be distributed in a distributed manner. This is just a brief explanation.

[0110] Based on the game commentary scheme and system architecture described above, the following points should also be noted:

[0111] ①The embodiments of this application mentioned above Figure 1 The system shown is for the purpose of more clearly illustrating the technical solutions of the embodiments of this application and does not constitute a limitation on the technical solutions provided by the embodiments of this application. Those skilled in the art will understand that with the evolution of system architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of this application are also applicable to similar technical problems. For example, the above describes an application scenario of the game commentary solution, using the execution subject "computer device" of this application, which includes a terminal and a server, as an example, where the terminal and server jointly execute the game commentary solution provided by the embodiments of this application. It should be understood that in practical applications, the computer device can also be a terminal or a server, meaning that it supports the terminal or server executing the game commentary solution provided by the embodiments of this application independently.

[0112] ② The data collection and processing in this application embodiment should strictly comply with the requirements of relevant laws and regulations. Obtaining personal information requires the knowledge or consent of the individual (or a legal basis for information acquisition), and subsequent data use and processing should be carried out within the scope of laws, regulations, and the authorization of the personal information subject. For example, when this application embodiment is applied to specific products or technologies, such as obtaining game data from user participation, the user's permission or consent is required, and the collection, use, and processing of related data must comply with the relevant laws, regulations, and standards of the relevant regions.

[0113] Based on the game explanation scheme described above, this application proposes a more detailed game processing method. This method is based on a game explanation knowledge graph, which includes a topic knowledge graph and a dimensional knowledge graph. For ease of understanding, the process of pre-configuring the topic knowledge graph and the dimensional knowledge graph will be described first below. Please refer to... Figure 2 , Figure 2 This is a flowchart illustrating a pre-configured topic knowledge graph provided in an embodiment of this application. The process involves the pre-configuration of dimensional knowledge graphs, which can be executed by computer devices in the aforementioned system, such as terminals and / or servers. Figure 2 As shown, the process of pre-configuring a topic knowledge graph may include at least the following steps S201-S205:

[0114] Step S201: Obtain the game's historical game matches and the match commentary content of the historical game matches. The match commentary content refers to the commentary content sequence consisting of K historical commentary content, where K is a positive integer. The commentary content sequence contains at least one content pair, which is composed of any two adjacent historical commentary content in the commentary content sequence.

[0115] In the present application, a commentary knowledge graph can be configured for a game based on commentary content of historical game matches of the game, where the commentary knowledge graph includes a thematic knowledge graph and a dimensional knowledge graph. A historical game match refers to a past match that has been completed in the game and recorded by the system or players, and such a match usually includes data such as basic match information (e.g., participating players, match time, win / loss result, etc.) and detailed statistical data (e.g., detailed operation records). The commentary content of a historical game match refers to human commentary content for the entire match. For example, if game events occurring sequentially in a historical game match include game event 1, game event 2, game event 3, and game event 4, the commentary audio of a commentator for game event 1 can be obtained, and converted into text to obtain the commentary content for game event 1 (which may be referred to as historical commentary content in this application). Similarly, commentary audio for game event 2, game event 3, and game event 4 can be obtained and converted into text to obtain the historical commentary content for game event 2, the historical commentary content for game event 3, and the historical commentary content for game event 4. The historical commentary content for game event 1, game event 2, game event 3, and game event 4 can be sorted according to the chronological order of their occurrence (specifically, from earliest to latest), and the obtained commentary content sequence can be used as the commentary content for the historical game match.

[0116] Since the commentary content of a historical game match in the present application is human commentary content, there may be many colloquial words (e.g., words like "hahaha"), homophonic words with different characters (e.g., "Alan" should be in the commentary audio, but the converted commentary content is the text "Alan" in Chinese characters), and other erroneous words. Based on this, after obtaining the commentary content of a historical game match, the present application can clean and filter the commentary content to remove various erroneous words contained in the commentary content. The process of cleaning and filtering the commentary content can be implemented by calling a mature LLM model (e.g., GPT-4, LLaMA, etc.). Specifically, a prompt can be constructed for each piece of historical commentary content in the commentary content, where the prompt is used to instruct the model to correct the historical commentary content. In this way, after the prompt is input into the model, the model can output the corrected commentary content (i.e., the cleaned and filtered commentary content). For example, the prompt constructed for the historical commentary content can be as shown in Table 1:

[0117] Table 1

[0118]

[0119] After inputting the prompts shown in Table 1 into the model, the clearly filtered explanations output by the model are shown in Table 2:

[0120] Table 2

[0121]

[0122]

[0123] As shown in Table 2, comparing the commentary content before and after cleaning, it is evident that by cleaning and filtering the historical commentary content, unsuitable or potentially ambiguous words (such as "Tong Jiabao" and the interjection "a") can be deleted / filtered out. A thematic knowledge graph can then be constructed based on the cleaned commentary content.

[0124] As can be seen from the above, each historical game commentary content (cleaned game commentary content) in this application contains multiple historical commentary contents (commentary contents of multiple game events). Taking the case where the historical game commentary content contains K (K is a positive integer) historical commentary contents as an example, the game commentary content is actually a sequence of commentary contents composed of K historical commentary contents. In this sequence of commentary contents, the earlier the game event occurs, the higher the ranking of its corresponding historical commentary content will be. For example, in a historical game match, game events 1, 2, 3, and 4 occur sequentially. The historical commentary for game event 1 is historical commentary content 1, the historical commentary for game event 2 is historical commentary content 2, the historical commentary for game event 3 is historical commentary content 3, and the historical commentary for game event 4 is historical commentary content 4. Then, the game commentary for this historical game match can be {historical commentary content 1, historical commentary content 2, historical commentary content 3, historical commentary content 4}.

[0125] In a sequence of explanatory content, any two adjacent historical explanatory contents can be combined to form a content pair. Thus, the sequence of explanatory content can be combined to form at least one content pair. For example, in the explanatory content sequence {historical explanatory content 1, historical explanatory content 2, historical explanatory content 3, historical explanatory content 4}, if historical explanatory content 1 and historical explanatory content 2 are adjacent in the sequence, they can be combined to form a content pair <historical explanatory content 1, historical explanatory content 2>; similarly, if historical explanatory content 2 and historical explanatory content 3 are adjacent in the sequence, they can be combined to form a content pair <historical explanatory content 2, historical explanatory content 3>.

[0126] Step S202: Perform content analysis on each historical explanation to obtain the content analysis result for each historical explanation.

[0127] In this application, for each historical explanatory content in the explanatory content sequence, this application can perform content analysis to obtain the content analysis result of each historical explanatory content. The content analysis result may include the core direction (or key point) focused on by the historical explanatory content, whether there are connecting words or related words (e.g., but, because, so, although, only, even if, etc.) in the historical explanatory content.

[0128] Step S203: Based on the content analysis results of each historical commentary, determine at least one commentary theme for the game.

[0129] In this application, based on the content analysis results of each historical commentary, at least one commentary theme can be determined for the game. The specific process is as follows: First, based on the content analysis results of each historical commentary, the theme of each historical commentary can be determined. To distinguish it, this application refers to the theme of the historical commentary as a content theme. For example, a historical commentary might be titled "This veteran is making his third attempt at the championship; can he break the curse now?" By analyzing this historical commentary, we can extract that its core focus is "describing the player's background." Therefore, the content analysis results of this historical commentary will contain its core focus. By summarizing this core focus, we can obtain the theme of this historical commentary as "the player's story."

[0130] Since the historical commentary content contains K elements, parsing it yields K content themes. These K themes may include topics unrelated to the game itself or duplicate themes, making them overly disorganized. Therefore, the K content themes can be filtered according to the pre-configured theme filtering rules in this application. These rules may include low-frequency filtering, irrelevant filtering, and similarity merging rules. The low-frequency filtering rule can filter out content themes that appear less frequently among the K content themes. It should be understood that different historical commentary content may share the same theme. Thus, the same content theme may appear multiple times among the K content themes (meaning that multiple historical commentary content pieces share the same content theme). Based on this, the frequency of a content theme can be counted (the number of times it appears among the K content themes, or in other words, how many historical commentary content pieces share the same content theme). Content themes with low frequencies (e.g., below a preset frequency threshold) can be considered low-frequency themes and filtered out, resulting in the low-frequency filtered content themes. Then, the irrelevant filtering rule can be used to filter out themes unrelated to the game. In practical applications, commentators don't always focus solely on the game itself. Occasionally, they might discuss unrelated topics, such as dreams versus reality, or trending topics and anecdotes. These off-the-scenes comments are more about external matters than the game itself and can be considered irrelevant, thus they should be filtered out. Based on this, background data about the game (e.g., gameplay mechanics, equipment, etc.) can be obtained. This game data can be used to calculate the correlation between each topic and the game. Topics with low correlation (e.g., below a preset correlation threshold) can be discarded. The relevant topics are filtered out to obtain irrelevant content topics. Subsequently, similarity merging rules can be used to merge the irrelevant content topics into one content topic. For example, if two content topics are "battle scene" and "battle process", both of which describe the relevant overview of the battle, they are very similar and can be merged into one content topic called "battle overview". Through similarity merging, we can obtain the similarly merged content topics, which can serve as at least one explanatory topic for the game.

[0131] It should be noted that the number of historical game matches is not limited to one. Therefore, this application can obtain multiple historical game matches. For each historical game match, the content theme of each historical commentary can be parsed and extracted. Then, all content themes of all historical game matches can be summarized, and the summarized content themes can be filtered according to the theme filtering rules to finally obtain at least one commentary theme of the game.

[0132] Step S204: Based on the content analysis results of each historical explanation content, determine the explanation connection relationship corresponding to each content pair; the explanation connection relationship corresponding to the content pair refers to the connection relationship from the first historical explanation content in the content pair to the second historical explanation content, where the first historical explanation content is located before the second historical explanation content in the explanation content sequence.

[0133] In this application, for each content pair, the explanatory connection relationship corresponding to each content pair can be determined based on the content parsing results of each historical explanatory content in the explanatory content sequence. This explanatory connection relationship refers to the connection relationship from the first historical explanatory content to the second historical explanatory content in the content pair. The first historical explanatory content precedes the second historical explanatory content in the explanatory content sequence. For example, for the above content pair <historical explanatory content 1, historical explanatory content 2>, in the explanatory content sequence {historical explanatory content 1, historical explanatory content 2, historical explanatory content 3, historical explanatory content 4, historical explanatory content 5, historical explanatory content 6, historical explanatory content 7, historical explanatory content 8, historical explanatory content 9, historical explanatory content 1, historical explanatory content 2, historical explanatory content 3 ...2, historical explanatory content 3, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, historical explanatory content 2, In Explanation Content 4}, if Historical Explanation Content 1 precedes Historical Explanation Content 2, then Historical Explanation Content 1 can be considered the first historical explanation content in <Historical Explanation Content 1, Historical Explanation Content 2>, and Historical Explanation Content 2 can be considered the second historical explanation content in <Historical Explanation Content 1, Historical Explanation Content 2>. Based on the content analysis results of Historical Explanation Content 1 and Historical Explanation Content 2, the explanation connection relationship from Historical Explanation Content 1 to Historical Explanation Content 2 can be determined. This relationship can be used as the explanation connection relationship corresponding to <Historical Explanation Content 1, Historical Explanation Content 2>.

[0134] It should be understood that when a commentator is providing commentary on a game match, game events occur continuously until the match ends. Correspondingly, the commentator's various historical commentary segments are also continuous. This application can analyze the transformation relationship between two adjacent historical commentary segments (the relationship from one historical commentary segment to the next). This transformation relationship can serve as the commentary connection relationship between these two historical commentary segments, that is, the commentary connection relationship corresponding to the combined content. Commentary connection relationships can include, but are not limited to, at least: transitional relationships, causal relationships, parallel relationships, progressive relationships, explanatory relationships, generalization relationships, and topic jump relationships. For example, regarding the above content pair <historical commentary content 1, historical commentary content 2>, historical commentary content 2 is used to further explain historical commentary content 1. Therefore, the transformation relationship from historical commentary content 1 to historical commentary content 2 can be an explanatory relationship, and the commentary connection relationship corresponding to this content pair <historical commentary content 1, historical commentary content 2> can also be an explanatory relationship.

[0135] Step S205: Construct a topic knowledge graph based on at least one explanatory topic of the game and the corresponding explanatory connection relationship of each group of content.

[0136] In this application, after determining the corresponding explanation connections for each pair of content in the explanation content sequence, a topic knowledge graph can be constructed based on at least one explanation theme of the game and the explanation connections for each pair of content. The specific process may include at least the following: First, a corresponding topic node can be constructed for each explanation theme, thereby obtaining at least one topic node of the game; further, according to the two historical explanation contents contained in each pair of content, the two topic nodes corresponding to the content pair can be queried in at least one topic node. The two topic nodes corresponding to a pair of content refer to the two topic nodes corresponding to the explanation themes of the two historical explanation contents contained in the content pair. It should be noted that through the above topic filtering process, the content topics of certain historical commentary content may be filtered out (for example, if the content topic of a certain historical commentary content is an irrelevant or low-frequency topic, then that content topic will be filtered out). For historical commentary content with filtered content topics, no corresponding commentary topic can be found in at least one of the game's commentary topics. In this case, the content pair can also be filtered out, because this content pair cannot contribute to the connection between the commentary topics. In addition, through the above topic filtering process, the content topics of certain historical commentary content may be merged due to similarity. For historical commentary content with merged content topics, the content topic of the historical commentary content can be changed to the merged commentary topic. In other words, the commentary topic corresponding to the historical commentary content refers to the merged commentary topic.

[0137] Furthermore, after obtaining the two topic nodes corresponding to each content pair, a first connection edge can be established between the two topic nodes based on the explanatory connection relationship corresponding to each content pair. For example, for the content pair <historical explanatory content 1, historical explanatory content 2>, the explanatory topic corresponding to historical explanatory content 1 is topic A, and the explanatory topic corresponding to historical explanatory content 2 is topic B. The topic node corresponding to topic A is topic node A, and the topic node corresponding to topic B is topic node B. The explanatory connection relationship corresponding to the content pair <historical explanatory content 1, historical explanatory content 2> is a turning point. Therefore, a first connection edge (from topic node A to topic node B) can be established between topic node A and topic node B, and the explanatory connection relationship of this first connection edge can be marked as a turning point. In this way, through this first connection edge, it can be shown that there is a connection relationship from topic A to topic B. Through the explanatory connection relationship corresponding to each content pair, first connection edges can be continuously established between the corresponding two topic nodes to form a topic knowledge graph. To facilitate understanding, the process of constructing a topic knowledge graph is explained below with reference to the accompanying diagram. Please refer to the diagram as well. Figure 3 , Figure 3 This is a schematic diagram illustrating the construction of a topic knowledge graph provided in an embodiment of this application, such as... Figure 3As shown, suppose the sequence of commentary content is {historical commentary content 1, historical commentary content 2, historical commentary content 3, historical commentary content 4, historical commentary content 5}, where the commentary connection between historical commentary content 1 and historical commentary content 2 is causal, the commentary connection between historical commentary content 2 and historical commentary content 3 is progressive, the commentary connection between historical commentary content 3 and historical commentary content 4 is explanatory, and the commentary connection between historical commentary content 4 and historical commentary content 5 is a transition. Assume that at least one commentary theme in the game includes commentary theme A, commentary theme B, commentary theme C, and commentary theme D, with their corresponding theme nodes being theme node A, theme node B, theme node C, and theme node D, respectively. For the two adjacent historical commentary contents, historical commentary content 1 and historical commentary content 2, the commentary theme corresponding to historical commentary content 1 is commentary theme A, and the commentary theme corresponding to historical commentary content 2 is commentary theme D. B. Thus, a connecting edge (the first connecting edge) can be established between topic node A and topic node B, pointing from topic node A to topic node B, and the explanatory connection relationship represented by this first connecting edge can be labeled as causal. Similarly, for the two adjacent historical explanatory contents 2 and 3, where the explanatory topic corresponding to historical explanatory content 2 is explanatory topic B and the explanatory topic corresponding to historical explanatory content 3 is explanatory topic D, a connecting edge (the first connecting edge) can be established between topic node B and topic node D, pointing from topic node B to topic node D, and the explanatory connection relationship represented by this first connecting edge can be labeled as progressive. Similarly, based on the explanatory connection relationship between historical explanatory content 3 and historical explanatory content 4, and between historical explanatory content 4 and historical explanatory content 5, corresponding first connecting edges can be established between the corresponding two topic nodes, and the corresponding explanatory connection relationships can be labeled. This allows the construction of... Figure 3 The topic knowledge graph shown.

[0138] The process of constructing a topic knowledge graph has been described through steps S201-S205 above. The following will elaborate on the process of constructing a dimensional knowledge graph. This dimensional knowledge graph consists of dimensional graphs for each explanatory topic. The process of configuring the corresponding dimensional graph for any given explanatory topic will be described using an arbitrary explanatory topic as an example. Specifically, for distinction, any explanatory topic among at least one explanatory topic used as an example can be referred to as a target explanatory topic. For a target explanatory topic, from K historical explanatory content, we can obtain each historical explanatory content whose content topic is the target explanatory topic. The explanatory topics corresponding to these historical explanatory content are all the target explanatory topic, and these historical explanatory content can be referred to as the target historical explanatory content corresponding to the target explanatory topic. Furthermore, for each target historical explanatory content, we can perform explanatory dimension analysis to obtain the target explanatory topic in the target historical explanatory content. At least one explanatory dimension in the explanatory content, wherein explanatory dimension analysis refers to parsing the target historical explanatory content to extract the various dimensions / angles described by the target historical explanatory content when explaining the target explanatory topic. In other words, this application can analyze the target historical explanatory content to determine from which angles or aspects the target explanatory topic is described in the target historical explanatory content. Any descriptive angle / aspect obtained from the analysis can be called an explanatory dimension of the target explanatory topic. At least one explanatory dimension of the target explanatory topic can be obtained from the analysis of a target historical explanatory content.

[0139] Furthermore, after obtaining at least one explanatory dimension for each target historical explanatory content regarding the target explanatory topic, the at least one explanatory dimension in the target historical explanatory content can be sorted according to a dimension sorting rule, thereby obtaining a sequence of explanatory dimensions corresponding to the target explanatory topic. This dimension sorting rule can refer to a rule that sorts explanatory dimensions according to their position of occurrence; the earlier an explanatory dimension appears, the earlier it will appear in the sequence. For example, consider a target historical commentary that reads, "The resources in this area are scarce and difficult to find. However, each member of Team X currently has excellent equipment and is in good condition; finding resources will only take a short time." Analyzing this commentary reveals two dimensions: "Resource Situation" (obtained from the statement "The resources in this area are scarce and difficult to find") and "Team Condition" (obtained from the statement "Each member of Team X currently has excellent equipment and is in good condition; finding resources will only take a short time"). It's clear that the content related to "Resource Situation" appears before the content related to "Team Condition" in this historical commentary. In other words, the text related to "Resource Situation" is read first in the historical commentary. Therefore, we can assume that the commentary dimension of "Resource Situation" appears before the commentary dimension of "Team Condition." Thus, the commentary dimension sequence for this target historical commentary should be {Resource Situation, Team Condition}. To give another example, consider a target's historical description: "The area has very few resources, making them difficult to find. Equipment A is especially scarce and even harder to find. However, each member of Team X currently has excellent equipment and is in good condition, so finding resources will only take a short time."Taking this as an example, by analyzing the historical explanation of this target, we can determine that the explanatory dimensions involved in the historical explanation include "resource situation" (analyzed from the statement "The amount of resources in this area is very small and difficult to find"), "resource situation" (analyzed from the statement "Especially equipment A is extremely rare and even more difficult to find"), and "team status" (analyzed from the statement "Each member of team X currently has very good equipment and is in good status; finding resources will only take a little time"), it is evident that in the historical explanation of this target, the content corresponding to the first "resource situation" appears before the content corresponding to the second "resource situation," or in other words, the text content corresponding to the first "resource situation" is read first, and the second "resource situation" is read later. The corresponding content appears before the content corresponding to "team status." In other words, in the target historical commentary, the text corresponding to the second "supply situation" is read first. Based on this, it can be assumed that the second "supply situation" commentary dimension appears before the "team status" commentary dimension. Therefore, the commentary dimension sequence corresponding to this target historical commentary content should be {supply situation, supply situation, team status}. It is evident that when analyzing the commentary dimensions involved in a certain historical commentary content, this application analyzes them according to the statements within the historical commentary content. A complete statement (a complete statement ends with a preset symbol, such as a period, question mark, exclamation mark, etc.) corresponds to one commentary dimension. Two adjacent commentary dimensions can be the same or different.

[0140] Furthermore, for each explanatory dimension sequence, corresponding dimension nodes can be created for each explanatory dimension contained in the sequence. These created dimension nodes are then sequentially connected according to the order of the explanatory dimensions in the sequence. The edge connecting any two dimension nodes is referred to as a second connection edge. That is, second connection edges can be sequentially established between the corresponding dimension nodes according to the order of the explanatory dimensions. Using the above method, corresponding dimension nodes can be created for at least one explanatory dimension in each target historical explanatory content, and these dimension nodes can be sequentially connected to form a dimension graph corresponding to the target explanatory topic. It is worth noting that if two adjacent explanatory dimensions in the explanatory dimension sequence are the same, then the corresponding two dimension nodes are the same dimension node. When establishing the second connection edge, a second connection edge can be established that originates from this dimension node and points to itself.

[0141] To facilitate understanding of the specific process of constructing a corresponding dimension diagram for a given explanatory topic, the following will provide an illustrative example with accompanying figures. Please refer to the attached figures as well. Figure 4 , Figure 4 This is a schematic diagram illustrating the construction of a dimension graph for an explanatory topic, provided in an embodiment of this application. In conjunction with the above... Figure 3 In the corresponding embodiment, it is assumed that the sequence of commentary content for a historical game match is {historical commentary content 1, historical commentary content 2, historical commentary content 3, historical commentary content 4, historical commentary content 5}, and at least one commentary theme of the game includes commentary theme A, commentary theme B, commentary theme C and commentary theme D. This section uses explanation topic B as an example to illustrate the process of constructing the corresponding dimension graph for explanation topic B. For explanation topic B, we can obtain historical explanation content with explanation topic B from historical explanation content 1, historical explanation content 2, historical explanation content 3, historical explanation content 4, and historical explanation content 5. The historical explanation content with explanation topic B includes historical explanation content 2 and historical explanation content 4. For historical explanation content 2, by analyzing it, we can analyze that the explanation dimensions involved in historical explanation content 2 include: explanation dimension a, explanation dimension b, and explanation dimension c, where explanation dimension a appears before explanation dimension b, and explanation dimension b appears before explanation dimension c. By analyzing historical explanation content 4, we can analyze that the explanation dimensions involved in historical explanation content 4 include: explanation dimension a, explanation dimension b, and explanation dimension d, where explanation dimension a appears before explanation dimension b, and explanation dimension b appears before explanation dimension d. By sorting the various explanation dimensions contained in historical explanation content 2 according to the dimension sorting rules, the explanation dimension sequence can be obtained as {explanation dimension a, explanation dimension b, explanation dimension c}. Similarly, by sorting the various explanation dimensions contained in historical explanation content 4, the explanation dimension sequence can be obtained as {explanation dimension a, explanation dimension b, explanation dimension d}. Based on the explanation dimension sequence {explanation dimension a, explanation dimension b, explanation dimension c} of historical explanation content 2, corresponding dimension nodes a, b, and c can be created for explanation dimension a. Then, according to the arrangement order of each explanation dimension in the explanation dimension sequence {explanation dimension a, explanation dimension b, explanation dimension c}, a second connection edge (a directed edge from dimension node a to dimension node b, which can be used to indicate that explanation dimension a appears before explanation dimension b) can be established between dimension node a and dimension node b, and a second connection edge (a directed edge from dimension node b to dimension node c, which can be used to indicate that explanation dimension b appears before explanation dimension c) can be established between dimension node b and dimension node c. This forms a structure like... Figure 4The dimension graph shown can be called an intermediate dimension graph for the dimension construction of the explanation of historical explanation content 2. Based on this intermediate dimension graph, and based on the explanation dimension sequence {explanation dimension a, explanation dimension b, explanation dimension d} of historical explanation content 4, corresponding dimension nodes a, b, and d can be created for explanation dimension a. It should be noted that since the intermediate dimension graph constructed based on historical explanation content 2 already contains dimension node a corresponding to explanation dimension a and dimension node b corresponding to explanation dimension b, there is no need to create them again. Dimension node a and dimension node b can be reused, and only dimension node d needs to be created for explanation dimension d.

[0142] Then, according to the arrangement order of each explanation dimension in the explanation dimension sequence {explanation dimension a, explanation dimension b, explanation dimension d}, a second connecting edge (a directed edge from dimension node a to dimension node b) can be established between dimension node a and dimension node b. Since a directed edge from dimension node a to dimension node b already exists in the intermediate dimension graph, it is not necessary to create it again. A second connecting edge (a directed edge from dimension node b to dimension node d) can be established between dimension node b and dimension node d. This directed edge can be used to indicate that explanation dimension b appears before explanation dimension d. In this way, the final dimension graph representing explanation topic B can be formed.

[0143] Following the above method, a corresponding dimensional graph can be configured for each commentary topic in the game. By aggregating the dimensional graphs of all commentary topics together, a dimensional knowledge graph for the game can be formed. As can be seen, the dimensional knowledge graph in this application contains a dimensional graph corresponding to each commentary topic. This dimensional graph contains dimensional nodes corresponding to at least one commentary dimension of that topic, and one or more second connecting edges. Each second connecting edge is directed, representing the commentary order between two corresponding commentary dimensions.

[0144] It should be noted that the processes described above—analyzing the content of each historical commentary to obtain its theme, analyzing the connection between adjacent historical commentaries, analyzing the commentary dimensions involved in any historical commentary, and ranking the commentary dimensions involved in a historical commentary—can all be implemented using a mature large-scale LLM model (e.g., the GPT-4-turbo model). It should also be noted that the number of historical game matches in this application may be multiple. Therefore, for each commentary theme, corresponding historical commentary content can be obtained from multiple game commentaries, and a dimension graph corresponding to that commentary theme can be constructed based on these multiple historical commentaries in the manner described above.

[0145] In this embodiment, by constructing a thematic knowledge graph for the game, the commentary themes that commentators can use when commentating on a game match can be clearly presented, as well as the logical order between these themes. Furthermore, by constructing a corresponding dimension graph for each commentary theme, the dimensional path of a live commentator explaining each theme can be intuitively reflected. For example, the commentary might begin with dimension 1, followed by dimension 2, and finally dimension 3. Thus, the thematic and dimensional knowledge graphs reflect the logical storyline of a live commentator's game match (including coherent commentary themes and the dimensional path of each theme). Using this as a reference for subsequent commentary prediction models when predicting commentary content for game matches improves the logical consistency of the predicted content, making the predicted content more coherent and better aligned with the game match.

[0146] Based on the pre-configured topic knowledge graph and dimensional knowledge graph described above, the game processing method proposed in this application will be described in detail below with reference to the accompanying drawings. This game processing method refers to a method for predicting the narration content based on the topic knowledge graph and dimensional knowledge graph.

[0147] Please see Figure 5 , Figure 5 This is a flowchart illustrating a game processing method provided in an embodiment of this application. The flowchart may refer to the flow of a game explanation scheme provided in an embodiment of this application. This game processing method can be executed by a computer device in the aforementioned system, such as a terminal and / or a server; the game processing method may include at least the following steps S501-S505:

[0148] Step S501: Obtain the first commentary content and the first commentary topic corresponding to the first commentary content in the game.

[0149] In this application, a game match is a complete competition or game process from start to finish. A game match is the basic unit of game execution, with clearly defined start and end conditions. In this application, a game match refers to an ongoing match / competition, which can be called a real-time match or an in-progress match. That is, a match / game in which players are currently participating, where no winner has been determined. It possesses real-time and dynamic characteristics. In this state, the game rules remain in effect, players participating in the match can perform real-time actions, and the match result is not yet determined. The actions of teammates or opponents directly affect the progress and outcome of the match.

[0150] The commentary content in this application refers to a segment of text that describes or comments on the dynamics of a game match after real-time analysis using this solution. This commentary content not only describes what events occurred during the game but also explains why these events occurred (from the perspectives of game strategies, mistakes, etc.). In other words, the commentary content is updated synchronously with the game's progress, continuously describing and explaining the latest game events. Through this commentary content, users watching the game can understand the strategies employed, key operations, and the game's direction. The first commentary content in this application refers to the content that comments on or describes the latest game events occurring during the game. That is, this application obtains the latest commentary content for the game match, and this commentary content is used to explain the latest game events occurring during the game; this application uses this as the first commentary content. For this first commentary content, a mature large-scale LLM model can be used (for example, GPT-4-turbo can be used as the model for content parsing in this application; this model only needs to have language understanding capabilities, and this application does not impose any restrictions) to parse the first commentary content, so as to extract the core direction (or key points) focused on by the first commentary content. Summarizing the core direction can yield the theme (i.e., the focus of the description) corresponding to the first commentary content. This application refers to the theme corresponding to the first commentary content as the first commentary theme. For example, if the first commentary content is "This veteran is making his third attempt at the championship; can he break the curse now?", by parsing the commentary content, the core direction focused on by the commentary content can be extracted as "describing the player's background." Based on this, the theme of the commentary content can be summarized as "the player's story."

[0151] In the process of parsing the first explanatory content using a large-scale LLM model, a cue word can be constructed for the first explanatory content. This cue word is used to instruct the large-scale LLM model to parse the first explanatory content and output the corresponding topic. After inputting this cue word into the large-scale LLM model (e.g., the GPT-4-turbo model mentioned above), the large-scale LLM model can parse the first explanatory content based on its own language understanding ability and output the topic it predicts for the first explanatory content. The topic output by the model can be used as the first explanatory topic corresponding to the first explanatory content.

[0152] It is worth noting that in the actual commentary scenario of a game match, the start of the game match should be either a self-introduction by the commentator or a team introduction for the participating teams. Based on this, this application can use a commentary prediction model to pre-output the introduction content for the game match (including the commentator's introduction, the introduction of the participating teams, and the introduction of the game's relevant background, etc.). This introduction content can serve as the first segment of the commentary for this game match, and the first commentary content can also be this introduction content. The commentary theme of this introduction content is "Game-related Introduction". Subsequently, a second segment of commentary content can be generated based on this introduction content and the corresponding commentary theme. A third segment of commentary content can be generated based on this second segment of commentary content and the commentary theme of the second segment of commentary content, and so on until the end of the game match. In other words, at the start of a game, introductory content can be generated for that game, which is the first segment of commentary. As the game continues, this first segment of commentary can be used as the first segment of commentary, and a second segment of commentary can be generated based on this first segment. As the game continues, this second segment of commentary can be used as the first segment of commentary, and a third segment of commentary can be generated based on this first segment, and so on until the game ends.

[0153] Step S502: Obtain the pre-configured topic knowledge graph and dimension knowledge graph. The topic knowledge graph contains at least one topic node and at least one first connecting edge. A topic node represents a commentary topic of the game, and a first connecting edge is used to connect two topic nodes with a commentary connection relationship. The dimension knowledge graph contains a dimension graph corresponding to each commentary topic. A dimension graph contains at least one dimension node and at least one second connecting edge. A dimension node represents a commentary dimension, and a second connecting edge is used to connect two dimension nodes.

[0154] For the pre-configuration process of the topic knowledge graph and dimensional knowledge graph in this application, please refer to the above. Figure 2 The relevant descriptions in the corresponding embodiments will not be repeated here.

[0155] Step S503: Based on the first commentary topic and the topic knowledge graph, predict the second commentary topic for the game.

[0156] In this application, based on the first commentary topic and the topic knowledge graph, the second commentary topic of the game can be predicted. This second commentary topic is the direction that will be commented on immediately following the first commentary content. In other words, this application can predict the direction from which the game will be commented on based on the first commentary topic and the topic knowledge graph. The predicted commentary direction is the next commentary topic, which this application refers to as the second commentary topic. The specific process of predicting the second commentary topic may include at least the following: First, the game progress corresponding to the first commentary content can be obtained. This game progress can refer to the degree of progress of the game from start to finish, reflecting the current stage, completion rate, and remaining content of the game. According to this real-time game progress, a corresponding progress weight can be dynamically determined for each topic node. The value range of the progress weight is 0 to 1. For example, in a particular game, the "parachuting" event typically occurs early in the match. Therefore, the theme node corresponding to the "parachuting" commentary topic can be assigned a higher weight in the early stages of the game. That is, when the game is in its early stages, the weight of the theme node corresponding to "parachuting" will be relatively large (e.g., 0.8). However, when the game is in its mid-to-late stages, the weight of the theme node corresponding to "parachuting" will be very small, close to 0 (e.g., 0.01). In other words, this application can dynamically allocate progress weights to the theme nodes corresponding to each commentary topic based on the real-time progress of the game and the potential timing of each commentary topic's appearance.

[0157] In the topic knowledge graph, the topic node corresponding to the first explanatory topic can be determined as the target topic node. W (W is an integer; in extreme cases, W is 0, indicating that the target topic node is not connected to any other topic node) neighbor nodes (referred to as first neighbor nodes in this application) are obtained from the topic knowledge graph. Each first neighbor node refers to a topic node that has a first connection edge with the target topic node. After obtaining W first neighbor nodes, the total number of first connection edges between the target topic node and the W first neighbor nodes can be counted (referred to as the first quantity). For example, using the above... Figure 3 Taking the topic knowledge graph shown as an example, assume the target topic node is topic node B. Topic node B has a first connecting edge with topic nodes A, C, and D. Based on this, topic nodes A, C, and D can all be the first neighbor nodes of topic node B. There is 1 first connecting edge between topic node B and topic node A, 1 first connecting edge between topic node B and topic node C, and 2 first connecting edges between topic node B and topic node D. Therefore, the total number of first connecting edges between topic node B and each of its first neighbor nodes is 4 (1+1+2), which is 4.

[0158] In addition to determining the first quantity, a second quantity can also be determined for each first neighbor node. The second quantity for any first neighbor node refers to the number of first connection edges between that first neighbor node and the target topic node. For example, as mentioned above... Figure 3 Taking the topic knowledge graph shown as an example, assuming the target topic node is topic node B, there are first connecting edges between topic node B and topic nodes A, C, and D. Based on this, topic nodes A, C, and D can all be the first neighbor nodes of topic node B. Among them, there are 2 first connecting edges between the first neighbor node D and topic node B, so the second number corresponding to the first neighbor node B is 2.

[0159] Furthermore, based on the ratio between the first quantity and the second quantity corresponding to each first neighbor node, the corresponding edge weight can be determined for each first neighbor node. This ratio refers to the ratio obtained by using the first quantity as the denominator and the second quantity corresponding to the first neighbor node as the numerator. For example, in the above... Figure 3 In the corresponding embodiment, it is assumed that the target topic node is topic node B. There are first connecting edges between topic node B and topic nodes A, C, and D. Based on this, topic nodes A, C, and D can all be the first neighbor nodes of topic node B. The first number of first connecting edges between topic node B and each of the first neighbor nodes is 4, and the second number of first neighbor nodes D is 2. Then the edge weight corresponding to the first neighbor node D is (2 / 4 = 0.5).

[0160] Based on the determined progress weights of each topic node and the edge weights of each first neighbor node, this application can determine the optimal topic node from at least one topic node according to these weights. For example, the progress weight and edge weight of each first neighbor node can be summed to obtain the comprehensive weight of each first neighbor node. For the topic nodes other than the W first neighbor nodes in the at least one topic node, they can all be identified as remaining topic nodes, and the progress weight of each remaining topic node can be determined as its comprehensive weight. Subsequently, the topic node with the largest comprehensive weight among the at least one topic nodes can be identified as the optimal topic node. The commentary topic corresponding to this optimal topic node can then be determined as the second commentary topic for the game.

[0161] Step S504: Obtain the dimension graph corresponding to the second explanation topic from the dimension knowledge graph, and determine the explanation dimension link of the second explanation topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic; the explanation dimension link of the second explanation topic is used to indicate the explanation idea of ​​the second explanation topic.

[0162] In this application, after determining the next commentary topic to be described for a game match, the dimensional graph corresponding to the second commentary topic can be obtained from the dimensional knowledge graph. Based on the dimensional graph corresponding to the second commentary topic, a commentary dimensional link is determined for the second commentary topic. This commentary dimensional link refers to a directed route composed of one or more commentary dimensions, which can indicate the commentary approach for the second commentary topic. For example, the commentary dimensional link is: commentary dimension w1 → commentary dimension w2 → commentary dimension w3. The commentary approach indicated by this commentary dimensional link is: first explain around commentary dimension w1, then explain around commentary dimension w2, and finally explain around commentary dimension w3.

[0163] The specific implementation process of determining the explanation dimension link of the second explanation topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic can include at least the following: First, for better distinction, the dimension graph corresponding to the second explanation topic can be determined as the target dimension graph; based on the connection relationship between the second explanation topic and at least one dimension node in the target dimension graph, N (N is a positive integer) dimension nodes of the second explanation topic can be determined sequentially from the target dimension graph. This process specifically includes the following five steps: 1. In the target dimension graph, count the out-degree of each dimension node. In a knowledge graph, the out-degree of a node refers to the number of directed edges originating from that node; in other words, it represents the total number of edges that directly point to other nodes from that node. According to this definition, in the target dimension graph, the out-degree of a dimension node refers to the number of second connecting edges originating from that dimension node. For example, in the above... Figure 4In the dimension graph of the explanation topic B shown, there are 2 second connecting edges originating from dimension node b (one edge pointing from dimension node b to dimension node d, and the other edge pointing from dimension node b to dimension node c). Therefore, the out-degree of dimension node b is 2. 2. Sort the dimension nodes in the target dimension graph according to their out-degrees from largest to smallest. Select the first P (P is a value set based on actual business needs, for example, P can be set to 3) dimension nodes from the sorted node sequence. Then, randomly select one of these P dimension nodes. The dimension node serves as the starting node (i.e., the first dimension node selected for the second explanation topic). For example, the dimension node with the largest out-degree can be selected from P dimension nodes as the starting node. 3. In the target dimension graph, the neighbor nodes of the starting node can be obtained (these neighbor nodes refer to dimension nodes in the target dimension graph that have a second connecting edge with the starting node). Then, a neighbor node can be randomly selected from these neighbor nodes as the second dimension node selected for the second explanation topic. Besides random selection, other node selection methods can also be used to select the next dimension node. For example, the next dimension node can be selected based on the number of connected edges. Specifically, the number of second connecting edges between each neighbor node and the starting node can be counted (i.e., the number of edges corresponding to each neighbor node). The neighbor node with the largest number of connected edges is then selected as the second dimension node. If there are two or more neighbor nodes with the largest number of connected edges, one of them can be randomly selected as the second dimension node. 4. In the target dimension graph, the neighbor nodes of the second dimension node can be obtained (these neighbor nodes refer to the dimension nodes in the target dimension graph that have a second connecting edge with the second dimension node). Then, the method described above for selecting the second dimension node can be used to select one neighbor node from each of the neighbor nodes of the second dimension node as the third dimension node selected for the second explanation topic. 5. In the target dimension graph, the neighbor nodes of the third dimension node are obtained, and the method described above for selecting the second or third dimension node is used to select one neighbor node from each of the neighbor nodes of the third dimension node as the fourth dimension node selected for the third explanation topic. This process continues until the Nth dimension node is selected from the target dimension graph for the second explanation topic.

[0164] In this application, the determination of the value of N can be achieved in at least one of the following ways: ① Setting N to a fixed value based on the actual live commentary scenario. In actual game commentary scenarios, the commentator's explanation of a game event usually consists of a small number of statements (e.g., 3-5 statements), which are relatively short. Therefore, the commentary content involves a small number of commentary dimensions, usually 3-5. Thus, this application can set the value of N based on the actual live commentary situation, for example, setting N to 3 or 4. ② Dynamically determining the value of N based on termination conditions. Specifically, for each determined dimension node, a check is performed to determine if it meets the termination condition. This termination condition refers to a preset condition for selecting a termination node, such as: the node's out-degree being 0, or the node being visited repeatedly (it has been selected previously), etc. In this case, the value of N is dynamic and not a fixed value. For example, after determining the first dimension node for the second explanation topic, it can be checked whether the first dimension node meets the termination condition (e.g., whether the node's out-degree is 0). If it does not meet the condition, a second dimension node can be selected from the neighboring nodes of the first dimension node. After selecting the second dimension node, it can be checked whether the second dimension node meets the termination condition. If a condition (e.g., whether the node's out-degree is 0) is not met, a third dimension node can be selected from the neighboring nodes of the second dimension node. Similarly, it can be determined whether the third dimension node meets the termination condition (e.g., whether the node's out-degree is 0). If not, a fourth dimension node can be selected from the neighboring nodes of the third dimension node, and so on, until a dimension node that meets the termination condition is selected. This dimension node that meets the termination condition is the last dimension node selected for the second explanation topic, and the selection number corresponding to this dimension node is N. For example, if the dimension node that meets the termination condition is the 8th dimension node selected for the second explanation topic, then the selection number corresponding to this dimension node is 8, and N can be 8. This application only illustrates two specific methods for determining the value of N, but it does not mean that the value of N is limited to the above two methods. Other methods can also be used, and this application does not limit them.

[0165] In summary, during the process of selecting N dimension nodes for the second explanatory topic, the first dimension node is selected based on the out-degree of each dimension node in the target dimension graph. However, any dimension node other than the first dimension node is selected from the neighboring nodes of the previously selected dimension node. Therefore, this application can consider any dimension node selected for the second explanatory topic as S... iLet i be a positive integer less than or equal to N. Therefore, for the first dimension node, its value should be S1; for the second dimension node, S2; for the third dimension node, S3; ..., for the Nth dimension node, S... N Dimension node S1 is determined based on the out-degree of each dimension node in the target dimension graph, and dimension node S2 is connected to dimension node S. N All dimensions are determined based on the neighboring nodes of the previously determined dimension node. This means that, based on the connection relationships between at least one dimension node in the target dimension graph and the second explanatory topic, dimension node S is determined from the target dimension graph. i When i is equal to 1, the out-degree of each node in the target dimension graph needs to be determined based on the connection relationships between at least one dimension node in the target dimension graph. Then, the dimension node with the largest out-degree in the target dimension graph can be determined as dimension node S1 and dimension node S2. i (i.e., dimension node S1); when i is greater than 1, it is necessary to obtain dimension node S1 in the target dimension graph based on the connection relationship between at least one dimension node in the target dimension graph. i-1 (i.e., at dimension node S) i The second neighbor node (R is an integer, which can be 0) of the dimension node previously selected for the second explanation topic has R (R is an integer, which can be 0) second neighbor nodes (a second neighbor node is a node that is adjacent to the dimension node S). i-1 (R dimension nodes that have a second connecting edge), and subsequently, dimension node S can be selected from these R second neighbor nodes. i For example, it is possible to count the number of second neighbor nodes and dimension nodes S. i-1 The third number of second connecting edges exists between them, and the second neighbor node with the largest third number is determined as the dimension node S. i .

[0166] To facilitate understanding, the process of selecting N dimension nodes sequentially for the second explanatory topic will be explained below with reference to the accompanying diagram. Please refer to [link / reference]. Figure 6 , Figure 6 This is a schematic diagram illustrating the sequential selection of N dimension nodes for a second explanatory topic, provided by an embodiment of this application. For example... Figure 6 As shown, assuming the dimension diagram of the second explanatory main image is as follows: Figure 6The dimension graph A600 shown here assumes that N is a preset fixed value of 3. The process of determining N dimension nodes for the second explanation topic from the various dimension nodes contained in dimension graph A600 can include at least the following three steps: 1. Count the out-degree of each dimension node in dimension graph A600. Through statistics, the out-degrees of dimension nodes a, b, c, d, e, f, and g are determined to be 2, 2, 1, 1, 2, 1, and 2, respectively. 2. Select the first dimension node for the second explanation topic according to the out-degree of each dimension node in dimension graph A600. Since there are 5 dimension nodes with an out-degree of 2, a dimension node can be randomly selected as the first dimension node. For example, dimension node e can be selected as the first dimension node. 3. Obtain each neighbor node of dimension node e, and select the second dimension node from each neighbor node of dimension node e. Figure 6 As shown, the neighboring nodes of dimension node e include dimension nodes a, b, d, and g. Since the number of connecting edges between each neighboring node and dimension node e is 1, a neighboring node can be randomly selected as the second dimension node. For example, dimension node b can be selected as the second dimension node. 4. Obtain each neighboring node of dimension node b, and select the third dimension node from among the neighbors of dimension node b. Figure 6 As shown, the neighboring nodes of dimension node b include dimension nodes a, e, d, c, and f. Since the number of connecting edges between each neighboring node and dimension node b is 1, a neighboring node can be randomly selected as the third dimension node. For example, dimension node d can be selected as the third dimension node. Therefore, the N dimension nodes selected for the second explanation topic include dimension nodes e, b, and d.

[0167] After selecting N dimension nodes for the second explanatory topic, we can obtain the explanatory dimension represented by each of the N dimension nodes, thus obtaining N explanatory dimensions. Then, according to the chronological order in which the N dimension nodes were determined, the N explanatory dimensions can be sequentially connected, thereby obtaining the explanatory dimension link of the second explanatory topic. The chronological order in which the N dimension nodes were determined is the order in which the N dimension nodes were determined. For example, if the first dimension node was selected earliest, then the time when the first dimension node was determined is earlier than any subsequent dimension node. As described above... Figure 6Taking the illustrated embodiment as an example, dimension node e is determined earlier than dimension node b, and dimension node d is determined earlier than dimension node d. Assuming that the explanatory dimension corresponding to dimension node e is explanatory dimension e, the explanatory dimension corresponding to dimension node b is explanatory dimension b, and the explanatory dimension corresponding to dimension node d is explanatory dimension d, then by sorting the corresponding explanatory dimensions according to the order in which explanatory dimensions e, dimension node b, and dimension node d are determined from earliest to latest, we can obtain the explanatory dimension sequence {explanatory dimension e, dimension node b, dimension node d}. By connecting these sequentially, we can obtain the explanatory dimension link as: explanatory dimension e → dimension node b → dimension node d.

[0168] Step S505: Based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, the explanation prediction model is called to perform explanation prediction processing to obtain the second explanation content corresponding to the second explanation topic.

[0169] In this application, after predicting the second explanatory topic and its explanatory dimension link, the explanatory prediction model can be invoked based on the first explanatory topic, the second explanatory topic, and its explanatory dimension link to perform explanatory prediction processing, thereby obtaining the second explanatory content corresponding to the second explanatory topic. Specifically, this application can construct predictive prompts based on the first explanatory topic, the second explanatory topic, and its explanatory dimension link; after inputting the predictive prompts into the explanatory prediction model, the model can perform explanatory prediction processing based on its language comprehension ability and output the second explanatory content corresponding to the second explanatory topic.

[0170] It should be noted that, to further improve the natural connection between the model's output commentary and the current commentary content, after predicting the second commentary theme for the game, this application can further determine the commentary dimension described by the first commentary content from the dimension graph corresponding to the second commentary theme. When constructing prediction prompts, the first commentary theme and the commentary dimension described by the first commentary content can be associated together to construct prediction prompts. In this way, by being precise to a more specific commentary dimension, the model can more accurately know from which angle the current first commentary content is describing the game, thus enabling the model to more accurately determine a commentary theme that better matches the current descriptive angle. Taking the first commentary as "Team 5's position outside the circle seems relatively safe. As long as they can cleverly avoid that popular area, entering the circle shouldn't be a problem," we can first determine that the first commentary topic corresponding to this first commentary topic is "team position." Then, we can obtain the dimension graph corresponding to the first commentary topic. Based on the various dimension nodes contained in the dimension graph corresponding to the first commentary topic, we can determine that the commentary dimension described by the first commentary topic is "positional safety." Subsequently, we can embed the first commentary topic "team position" and the current commentary dimension "positional safety" into the prediction prompt words and input them into the commentary prediction model.

[0171] It is worth noting that, in order to further improve the accuracy, rationality, and professionalism of the commentary output by the commentary prediction model, this application can also pre-configure a knowledge graph for game background knowledge (referred to as the game knowledge graph). When constructing prediction prompts, the game background knowledge involved in the current game can be extracted based on the game knowledge graph, and prediction prompts can be constructed together based on this game background knowledge. In this way, the commentary prediction model can obtain comprehensive and specific game background knowledge, and the commentary output by the commentary prediction model can be closely related to the game, which not only conforms to the logic of real commentary, but also has a high degree of game professionalism. To facilitate understanding, the process of configuring a game knowledge graph will be explained below: First, at least one game resource can be obtained. Game resources refer to content in the game that can be used by the system or players; they are virtual data. Game resources can include environmental resources (e.g., maps, vehicles), dynamic resources (e.g., medicines, equipment, accessories), and game guides (e.g., gameplay mechanics, level completion guides). Based on the resource attributes of each game resource, at least one attribute relationship between game resources can be determined. Specifically, different game resources in the game will inevitably have relationships. For example, equipment requires accessories, so equipment resources and accessory resources... There are relationships between resources. If a game resource has the attribute of equipment, then the most suitable accessory resources to equip that resource can be found from various game resources with the attribute of accessory. A relationship can be considered to exist between this game resource and these most suitable accessory resources. Similarly, different maps in a game may be equipped with different supplies (e.g., medkits, cola, etc.). A relationship exists between map resources and supply resources. If a game resource has the attribute of map, then the various supply resources configured for that map can be found from various game resources with the attribute of supply. A relationship can be considered to exist between this map resource and these supply resources. Furthermore, based on game guides, this application can also determine at least one resource utilization relationship between game resources. Specifically, different guides or gameplay styles exist in a game. These guides or gameplay styles can reasonably coordinate and use different game resources to provide players with a better gaming experience. Therefore, the resource utilization relationship between different game resources can be determined based on the game guides. For example, if a game guide contains a strategy that states "the most suitable equipment for the desert map is the machete," and this strategy confirms that the most suitable equipment for the desert map is the machete, then it can be considered that there is a resource utilization relationship between the desert map and the machete.

[0172] After determining the attribute relationships and resource utilization relationships between game resources, a corresponding resource node can be constructed for each game resource. Based on the attribute relationships and resource utilization relationships between at least one game resource, a corresponding third connection edge can be constructed between at least one resource node. Specifically, if there is an attribute relationship between two game resources, a third connection edge (which can be undirected) can be established between the two corresponding resource nodes, and the specific attribute relationship between the two game resources can be marked on this third connection edge. If there is a resource utilization relationship between two game resources, a third connection edge can be established between the two corresponding resource nodes, and the specific resource utilization relationship between the two game resources can be marked on this third connection edge. In this way, a game knowledge graph containing various resource nodes and multiple third connection edges can be constructed, with each third connection edge marked with a corresponding relationship. Thus, through this game knowledge graph, the attribute relationships and resource utilization relationships between any two game resources can be determined.

[0173] As can be seen, the game knowledge graph constructed in this application is not simply an integration of various resources within the game. Besides the attribute relationships between game resources inherent in the game itself, this application also incorporates game strategies to determine the resource utilization relationships between different game resources. These resource utilization relationships are then used to construct the game knowledge graph. This results in a more comprehensive and richer game knowledge graph, reflecting the connections between different game resources at a finer granular level. Based on this more comprehensive and richer game knowledge graph, subsequent commentary and prediction models can gain a better understanding of the game. Specifically, based on the game knowledge graph, this application can search the game knowledge graph according to the actual situation of the game match in which the current commentary content (e.g., the first commentary content) is located, so as to extract the game background knowledge (referred to as the game match background knowledge) that is consistent with the game match through the game knowledge graph. This game background knowledge can be added to the prediction prompt words. In this way, after the prediction prompt words are input into the commentary prediction model, the commentary prediction model can fully understand the background knowledge of the game match. By improving the commentary prediction model's understanding of the game, the professionalism of the commentary content output by the commentary prediction model can be improved.

[0174] Based on this, the specific implementation process for constructing predictive prompts based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic can include at least the following: obtaining the game knowledge graph, which, as mentioned above, contains resource nodes corresponding to at least one game resource and at least one third connection edge, each third connection edge being used to connect two resource nodes that have a resource association relationship (including attribute association relationship and resource utilization relationship); then, obtaining the game match data, which refers to the scene data used to record the current game match, which refers to the real-time data related to the game environment, map state, dynamic events, etc. in the game match, describing the spatial layout, interactive elements, and global state of the game world at a certain moment, directly affecting the player's strategy and operation in the current game match.

[0175] Furthermore, based on the game data and the game knowledge graph, the background knowledge corresponding to the game can be determined. Specifically, the game data can be used to identify the game resources involved in the current game, which can be called target game resources. Based on the target game resources, the game knowledge graph can be traversed to find the resource nodes corresponding to the target game resources, which can then be identified as target resource nodes. Then, in the game knowledge graph, the neighboring nodes of the target resource nodes (called third neighbor nodes) can be obtained. These third neighbor nodes are resource nodes that have a third connecting edge with the target resource node. Subsequently, the knowledge subgraph formed by the target resource node and the third neighbor nodes can be identified as the target knowledge subgraph corresponding to the current game. The game-related knowledge reflected in this target knowledge subgraph can then be identified as the background knowledge of the game. After determining the background knowledge of the game, predictive prompts can be constructed based on the first commentary topic, the second commentary topic, the commentary dimension link of the second commentary topic, and the background knowledge of the game.

[0176] Taking the first commentary as "Team 5's position outside the circle seems relatively safe. As long as they can cleverly avoid that popular area, entering the circle shouldn't be a problem," and assuming that the first commentary topic is "team position," the commentary dimension described by the first commentary is "position safety," the predicted second commentary topic is "tactical prediction," and the commentary dimension link determined for the second commentary topic is "location → team status → team movement," the final predicted prompt words can be shown in Table 3.

[0177] Table 3

[0178]

[0179] As shown in Table 3, the predicted prompts not only include the first commentary topic, the second commentary topic, and the corresponding commentary dimension link for the second commentary topic, but also the relevant game background knowledge involved in this game. Of course, in addition, the predicted prompts may also include other relevant information about the game (e.g., team composition information of each team participating in the game). The information involved in the predicted prompts is richer and more comprehensive, which can further improve the accuracy and professionalism of the commentary content output by the commentary prediction model.

[0180] In this application embodiment, a game knowledge graph is constructed to store and manage a large number of proper nouns and terms in the game. This comprehensively covers every game resource involved in the game, as well as the attribute relationships and resource utilization relationships between different game resources. It can comprehensively reflect information such as resource details, environmental layout, and strategic elements in the game, thereby enabling the commentary prediction model to retrieve more comprehensive game knowledge, improve its understanding of the game, and thus enhance the professionalism of the commentary content output by the model. Moreover, this application constructs a commentary knowledge graph by analyzing the commentary storyline in a live commentary scenario, providing a reference commentary route for the commentary prediction model. This allows the commentary prediction model to predict commentary content that conforms to the common commentary ideas of live commentators for the current real-time game game based on the commentary knowledge graph, thereby improving the depth and logic of the commentary content. In summary, this application can improve the professionalism and logic of game commentary content, making game commentary more accurate.

[0181] To better illustrate the beneficial effects of this application, relevant evaluation data was constructed to evaluate both the proposed solution and traditional solutions. Specifically, this application extracted relevant game features to construct a prompt to build an evaluation set. The constructed evaluation set contained 304 game events. For each game event, this application generated explanatory content using the proposed solution and simultaneously used the traditional solution to generate explanatory content. The explanatory content of the two solutions was then manually evaluated, with evaluation dimensions including information content, relevance, accuracy, and objectivity. The final evaluation comparison is shown in Table 4.

[0182] Table 4

[0183] Evaluation Dimensions This plan Traditional solution Information content 99% 99% Correlation 98% 91.1% accuracy 98% 84.5% objectivity 100% 100% pass rate 97% 77.8%

[0184] The evaluation comparison data shown in Table 4 shows that the multi-round explanation proposed in this scheme is better than the previous single-round explanation, and it outperforms the traditional explanation scheme in all indicators.

[0185] To facilitate understanding of the overall logic of the game commentary solution provided in this application, the following will describe the overall logic in conjunction with the accompanying drawings. Please refer to... Figure 7 , Figure 7 This is a logical architecture diagram for generating commentary game content provided in an embodiment of this application. For example... Figure 7 As shown, this logical architecture may include at least the following components: event monitoring component, narration content acquisition component, topic acquisition component, background retrieval component, topic prediction component, link determination component, prompt word construction component, and narration prediction model. The functions implemented by each component will be briefly introduced below:

[0186] Event monitoring component: Used to monitor game events that occur during a game. If a game event is triggered in the current game screen, the event monitoring component can send this game event to the commentary content acquisition component and the topic acquisition component.

[0187] Commentary content acquisition component: The commentary content acquisition component is used to obtain the commentary content associated with the game event (i.e., the latest segment of commentary content in the game, such as the first commentary content mentioned above).

[0188] Topic Acquisition Component: The topic acquisition component is used to obtain the commentary topic associated with the game event, that is, the commentary topic corresponding to the commentary content associated with the game event, such as the first commentary topic corresponding to the first commentary content mentioned above.

[0189] Topic Prediction Component: The topic prediction component is used to predict the next topic to be explained for a game based on the topic knowledge graph, such as the second topic to be explained mentioned above.

[0190] Link Determination Component: The link determination component is used to determine the explanatory dimensional links (i.e., explanatory routes) around the second explanatory topic based on the predicted dimension graph of the second explanatory topic.

[0191] Background Retrieval Component: The background retrieval component is used to automatically retrieve game knowledge graphs to find the background knowledge involved in the game (which can cover specific game resources, the definition of the game resources, and detailed explanations).

[0192] Prompt word construction component: Used to construct predicted prompt words based on the predicted second commentary topic, the commentary dimension link of the second commentary topic, the first commentary topic, and the background indication of the game.

[0193] Commentary Prediction Model: The commentary prediction model is used to determine the corresponding second commentary content for the second commentary topic based on the predicted prompt words.

[0194] For the specific implementation methods of the above components, please refer to the relevant descriptions in the previous embodiments. They will not be repeated here, nor will their beneficial effects be elaborated.

[0195] In this embodiment, the explanation prediction model used to determine the corresponding explanation content for a certain explanation topic can be any LLM model with mature language understanding performance (e.g., GPT4 or another open-source LLM model). The LLM model can be fine-tuned using the SFT method to give it better explanation prediction capabilities. The untuned LLM model is referred to as the initial language model in this application. The process of fine-tuning the initial language model to obtain the explanation prediction model can include at least the following steps: 1. Constructing sample data. This application can generate positive and negative data based on actual game commentary scenarios. The positive data package contains game events (referred to as first sample events) and their corresponding commentary content (referred to as positive commentary content). This positive commentary content refers to commentary with high logical coherence and free from colloquial expressions. The negative data package contains other different game events (referred to as second sample events) and their corresponding commentary content (referred to as negative commentary content). This negative commentary content refers to commentary with lower logical coherence and containing colloquial expressions. Both positive and negative data can be used as sample data for model fine-tuning. Positive data allows the model to learn how to extract knowledge from game scenarios and follow the logical flow of human commentary; negative data is used to improve the colloquial expression and natural fluency of the model's output. 1. For both forward and reverse data, input and output can be processed into the same format; 2. Using an initial language model, the game events in the forward and reverse data are interpreted and predicted separately to generate the model-predicted interpretation content corresponding to the forward and reverse data respectively; 3. Using the interpretation content contained in the forward and reverse data as training labels, the error between the training labels in the forward data and the model-predicted interpretation content corresponding to the forward data, as well as the error between the training labels in the reverse data and the model-predicted interpretation content corresponding to the reverse data, can be calculated; 4. Based on the errors corresponding to the forward and reverse data, the total error loss of the model is calculated; 5. Based on the error loss of the model, the model parameters of the initial language model are optimized to obtain the initial language model after the first optimization; 6. It is determined whether the initial language model after the first optimization meets the model convergence condition. If it does not meet the condition, steps 2-5 above are repeated to obtain the initial language model after the second optimization, the initial language model after the third optimization, and so on, until an initial language model that meets the model convergence condition is obtained. The initial language model that meets the model convergence condition can be used as the interpretation prediction model of this application.

[0196] The model convergence condition in this application can refer to the condition that the number of optimizations of the model reaches a preset threshold, or it can refer to the condition that the error loss of the model is less than the loss threshold. The specific model convergence condition can be set according to actual business needs, and this application does not impose any restrictions on it.

[0197] It should be understood that, in the embodiments of this application, constructing a topic knowledge graph enables the commentary prediction model to predict the next commentary topic for a game match. However, since the commentary content corresponding to a single commentary topic may be very long, when only one commentary topic is given to the commentary prediction model for commentary prediction, the predicted explanation content often lacks accuracy and depth. This may be because the commentary prediction model is based on only a single commentary topic and cannot determine the route for describing that topic. Therefore, this application constructs a corresponding dimension graph for each commentary topic. The dimension graph clearly shows that each topic can be further subdivided into multiple dimensional links for commentary, thereby providing a clearer route and richer details for the commentary prediction model, resulting in more accurate and reasonable output commentary content.

[0198] Further, please see Figure 8 , Figure 8 This is a schematic diagram of the structure of a game processing device provided in an embodiment of this application. The game processing device can be a computer program (including program code) running on a computer device; for example, the game processing device is an application software. The game processing device can be used to execute... Figure 3 The method shown. (As illustrated) Figure 8 As shown, the game processing device 1 may include: a first acquisition module 11, a second acquisition module 12, a topic prediction module 13, a link determination module 14, and a narration prediction module 15.

[0199] The first acquisition module 11 is used to acquire the first commentary content in the game and the first commentary topic corresponding to the first commentary content;

[0200] The second acquisition module 12 is used to acquire pre-configured topic knowledge graphs and dimension knowledge graphs. The topic knowledge graph contains at least one topic node and at least one first connecting edge. A topic node represents a commentary topic of the game, and a first connecting edge is used to connect two topic nodes with a commentary connection relationship. The dimension knowledge graph contains a dimension graph corresponding to each commentary topic. A dimension graph contains at least one dimension node and at least one second connecting edge. A dimension node represents a commentary dimension, and a second connecting edge is used to connect two dimension nodes.

[0201] Theme prediction module 13 is used to predict the second commentary theme of the game based on the first commentary theme and the theme knowledge graph;

[0202] Link determination module 14 is used to obtain the dimension graph corresponding to the second explanation topic from the dimension knowledge graph, and determine the explanation dimension link of the second explanation topic according to the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic; the explanation dimension link of the second explanation topic is used to indicate the explanation idea of ​​the second explanation topic;

[0203] The explanation prediction module 15 is used to call the explanation prediction model to perform explanation prediction processing based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, so as to obtain the second explanation content corresponding to the second explanation topic.

[0204] The specific implementation methods of the first acquisition module 11, the second acquisition module 12, the topic prediction module 13, the link determination module 14, and the interpretation prediction module 15 can be found above. Figure 5 The descriptions of steps S501-S505 in the corresponding embodiments will not be repeated here.

[0205] In one embodiment, the pre-configuration process for a topic knowledge graph includes:

[0206] Retrieve the game's historical game matches and their commentary content. The commentary content refers to a sequence of commentary content consisting of K historical commentary items, where K is a positive integer. The commentary content sequence contains at least one content pair, which consists of any two adjacent historical commentary items in the commentary content sequence.

[0207] Each historical explanation is analyzed to obtain the content analysis results for each historical explanation.

[0208] Based on the content analysis results of each historical commentary, at least one commentary theme for the game is determined;

[0209] Based on the content analysis results of each historical explanation, the explanation connection relationship corresponding to each content pair is determined; the explanation connection relationship corresponding to the content pair refers to the connection relationship from the first historical explanation content to the second historical explanation content in the content pair, and the first historical explanation content is located before the second historical explanation content in the explanation content sequence;

[0210] Construct a thematic knowledge graph based on at least one explanatory theme of the game and the corresponding explanatory connections for each set of content.

[0211] In one embodiment, based on the content analysis results of each historical commentary, the specific implementation method of at least one commentary theme of the game is determined, including:

[0212] Based on the content analysis results of each historical commentary, the content theme of each historical commentary is determined;

[0213] By performing topic filtering on K content topics according to topic filtering rules, at least one explanatory topic for the game can be obtained.

[0214] In one embodiment, a specific implementation of constructing a topic knowledge graph based on at least one explanatory theme of the game and the corresponding explanatory connections between each set of content includes:

[0215] For each commentary topic, a corresponding topic node is constructed to obtain at least one topic node for the game;

[0216] Based on the two historical explanatory contents contained in each content pair, query the two topic nodes corresponding to the content pair in at least one topic node;

[0217] Based on the explanatory connections corresponding to each content pair, a first connection edge is established between the two topic nodes corresponding to the content pair to obtain a topic knowledge graph.

[0218] In one embodiment, the pre-configuration process for the dimension graph corresponding to each explanatory topic includes:

[0219] Choose any one of the at least one explanatory topics as the target explanatory topic;

[0220] Among the K historical commentaries, those whose content theme is the target commentary theme are identified as the target historical commentary content corresponding to the target commentary theme;

[0221] An explanatory dimension analysis was conducted on the target historical explanatory content to obtain at least one explanatory dimension of the target explanatory theme in the target historical explanatory content;

[0222] According to the dimensional sorting rules, sort the target explanatory topic in at least one explanatory dimension in the target historical explanatory content to obtain the explanatory dimension sequence corresponding to the target explanatory topic;

[0223] For each explanatory dimension in the explanatory dimension sequence, construct a corresponding dimension node, and establish a second connection edge between at least one dimension node according to the arrangement order of each explanatory dimension in the explanatory dimension sequence to obtain the dimension graph corresponding to the target explanatory topic.

[0224] In one embodiment, the topic prediction module predicts the specific implementation of the second commentary topic for a game match based on the first commentary topic and the topic knowledge graph, including:

[0225] Obtain the game progress corresponding to the first commentary content, and determine the corresponding progress weight for each theme node according to the game progress;

[0226] The topic node corresponding to the first explanation topic is determined as the target topic node, and W first neighbor nodes of the target topic node are obtained in the topic knowledge graph; W is an integer, and the first neighbor node refers to the topic node that has a first connecting edge with the target topic node;

[0227] The first number of first connecting edges between the target topic node and W first neighbor nodes is counted, and the second number corresponding to each first neighbor node is counted. The second number corresponding to the first neighbor node refers to the number of first connecting edges between the first neighbor node and the target topic node.

[0228] Based on the ratio between the first quantity and the second quantity corresponding to each first neighbor node, determine the corresponding edge weight for each first neighbor node;

[0229] Based on the progress weight of each topic node and the edge weight of each first neighbor node, the optimal topic node is determined from at least one topic node, and the commentary topic corresponding to the optimal topic node is determined as the second commentary topic of the game.

[0230] In one embodiment, the specific implementation of the topic prediction module 13 determining the optimal topic node from at least one topic node based on the progress weight corresponding to each topic node and the edge weight corresponding to each first neighbor node includes:

[0231] The progress weight and the corresponding edge weight of each first neighbor node are summed to obtain the comprehensive weight of each first neighbor node.

[0232] The remaining topic nodes are identified by taking at least one topic node and excluding the W first neighbor nodes, and the progress weights corresponding to the remaining topic nodes are identified as the comprehensive weights corresponding to the remaining topic nodes.

[0233] The topic node with the highest overall weight among at least one topic node is determined as the optimal topic node.

[0234] In one embodiment, the link determination module 14 determines the specific implementation of the explanation dimension link of the second explanation topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic, including:

[0235] The dimension diagram corresponding to the second explanatory topic is identified as the target dimension diagram;

[0236] Based on the connection relationship between at least one dimension node in the second explanation topic and the target dimension graph, N dimension nodes of the second explanation topic are determined sequentially from the target dimension graph, where N is a positive integer;

[0237] Obtain the explanatory dimension represented by each of the N dimension nodes to get N explanatory dimensions;

[0238] Based on the chronological order of the N dimension nodes, the N explanation dimensions are sequentially connected to obtain the explanation dimension link of the second explanation topic.

[0239] In one embodiment, the N dimension nodes of the second explanatory topic include dimension node S. i , where i is a positive integer less than or equal to N;

[0240] The link determination module 14 determines the specific implementation of N dimension nodes of the second explanation topic from the target dimension graph based on the connection relationship between at least one dimension node in the second explanation topic and the target dimension graph, including:

[0241] When i equals 1, based on the connection relationships between at least one dimension node in the target dimension graph, calculate the out-degree of each node corresponding to at least one dimension node in the target dimension graph, and determine the dimension node with the largest out-degree in the target dimension graph as dimension node S. i ;

[0242] When i is greater than 1, obtain dimension node S in the target dimension graph based on the connection relationship between at least one dimension node in the target dimension graph. i-1 Find R second neighbor nodes and count the number of each second neighbor node and the dimension node S. i-1 The third number of second connecting edges exists between them, and the second neighbor node with the largest third number is determined as the dimension node S. i R is an integer, and the second neighbor node refers to the node in dimension S. i-1 There are dimension nodes with a second connecting edge between them.

[0243] In one embodiment, the explanation prediction module 15, based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, calls the explanation prediction model to perform explanation prediction processing to obtain the specific implementation of the second explanation content corresponding to the second explanation topic, including:

[0244] Based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, predictive prompt words are constructed;

[0245] Input the prediction prompts into the explanation prediction model;

[0246] The interpretation prediction model is used to perform interpretation prediction processing to obtain the second interpretation content corresponding to the second interpretation topic.

[0247] In one embodiment, the explanation prediction module 15 constructs a specific implementation of predicting prompt words based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, including:

[0248] Obtain the game knowledge graph; the game knowledge graph contains resource nodes corresponding to at least one game resource in the game and at least one third connection edge, each third connection edge is used to connect two resource nodes that have a resource relationship;

[0249] Based on the game data and the game knowledge graph, determine the background knowledge corresponding to the game.

[0250] Based on the first commentary topic, the second commentary topic, the commentary dimension link of the second commentary topic, and the background knowledge of the game, predictive prompts are constructed.

[0251] In one embodiment, the explanation and prediction module 15 determines the specific implementation method of the game background knowledge corresponding to the game match based on the game match data and the game knowledge graph, including:

[0252] Based on the game data, obtain the target game resources involved in the game.

[0253] In the game knowledge graph, the resource node corresponding to the target game resource is identified as the target resource node;

[0254] In the game knowledge graph, obtain the third neighbor node of the target resource node; the third neighbor node is a resource node that has a third connecting edge with the target resource node.

[0255] The game knowledge reflected in the knowledge subgraph formed by the target resource node and the third neighbor node is determined as the game background knowledge corresponding to the game.

[0256] In one embodiment, the pre-configuration process for a game knowledge graph includes:

[0257] Obtain at least one game resource included in the game, as well as a game guide;

[0258] Based on the resource attributes of each game resource, determine at least one attribute association relationship between game resources;

[0259] Determine the resource utilization relationship between at least one game resource based on the game strategy;

[0260] For each game resource, construct a corresponding resource node, and based on the attribute association and resource utilization relationship between at least one game resource, construct a corresponding third connection edge between at least one resource node.

[0261] In this application embodiment, a game knowledge graph is constructed to store and manage a large number of proper nouns and terms in the game. This comprehensively covers every game resource involved in the game, as well as the attribute relationships and resource utilization relationships between different game resources. It can comprehensively reflect information such as resource details, environmental layout, and strategic elements in the game, thereby enabling the commentary prediction model to retrieve more comprehensive game knowledge, improve its understanding of the game, and thus enhance the professionalism of the commentary content output by the model. Moreover, this application constructs a commentary knowledge graph by analyzing the commentary storyline in a live commentary scenario, providing a reference commentary route for the commentary prediction model. This allows the commentary prediction model to predict commentary content that conforms to the common commentary ideas of live commentators for the current real-time game game based on the commentary knowledge graph, thereby improving the depth and logic of the commentary content. In summary, this application can improve the professionalism and logic of game commentary content, making game commentary more accurate.

[0262] Further, please see Figure 9 , Figure 9 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. Figure 9 As shown, the aforementioned computer device 8000 may include: a processor 8001, a network interface 8004, and a memory 8005. Furthermore, the computer device 8000 also includes: a user interface 8003, and at least one communication bus 8002. The communication bus 8002 is used to enable communication between these components. The user interface 8003 may include a display screen and a keyboard; optionally, the user interface 8003 may also include a standard wired interface or a wireless interface. The network interface 8004 may optionally include a standard wired interface or a wireless interface (such as a Wi-Fi interface). The memory 8005 may be high-speed RAM or non-volatile memory, such as at least one disk storage device. Optionally, the memory 8005 may also be at least one storage device located remotely from the aforementioned processor 8001. Figure 9 As shown, the memory 8005, which is a computer-readable storage medium, may include an operating system, a network communication module, a user interface module, and a device control application program.

[0263] exist Figure 9 In the computer device 8000 shown, the network interface 8004 provides network communication functionality; the user interface 8003 is mainly used to provide an input interface for the user; and the processor 8001 can be used to call the device control application program stored in the memory 8005 to achieve:

[0264] Get the first commentary content in a game and the first commentary topic corresponding to the first commentary content;

[0265] Obtain pre-configured topic knowledge graph and dimension knowledge graph. The topic knowledge graph contains at least one topic node and at least one first connecting edge. A topic node represents a commentary topic of the game, and a first connecting edge is used to connect two topic nodes with a commentary connection relationship. The dimension knowledge graph contains a dimension graph corresponding to each commentary topic. A dimension graph contains at least one dimension node and at least one second connecting edge. A dimension node represents a commentary dimension, and a second connecting edge is used to connect two dimension nodes.

[0266] Based on the first commentary topic and the topic knowledge graph, predict the second commentary topic for the game;

[0267] Obtain the dimension graph corresponding to the second explanation topic from the dimension knowledge graph, and determine the explanation dimension link of the second explanation topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic; the explanation dimension link of the second explanation topic is used to indicate the explanation approach of the second explanation topic;

[0268] Based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, the explanation prediction model is invoked to perform explanation prediction processing to obtain the second explanation content corresponding to the second explanation topic.

[0269] It should be understood that the computer device 8000 described in the embodiments of this application can execute the foregoing text. Figures 2 to 5 The description of the game processing method in the corresponding embodiment can also be executed as described above. Figure 8 The description of the game processing device 1 in the corresponding embodiments will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated here.

[0270] Furthermore, it should be noted that this application embodiment also provides a computer-readable storage medium, which stores a computer program executed by the aforementioned data processing computer device 8000. The computer program includes program instructions, and when the processor executes the program instructions, it can execute the aforementioned... Figures 2 to 5 The description of the game processing method in the corresponding embodiments is already provided and will not be repeated here. Furthermore, the beneficial effects of using the same method will also not be repeated. For technical details not disclosed in the computer-readable storage medium embodiments related to this application, please refer to the description of the method embodiments of this application.

[0271] The aforementioned computer-readable storage medium can be an internal storage unit of the game processing apparatus or computer device provided in any of the foregoing embodiments, such as a hard disk or memory of the computer device. The computer-readable storage medium can also be an external storage device of the computer device, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc., provided on the computer device. Furthermore, the computer-readable storage medium can include both internal and external storage units of the computer device. The computer-readable storage medium is used to store the computer program and other programs and data required by the computer device. The computer-readable storage medium can also be used to temporarily store data that has been output or will be output.

[0272] One aspect of this application provides a computer program product comprising a computer program stored in a computer-readable storage medium. A processor of a computer device reads the computer program from the computer-readable storage medium and executes the computer program, causing the computer device to perform the method provided in one aspect of the embodiments of this application.

[0273] The terms "first," "second," etc., in the specification, claims, and drawings of this application are used to distinguish different objects, not to describe a specific order. Furthermore, the term "comprising," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, apparatus, product, or device that includes a series of steps or units is not limited to the listed steps or modules, but may optionally include steps or modules not listed, or may optionally include other step units inherent to these processes, methods, apparatuses, products, or devices.

[0274] In this application embodiment, the terms "module" or "unit" refer to a computer program or part of a computer program that has a predetermined function and works with other related parts to achieve a predetermined goal, and can be implemented wholly or partially using software, hardware (such as processing circuitry or memory), or a combination thereof. Similarly, a processor (or multiple processors or memory) can be used to implement one or more modules or units. Furthermore, each module or unit can be part of an overall module or unit that includes the functionality of that module or unit.

[0275] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this application.

[0276] The methods and related apparatuses provided in this application are described with reference to the method flowcharts and / or structural diagrams provided in this application. Specifically, each block of the method flowchart and / or structural diagram, as well as combinations of blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing device to create a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing device, generate instructions for implementing the process. Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 A schematic diagram of one or more processes and / or structures. Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 A process or multiple processes and / or structures illustrate the steps of the functions specified in one or more boxes.

[0277] The above-disclosed embodiments are merely preferred embodiments of this application and should not be construed as limiting the scope of this application. Therefore, any equivalent variations made in accordance with the claims of this application shall still fall within the scope of this application.

Claims

1. A game processing method characterized by comprising: The method includes: Obtain the first commentary content in the game and the first commentary topic corresponding to the first commentary content; Obtain a pre-configured topic knowledge graph and dimension knowledge graph. The topic knowledge graph contains at least one topic node and at least one first connecting edge. A topic node represents a commentary topic of the game, and a first connecting edge is used to connect two topic nodes with a commentary connection relationship. The dimension knowledge graph contains a dimension graph corresponding to each commentary topic. A dimension graph contains at least one dimension node and at least one second connecting edge. A dimension node represents a commentary dimension, and a second connecting edge is used to connect two dimension nodes. Based on the first commentary topic and the topic knowledge graph, predict the second commentary topic for the game match; The dimension graph corresponding to the second explanation topic is obtained from the dimensional knowledge graph, and the explanation dimension link of the second explanation topic is determined according to the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic; the explanation dimension link of the second explanation topic is used to indicate the explanation idea of ​​the second explanation topic; Based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, the explanation prediction model is invoked to perform explanation prediction processing to obtain the second explanation content corresponding to the second explanation topic.

2. The method of claim 1, wherein, The pre-configuration process of the topic knowledge graph includes: Obtain the historical game matches of the game and the commentary content of the historical game matches. The commentary content refers to a sequence of commentary content consisting of K historical commentary content, where K is a positive integer. The commentary content sequence contains at least one content pair, and the content pair consists of any two adjacent historical commentary content in the commentary content sequence. Each of the historical explanatory contents is parsed to obtain the content parsing result for each of the historical explanatory contents; Based on the content analysis results of each of the historical commentaries, at least one commentary theme for the game is determined; Based on the content analysis results of each historical explanation, the explanation connection relationship corresponding to each content pair is determined; the explanation connection relationship corresponding to the content pair refers to the connection relationship from the first historical explanation content to the second historical explanation content in the content pair, wherein the first historical explanation content is located before the second historical explanation content in the explanation content sequence; Based on at least one explanatory theme of the game and the corresponding explanatory connections for each set of content, the theme knowledge graph is constructed.

3. The method of claim 2, wherein, The determination of at least one commentary theme for the game based on the content analysis results of each historical commentary includes: Based on the content analysis results of each historical explanation, the content theme of each historical explanation is determined; The K content topics are filtered according to the topic filtering rules to obtain at least one explanation topic for the game.

4. The method of claim 2, wherein, The step of constructing the topic knowledge graph based on at least one explanatory theme of the game and the corresponding explanatory connections between each group of content includes: For each of the aforementioned explanation topics, a corresponding topic node is constructed to obtain at least one topic node for the game; According to the two historical explanatory contents contained in each group of contents, query the two topic nodes corresponding to the content pair in the at least one topic node; Based on the explanatory connection relationship corresponding to each set of content pairs, a first connection edge is established between the two topic nodes corresponding to the content pairs to obtain the topic knowledge graph.

5. The method of claim 3, wherein, The pre-configuration process for the dimension graph corresponding to each of the aforementioned explanatory topics includes: Choose any one of the at least one explanatory topics as the target explanatory topic; The historical explanation content among the K historical explanation contents whose content theme is the target explanation theme is determined as the target historical explanation content corresponding to the target explanation theme; An explanatory dimension analysis is performed on the target historical explanatory content to obtain at least one explanatory dimension of the target explanatory theme in the target historical explanatory content; According to the dimension sorting rules, at least one explanatory dimension of the target explanatory topic in the target historical explanatory content is sorted to obtain the explanatory dimension sequence corresponding to the target explanatory topic; For each explanation dimension in the explanation dimension sequence, construct a corresponding dimension node, and establish a second connection edge between at least one dimension node according to the arrangement order of each explanation dimension in the explanation dimension sequence to obtain the dimension graph corresponding to the target explanation topic.

6. The method of claim 1, wherein, The step of predicting the second commentary topic for the game match based on the first commentary topic and the topic knowledge graph includes: Obtain the game progress corresponding to the first explanation content, and determine the corresponding progress weight for each topic node according to the game progress; The topic node corresponding to the first explanation topic is determined as the target topic node, and W first neighbor nodes of the target topic node are obtained in the topic knowledge graph; W is an integer, and the first neighbor node refers to the topic node that has a first connection edge with the target topic node; The first number of first connection edges between the target topic node and the W first neighbor nodes is counted, and the second number corresponding to each first neighbor node is counted. The second number corresponding to the first neighbor node refers to the number of first connection edges between the first neighbor node and the target topic node. Based on the ratio between the first quantity and the second quantity corresponding to each first neighbor node, determine the corresponding edge weight for each first neighbor node; Based on the progress weight corresponding to each topic node and the edge weight corresponding to each first neighbor node, the optimal topic node is determined from at least one topic node, and the commentary topic corresponding to the optimal topic node is determined as the second commentary topic of the game.

7. The method of claim 6, wherein, The step of determining the optimal topic node from at least one topic node based on the progress weight corresponding to each topic node and the edge weight corresponding to each first neighbor node includes: The progress weight and the corresponding edge weight of each first neighbor node are summed to obtain the comprehensive weight of each first neighbor node. The remaining topic nodes are identified from the at least one topic node except for the W first neighbor nodes, and the progress weights corresponding to the remaining topic nodes are identified as the comprehensive weights corresponding to the remaining topic nodes. The topic node with the largest overall weight among the at least one topic node is determined as the optimal topic node.

8. The method of claim 1, wherein, Determining the explanatory dimension link of the second explanatory topic based on the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanatory topic includes: The dimension diagram corresponding to the second explanatory topic is determined as the target dimension diagram; Based on the connection relationship between the second explanatory topic and at least one dimension node in the target dimension graph, N dimension nodes of the second explanatory topic are sequentially determined from the target dimension graph, where N is a positive integer; Obtain the explanatory dimension represented by each of the N dimension nodes to obtain N explanatory dimensions; According to the chronological order of the N dimension nodes, the N explanation dimensions are sequentially connected to obtain the explanation dimension link of the second explanation topic.

9. The method of claim 8, wherein, The N-dimension nodes of the second explanation theme include a dimension node S i , i is a positive integer less than or equal to N; The step of determining N dimension nodes of the second explanatory topic from the target dimension graph based on the connection relationship between the second explanatory topic and at least one dimension node in the target dimension graph includes: When i is equal to 1, according to a connection relationship between at least one dimension node in the target dimension graph, a node out-degree corresponding to each of at least one dimension node contained in the target dimension graph is counted, and a dimension node with a maximum node out-degree in the target dimension graph is determined as the illustration dimension S i ; When i is greater than 1, dimension node S is obtained in the target dimension graph based on the connection relationship between at least one dimension node in the target dimension graph. i-1 Find R second neighbor nodes, and count the number of each second neighbor node and the dimension node S. i-1 The third number of second connecting edges exists between them, and the second neighbor node with the largest third number is determined as the dimension node S. i R is an integer, and the second neighbor node refers to the node that is adjacent to the dimension node S. i-1 There are dimension nodes with a second connecting edge between them.

10. The method of claim 1, wherein, The step of calling the explanation prediction model based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic to perform explanation prediction processing, and obtaining the second explanation content corresponding to the second explanation topic, includes: Based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, predictive prompt words are constructed; Input the predicted prompts into the explanation prediction model; The second explanation content corresponding to the second explanation topic is obtained by performing explanation prediction processing through the explanation prediction model.

11. The method of claim 10, wherein, The construction of predictive prompt words based on the first explanatory topic, the second explanatory topic, and the explanatory dimension link of the second explanatory topic includes: Obtain a game knowledge graph; the game knowledge graph contains resource nodes corresponding to at least one game resource in the game and at least one third connection edge, each of the third connection edges being used to connect two resource nodes that have a resource association relationship; Based on the game data and the game knowledge graph, determine the game background knowledge corresponding to the game. Based on the first commentary topic, the second commentary topic, the commentary dimension link of the second commentary topic, and the game background knowledge, predictive prompt words are constructed.

12. The method of claim 11, wherein, The step of determining the game background knowledge corresponding to the game match based on the game match data and the game knowledge graph includes: Based on the game data of the game, obtain the target game resources involved in the game; In the game knowledge graph, the resource node corresponding to the target game resource is determined as the target resource node; In the game knowledge graph, the third neighbor node of the target resource node is obtained; the third neighbor node refers to a resource node that has a third connecting edge with the target resource node. The game knowledge reflected in the knowledge subgraph formed by the target resource node and the third neighbor node is determined as the game background knowledge corresponding to the game match.

13. The method of claim 11, wherein, The pre-configuration process of the game knowledge graph includes: Obtain at least one game resource contained in the game, and a game strategy guide for the game; Based on the resource attributes of each game resource, determine the attribute association relationship between the at least one game resource; Determine the resource utilization relationship between the at least one game resource based on the game strategy; For each game resource, a corresponding resource node is constructed, and based on the attribute association and resource utilization relationship between the at least one game resource, a corresponding third connection edge is constructed between the at least one resource node.

14. A game processing device, characterized by comprising: The device includes: The first acquisition module is used to acquire the first commentary content in the game and the first commentary topic corresponding to the first commentary content; The second acquisition module is used to acquire a pre-configured topic knowledge graph and dimension knowledge graph. The topic knowledge graph includes at least one topic node and at least one first connecting edge. One topic node represents a commentary topic of the game, and one first connecting edge is used to connect two topic nodes with a commentary connection relationship. The dimension knowledge graph includes a dimension graph corresponding to each commentary topic. One dimension graph includes at least one dimension node and at least one second connecting edge. One dimension node represents a commentary dimension, and one second connecting edge is used to connect two dimension nodes. The topic prediction module is used to predict the second commentary topic of the game match based on the first commentary topic and the topic knowledge graph. The link determination module is used to obtain the dimension graph corresponding to the second explanation topic from the dimension knowledge graph, and determine the explanation dimension link of the second explanation topic according to the connection relationship between at least one dimension node in the dimension graph corresponding to the second explanation topic; the explanation dimension link of the second explanation topic is used to indicate the explanation idea of ​​the second explanation topic; The explanation prediction module is used to call the explanation prediction model to perform explanation prediction processing based on the first explanation topic, the second explanation topic, and the explanation dimension link of the second explanation topic, so as to obtain the second explanation content corresponding to the second explanation topic.

15. A computer device, comprising: include: Processor, memory, and network interface; The processor is connected to the memory and the network interface, wherein the network interface is used to provide network communication functions, the memory is used to store computer programs, and the processor is used to call the computer programs to cause the computer device to execute the method according to any one of claims 1-13.

16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted to be loaded by a processor and to execute the method of any one of claims 1-13.

17. A computer program product, characterised in that, The computer program product includes a computer program stored in a computer-readable storage medium, the computer program being adapted to be read and executed by a processor to cause a computer device having the processor to perform the method of any one of claims 1-13.