[go: up one dir, main page]

CN114733195A - Game resource allocation method, device, equipment and medium based on bilateral adaptation - Google Patents

Game resource allocation method, device, equipment and medium based on bilateral adaptation Download PDF

Info

Publication number
CN114733195A
CN114733195A CN202210361136.XA CN202210361136A CN114733195A CN 114733195 A CN114733195 A CN 114733195A CN 202210361136 A CN202210361136 A CN 202210361136A CN 114733195 A CN114733195 A CN 114733195A
Authority
CN
China
Prior art keywords
game
scene
data
level
levels
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210361136.XA
Other languages
Chinese (zh)
Other versions
CN114733195B (en
Inventor
黄玉如
刘锋俊
赵书军
易玮莹
吴春海
薛文飞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN202210361136.XA priority Critical patent/CN114733195B/en
Publication of CN114733195A publication Critical patent/CN114733195A/en
Application granted granted Critical
Publication of CN114733195B publication Critical patent/CN114733195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/52Controlling the output signals based on the game progress involving aspects of the displayed game scene
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/279Recognition of textual entities
    • G06F40/289Phrasal analysis, e.g. finite state techniques or chunking
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Computational Linguistics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Molecular Biology (AREA)
  • Computing Systems (AREA)
  • Evolutionary Computation (AREA)
  • Data Mining & Analysis (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • Biophysics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to an artificial intelligence technology, and discloses a game resource allocation method based on bilateral adaptation, which comprises the following steps: extracting a game release object from the game configuration requirement, and constructing a semantic matrix of the game configuration requirement; screening the game level cards matched with the semantic matrix from the game level card pool, and combining the game level cards into a first game frame according to the incidence relation among the game level cards; acquiring user data of a game object, and screening a game scene matched with the user data from a preset scene pool; and configuring the first game frame scene according to the scene data of the game scene to obtain a second game frame. In addition, the invention also relates to a blockchain technology, and game configuration requirements can be stored in the nodes of the blockchain. The invention also provides a game resource allocation device, equipment and medium based on bilateral adaptation. The invention can solve the problems of complexity in teaching game development and low matching degree between the developed game and the game object.

Description

基于双边适配的游戏资源配置方法、装置、设备及介质Game resource allocation method, device, device and medium based on bilateral adaptation

技术领域technical field

本发明涉及人工智能技术领域,尤其涉及一种基于双边适配的游戏资源配置方法、装置、电子设备及计算机可读存储介质。The present invention relates to the technical field of artificial intelligence, and in particular, to a method, device, electronic device and computer-readable storage medium for configuring game resources based on bilateral adaptation.

背景技术Background technique

随着信息社会的发展,人们接触到的知识领域越来越广泛,因此,为了更快速地了解与掌握大量的知识,人们越来越青睐于接受线上培训教学,同时,为了提升线上教学的趣味性,线上教学的提供者往往会将教学内容与教学游戏相结合,以实现对教学效果的提升。With the development of the information society, people are exposed to more and more fields of knowledge. Therefore, in order to understand and master a large amount of knowledge more quickly, people are more and more inclined to accept online training and teaching. At the same time, in order to improve online teaching In order to improve the teaching effect, online teaching providers often combine teaching content with teaching games.

现有的教学游戏开发过程往往是基于教学内容固定开发出一套适配的游戏内容,开发出的游戏内容较为固化,当教学内容发生较小变动时,为了符合教学内容,需要重新教学开发,导致开发过程较为繁琐;同时,开发出的游戏只实现了对教学内容的匹配,当学员为不同领域的从业人员时,教学游戏的内容与学员的匹配度较低。In the existing teaching game development process, a set of suitable game content is often developed based on the teaching content. As a result, the development process is cumbersome; at the same time, the games developed only match the teaching content. When the students are practitioners in different fields, the content of the teaching games and the students have a low degree of matching.

发明内容SUMMARY OF THE INVENTION

本发明提供一种基于双边适配的游戏资源配置方法、装置及计算机可读存储介质,其主要目的在于解决进行教学游戏开发时较为复杂且开发出的游戏与游戏对象的匹配度较低的问题。The present invention provides a game resource configuration method, device and computer-readable storage medium based on bilateral adaptation, the main purpose of which is to solve the problem that the development of teaching games is complicated and the degree of matching between the developed game and the game object is low. .

为实现上述目的,本发明提供的一种基于双边适配的游戏资源配置方法,包括:In order to achieve the above object, the present invention provides a method for configuring game resources based on bilateral adaptation, including:

获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵;Obtaining the user's game configuration requirements, extracting a game release object from the game configuration requirements, and constructing a semantic matrix of the game configuration requirements;

从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡;Filter out the game level matching the semantic matrix from the predetermined game level pool;

获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架;Obtain the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and combine the game levels according to the association relationship to obtain a first game framework;

获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景;Obtaining the user data of the game object, constructing a data abstract of the user data, and filtering out a game scene that matches the data abstract from a preset scene pool;

获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。Acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame.

可选地,所述构建所述游戏配置需求的语义矩阵,包括:Optionally, the constructing the semantic matrix of the game configuration requirements includes:

对所述游戏配置需求进行分词处理,得到需求分词;Perform word segmentation processing on the game configuration requirements to obtain demand word segmentation;

统计所述需求分词中每一个分词的分词频率,选取所述分词频率大于预设频率阈值的需求分词为关键词,并将所述关键词中每一个词语转换为词向量;Counting the word segmentation frequency of each word segment in the demand word segmentation, selecting a demand word segment whose word segmentation frequency is greater than a preset frequency threshold as a keyword, and converting each word in the keyword into a word vector;

将所述词向量拼接为向量矩阵,并确定所述向量矩阵为所述游戏配置需求的语义矩阵。The word vectors are spliced into a vector matrix, and the vector matrix is determined to be a semantic matrix required by the game configuration.

可选地,所述从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡,包括:Optionally, the filtering to obtain game levels matching the semantic matrix from a predetermined game level pool, including:

获取所述游戏关卡池中每个游戏关卡的关卡标签;Obtain the level label of each game level in the game level pool;

逐个计算所述语义矩阵与每个所述关卡标签直接的距离值;Calculate the direct distance value between the semantic matrix and each of the level labels one by one;

选取所述距离值小于预设距离阈值的关卡标签对应的游戏关卡,并确定被选取的游戏关卡为与所述语义矩阵相匹配的游戏关卡。The game level corresponding to the level label whose distance value is smaller than the preset distance threshold is selected, and the selected game level is determined to be the game level matching the semantic matrix.

可选地,所述根据所述游戏内容识别每个所述游戏关卡之间的关联关系,包括:Optionally, identifying the association relationship between each of the game levels according to the game content includes:

逐个从所述游戏关卡中选取其中一个游戏关卡为目标关卡;Selecting one of the game levels as the target level from the game levels one by one;

利用规则表达式从所述目标关卡的游戏内容中筛选出所述目标关卡的游戏条件;Using regular expressions to filter out the game conditions of the target level from the game content of the target level;

构建所述游戏条件对应的条件矩阵,并利用所述条件矩阵对预设的决策函数进行赋值,得到所述目标关卡的决策树;Constructing a condition matrix corresponding to the game condition, and using the condition matrix to assign a value to a preset decision function to obtain a decision tree of the target level;

汇集所有游戏关卡对应的决策树,得到决策树模型;Collect decision trees corresponding to all game levels to get a decision tree model;

将所有游戏关卡对应的所述游戏内容输入至所述决策树模型,得到所述决策树模型输出的每个所述游戏关卡之间的关联关系。The game content corresponding to all game levels is input into the decision tree model, and the association relationship between each game level output by the decision tree model is obtained.

可选地,所述按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架,包括:Optionally, combining the game levels according to the association relationship to obtain a first game framework, including:

筛选出相互之间存在关联关系的游戏关卡;Screen out game levels that are related to each other;

按照所述关联关系的先后顺序将筛选出的游戏关卡进行组合,得到中间框架;Combine the screened game levels according to the sequence of the association relationship to obtain an intermediate frame;

将相互之间不存在关联关系的游戏关卡随机插入所述中间框架内,得到所述第一游戏框架。The first game frame is obtained by randomly inserting game levels that are not associated with each other into the intermediate frame.

可选地,所述构建所述用户数据的数据摘要,包括:Optionally, the constructing the data digest of the user data includes:

将所述用户数数据拆分为多个数据分词,并将每个所述数据分词转换为分词向量;Splitting the user number data into a plurality of data segmentations, and converting each of the data segmentations into a segmentation vector;

按照每个数据分词在所述用户数据中位置的先后顺序为所述分词向量中添加位置编码信息,得到编码向量;Add position encoding information to the word segmentation vector according to the sequence of the position of each data segment in the user data to obtain an encoding vector;

利用预设的摘要提取模型对每个所述编码向量进行预设次数的卷积和池化处理,得到向量特征;Using a preset abstract extraction model to perform a preset number of convolution and pooling processes on each of the encoding vectors to obtain vector features;

根据所述向量特征计算每个所述编码向量对应的分词向量为摘要词的词概率值;Calculate the word probability value that the word segmentation vector corresponding to each described encoding vector is the abstract word according to the vector feature;

将所述词概率值大于预设概率阈值的分词向量汇集为所述用户数据的数据摘要。The word segmentation vectors whose word probability value is greater than the preset probability threshold are collected into a data abstract of the user data.

可选地,所述根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架,包括:Optionally, performing scene configuration on the first game framework according to the scene data to obtain a second game framework, including:

将所述场景数据进行参数编码,得到场景参数;performing parameter encoding on the scene data to obtain scene parameters;

利用所述场景参数对所述第一游戏框架进行参数赋值,得到第二游戏框架。Parameter assignment is performed on the first game frame by using the scene parameters to obtain a second game frame.

为了解决上述问题,本发明还提供一种基于双边适配的游戏资源配置装置,所述装置包括:In order to solve the above problems, the present invention also provides a game resource configuration device based on bilateral adaptation, the device includes:

需求分析模块,用于获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵;A demand analysis module, used for acquiring the game configuration requirements of the user, extracting the game release object from the game configuration requirements, and constructing a semantic matrix of the game configuration requirements;

关卡筛选模块,用于从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡;a level screening module, used for filtering out game levels matching the semantic matrix from a predetermined pool of game levels;

第一配置模块,用于获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架;a first configuration module, configured to acquire the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and combine the game levels according to the association relationship, Get the first game frame;

场景筛选模块,用于获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景;a scene screening module, configured to obtain the user data of the game object, construct a data abstract of the user data, and filter out a game scene matching the data abstract from a preset scene pool;

第二配置模块,用于获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。The second configuration module is configured to acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame.

为了解决上述问题,本发明还提供一种电子设备,所述电子设备包括:In order to solve the above problems, the present invention also provides an electronic device, the electronic device includes:

至少一个处理器;以及,at least one processor; and,

与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein,

所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述所述的基于双边适配的游戏资源配置方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the bilateral adaptation-based algorithm described above. Game resource allocation method.

为了解决上述问题,本发明还提供一种计算机可读存储介质,所述计算机可读存储介质中存储有至少一个计算机程序,所述至少一个计算机程序被电子设备中的处理器执行以实现上述所述的基于双边适配的游戏资源配置方法。In order to solve the above problems, the present invention also provides a computer-readable storage medium, where at least one computer program is stored in the computer-readable storage medium, and the at least one computer program is executed by a processor in an electronic device to realize the above-mentioned The described game resource allocation method based on bilateral adaptation.

本发明实施例通过对用户的游戏配置需求进行分析,以从关卡池中筛选出符合用户需求的游戏关卡,并按照关卡之间的关联关系将关卡组合为第一游戏框架,实现了对配置方需求的适配,并且,将游戏拆解为多个关卡进行组合,降低了游戏整体的耦合性,提升了游戏配置的灵活度;同时,对游戏对象的用户数据进行分析,以筛选出符合游戏对象的游戏场景,并根据该游戏场景对第一游戏框架进行赋值,得到具有与游戏对象相应游戏场景的第二游戏框架,实现了对游戏对象的适配;即同时完成了对配置方需求与用户数据的双边适配,提升了游戏与各方的匹配度。因此本发明提出的基于双边适配的游戏资源配置方法、装置、电子设备及计算机可读存储介质,可以解决进行教学游戏开发时较为复杂且开发出的游戏与游戏对象的匹配度较低的问题。The embodiment of the present invention analyzes the user's game configuration requirements, selects game levels that meet the user's requirements from the level pool, and combines the levels into a first game framework according to the relationship between the levels, thereby realizing the configuration method. The game is divided into multiple levels for combination, which reduces the overall coupling of the game and improves the flexibility of the game configuration; at the same time, analyzes the user data of game objects to filter out games The game scene of the object, and the first game frame is assigned according to the game scene, and the second game frame with the game scene corresponding to the game object is obtained, which realizes the adaptation of the game object; Bilateral adaptation of user data improves the match between the game and all parties. Therefore, the game resource allocation method, device, electronic device and computer-readable storage medium based on bilateral adaptation proposed by the present invention can solve the problems that the development of teaching games is complicated and the matching degree between the developed game and the game object is low. .

附图说明Description of drawings

图1为本发明一实施例提供的基于双边适配的游戏资源配置方法的流程示意图;1 is a schematic flowchart of a method for configuring game resources based on bilateral adaptation provided by an embodiment of the present invention;

图2为本发明一实施例提供的构建语义矩阵的流程示意图;2 is a schematic flowchart of constructing a semantic matrix according to an embodiment of the present invention;

图3为本发明一实施例提供的从游戏关卡池中筛选得到与语义矩阵相匹配的游戏关卡的流程示意图;FIG. 3 is a schematic flowchart of screening a game level matching a semantic matrix from a game level pool according to an embodiment of the present invention;

图4为本发明一实施例提供的基于双边适配的游戏资源配置装置的功能模块图;4 is a functional block diagram of a device for configuring game resources based on bilateral adaptation provided by an embodiment of the present invention;

图5为本发明一实施例提供的实现所述基于双边适配的游戏资源配置方法的电子设备的结构示意图。FIG. 5 is a schematic structural diagram of an electronic device implementing the method for configuring game resources based on bilateral adaptation according to an embodiment of the present invention.

本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization, functional characteristics and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments.

具体实施方式Detailed ways

应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described herein are only used to explain the present invention, but not to limit the present invention.

本申请实施例提供一种基于双边适配的游戏资源配置方法。所述基于双边适配的游戏资源配置方法的执行主体包括但不限于服务端、终端等能够被配置为执行本申请实施例提供的该方法的电子设备中的至少一种。换言之,所述基于双边适配的游戏资源配置方法可以由安装在终端设备或服务端设备的软件或硬件来执行,所述软件可以是区块链平台。所述服务端包括但不限于:单台服务器、服务器集群、云端服务器或云端服务器集群等。所述服务器可以是独立的服务器,也可以是提供云服务、云数据库、云计算、云函数、云存储、网络服务、云通信、中间件服务、域名服务、安全服务、内容分发网络(ContentDeliveryNetwork,CDN)、以及大数据和人工智能平台等基础云计算服务的云服务器。The embodiment of the present application provides a game resource configuration method based on bilateral adaptation. The execution subject of the method for configuring game resources based on bilateral adaptation includes, but is not limited to, at least one of electronic devices that can be configured to execute the method provided by the embodiments of the present application, such as a server and a terminal. In other words, the method for configuring game resources based on bilateral adaptation can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, and the like. The server may be an independent server, or may provide cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as cloud servers for basic cloud computing services such as big data and artificial intelligence platforms.

参照图1所示,为本发明一实施例提供的基于双边适配的游戏资源配置方法的流程示意图。在本实施例中,所述基于双边适配的游戏资源配置方法包括:Referring to FIG. 1 , it is a schematic flowchart of a method for configuring game resources based on bilateral adaptation provided by an embodiment of the present invention. In this embodiment, the method for configuring game resources based on bilateral adaptation includes:

S1、获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵。S1. Acquire a user's game configuration requirement, extract a game release object from the game configuration requirement, and construct a semantic matrix of the game configuration requirement.

本发明实施例中,所述用户为对游戏内容进行配置的人员;所述游戏配置需求包括用户对最终可配置出的游戏内容所确定的关卡数量、难度等级、游戏类型等数据;所述游戏对象是指最终配置出的游戏的受众群体。In this embodiment of the present invention, the user is a person who configures game content; the game configuration requirements include data such as the number of levels, difficulty level, game type, etc. determined by the user for the final configurable game content; the game The object refers to the audience of the final configured game.

例如,老师存在如下游戏配置需求:“根据数学的学科要求为学生配置出包含多道数学选择题的限时闯关游戏”,其中,“老师”为所述用户,“学生”为所述游戏发布对象。For example, a teacher has the following game configuration requirements: "configure a time-limited game that includes multiple multiple-choice math questions for students according to the subject requirements of mathematics", where "teacher" is the user and "student" is the game release object .

详细地,可利用具有数据抓取功能的计算机语句(如java语句、python语句等)从预先确定的数据存储内抓取预先存储的游戏配置需求,其中,所述数据存储包括但不限于数据库、区块链节点、网络缓存等。In detail, a computer statement (such as a java statement, a python statement, etc.) with a data grabbing function can be used to grab the pre-stored game configuration requirements from a predetermined data store, wherein the data store includes but is not limited to a database, Blockchain nodes, network caches, etc.

本发明实施例中,可利用预先训练的命名实体识别模型从所述游戏配置需求中提取出游戏发布对象,其中,所述命名实体识别模型包括预先训练完成的基于CRF(conditional random field algorithm,条件随机场)的实体识别模型、基于SVM(supportvector machines,支持向量机)的实体识别模型等。In this embodiment of the present invention, a pre-trained named entity recognition model may be used to extract the game release object from the game configuration requirements, wherein the named entity recognition model includes a pre-trained CRF (conditional random field algorithm, conditional random field algorithm) Random field) entity recognition model, SVM (supportvector machines, support vector machine)-based entity recognition model, etc.

进一步地,为了实现对所述游戏配置需求的精确分析,可对该游戏配置需求进行分析,以构建出所述游戏配置需求的语义矩阵。Further, in order to achieve accurate analysis of the game configuration requirements, the game configuration requirements may be analyzed to construct a semantic matrix of the game configuration requirements.

本发明实施例中,参图2所示,所述构建所述游戏配置需求的语义矩阵,包括:In the embodiment of the present invention, as shown in FIG. 2 , the construction of the semantic matrix of the game configuration requirements includes:

S21、对所述游戏配置需求进行分词处理,得到需求分词;S21, performing word segmentation processing on the game configuration requirement to obtain a requirement word segmentation;

S22、统计所述需求分词中每一个分词的分词频率,选取所述分词频率大于预设频率阈值的需求分词为关键词,并将所述关键词中每一个词语转换为词向量;S22, count the word segmentation frequency of each word segment in the demand word segmentation, select the demand word segmentation whose word segmentation frequency is greater than a preset frequency threshold as a keyword, and convert each word in the keyword into a word vector;

S23、将所述词向量拼接为向量矩阵,并确定所述向量矩阵为所述游戏配置需求的语义矩阵。S23, splicing the word vectors into a vector matrix, and determining that the vector matrix is a semantic matrix required by the game configuration.

详细地,可利用预先训练的具有分词功能的人工智能模型对所述游戏配置需求进行分词处理,得到所述需求分词,其中,所述人工智能模型包括但不限于NLP(NaturalLanguage Processing,自然语言处理)模型、HMM(Hidden Markov Model,隐马尔可夫模型)。In detail, a pre-trained artificial intelligence model with a word segmentation function can be used to perform word segmentation processing on the game configuration requirements to obtain the demand word segmentation, wherein the artificial intelligence model includes but is not limited to NLP (Natural Language Processing, natural language processing). ) model, HMM (Hidden Markov Model, Hidden Markov Model).

具体地,所述分词频率是指某一个分词在所述游戏配置需求的需求分词中出现的次数,当分词的分词频率越高,则说明该分词的重要性越大,因此,可选取所述分词频率大于预设频率阈值的需求分词为关键词。Specifically, the word segmentation frequency refers to the number of times a certain word appears in the required word segmentation of the game configuration requirements. When the word segmentation frequency of the word segmentation is higher, the importance of the word segmentation is greater. Therefore, the Demand word segmentation whose word segmentation frequency is greater than the preset frequency threshold is regarded as a keyword.

进一步地,为了提高对所述关键词的处理效率,可利用预先训练的词向量模型将所述关键词转换为数值形式的词向量,其中,所述词向量模型包括但不限于word2vec模型、bert模型。Further, in order to improve the processing efficiency of the keyword, a pre-trained word vector model can be used to convert the keyword into a numerical word vector, wherein the word vector model includes but is not limited to the word2vec model, the bert Model.

本发明实施例中,所述将所述词向量拼接为向量矩阵,包括:统计所述词向量中每一个词向量的向量长度,确定所述向量长度中的最大值为目标长度;利用预设参数将所述词向量中的每一个向量的向量长度延长至所述目标长度;将延长后的所述词向量中的每一个向量作为行向量进行拼接,得到向量矩阵。In this embodiment of the present invention, splicing the word vectors into a vector matrix includes: counting the vector lengths of each word vector in the word vectors, and determining the maximum value of the vector lengths as the target length; using a preset The parameter extends the vector length of each of the word vectors to the target length; and splices each of the extended word vectors as a row vector to obtain a vector matrix.

详细地,由于所述词向量是由不同的关键词转换得到的,因此,所述词向量中不同向量的向量长度可能存在差异,为了便于后续拼接,可利用预设参数将所有词向量的长度延长至统一长度。In detail, since the word vectors are converted from different keywords, the vector lengths of different vectors in the word vectors may be different. Extend to uniform length.

例如,所述词向量中包含向量A:(1,4,6),向量B:(2,3),向量C:(3,7,8,9),经过统计可知,向量A的向量长度为3,向量B的向量长度为2,向量C的向量长度为4,则确定4为所述目标长度,并利用预设参数(如x)将向量A的向量长度延长为4,得到延长后的向量A:(1,4,6,x),将向量B的向量长度延长为4,得到延长后的向量B:(2,3,x,x)。For example, the word vector contains vector A: (1, 4, 6), vector B: (2, 3), and vector C: (3, 7, 8, 9). Statistics show that the vector length of vector A is is 3, the vector length of vector B is 2, and the vector length of vector C is 4, then determine 4 as the target length, and use preset parameters (such as x) to extend the vector length of vector A to 4, and after the extension The vector A: (1,4,6,x), extend the vector length of the vector B to 4, and get the extended vector B: (2,3,x,x).

进一步地,可将延长后的每一个词向量作为行向量,拼接为如下所述向量矩阵:Further, each extended word vector can be used as a row vector, and spliced into the following vector matrix:

Figure BDA0003585326860000071
Figure BDA0003585326860000071

本发明实施例中,由于所述向量矩阵为所述游戏配置需求的关键词对应的向量拼接而成,因此可将所述向量矩阵作为所述游戏配置需求的语义矩阵。In the embodiment of the present invention, since the vector matrix is formed by splicing vectors corresponding to the keywords of the game configuration requirement, the vector matrix can be used as the semantic matrix of the game configuration requirement.

S2、从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡。S2. Filter out a game level matching the semantic matrix from a predetermined game level pool.

本发明其中一个实际应用场景中,所述游戏关卡池中包含预设的多种游戏关卡,为了实现对游戏的精确配置,可根据所述语义矩阵从所述游戏关卡池中筛选得到相应的游戏关卡,以保证后续配置出的游戏与所述游戏配置需求的吻合程度。In one of the practical application scenarios of the present invention, the game level pool contains a variety of preset game levels. In order to achieve precise configuration of the game, the corresponding game can be obtained by filtering the game level pool according to the semantic matrix. level to ensure that the subsequently configured game matches the game configuration requirements.

本发明实施例中,参图3所示,所述从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡,包括:In the embodiment of the present invention, as shown in FIG. 3 , the game level that matches the semantic matrix is obtained by screening the predetermined game level pool, including:

S31、获取所述游戏关卡池中每个游戏关卡的关卡标签;S31. Obtain the level label of each game level in the game level pool;

S32、逐个计算所述语义矩阵与每个所述关卡标签直接的距离值;S32, calculate the direct distance value between the semantic matrix and each of the level labels one by one;

S33、选取所述距离值小于预设距离阈值的关卡标签对应的游戏关卡,并确定被选取的游戏关卡为与所述语义矩阵相匹配的游戏关卡。S33. Select the game level corresponding to the level label whose distance value is smaller than the preset distance threshold, and determine that the selected game level is the game level matching the semantic matrix.

详细地,所述关卡标签是用于对不同的游戏关卡的内容进行标记的标签。In detail, the level tag is a tag used to mark the content of different game levels.

具体地,可利用具有距离值计算功能的算法(如欧式距离算法、余弦距离算法等)逐个计算所述语义矩阵与每个所述关卡标签直接的距离值。Specifically, an algorithm with a distance value calculation function (eg, Euclidean distance algorithm, cosine distance algorithm, etc.) can be used to calculate the direct distance value between the semantic matrix and each of the level labels one by one.

S3、获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架。S3. Obtain the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and combine the game levels according to the association relationship to obtain a first game framework .

本发明实施例中,所述游戏内容是指每个游戏关卡所包含的游戏的游戏名词、游戏适合群体、游戏规则等数据内容。In the embodiment of the present invention, the game content refers to data content such as the game noun, the game suitable group, the game rules, etc. of the game included in each game level.

本发明其中一个实际应用场景中,由于复合所述游戏配置需求的游戏关卡可能有很多个,且每个不同的关卡之间可能存在着关联关系。In one of the practical application scenarios of the present invention, there may be many game levels for compounding the game configuration requirements, and there may be an association relationship between each different level.

例如,存在关卡A和关卡B,其中关卡B的通关条件为使用关卡A通关后获得的道具a,则关卡B必须排列与关卡A之后。For example, there are level A and level B, where the clearance condition of level B is to use the item a obtained after level A is cleared, then level B must be arranged after level A.

因此,可根据每个游戏关卡的游戏内容进行分析,以识别出每个游戏关卡之间的关联关系,进而按照该关联关系对多个游戏关卡进行组合,以提升配置出的游戏的连贯性,实现对游戏的精确配置。Therefore, it is possible to analyze the game content of each game level to identify the relationship between each game level, and then combine multiple game levels according to the relationship to improve the coherence of the configured game. Achieve precise configuration of the game.

本发明实施例中,所述根据所述游戏内容识别每个所述游戏关卡之间的关联关系,包括:逐个从所述游戏关卡中选取其中一个游戏关卡为目标关卡;利用规则表达式从所述目标关卡的游戏内容中筛选出所述目标关卡的游戏条件;构建所述游戏条件对应的条件矩阵,并利用所述条件矩阵对预设的决策函数进行赋值,得到所述目标关卡的决策树;汇集所有游戏关卡对应的决策树,得到决策树模型;将所有游戏关卡对应的所述游戏内容输入至所述决策树模型,得到所述决策树模型输出的每个所述游戏关卡之间的关联关系。In this embodiment of the present invention, identifying the association relationship between each of the game levels according to the game content includes: selecting one game level from the game levels as a target level one by one; Screen out the game conditions of the target level from the game content of the target level; construct a condition matrix corresponding to the game conditions, and use the condition matrix to assign a value to a preset decision function to obtain a decision tree of the target level ; Bring together the decision trees corresponding to all game levels to obtain a decision tree model; Input the game content corresponding to all game levels into the decision tree model, and obtain the output of the decision tree model between each of the game levels. connection relation.

详细地,所述游戏条件包括每一个关卡的进入条件与通过条件。In detail, the game conditions include entry conditions and pass conditions of each level.

具体地,所述构建所述游戏条件对应的条件矩阵的步骤,与S1中构建所述游戏配置需求的语义矩阵的步骤一致,在此不做赘述。Specifically, the step of constructing the condition matrix corresponding to the game condition is the same as the step of constructing the semantic matrix of the game configuration requirement in S1, and will not be repeated here.

进一步地,为了识别出每个所述游戏关卡之间的关联关系,可利用预设的决策函数构建用于对游戏关卡的游戏内容进行决策识别的决策树。Further, in order to identify the association relationship between each of the game levels, a predetermined decision function can be used to construct a decision tree for decision-making and identification of the game content of the game level.

详细地,所述决策函数可以为:In detail, the decision function can be:

Figure BDA0003585326860000081
Figure BDA0003585326860000081

其中,f(x)为所述决策函数的输出值,x为所述决策函数的参数,g(y)为所述决策函数的输入值。Wherein, f(x) is the output value of the decision function, x is the parameter of the decision function, and g(y) is the input value of the decision function.

具体地,可利用所述游戏条件对应的条件矩阵对预设的决策函数进行赋值,得到所述目标关卡的决策树,进而将所有游戏关卡对应的所述游戏内容输入至所述决策树模型,进而利用所述决策树模型识别每个所述游戏关卡之间的关联关系。Specifically, the preset decision function can be assigned values by using the condition matrix corresponding to the game conditions to obtain the decision tree of the target level, and then the game contents corresponding to all game levels are input into the decision tree model, Further, the decision tree model is used to identify the relationship between each of the game levels.

本发明实施例中,所述按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架,包括:筛选出相互之间存在关联关系的游戏关卡;按照所述关联关系的先后顺序将筛选出的游戏关卡进行组合,得到中间框架;将相互之间不存在关联关系的游戏关卡随机插入所述中间框架内,得到所述第一游戏框架。In the embodiment of the present invention, combining the game levels according to the association relationship to obtain the first game framework includes: screening out game levels that are associated with each other; The screened game levels are combined to obtain an intermediate frame; game levels that do not have an associated relationship with each other are randomly inserted into the intermediate frame to obtain the first game frame.

详细地,当存在两个以上的游戏关卡时,可能部分的游戏关卡之间存在关联关系,但部分的关卡与其他任何关卡之间不存在关联关系。In detail, when there are more than two game levels, there may be an association relationship between some game levels, but there is no association relationship between some of the game levels and any other levels.

例如,存在关卡A、关卡B和关卡C,其中,关卡A和关卡B之间存在“关卡B的进入条件为获取关卡A的通关奖励物品”,关卡C与关卡A、关卡B之间不存在任何关联关系。For example, there are level A, level B, and level C. Among them, there is "the entry condition of level B is to obtain the clearance reward items of level A" between level A and level B, and there is no level between level C and level A and level B. any affiliation.

因此,为了实现对游戏关卡进行高效地组合,可筛选出所述游戏关卡中存在关联关系的关卡,进而按照关卡之间的关联关系的先后顺序,将筛选出的游戏关卡进行组合,得到中间框架。Therefore, in order to achieve efficient combination of game levels, the levels with associated relationships in the game levels can be filtered out, and then the filtered game levels can be combined according to the sequence of the association relationships between the levels to obtain an intermediate frame. .

具体地,由于不存在关联关系的游戏关卡与其他关卡之间的关联性较低,因此,当存在关联关系的游戏关卡组合完成之后,可将相互之间不存在关联关系的游戏关卡随机插入所述中间框架内,从而得到第一游戏框架。Specifically, since the correlation between game levels that do not have an associated relationship and other levels is relatively low, after the game levels that have an associated relationship are combined, the game levels that do not have an associated relationship with each other can be randomly inserted into all levels. In the middle frame, the first game frame is obtained.

S4、获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景。S4. Acquire the user data of the game object, construct a data abstract of the user data, and filter out a game scene matching the data abstract from a preset scene pool.

本发明实施例中,所述用户数据包括所述游戏对象的年龄、性别、受教育程度、职业等数据;所述用户数据可由所述游戏对象上传至预设数据表单或页面中。In this embodiment of the present invention, the user data includes the age, gender, education level, occupation and other data of the game object; the user data can be uploaded by the game object to a preset data form or page.

本发明其中一个实际应用场景中,由于生成的第一游戏框架仅为多个游戏关卡按照关联关系进行组合得到的,因此,生成的所述第一游戏框架与游戏对象的匹配程度较低,为了实现对游戏对象的精确配置,可对所述游戏对象的用户数据进行分析,以从预设的场景池中筛选出与该游戏对象相匹配的游戏场景,提升最终生成的游戏框架与游戏对象的适配性。In one of the practical application scenarios of the present invention, since the generated first game frame is only obtained by combining multiple game levels according to the association relationship, the matching degree between the generated first game frame and the game object is low, in order to Realize the precise configuration of the game object, and analyze the user data of the game object to filter out the game scene that matches the game object from the preset scene pool, and improve the final generated game frame and the game object. suitability.

详细地,所述场景池中包含多种不同的游戏场景,该游戏场景为预先通过对不同年龄、性别、职业、受教育程度等用户群体进行分析并创建得到。In detail, the scene pool includes a variety of different game scenes, and the game scenes are obtained by analyzing and creating user groups of different ages, genders, occupations, education levels, etc. in advance.

本发明实施例中,所述构建所述用户数据的数据摘要,包括:将所述用户数数据拆分为多个数据分词,并将每个所述数据分词转换为分词向量;按照每个数据分词在所述用户数据中位置的先后顺序为所述分词向量中添加位置编码信息,得到编码向量;利用预设的摘要提取模型对每个所述编码向量进行预设次数的卷积和池化处理,得到向量特征;根据所述向量特征计算每个所述编码向量对应的分词向量为摘要词的词概率值;将所述词概率值大于预设概率阈值的分词向量汇集为所述用户数据的数据摘要。In the embodiment of the present invention, the constructing the data summary of the user data includes: dividing the user number data into multiple data segments, and converting each data segment into a segment vector; according to each data segment The order of the position of the word segmentation in the user data is to add position coding information to the word segmentation vector to obtain a coding vector; use a preset abstract extraction model to perform a preset number of convolutions and pooling on each of the coding vectors processing to obtain a vector feature; calculating the word probability value of the word segmentation vector corresponding to each of the coding vectors as the abstract word according to the vector feature; collecting the word segmentation vectors with the word probability value greater than the preset probability threshold as the user data data summary.

详细地,可利用预设的jieba、SnowNLP、PKUse、THULAC等分词工具将所述用户数据拆分为若干数据分词;或者,可通过Python中NLTK库内的word_tokenize()方法将所述用户数据拆分为若干数据分词。In detail, the user data can be split into several data word segmentations by using preset word segmentation tools such as jieba, SnowNLP, PKUse, THULAC, etc.; or, the user data can be split by the word_tokenize() method in the NLTK library in Python Divide into several data segmentations.

示例性地,可利用如下word_tokenize()方法将所述用户数据拆分为若干数据分词:Exemplarily, the following word_tokenize() method can be used to split the user data into several data tokens:

from nltk.tokenize import word_tokenizefrom nltk.tokenize import word_tokenize

data="y"data="y"

print(word_tokenize(data))print(word_tokenize(data))

其中,y为所述用户数据。Wherein, y is the user data.

具体地,可利用transformer编码器、word2vec编码器、Autoencoder编码器等具有词语编码功能的编码器将将每个所述数据分词编码为词向量。Specifically, an encoder with a word encoding function, such as a transformer encoder, a word2vec encoder, and an Autoencoder encoder, may be used to encode each word segment of the data into a word vector.

详细地,可利用BERT模型按照上述编码方法将每个分词向量在所述用户数据中位置的先后顺序进行编码,并将编码后的位置信息添加至所述分词向量中,得到编码向量,以在该编码向量中体现出不同分词向量的位置信息,进而提升后续对该用户数据进行分析的精确度。In detail, the BERT model can be used to encode the order of the position of each word segmentation vector in the user data according to the above encoding method, and the encoded position information can be added to the word segmentation vector to obtain a coding vector to be used in The encoding vector reflects the position information of different word segmentation vectors, thereby improving the accuracy of subsequent analysis of the user data.

进一步地,所述摘要提取模型包括但不限于具有摘要词识别功能的卷积神经网络(Convolutional Neural Network,CNN)模型、支持向量机(Support Vector Machines,SVM)模型;所述关键词分析模型包括但不限于具有关键词识别功能的条件随机场(Conditional Random Field,CRF)模型、Lstm(Long short-term memory,长短期记忆)模型。Further, the abstract extraction model includes but is not limited to a Convolutional Neural Network (CNN) model and a Support Vector Machines (SVM) model with an abstract word recognition function; the keyword analysis model includes However, it is not limited to a conditional random field (Conditional Random Field, CRF) model and an Lstm (Long short-term memory, long short-term memory) model with a keyword recognition function.

详细地,可利用所述摘要提取模型中预设的激活函数根据所述向量特征计算每个所述编码向量对应的分词向量为摘要词的概率值,并将所述词概率值大于预设概率阈值的分词向量汇集为所述用户数据的数据摘要。In detail, the activation function preset in the abstract extraction model can be used to calculate the probability value that the word segmentation vector corresponding to each encoding vector is an abstract word according to the vector feature, and the word probability value is greater than the preset probability. The thresholded word segmentation vectors are aggregated into a data digest of the user data.

本发明实施例中,所述从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景的步骤,与S2中从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡的步骤一致,在此不做赘述。In the embodiment of the present invention, the step of filtering out the game scene matching the data abstract from the preset scene pool is the same as filtering out the predetermined game level pool in S2 and obtaining the game scene matching the semantic matrix. The steps of the game levels are the same, and will not be repeated here.

S5、获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。S5. Acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame.

本发明实施例中,所述游戏场景数据包括游戏的元素风格、界面色调、npc穿搭风格、游戏语音风格等数据。In the embodiment of the present invention, the game scene data includes data such as game element style, interface tone, npc outfit style, game voice style, and the like.

详细地,所述获取所述游戏场景的场景数据的步骤,与S1中获取用户的游戏配置需求的步骤一致,,在此不做赘述。In detail, the step of acquiring the scene data of the game scene is the same as the step of acquiring the user's game configuration requirement in S1, and will not be repeated here.

本发明其中一个实际应用场景中,由于所述第一游戏框架是根据所述用户的游戏配置需求对多个游戏关卡进行配置得到的,因此,该第一游戏框架符合该用户的游戏配置需求,但该游戏内容是面相游戏对象的,进而,为了实现对用户与游戏对象的双边匹配,可根据与所述游戏对象相对于的游戏场景对所述第一游戏框架进行场景配置,实现对游戏对象与用户的双边匹配。In one of the practical application scenarios of the present invention, since the first game framework is obtained by configuring multiple game levels according to the user's game configuration requirements, the first game framework meets the user's game configuration requirements, However, the game content is related to the game object. Furthermore, in order to achieve bilateral matching between the user and the game object, the first game frame A bilateral match with the user.

本发明实施例中,所述根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架,包括:将所述场景数据进行参数编码,得到场景参数;利用所述场景参数对所述第一游戏框架进行参数赋值,得到第二游戏框架。In this embodiment of the present invention, performing scene configuration on the first game framework according to the scene data to obtain the second game framework includes: performing parameter encoding on the scene data to obtain scene parameters; using the scene parameters Parameter assignment is performed on the first game frame to obtain a second game frame.

详细地,可利用预设的编码器对所述场景数据进行参数编码,得到场景参数,其中,所述编码器包括但不限于VAE(Variational Auto-Encoder,变分自编码器)、DAE(denoising autoencoder,降噪自编码器)。In detail, a preset encoder can be used to perform parameter encoding on the scene data to obtain scene parameters, wherein the encoder includes but is not limited to VAE (Variational Auto-Encoder, variational auto-encoder), DAE (denoising autoencoder, denoising autoencoder).

具体地,可将编码后得到的场景参数赋值至所述第一游戏框架,以得到对用户与游戏对象具有双边匹配的第二游戏框架。Specifically, the scene parameters obtained after encoding can be assigned to the first game frame, so as to obtain a second game frame with bilateral matching between the user and the game object.

本发明实施例通过对用户的游戏配置需求进行分析,以从关卡池中筛选出符合用户需求的游戏关卡,并按照关卡之间的关联关系将关卡组合为第一游戏框架,实现了对配置方需求的适配,并且,将游戏拆解为多个关卡进行组合,降低了游戏整体的耦合性,提升了游戏配置的灵活度;同时,对游戏对象的用户数据进行分析,以筛选出符合游戏对象的游戏场景,并根据该游戏场景对第一游戏框架进行赋值,得到具有与游戏对象相应游戏场景的第二游戏框架,实现了对游戏对象的适配;即同时完成了对配置方需求与用户数据的双边适配,提升了游戏与各方的匹配度。因此本发明提出的基于双边适配的游戏资源配置方法、装置、电子设备及计算机可读存储介质,可以解决进行教学游戏开发时较为复杂且开发出的游戏与游戏对象的匹配度较低的问题。The embodiment of the present invention analyzes the user's game configuration requirements, selects game levels that meet the user's requirements from the level pool, and combines the levels into a first game framework according to the relationship between the levels, thereby realizing the configuration method. The game is divided into multiple levels for combination, which reduces the overall coupling of the game and improves the flexibility of the game configuration; at the same time, analyzes the user data of game objects to filter out games The game scene of the object, and the first game frame is assigned according to the game scene, and the second game frame with the game scene corresponding to the game object is obtained, which realizes the adaptation of the game object; Bilateral adaptation of user data improves the match between the game and all parties. Therefore, the game resource allocation method, device, electronic device and computer-readable storage medium based on bilateral adaptation proposed by the present invention can solve the problems that the development of teaching games is complicated and the matching degree between the developed game and the game object is low. .

如图4所示,是本发明一实施例提供的基于双边适配的游戏资源配置装置的功能模块图。As shown in FIG. 4 , it is a functional block diagram of an apparatus for configuring game resources based on bilateral adaptation provided by an embodiment of the present invention.

本发明所述基于双边适配的游戏资源配置装置100可以安装于电子设备中。根据实现的功能,所述基于双边适配的游戏资源配置装置100可以包括需求分析模块101、关卡筛选模块102、第一配置模块103、场景筛选模块104及第二配置模块105。本发明所述模块也可以称之为单元,是指一种能够被电子设备处理器所执行,并且能够完成固定功能的一系列计算机程序段,其存储在电子设备的存储器中。The apparatus 100 for configuring game resources based on bilateral adaptation of the present invention can be installed in an electronic device. According to the implemented functions, the apparatus 100 for configuring game resources based on bilateral adaptation may include a demand analysis module 101 , a level screening module 102 , a first configuration module 103 , a scene screening module 104 and a second configuration module 105 . The modules in the present invention can also be called units, which refer to a series of computer program segments that can be executed by the electronic device processor and can perform fixed functions, and are stored in the memory of the electronic device.

在本实施例中,关于各模块/单元的功能如下:In this embodiment, the functions of each module/unit are as follows:

所述需求分析模块101,用于获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵;The requirement analysis module 101 is used to obtain the game configuration requirement of the user, extract the game release object from the game configuration requirement, and construct a semantic matrix of the game configuration requirement;

所述关卡筛选模块102,用于从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡;The level screening module 102 is configured to filter out game levels matching the semantic matrix from a predetermined pool of game levels;

所述第一配置模块103,用于获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架;The first configuration module 103 is configured to acquire the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and assign the game levels according to the association relationship. Combining to get the first game frame;

所述场景筛选模块104,用于获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景;The scene screening module 104 is configured to obtain the user data of the game object, construct a data digest of the user data, and filter out a game scene matching the data digest from a preset scene pool;

所述第二配置模块105,用于获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。The second configuration module 105 is configured to acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame.

详细地,本发明实施例中所述基于双边适配的游戏资源配置装置100中所述的各模块在使用时采用与上述图1至图3中所述的基于双边适配的游戏资源配置方法一样的技术手段,并能够产生相同的技术效果,这里不再赘述。In detail, each module described in the apparatus 100 for configuring game resources based on bilateral adaptation in the embodiment of the present invention adopts the same method for configuring game resources based on bilateral adaptation described in FIG. 1 to FIG. 3 when in use. The same technical means can produce the same technical effect, which will not be repeated here.

如图5所示,是本发明一实施例提供的实现基于双边适配的游戏资源配置方法的电子设备的结构示意图。As shown in FIG. 5 , it is a schematic structural diagram of an electronic device for implementing a method for configuring game resources based on bilateral adaptation provided by an embodiment of the present invention.

所述电子设备1可以包括处理器10、存储器11、通信总线12以及通信接口13,还可以包括存储在所述存储器11中并可在所述处理器10上运行的计算机程序,如基于双边适配的游戏资源配置程序。The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as based on bilateral adaptation. Matched game resource configuration program.

其中,所述处理器10在一些实施例中可以由集成电路组成,例如可以由单个封装的集成电路所组成,也可以是由多个相同功能或不同功能封装的集成电路所组成,包括一个或者多个中央处理器(Central Processing unit,CPU)、微处理器、数字处理芯片、图形处理器及各种控制芯片的组合等。所述处理器10是所述电子设备的控制核心(ControlUnit),利用各种接口和线路连接整个电子设备的各个部件,通过运行或执行存储在所述存储器11内的程序或者模块(例如执行基于双边适配的游戏资源配置程序等),以及调用存储在所述存储器11内的数据,以执行电子设备的各种功能和处理数据。The processor 10 may be composed of integrated circuits in some embodiments, for example, may be composed of a single packaged integrated circuit, or may be composed of multiple integrated circuits packaged with the same function or different functions, including one or A combination of multiple central processing units (Central Processing Units, CPUs), microprocessors, digital processing chips, graphics processors, and various control chips, etc. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect various components of the entire electronic device, and by running or executing the program or module stored in the memory 11 (for example, executing a A game resource configuration program for bilateral adaptation, etc.), and calling the data stored in the memory 11 to execute various functions of the electronic device and process data.

所述存储器11至少包括一种类型的可读存储介质,所述可读存储介质包括闪存、移动硬盘、多媒体卡、卡型存储器(例如:SD或DX存储器等)、磁性存储器、磁盘、光盘等。所述存储器11在一些实施例中可以是电子设备的内部存储单元,例如该电子设备的移动硬盘。所述存储器11在另一些实施例中也可以是电子设备的外部存储设备,例如电子设备上配备的插接式移动硬盘、智能存储卡(Smart Media Card,SMC)、安全数字(Secure Digital,SD)卡、闪存卡(Flash Card)等。进一步地,所述存储器11还可以既包括电子设备的内部存储单元也包括外部存储设备。所述存储器11不仅可以用于存储安装于电子设备的应用软件及各类数据,例如基于双边适配的游戏资源配置程序的代码等,还可以用于暂时地存储已经输出或者将要输出的数据。The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes flash memory, mobile hard disk, multimedia card, card-type memory (for example: SD or DX memory, etc.), magnetic memory, magnetic disk, optical disk, etc. . In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of the electronic device, such as a pluggable mobile hard disk, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) equipped on the electronic device. ) card, flash card (Flash Card) and so on. Further, the memory 11 may also include both an internal storage unit of an electronic device and an external storage device. The memory 11 can not only be used to store application software and various data installed in the electronic device, such as the code of the game resource configuration program based on bilateral adaptation, but also can be used to temporarily store data that has been output or will be output.

所述通信总线12可以是外设部件互连标准(peripheral componentinterconnect,简称PCI)总线或扩展工业标准结构(extended industry standardarchitecture,简称EISA)总线等。该总线可以分为地址总线、数据总线、控制总线等。所述总线被设置为实现所述存储器11以及至少一个处理器10等之间的连接通信。The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus or the like. The bus can be divided into address bus, data bus, control bus and so on. The bus is configured to implement connection communication between the memory 11 and at least one processor 10 and the like.

所述通信接口13用于上述电子设备与其他设备之间的通信,包括网络接口和用户接口。可选地,所述网络接口可以包括有线接口和/或无线接口(如WI-FI接口、蓝牙接口等),通常用于在该电子设备与其他电子设备之间建立通信连接。所述用户接口可以是显示器(Display)、输入单元(比如键盘(Keyboard)),可选地,用户接口还可以是标准的有线接口、无线接口。可选地,在一些实施例中,显示器可以是LED显示器、液晶显示器、触控式液晶显示器以及OLED(Organic Light-Emitting Diode,有机发光二极管)触摸器等。其中,显示器也可以适当的称为显示屏或显示单元,用于显示在电子设备中处理的信息以及用于显示可视化的用户界面。The communication interface 13 is used for communication between the above electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and/or a wireless interface (eg, a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface or a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode, organic light-emitting diode) touch device, and the like. The display may also be appropriately called a display screen or a display unit, which is used for displaying information processed in the electronic device and for displaying a visual user interface.

图中仅示出了具有部件的电子设备,本领域技术人员可以理解的是,图中示出的结构并不构成对所述电子设备的限定,可以包括比图示更少或者更多的部件,或者组合某些部件,或者不同的部件布置。The figure only shows an electronic device with components, and those skilled in the art can understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than those shown in the figure. , or a combination of certain components, or a different arrangement of components.

例如,尽管未示出,所述电子设备还可以包括给各个部件供电的电源(比如电池),优选地,电源可以通过电源管理装置与所述至少一个处理器10逻辑相连,从而通过电源管理装置实现充电管理、放电管理、以及功耗管理等功能。电源还可以包括一个或一个以上的直流或交流电源、再充电装置、电源故障检测电路、电源转换器或者逆变器、电源状态指示器等任意组件。所述电子设备还可以包括多种传感器、蓝牙模块、Wi-Fi模块等,在此不再赘述。For example, although not shown, the electronic device may also include a power source (such as a battery) for powering the various components, preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power source can be logically connected through the power management device. Implement functions such as charge management, discharge management, and power management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and any other components. The electronic device may further include various sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.

应该了解,所述实施例仅为说明之用,在专利申请范围上并不受此结构的限制。It should be understood that the embodiments are only used for illustration, and are not limited by this structure in the scope of the patent application.

所述电子设备1中的所述存储器11存储的基于双边适配的游戏资源配置程序是多个指令的组合,在所述处理器10中运行时,可以实现:The game resource configuration program based on bilateral adaptation stored in the memory 11 in the electronic device 1 is a combination of multiple instructions, and when running in the processor 10, it can achieve:

获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵;Obtaining the user's game configuration requirements, extracting a game release object from the game configuration requirements, and constructing a semantic matrix of the game configuration requirements;

从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡;Filter out the game level matching the semantic matrix from the predetermined game level pool;

获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架;Obtain the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and combine the game levels according to the association relationship to obtain a first game framework;

获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景;Obtaining the user data of the game object, constructing a data abstract of the user data, and filtering out a game scene that matches the data abstract from a preset scene pool;

获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。Acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame.

具体地,所述处理器10对上述指令的具体实现方法可参考附图对应实施例中相关步骤的描述,在此不赘述。Specifically, for the specific implementation method of the above-mentioned instruction by the processor 10, reference may be made to the description of the relevant steps in the embodiment corresponding to the accompanying drawings, which will not be repeated here.

进一步地,所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读存储介质中。所述计算机可读存储介质可以是易失性的,也可以是非易失性的。例如,所述计算机可读介质可以包括:能够携带所述计算机程序代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)。Further, if the modules/units integrated in the electronic device 1 are implemented in the form of software functional units and sold or used as independent products, they may be stored in a computer-readable storage medium. The computer-readable storage medium may be volatile or non-volatile. For example, the computer-readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a removable hard disk, a magnetic disk, an optical disc, a computer memory, a read-only memory (ROM, Read-Only). Memory).

本发明还提供一种计算机可读存储介质,所述可读存储介质存储有计算机程序,所述计算机程序在被电子设备的处理器所执行时,可以实现:The present invention also provides a computer-readable storage medium, where the readable storage medium stores a computer program, and when executed by a processor of an electronic device, the computer program can realize:

获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵;Obtaining the user's game configuration requirements, extracting a game release object from the game configuration requirements, and constructing a semantic matrix of the game configuration requirements;

从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡;Filter out the game level matching the semantic matrix from the predetermined game level pool;

获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架;Obtain the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and combine the game levels according to the association relationship to obtain a first game framework;

获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景;Obtaining the user data of the game object, constructing a data abstract of the user data, and filtering out a game scene that matches the data abstract from a preset scene pool;

获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。Acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame.

在本发明所提供的几个实施例中,应该理解到,所揭露的设备,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the modules is only a logical function division, and there may be other division manners in actual implementation.

所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and components shown as modules may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment.

另外,在本发明各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units can be implemented in the form of hardware, or can be implemented in the form of hardware plus software function modules.

对于本领域技术人员而言,显然本发明不限于上述示范性实施例的细节,而且在不背离本发明的精神或基本特征的情况下,能够以其他的具体形式实现本发明。It will be apparent to those skilled in the art that the present invention is not limited to the details of the above-described exemplary embodiments, but that the present invention may be embodied in other specific forms without departing from the spirit or essential characteristics of the invention.

因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本发明的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本发明内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, the embodiments are to be regarded in all respects as illustrative and not restrictive, and the scope of the invention is to be defined by the appended claims rather than the foregoing description, which are therefore intended to fall within the scope of the claims. All changes within the meaning and range of the equivalents of , are included in the present invention. Any reference signs in the claims shall not be construed as limiting the involved claim.

本发明所指区块链是分布式数据存储、点对点传输、共识机制、加密算法等计算机技术的新型应用模式。区块链(Blockchain),本质上是一个去中心化的数据库,是一串使用密码学方法相关联产生的数据块,每一个数据块中包含了一批次网络交易的信息,用于验证其信息的有效性(防伪)和生成下一个区块。区块链可以包括区块链底层平台、平台产品服务层以及应用服务层等。The blockchain referred to in the present invention is a new application mode of computer technologies such as distributed data storage, point-to-point transmission, consensus mechanism, and encryption algorithm. Blockchain, essentially a decentralized database, is a series of data blocks associated with cryptographic methods. Each data block contains a batch of network transaction information to verify its Validity of information (anti-counterfeiting) and generation of the next block. The blockchain can include the underlying platform of the blockchain, the platform product service layer, and the application service layer.

本申请实施例可以基于人工智能技术对相关的数据进行获取和处理。其中,人工智能(Artificial Intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。The embodiments of the present application may acquire and process related data based on artificial intelligence technology. Among them, artificial intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. .

此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第一、第二等词语用来表示名称,而并不表示任何特定的顺序。Furthermore, it is clear that the word "comprising" does not exclude other units or steps and the singular does not exclude the plural. Several units or means recited in the system claims can also be realized by one unit or means by means of software or hardware. The words first, second, etc. are used to denote names and do not denote any particular order.

最后应说明的是,以上实施例仅用以说明本发明的技术方案而非限制,尽管参照较佳实施例对本发明进行了详细说明,本领域的普通技术人员应当理解,可以对本发明的技术方案进行修改或等同替换,而不脱离本发明技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them. Although the present invention has been described in detail with reference to the preferred embodiments, those of ordinary skill in the art should understand that the technical solutions of the present invention can be Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solutions of the present invention.

Claims (10)

1.一种基于双边适配的游戏资源配置方法,其特征在于,所述方法包括:1. a game resource allocation method based on bilateral adaptation, is characterized in that, described method comprises: 获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵;Obtaining the user's game configuration requirements, extracting a game release object from the game configuration requirements, and constructing a semantic matrix of the game configuration requirements; 从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡;Filter out the game level matching the semantic matrix from the predetermined game level pool; 获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架;Obtain the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and combine the game levels according to the association relationship to obtain a first game framework; 获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景;Obtaining the user data of the game object, constructing a data abstract of the user data, and filtering out a game scene that matches the data abstract from a preset scene pool; 获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。Acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame. 2.如权利要求1所述的基于双边适配的游戏资源配置方法,其特征在于,所述构建所述游戏配置需求的语义矩阵,包括:2. The game resource configuration method based on bilateral adaptation as claimed in claim 1, wherein the construction of the semantic matrix of the game configuration requirements comprises: 对所述游戏配置需求进行分词处理,得到需求分词;Perform word segmentation processing on the game configuration requirements to obtain demand word segmentation; 统计所述需求分词中每一个分词的分词频率,选取所述分词频率大于预设频率阈值的需求分词为关键词,并将所述关键词中每一个词语转换为词向量;Counting the word segmentation frequency of each word segment in the demand word segmentation, selecting a demand word segment whose word segmentation frequency is greater than a preset frequency threshold as a keyword, and converting each word in the keyword into a word vector; 将所述词向量拼接为向量矩阵,并确定所述向量矩阵为所述游戏配置需求的语义矩阵。The word vectors are spliced into a vector matrix, and the vector matrix is determined to be a semantic matrix required by the game configuration. 3.如权利要求1所述的基于双边适配的游戏资源配置方法,其特征在于,所述从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡,包括:3. The game resource allocation method based on bilateral adaptation as claimed in claim 1, wherein the filtering to obtain a game level matching the semantic matrix from a predetermined game level pool, comprising: 获取所述游戏关卡池中每个游戏关卡的关卡标签;Obtain the level label of each game level in the game level pool; 逐个计算所述语义矩阵与每个所述关卡标签直接的距离值;Calculate the direct distance value between the semantic matrix and each of the level labels one by one; 选取所述距离值小于预设距离阈值的关卡标签对应的游戏关卡,并确定被选取的游戏关卡为与所述语义矩阵相匹配的游戏关卡。The game level corresponding to the level label whose distance value is smaller than the preset distance threshold is selected, and the selected game level is determined to be the game level matching the semantic matrix. 4.如权利要求1所述的基于双边适配的游戏资源配置方法,其特征在于,所述根据所述游戏内容识别每个所述游戏关卡之间的关联关系,包括:4. The method for configuring game resources based on bilateral adaptation according to claim 1, wherein the identifying the association relationship between each of the game levels according to the game content comprises: 逐个从所述游戏关卡中选取其中一个游戏关卡为目标关卡;Selecting one of the game levels as the target level from the game levels one by one; 利用规则表达式从所述目标关卡的游戏内容中筛选出所述目标关卡的游戏条件;Using regular expressions to filter out the game conditions of the target level from the game content of the target level; 构建所述游戏条件对应的条件矩阵,并利用所述条件矩阵对预设的决策函数进行赋值,得到所述目标关卡的决策树;Constructing a condition matrix corresponding to the game condition, and using the condition matrix to assign a value to a preset decision function to obtain a decision tree of the target level; 汇集所有游戏关卡对应的决策树,得到决策树模型;Collect decision trees corresponding to all game levels to get a decision tree model; 将所有游戏关卡对应的所述游戏内容输入至所述决策树模型,得到所述决策树模型输出的每个所述游戏关卡之间的关联关系。The game content corresponding to all game levels is input into the decision tree model, and the association relationship between each game level output by the decision tree model is obtained. 5.如权利要求1所述的基于双边适配的游戏资源配置方法,其特征在于,所述按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架,包括:5. The method for configuring game resources based on bilateral adaptation according to claim 1, wherein the combining the game levels according to the association relationship to obtain a first game framework, comprising: 筛选出相互之间存在关联关系的游戏关卡;Screen out game levels that are related to each other; 按照所述关联关系的先后顺序将筛选出的游戏关卡进行组合,得到中间框架;Combine the screened game levels according to the sequence of the association relationship to obtain an intermediate frame; 将相互之间不存在关联关系的游戏关卡随机插入所述中间框架内,得到所述第一游戏框架。The first game frame is obtained by randomly inserting game levels that are not associated with each other into the intermediate frame. 6.如权利要求1所述的基于双边适配的游戏资源配置方法,其特征在于,所述构建所述用户数据的数据摘要,包括:6. The game resource allocation method based on bilateral adaptation as claimed in claim 1, wherein, the construction of the data digest of the user data comprises: 将所述用户数数据拆分为多个数据分词,并将每个所述数据分词转换为分词向量;Splitting the user number data into a plurality of data segmentations, and converting each of the data segmentations into a segmentation vector; 按照每个数据分词在所述用户数据中位置的先后顺序为所述分词向量中添加位置编码信息,得到编码向量;Add position encoding information to the word segmentation vector according to the sequence of the position of each data segment in the user data to obtain an encoding vector; 利用预设的摘要提取模型对每个所述编码向量进行预设次数的卷积和池化处理,得到向量特征;Using a preset abstract extraction model to perform a preset number of convolution and pooling processes on each of the encoding vectors to obtain vector features; 根据所述向量特征计算每个所述编码向量对应的分词向量为摘要词的词概率值;Calculate the word probability value that the word segmentation vector corresponding to each described encoding vector is the abstract word according to the vector feature; 将所述词概率值大于预设概率阈值的分词向量汇集为所述用户数据的数据摘要。The word segmentation vectors whose word probability value is greater than the preset probability threshold are collected into a data abstract of the user data. 7.如权利要求1至6中任一项所述的基于双边适配的游戏资源配置方法,其特征在于,所述根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架,包括:7. The method for configuring game resources based on bilateral adaptation according to any one of claims 1 to 6, wherein the scene configuration is performed on the first game framework according to the scene data to obtain a second game resource. Game framework, including: 将所述场景数据进行参数编码,得到场景参数;performing parameter encoding on the scene data to obtain scene parameters; 利用所述场景参数对所述第一游戏框架进行参数赋值,得到第二游戏框架。Parameter assignment is performed on the first game frame by using the scene parameters to obtain a second game frame. 8.一种基于双边适配的游戏资源配置装置,其特征在于,所述装置包括:8. A device for configuring game resources based on bilateral adaptation, wherein the device comprises: 需求分析模块,用于获取用户的游戏配置需求,从所述游戏配置需求中提取出游戏发布对象,并构建所述游戏配置需求的语义矩阵;A demand analysis module, used for acquiring the game configuration requirements of the user, extracting the game release object from the game configuration requirements, and constructing a semantic matrix of the game configuration requirements; 关卡筛选模块,用于从预先确定的游戏关卡池中筛选得到与所述语义矩阵相匹配的游戏关卡;a level screening module, used for filtering out game levels matching the semantic matrix from a predetermined pool of game levels; 第一配置模块,用于获取每个所述游戏关卡的游戏内容,根据所述游戏内容识别每个所述游戏关卡之间的关联关系,并按照所述关联关系将所述游戏关卡进行组合,得到第一游戏框架;a first configuration module, configured to acquire the game content of each of the game levels, identify the association relationship between each of the game levels according to the game content, and combine the game levels according to the association relationship, Get the first game frame; 场景筛选模块,用于获取所述游戏对象的用户数据,构建所述用户数据的数据摘要,从预设的场景池中筛选出与所述数据摘要相匹配的游戏场景;a scene screening module, configured to obtain the user data of the game object, construct a data abstract of the user data, and filter out a game scene matching the data abstract from a preset scene pool; 第二配置模块,用于获取所述游戏场景的场景数据,根据所述场景数据对所述第一游戏框架进行场景配置,得到第二游戏框架。The second configuration module is configured to acquire scene data of the game scene, and perform scene configuration on the first game frame according to the scene data to obtain a second game frame. 9.一种电子设备,其特征在于,所述电子设备包括:9. An electronic device, characterized in that the electronic device comprises: 至少一个处理器;以及,at least one processor; and, 与所述至少一个处理器通信连接的存储器;其中,a memory communicatively coupled to the at least one processor; wherein, 所述存储器存储有可被所述至少一个处理器执行的计算机程序,所述计算机程序被所述至少一个处理器执行,以使所述至少一个处理器能够执行如权利要求1至7中任意一项所述的基于双边适配的游戏资源配置方法。The memory stores a computer program executable by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform any one of claims 1 to 7 The game resource configuration method based on bilateral adaptation described in item. 10.一种计算机可读存储介质,存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7中任意一项所述的基于双边适配的游戏资源配置方法。10. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the game resource configuration based on bilateral adaptation as described in any one of claims 1 to 7 is realized method.
CN202210361136.XA 2022-04-07 2022-04-07 Game resource configuration method, device, equipment and medium based on bilateral adaptation Active CN114733195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210361136.XA CN114733195B (en) 2022-04-07 2022-04-07 Game resource configuration method, device, equipment and medium based on bilateral adaptation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210361136.XA CN114733195B (en) 2022-04-07 2022-04-07 Game resource configuration method, device, equipment and medium based on bilateral adaptation

Publications (2)

Publication Number Publication Date
CN114733195A true CN114733195A (en) 2022-07-12
CN114733195B CN114733195B (en) 2024-12-13

Family

ID=82279907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210361136.XA Active CN114733195B (en) 2022-04-07 2022-04-07 Game resource configuration method, device, equipment and medium based on bilateral adaptation

Country Status (1)

Country Link
CN (1) CN114733195B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060063575A1 (en) * 2003-03-10 2006-03-23 Cyberscan Technology, Inc. Dynamic theming of a gaming system
CN103106340A (en) * 2013-01-21 2013-05-15 天津大学 Game level automatic generation system and method based on data mining and data fusion
US8753200B1 (en) * 2013-02-01 2014-06-17 Pearson Education, Inc. Evaluation and rectification system
CN108066987A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 Distribution method, device and the server of application scenarios outpost of the tax office combination
CN109529354A (en) * 2018-12-21 2019-03-29 咪咕互动娱乐有限公司 Method, device and storage medium for determining game background music
CN111104513A (en) * 2019-12-13 2020-05-05 中山大学 Short text classification method for game platform user question-answer service
CN111564064A (en) * 2020-05-27 2020-08-21 上海乂学教育科技有限公司 Intelligent education system and method based on game interaction
CN112632277A (en) * 2020-12-15 2021-04-09 五八同城信息技术有限公司 Resource processing method and device for target content object
CN112619132A (en) * 2020-12-18 2021-04-09 腾讯科技(深圳)有限公司 Interface display method and device, storage medium and electronic equipment
CN113041623A (en) * 2019-12-26 2021-06-29 波克科技股份有限公司 Game parameter configuration method and device and computer readable storage medium
CN113723114A (en) * 2021-08-31 2021-11-30 平安普惠企业管理有限公司 Semantic analysis method, device and equipment based on multi-intent recognition and storage medium
CN117273820A (en) * 2023-10-13 2023-12-22 上海愉游网络科技有限公司 Game online lottery drawing system and method based on artificial intelligence

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060063575A1 (en) * 2003-03-10 2006-03-23 Cyberscan Technology, Inc. Dynamic theming of a gaming system
CN103106340A (en) * 2013-01-21 2013-05-15 天津大学 Game level automatic generation system and method based on data mining and data fusion
US8753200B1 (en) * 2013-02-01 2014-06-17 Pearson Education, Inc. Evaluation and rectification system
CN108066987A (en) * 2016-11-18 2018-05-25 腾讯科技(深圳)有限公司 Distribution method, device and the server of application scenarios outpost of the tax office combination
CN109529354A (en) * 2018-12-21 2019-03-29 咪咕互动娱乐有限公司 Method, device and storage medium for determining game background music
CN111104513A (en) * 2019-12-13 2020-05-05 中山大学 Short text classification method for game platform user question-answer service
CN113041623A (en) * 2019-12-26 2021-06-29 波克科技股份有限公司 Game parameter configuration method and device and computer readable storage medium
CN111564064A (en) * 2020-05-27 2020-08-21 上海乂学教育科技有限公司 Intelligent education system and method based on game interaction
CN112632277A (en) * 2020-12-15 2021-04-09 五八同城信息技术有限公司 Resource processing method and device for target content object
CN112619132A (en) * 2020-12-18 2021-04-09 腾讯科技(深圳)有限公司 Interface display method and device, storage medium and electronic equipment
CN113723114A (en) * 2021-08-31 2021-11-30 平安普惠企业管理有限公司 Semantic analysis method, device and equipment based on multi-intent recognition and storage medium
CN117273820A (en) * 2023-10-13 2023-12-22 上海愉游网络科技有限公司 Game online lottery drawing system and method based on artificial intelligence

Also Published As

Publication number Publication date
CN114733195B (en) 2024-12-13

Similar Documents

Publication Publication Date Title
CN113611405A (en) Method, device, equipment and medium for recommending medical examination items
CN114781402B (en) Method, device, electronic device and readable storage medium for identifying medical consultation intention
WO2023159755A1 (en) Fake news detection method and apparatus, device, and storage medium
CN112380859A (en) Public opinion information recommendation method and device, electronic equipment and computer storage medium
CN113707302B (en) Service recommendation method, device, equipment and storage medium based on associated information
CN113704614A (en) Page generation method, device, equipment and medium based on user portrait
CN113706322A (en) Service distribution method, device, equipment and storage medium based on data analysis
CN113592605B (en) Product recommendation method, device, equipment and storage medium based on similar products
CN112347739A (en) Applicable rule analysis method, device, electronic device and storage medium
CN115238189A (en) Accurate recommendation method, device, equipment and medium based on multivariate data fusion
CN115222443B (en) Customer group segmentation method, device, equipment and storage medium
CN116503608A (en) Data distillation method based on artificial intelligence and related equipment
CN115952778A (en) Questionnaire question weight self-adaptive generation method, device, equipment and storage medium
CN113592606B (en) Product recommendation method, device, equipment and storage medium based on multiple decisions
CN113627160B (en) Text error correction method and device, electronic equipment and storage medium
CN116521867B (en) Text clustering method and device, electronic equipment and storage medium
CN112527995A (en) Question feedback processing method, device and equipment and readable storage medium
CN115409041B (en) Unstructured data extraction method, device, equipment and storage medium
CN115238816B (en) User classification method and related equipment based on multivariate data fusion
CN116597362A (en) Hot spot video clip identification method and device, electronic equipment and medium
CN113723611B (en) Business factor generation method, device, equipment and medium based on causal inference
CN114733195B (en) Game resource configuration method, device, equipment and medium based on bilateral adaptation
CN116578696A (en) Text abstract generation method, device, equipment and storage medium
CN115146064A (en) Intention recognition model optimization method, device, equipment and storage medium
CN115292489A (en) Enterprise public opinion analysis method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant