CN117788111A - Resource matching method and device and computer equipment - Google Patents

Resource matching method and device and computer equipment Download PDF

Info

Publication number
CN117788111A
CN117788111A CN202311821119.0A CN202311821119A CN117788111A CN 117788111 A CN117788111 A CN 117788111A CN 202311821119 A CN202311821119 A CN 202311821119A CN 117788111 A CN117788111 A CN 117788111A
Authority
CN
China
Prior art keywords
resource
matching
objects
information
providing
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.)
Pending
Application number
CN202311821119.0A
Other languages
Chinese (zh)
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.)
Shenzhen Hefei Technology Co ltd
Original Assignee
Shenzhen Hefei Technology 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 Shenzhen Hefei Technology Co ltd filed Critical Shenzhen Hefei Technology Co ltd
Priority to CN202311821119.0A priority Critical patent/CN117788111A/en
Publication of CN117788111A publication Critical patent/CN117788111A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application discloses a resource matching method, a resource matching device and computer equipment, and belongs to the technical field of computers. According to the technical scheme provided by the embodiment of the application, the resource matching request is responded, and a plurality of resource providing objects, initial resource providing information and initial resource request information of a plurality of resource request objects are obtained from the resource matching request. And acquiring a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine, and the resource matching rules comprise resource matching completion conditions. Based on a plurality of resource matching rules, the plurality of resource providing objects, the initial resource providing information and the initial resource request information of a plurality of resource request objects, the plurality of resource providing objects and the plurality of resource request objects are matched to obtain a resource matching result, thereby realizing the automation of resource matching and improving the efficiency of resource matching.

Description

Resource matching method and device and computer equipment
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method and an apparatus for resource matching, and a computer device.
Background
With the development of society, more and more scenes need to be matched with resources, for example, a user A has a certain amount of resources and wants to obtain a certain benefit by utilizing the owned resources; user B needs to complete an event but has insufficient resources, and at this time, both user a and user B need to match resources to achieve their own goals.
In the related art, the user a and the user B need to search for the targets of resource matching by themselves, which results in lower efficiency of resource matching.
Disclosure of Invention
The embodiment of the application provides a resource matching method, a device and computer equipment, which can improve the efficiency of resource matching, and the technical scheme is as follows:
in one aspect, a method for matching resources is provided, the method comprising:
responding to a resource matching request, and acquiring initial resource providing information of a plurality of resource providing objects and initial resource request information of a plurality of resource request objects from the resource matching request;
acquiring a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine;
and matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource requesting information of the plurality of resource requesting objects to obtain a resource matching result.
In one possible implementation manner, the matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects, and the initial resource requesting information of the plurality of resource requesting objects to obtain a resource matching result includes:
normalizing the initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource request objects to obtain target resource providing information of each resource providing object and target resource request information of each resource request object;
and matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the target resource providing information of each resource providing object and the target resource requesting information of each resource requesting object to obtain a resource matching result.
In one possible implementation manner, the matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the target resource providing information of each resource providing object, and the target resource requesting information of each resource requesting object, to obtain a resource matching result, includes:
Matching the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects by adopting the plurality of resource matching rules to obtain a plurality of matching object pairs, wherein the matching object pairs comprise target resource providing objects and target resource request objects which accord with the resource matching rules;
and determining a resource matching result based on the plurality of matching object pairs.
In one possible implementation manner, the matching, using the plurality of resource matching rules, the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects to obtain a plurality of matching object pairs includes:
sequentially adopting the plurality of resource matching rules to carry out multi-round matching on the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects according to the order of the priority from high to low to obtain a plurality of matching object pairs;
wherein the resource providing object or the resource requesting object that completes the matching in any round does not participate in the next round of matching.
In a possible implementation manner, the determining a resource matching result based on the plurality of matching object pairs includes:
For any one of the plurality of matching object pairs, extracting characteristics of target resource providing information of a target resource providing object and target resource request information of a target resource request object in the matching object pair to obtain resource providing information characteristics and resource request information characteristics;
fusing the resource providing information features and the resource request information features to obtain object pair features of the matched object pairs;
mapping the object pair characteristics to obtain a matching risk value of the matched object pair;
and generating a resource matching result of the matched object pair based on the target resource providing information of the target resource providing object and the target resource request information of the target resource request object in the matched object pair under the condition that the matching risk value of the matched object pair is smaller than or equal to the matching risk value threshold.
In one possible embodiment, the method further comprises:
and marking the target resource providing object and the target resource requesting object in the matched object pair as unmatched under the condition that the matching risk value of the matched object pair is larger than the matching risk value threshold, and re-matching the target resource providing object and the target resource requesting object.
In a possible implementation manner, before the matching is performed on the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource requesting information of the plurality of resource requesting objects, the method further includes:
acquiring a resource matching risk value of a current resource matching environment, wherein the resource matching risk value is used for representing the risk of resource matching;
determining rule adjustment parameters corresponding to the resource matching risk values;
and updating the plurality of resource matching rules by adopting the rule adjustment parameters.
In a possible implementation manner, after the matching is performed on the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource requesting information of the plurality of resource requesting objects, the method further includes:
and executing a resource matching action between a target resource providing object in the plurality of resource providing objects and a target resource requesting object in the plurality of resource requesting objects, wherein the target resource providing object and the target resource requesting object belong to a matched object pair which is successfully matched.
In one aspect, a resource matching apparatus is provided, the apparatus including:
the information acquisition module is used for responding to the resource matching request and acquiring initial resource providing information of a plurality of resource providing objects and initial resource request information of a plurality of resource request objects from the resource matching request;
the rule acquisition module is used for acquiring a plurality of resource matching rules, wherein the resource matching rules are obtained by compiling a plurality of rule texts by the rule engine;
and the matching module is used for matching the plurality of resource providing objects and the plurality of resource request objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource request objects to obtain a resource matching result.
In a possible implementation manner, the matching module is configured to normalize initial resource providing information of the plurality of resource providing objects and initial resource request information of the plurality of resource request objects to obtain target resource providing information of each resource providing object and target resource request information of each resource request object; and matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the target resource providing information of each resource providing object and the target resource requesting information of each resource requesting object to obtain a resource matching result.
In a possible implementation manner, the matching module is configured to match target resource providing information of the plurality of resource providing objects and target resource request information of the plurality of resource request objects by using the plurality of resource matching rules, so as to obtain a plurality of matching object pairs, where the matching object pairs include a target resource providing object and a target resource request object that meet the resource matching rules; and determining a resource matching result based on the plurality of matching object pairs.
In a possible implementation manner, the matching module is configured to sequentially use the plurality of resource matching rules to perform multiple rounds of matching on the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects according to a sequence from high priority to low priority, so as to obtain the plurality of matching object pairs; wherein the resource providing object or the resource requesting object that completes the matching in any round does not participate in the next round of matching.
In a possible implementation manner, the matching module is configured to perform feature extraction on target resource providing information of a target resource providing object and target resource request information of a target resource request object in the matching object pair for any one of the matching object pairs, so as to obtain a resource providing information feature and a resource request information feature; fusing the resource providing information features and the resource request information features to obtain object pair features of the matched object pairs; mapping the object pair characteristics to obtain a matching risk value of the matched object pair; and generating a resource matching result of the matched object pair based on the target resource providing information of the target resource providing object and the target resource request information of the target resource request object in the matched object pair under the condition that the matching risk value of the matched object pair is smaller than or equal to the matching risk value threshold.
In a possible implementation manner, the matching module is further configured to mark the target resource providing object and the target resource requesting object in the matching object pair as not matching and re-match the target resource providing object and the target resource requesting object if the matching risk value of the matching object pair is greater than the matching risk value threshold.
In a possible implementation manner, the device further comprises a rule updating module, wherein the rule updating module is used for acquiring a resource matching risk value of the current resource matching environment, and the resource matching risk value is used for representing the risk of resource matching; determining rule adjustment parameters corresponding to the resource matching risk values; and updating the plurality of resource matching rules by adopting the rule adjustment parameters.
In a possible implementation manner, the apparatus further includes an execution module, configured to perform a resource matching action between a target resource providing object of the plurality of resource providing objects and a target resource requesting object of the plurality of resource requesting objects, where the target resource providing object and the target resource requesting object belong to a matching object pair that is successfully matched.
In one aspect, a computer device is provided that includes one or more processors and one or more memories having at least one computer program stored therein, the computer program loaded and executed by the one or more processors to implement the resource matching method.
In one aspect, a computer readable storage medium having at least one computer program stored therein is provided, the computer program being loaded and executed by a processor to implement the resource matching method.
In one aspect, a computer program product or computer program is provided, the computer program product or computer program comprising program code stored in a computer readable storage medium, the program code being read from the computer readable storage medium by a processor of a computer device, the program code being executed by the processor, causing the computer device to perform the above-described resource matching method.
According to the technical scheme provided by the embodiment of the application, the resource matching request is responded, and a plurality of resource providing objects, initial resource providing information and initial resource request information of a plurality of resource request objects are obtained from the resource matching request. And acquiring a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine, and the resource matching rules comprise resource matching completion conditions. Based on a plurality of resource matching rules, the plurality of resource providing objects, the initial resource providing information and the initial resource request information of a plurality of resource request objects, the plurality of resource providing objects and the plurality of resource request objects are matched to obtain a resource matching result, thereby realizing the automation of resource matching and improving the efficiency of resource matching.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following description will briefly explain the drawings needed in the description of the embodiments, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment of a resource matching method according to an embodiment of the present application;
FIG. 2 is a flowchart of a resource matching method according to an embodiment of the present disclosure;
FIG. 3 is a flowchart of another resource matching method provided in an embodiment of the present application;
FIG. 4 is a flowchart of another resource matching method provided by an embodiment of the present application;
fig. 5 is a schematic structural diagram of a resource matching device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
The terms "first," "second," and the like in this application are used to distinguish between identical or similar items that have substantially the same function and function, and it should be understood that there is no logical or chronological dependency between the "first," "second," and "nth" terms, nor is it limited to the number or order of execution.
In order to more clearly describe the technical solutions provided in the embodiments of the present application, the following description will first describe some nouns related to the embodiments of the present application.
Machine Learning (ML): is a multi-domain interdisciplinary, and relates to a plurality of disciplines such as probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and the like. It is specially studied how a computer simulates or implements the learning behavior of a human to acquire new knowledge or skills, reorganizing existing knowledge sub-models to continuously improve its own performance.
Rule engine: the rule engine is developed by an inference engine and is a component embedded in an application program, which implements the separation of business decisions from application code and the writing of business decisions using predefined semantic modules. And receiving data input, interpreting the business rules, and making business decisions according to the business rules.
Drools rules engine: the system has an open source business rule engine which is easy to access enterprise policies, easy to adjust and easy to manage, accords with the industry standard, and has high speed and high efficiency. It can be used by business analysts or auditors to easily review business rules to verify whether the encoded rules implement the desired business rules.
Domain-specific language (Domain-Specific Language, DSL): refers to a computer language that focuses on a certain application domain.
Hard coding: software development practices in which data is directly embedded in the source code of a program or other executable object are different from externally acquired data or generating data at runtime. Hard-coded data can typically only be modified by editing the source code and recompiling the executable.
And (3) matching resources: including matching assets with funds, refers to the process of matching a funds provider (investor, borrower) with a funds demander (borrower, project party) to achieve investment and financing.
It should be noted that, information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, presented data, etc.), and signals referred to in this application are all authorized by the user or are fully authorized by the parties, and the collection, use, and processing of relevant data is required to comply with relevant laws and regulations and standards of relevant countries and regions. For example, the resource providing information and the resource requesting information referred to in the present application are obtained with sufficient authorization.
In the related art, there is a method of performing resource matching by hard coding, that is, directly writing a related rule code in a service code to implement resource matching. However, hard-coding rules into codes is difficult to cope with complex changes and personalization requirements, and the difficulty of updating and adjusting hard-coded rules is also great. The technical scheme provided by the embodiment of the application can improve the flexibility of the rule, so that the resource matching is applicable to wider scenes.
Fig. 1 is a schematic diagram of an implementation environment of a resource matching method according to an embodiment of the present application, and referring to fig. 1, the implementation environment may include a configuration end 110, a client 120, and a server 140.
The configuration terminal 110 is connected to the server 140 through a wireless network or a wired network. Optionally, the configuration terminal 110 is a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like, but is not limited thereto. The configuration side 110 has installed and running thereon an application program that supports the creation and modification of rule text.
The client 120 is connected to the server 140 through a wireless network or a wired network. Optionally, the client 120 is a smart phone, a tablet computer, a notebook computer, a desktop computer, or the like, but is not limited thereto. The client 120 has installed and running thereon an application that supports resource matching.
The server 140 is an independent physical server, or a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server providing cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, a distribution network (Content Delivery Network, CDN), and basic cloud computing services such as big data and artificial intelligence platforms. In this embodiment of the present application, a rule engine and a service component are deployed on the server 140, where the rule engine can compile rule text created or modified by the configuration end 110 to form a resource matching rule. The business component can invoke the rules engine to perform the corresponding operation when the client 120 needs to perform a resource pinch.
After the implementation environment of the embodiments of the present application is introduced, an application scenario of the embodiments of the present application will be described below.
The resource matching method provided by the embodiment of the application can be applied to any scene where resource matching is required, for example, can be applied to a scene where funds are matched, and can also be applied to a scene where transactions in a matching game are carried out, and the embodiment of the application is not limited to the scene.
In the case of the embodiment of the application being applied to the scene of matching funds, the resource providing object is a funds provider, the resource requesting object is a funds demander, and the resource matching is also called as funds matching. In response to the fund matching request, a plurality of fund providers and initial resource providing information and initial resource request information of a plurality of fund requesters are acquired from the fund matching request. And acquiring a plurality of fund matching rules, wherein the fund matching rules are obtained by compiling a plurality of rule texts by a rule engine, and the fund matching rules comprise fund matching completion conditions. Based on a plurality of fund matching rules, the plurality of fund providers, initial resource providing information and initial resource request information of a plurality of fund demanders, the plurality of fund providers and the plurality of fund demanders are matched to obtain a resource matching result, thereby realizing automation of fund matching and improving the efficiency of fund matching.
It should be noted that, the foregoing is described by taking the application of the embodiment of the present application in the scenario of matching funds as an example, and in the case that the application of the embodiment of the present application is applied in other scenarios, the implementation process and the foregoing description belong to the same inventive concept, and the implementation process is not repeated.
After the implementation environment and the application scenario of the embodiments of the present application are introduced, the method for matching resources provided in the embodiments of the present application is described below, referring to fig. 2, taking an execution subject as a server as an example, where the method includes the following steps.
201. In response to the resource matching request, the server acquires initial resource providing information of a plurality of resource providing objects and initial resource request information of a plurality of resource requesting objects from the resource matching request.
The resource matching request is used for requesting to perform resource matching, and the resource matching has different meanings under different scenes. In the scenario of matching funds, resource matching refers to matching an asset object with a fund object to complete a fund transaction, for example, the asset object is an object requiring funds, and is therefore also referred to as a resource request object; the funding object is an object that owns funds and is therefore also referred to as a resource demand object. The initial resource providing information refers to information provided by a resource providing object when performing resource matching, for example, the initial resource providing information comprises object information of the resource providing object and a first resource matching requirement; the initial resource requirement information refers to information of the resource requirement object, which is provided when the resource is matched, for example, the initial resource requirement information includes object information of the resource requirement object and a second resource matching requirement.
202. The server acquires a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine.
The resource matching rule comprises a resource matching completion condition, and a resource providing object and a resource demand object which are matched with each other can be found by utilizing the resource matching rule, so that resource transfer is completed between the resource providing object and the resource demand object, and resource matching is realized. The rules engine can generate resource matching rules, and can also use the resource matching rules to perform resource matching. In the present embodiment, the rule engine refers to a component deployed on a server. The rule text is written by a technician, and the technician can add/delete/check/change the rule text according to actual conditions and requirements. In some embodiments, the rule text is written in a Domain Specific Language (DSL) corresponding to the rule engine. Compilation refers to the process of converting rule text into resource-matching rules.
203. The server matches the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource requesting information of the plurality of resource requesting objects, and obtains a resource matching result.
Wherein matching the plurality of resource providing objects and the plurality of resource requesting objects means finding a resource providing object and a resource requesting object that match each other from the plurality of resource providing objects and the plurality of resource requesting objects. The resource matching result comprises a resource providing object and a resource requesting object which are matched with each other, a resource transfer amount, a resource transfer period, a resource transfer increment rate and the like.
According to the technical scheme provided by the embodiment of the application, the resource matching request is responded, and a plurality of resource providing objects, initial resource providing information and initial resource request information of a plurality of resource request objects are obtained from the resource matching request. And acquiring a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine, and the resource matching rules comprise resource matching completion conditions. Based on a plurality of resource matching rules, the plurality of resource providing objects, the initial resource providing information and the initial resource request information of a plurality of resource request objects, the plurality of resource providing objects and the plurality of resource request objects are matched to obtain a resource matching result, thereby realizing the automation of resource matching and improving the efficiency of resource matching.
The foregoing steps 201 to 203 are a simple introduction of the resource matching method provided in the embodiments of the present application, and in the following, with reference to fig. 3, the technical solution provided in the embodiments of the present application will be more clearly described, and the method includes the following steps, taking an execution subject as an example.
301. In response to the rule base creation request, the server creates a rule base for storing resource matching rules.
The rule base creation request is used for requesting to create a rule base, the rule base is a database and is used for storing a resource matching rule, the resource matching rule comprises a resource matching completion condition, and a resource providing object and a resource demand object which are matched with each other can be found by utilizing the resource matching rule, so that resource transfer is completed between the resource providing object and the resource demand object, and resource matching is realized. In other words, the resource matching rules include conditions (LHS) that describe conditions that trigger execution of the rules and can be used to determine matching resource provisioning objects and resource demand objects, and actions (RHS) that define operations to be performed when the rules are executed, which are to be performed after the conditions are satisfied. In some embodiments, the rule base creation request is sent by a configuration end, which is a terminal used by a technician.
In one possible implementation, in response to a rule base creation request, a server obtains a rule base identification and a rule base type from the rule base creation request. The server creates the rule base based on the rule base identification and the rule base type.
The rule base type is used for representing the database type to which the rule base belongs, and the rule base identification is used for distinguishing different rule bases.
In the embodiment, a rule base for storing the resource matching rules is created, so that the subsequent management and execution of the resource matching rules are facilitated.
For example, in response to a rule base creation request, the server obtains a rule base identification and a rule base type from the rule base creation request. The server allocates a rule base address and a rule base space based on the rule base type, and names a rule base based on the rule base identification to obtain the rule base.
In order to facilitate a clearer understanding of the resource matching rules, the resource matching rules will be described below by way of one example.
There is one resource matching rule: the "Asset and Fund Matching" rule: when there is one Asset (Asset) object and one Fund (bond) object, and the Fund amount (amountis) equal to or greater than the required amount (required amount) of the Asset (condition), the matched state (matched) of the Asset and the Fund is set to true (action).
rule"Asset and Fund Matching"
when
$asset:Asset();
$fund:Fund(amount>=$asset.requiredAmount);
then
$asset.setMatched(true);
$fund.setMatched(true);
end。
The above step 301 will be described below with reference to fig. 4, and referring to fig. 4, a technician 401 sends a rule base creation request to a server through a configuration terminal to cause the server to create a rule base 402.
302. The server acquires the rule text, invokes the rule engine to compile the rule text to obtain a resource matching rule, and stores the resource matching rule in a rule base.
The rule text is written by a technician, and the technician can add/delete/check/change the rule text according to actual conditions and requirements. In some embodiments, the rule text is written in a Domain Specific Language (DSL) corresponding to the rule engine, and the DSL is used for writing the rule text, so that the rule engine is convenient to process, and the efficiency of generating the resource matching rule is improved. The rules engine can generate resource matching rules, and can also use the resource matching rules to perform resource matching. In the present embodiment, the rule engine refers to a component deployed on a server. The compiling refers to a process of converting the rule text into the resource matching rule, that is, converting the rule text with strong readability into a form that can be processed by the rule engine, for example, in the step 301 of instantiating the resource matching rule, a process of converting the text (rule text) into the relational expression (resource matching rule) is a compiling process. In some embodiments, the rule engines are Drools, URule, and equyperlles, etc., which are not limited in this embodiment.
In one possible implementation, the server obtains rule text. And the server calls the rule engine, and compiles the rule text through a compiler of the rule engine to obtain a resource matching rule corresponding to the rule text. The server stores the resource matching rules in the rule base.
The rule text is written by a technician through a configuration terminal, the configuration terminal can send the rule text to a server, and the server acquires the rule text. The compiler of the rule engine is a special compiling component and stores grammar corresponding to the rule text and grammar corresponding to the resource matching rule, so that the compiling of the rule text is realized.
In the embodiment, the compiler of the rule engine is used for compiling the acquired rule text to obtain the resource matching rule corresponding to the rule text, and the compiling efficiency is high. The resource matching rules are stored in a rule base so that the resource matching rules can be conveniently called in the subsequent process of resource matching.
For example, the server obtains rule text. The server calls the rule engine, and carries out lexical analysis on the rule text through a compiler of the rule engine to obtain a plurality of word symbols in the rule text. And the server carries out grammar analysis on the word symbols through the compiler to obtain an abstract grammar tree of the rule text. And the server performs semantic analysis on the abstract syntax tree through the compiler to obtain the intermediate code of the rule text. And the server optimizes and translates the intermediate code through the compiler to obtain the resource matching rule corresponding to the rule text. The server stores the resource matching rules in the rule base.
It should be noted that, the steps 301 and 302 are optional steps, the step 301 is only required to be performed once, the step 302 is performed when a technician needs to add a new resource matching rule, otherwise, the step 303 is directly performed.
The above step 302 will be described with reference to fig. 4, and referring to fig. 4, a technician 401 writes rule text on the configuration terminal in a Domain Specific Language (DSL) corresponding to the rule engine 403. The server obtains the rule text, compiles the rule text by the rule engine 403, obtains the resource matching rule, and stores the resource matching rule in the rule base 402.
303. In response to the resource matching request, the server acquires initial resource providing information of a plurality of resource providing objects and initial resource request information of a plurality of resource requesting objects from the resource matching request.
The resource matching request is used for requesting to perform resource matching, and the resource matching has different meanings under different scenes. In the scenario of matching funds, resource matching refers to matching an asset object with a fund object to complete a fund transaction, for example, the asset object is an object requiring funds, and is therefore also referred to as a resource request object. The funding object is an object that owns funds and is therefore also referred to as a resource demand object. The initial resource providing information is information provided by the resource providing object when performing resource matching, and for example, the initial resource providing information includes object information of the resource providing object, which is used for a resource possession (financial status), a credit (credit rating), a personal introduction (personal information) and the like of the resource providing object, and a first resource matching requirement, which includes a limitation condition on a resource demand object, the number of resources to be provided, and the like. The initial resource requirement information refers to information provided by the resource requirement object when performing resource matching, for example, the initial resource requirement information includes object information of the resource requirement object and second resource matching requirements, the object information of the resource requirement object is used for resource possession, credit condition, personal introduction and the like of the resource requirement object, and the second resource matching requirements include limitation conditions on the resource providing object and the number of resources to be obtained.
In one possible implementation, the business component on the server sends the resource matching request to the rules engine. And responding to the resource matching request, and analyzing the resource matching request by the server through the rule engine to obtain initial resource providing information of the plurality of resource providing objects and initial resource request information of the plurality of resource request objects.
The service component is a component for processing related services matched by resources. The initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource requesting objects are stored in an object information base, and the initial resource providing information and the initial resource request information of the resource providing objects and the resource demand objects which do not finish the matching of the resources are stored in the object information base. The business component can read the initial resource providing information and the initial resource request information from the object information base, and generate a resource matching request according to the acquired initial resource providing information and the initial resource request information.
In the embodiment, the service component sends the resource matching request to the rule engine, and the rule engine analyzes the resource matching request to obtain the initial resource providing information and the initial resource request information, so that the information acquisition efficiency is higher.
For example, in the case that the number of initial resource providing information and initial resource requesting information stored in the object information base meets the preset number condition, the service component on the server obtains initial resource providing information of a plurality of resource providing objects and initial resource requesting information of the plurality of resource requesting objects from the object information base. A business component on the server generates a resource matching request based on the initial resource provisioning information of the plurality of resource provisioning objects and the initial resource request information of the plurality of resource request objects. The business component on the server sends the resource matching request to the rules engine on the server. And responding to the resource matching request, and analyzing the resource matching request by the server through the rule engine to obtain initial resource providing information of the plurality of resource providing objects and initial resource request information of the plurality of resource request objects.
The number meeting the preset number condition means that the number is greater than or equal to the preset number, and the preset number is set by a technician according to actual conditions, which is not limited in the embodiment of the present application.
The above step 303 will be described with reference to fig. 4, and referring to fig. 4, the service component 404 on the server obtains initial resource providing information of a plurality of resource providing objects and initial resource request information of the plurality of resource requesting objects from the object information base 405. The business component 404 generates a resource reconciliation request based on the initial resource provisioning information for the plurality of resource provisioning objects and the initial resource request information for the plurality of resource request objects. The business component 404 sends the resource matching request to the rule engine 403, and the rule engine 403 obtains the resource matching request, and obtains initial resource providing information and initial resource request information from the resource matching request.
304. The server obtains a plurality of resource matching rules.
In one possible implementation, the server obtains the plurality of resource matching rules from a rule base.
For example, the server invokes a rules engine to read the plurality of resource matching rules from the rules repository.
Optionally, after step 304, the server is also capable of performing the steps described below.
In one possible implementation, the server obtains a resource matching risk value of the current resource matching environment, where the resource matching risk value is used to represent the risk of resource matching. And the server determines rule adjustment parameters corresponding to the resource matching risk values. The server updates the plurality of resource matching rules using the rule adjustment parameters.
The resource matching environment refers to an environment corresponding to resource matching operation, and the resource matching environment can reflect the effect and the risk of resource matching on the whole. The risk value of the resource matching is positively correlated with the risk of the resource matching, namely, the higher the resource matching risk value is, the higher the resource matching risk is; the lower the resource matching risk value, the lower the risk of resource matching. The rule adjustment parameters are used for adjusting the conditions in the resource matching rule, namely the difficulty level of the adjustment conditions.
In the embodiment, the resource matching risk value of the current resource matching environment is obtained, the rule adjustment parameter is determined by using the resource matching risk value, and the resource matching rule is updated by using the rule adjustment parameter, so that the resource matching rule is more matched with the current resource matching environment.
For example, the server obtains a resource matching risk value of the current resource matching environment determined by the service component, where the resource matching risk value is determined by the service component based on resource matching data in a preset time period in the past, and the resource matching data is used for reflecting the situation of completed resource matching, for example, the resource matching data includes a default rate, a default resource amount, and the like. The server maps the resource matching risk value to obtain a rule adjustment parameter corresponding to the resource matching risk value, wherein the corresponding relation between the resource matching risk value and the rule adjustment parameter is set by a technician according to actual conditions, and the embodiment of the application is not limited to the setting. The server updates the conditions in the plurality of resource matching rules by adopting the rule adjustment parameters, namely the difficulty level of adjustment condition achievement.
The above step 304 will be described with reference to fig. 4, and the rule engine 403 reads a plurality of resource matching rules from the rule base 402, see fig. 4.
305. The server matches the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource requesting information of the plurality of resource requesting objects, and obtains a resource matching result.
Wherein matching the plurality of resource providing objects and the plurality of resource requesting objects means finding a resource providing object and a resource requesting object that match each other from the plurality of resource providing objects and the plurality of resource requesting objects. The resource matching result includes a resource providing object and a resource requesting object that match each other, a resource transfer amount (matching amount), a resource transfer period (term), a resource transfer increment rate (interest rate), and the like.
In one possible implementation manner, the server normalizes the initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource request objects to obtain the target resource providing information of each resource providing object and the target resource request information of each resource request object. The server matches the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the target resource providing information of each resource providing object and the target resource requesting information of each resource requesting object, and a resource matching result is obtained.
The normalization is to convert the initial resource providing information and the initial resource request information into target resource providing information and target resource request information which are convenient to process.
In this embodiment, the initial resource providing information and the initial resource requesting information are standardized to obtain the target resource providing information and the target resource requesting information. And matching the plurality of resource providing objects and the plurality of resource request objects by utilizing the plurality of resource matching rules, the target resource providing information of each resource providing object and the target resource request information of each resource request object to obtain a resource matching result, thereby realizing intelligent resource matching.
In order to more clearly describe the above embodiments, the above embodiments will be described below in sections.
The first part and the server normalize the initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource request objects to obtain target resource providing information of each resource providing object and target resource request information of each resource request object.
In one possible implementation manner, for any resource providing object in the plurality of resource providing objects, the server splits initial resource providing information of the resource providing object to obtain a plurality of sub-information of the initial resource providing information, wherein one sub-information corresponds to one resource providing information item. The server maps the sub-information of the initial resource providing information into a standardized form to obtain target resource providing information of the resource providing object. For any one of the plurality of resource request objects, the server splits the initial resource request information of the resource request object to obtain a plurality of pieces of sub-information of the initial resource request information, wherein one piece of sub-information corresponds to one resource request information item. The server maps the sub-information of the initial resource request information into a standardized form to obtain target resource request information of the resource request object.
And the second part and the server are used for matching the plurality of resource providing objects and the plurality of resource request objects based on the plurality of resource matching rules, the target resource providing information of each resource providing object and the target resource request information of each resource request object, so as to obtain a resource matching result.
In one possible implementation manner, the server matches the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects by using the plurality of resource matching rules to obtain a plurality of matching object pairs, where the matching object pairs include a target resource providing object and a target resource request object that meet the resource matching rules. The server determines a resource matching result based on the plurality of matching object pairs.
Wherein the resource providing object and the resource requesting object in the matching object pair are two objects successfully matched.
In order to more clearly describe the above embodiments, the following description will be subdivided into several sections.
A. And the server adopts the plurality of resource matching rules to match the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects, so as to obtain a plurality of matching object pairs.
In a possible implementation manner, the server sequentially adopts the plurality of resource matching rules to perform multiple rounds of matching on the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects according to the order of priority from high to low, so as to obtain the plurality of matching object pairs. Wherein the resource providing object or the resource requesting object that completes the matching in any round does not participate in the next round of matching.
The priority of the plurality of resource matching rules is set by a technician according to actual situations, which is not limited in the embodiment of the present application. In the embodiment of the present application, the resource matching rule with higher priority may be selected before the resource matching rule with lower priority.
B. The server determines a resource matching result based on the plurality of matching object pairs.
In one possible implementation manner, for any one of the matching object pairs, the server performs feature extraction on the target resource providing information of the target resource providing object and the target resource request information of the target resource request object in the matching object pair to obtain a resource providing information feature and a resource request information feature. And the server fuses the information features provided by the resource and the information features requested by the resource to obtain the object pair features of the matched object pair. And the server maps the object pair characteristics to obtain the matching risk value of the matching object pair. And under the condition that the matching risk value of the matching object pair is smaller than or equal to the matching risk value threshold, the server generates a resource matching result of the matching object pair based on the target resource providing information of the target resource providing object and the target resource request information of the target resource request object in the matching object pair.
In this embodiment, the matching risk value of the matching object pair can be determined, and the resource matching result can be generated according to the matching risk value, so that the risk of resource matching is reduced, and the safety of resource matching is improved.
On the basis of the above embodiment, if the matching risk value of the matching object pair is greater than the matching risk value threshold, the server marks the target resource providing object and the target resource requesting object in the matching object pair as not matching, and re-matches the target resource providing object and the target resource requesting object.
In some embodiments, the incompletely paired resource providing object and resource requesting object are replaced in the object information base for waiting for the next round of resource matching, and the paired resource providing object and resource requesting object are marked as paired in the object information base and do not participate in the subsequent resource matching.
Referring to fig. 4, the rule engine 403 matches the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects, and the initial resource requesting information of the plurality of resource requesting objects, thereby obtaining a resource matching result.
306. The server performs a resource matching action between a target resource providing object of the plurality of resource providing objects and a target resource requesting object of the plurality of resource requesting objects, the target resource providing object and the target resource requesting object belonging to a matching object pair for which the matching is successful.
In one possible embodiment, in the case that the resource matching result includes a target resource providing object and a target resource requesting object that are matched with each other, a resource transfer amount, a resource transfer period, and a resource transfer value-added rate, the server generates a resource matching contract based on the target resource providing object and the target resource requesting object, the resource transfer amount, the resource transfer period, and the resource transfer value-added rate. And the server performs operations such as resource transfer, resource recovery, resource return recovery and the like between the target resource providing object and the target resource requesting object according to the resource matching contract.
The resource transfer refers to transferring the resource required by the target resource request object from the account of the target resource providing object to the account of the target resource request object; resource reclamation refers to transferring resources from an account of a target resource request object to an account of a target resource supply object; resource return reclamation refers to a return to transferring a target resource providing object to a target resource requesting object, transferring resources from an account of the target resource requesting object to an account of the target resource providing object.
In some embodiments, the server uploads the generated resource matching contract to the blockchain system to maintain the security of the resource matching contract.
Any combination of the above optional solutions may be adopted to form an optional embodiment of the present application, which is not described herein in detail.
According to the technical scheme provided by the embodiment of the application, the resource matching request is responded, and a plurality of resource providing objects, initial resource providing information and initial resource request information of a plurality of resource request objects are obtained from the resource matching request. And acquiring a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine, and the resource matching rules comprise resource matching completion conditions. Based on a plurality of resource matching rules, the plurality of resource providing objects, the initial resource providing information and the initial resource request information of a plurality of resource request objects, the plurality of resource providing objects and the plurality of resource request objects are matched to obtain a resource matching result, thereby realizing the automation of resource matching and improving the efficiency of resource matching.
In other words, the introduction of a rule engine in the resource matchmaking allows for dynamic adjustment and configuration of the rules, which means that the resource matchmaking rules can be flexibly adjusted to different needs and market variations without modifying the underlying code. The resource matching rule can be configured so that the resource matching scheme can adapt to different business scenes and requirements, and has good expandability. The rules engine can automatically execute resource matching rules to perform condition matching and filtering based on information about borrowers (resource providing objects) and borrowers (resource requesting objects). The resource matching process can be automated, matching can be performed based on intelligent decisions of the rule engine, and efficiency and accuracy are improved.
Fig. 5 is a schematic structural diagram of a resource matching device provided in an embodiment of the present application, referring to fig. 5, the device includes: an information acquisition module 501, a rule acquisition module 502, and a matching module 503.
The information obtaining module 501 is configured to obtain initial resource providing information of a plurality of resource providing objects and initial resource request information of a plurality of resource requesting objects from the resource matching request in response to the resource matching request.
The rule obtaining module 502 is configured to obtain a plurality of resource matching rules, where the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine.
And a matching module 503, configured to match the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects, and the initial resource requesting information of the plurality of resource requesting objects, so as to obtain a resource matching result.
In a possible implementation manner, the matching module 503 is configured to normalize the initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource requesting objects to obtain target resource providing information of each resource providing object and target resource requesting information of each resource requesting object. And matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the target resource providing information of each resource providing object and the target resource requesting information of each resource requesting object to obtain a resource matching result.
In a possible implementation manner, the matching module 503 is configured to match the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects with the plurality of resource matching rules, so as to obtain a plurality of matching object pairs, where the matching object pairs include a target resource providing object and a target resource request object that meet the resource matching rules. And determining a resource matching result based on the plurality of matching object pairs.
In a possible implementation manner, the matching module 503 is configured to sequentially perform multiple rounds of matching on the target resource providing information of the multiple resource providing objects and the target resource request information of the multiple resource request objects by using the multiple resource matching rules according to the order of priority from high to low, so as to obtain the multiple matching object pairs. Wherein the resource providing object or the resource requesting object that completes the matching in any round does not participate in the next round of matching.
In a possible implementation manner, the matching module 503 is configured to perform feature extraction on the target resource providing information of the target resource providing object and the target resource request information of the target resource request object in the matching object pair for any one of the matching object pairs, to obtain a resource providing information feature and a resource request information feature. And fusing the information features provided by the resource and the information features requested by the resource to obtain the object pair features of the matched object pair. And mapping the object pair characteristics to obtain the matching risk value of the matching object pair. And generating a resource matching result of the matching object pair based on the target resource providing information of the target resource providing object and the target resource requesting information of the target resource requesting object in the matching object pair under the condition that the matching risk value of the matching object pair is smaller than or equal to the matching risk value threshold.
In a possible implementation manner, the matching module 503 is further configured to mark the target resource providing object and the target resource request object in the matching object pair as not matching and re-match the target resource providing object and the target resource request object if the matching risk value of the matching object pair is greater than the matching risk value threshold.
In one possible implementation manner, the device further comprises a rule updating module, which is used for obtaining a resource matching risk value of the current resource matching environment, wherein the resource matching risk value is used for indicating the risk of resource matching. And determining rule adjustment parameters corresponding to the resource matching risk values. And updating the plurality of resource matching rules by adopting the rule adjustment parameters.
In one possible implementation, the apparatus further includes an execution module configured to perform a resource matching action between a target resource providing object of the plurality of resource providing objects and a target resource requesting object of the plurality of resource requesting objects, the target resource providing object and the target resource requesting object belonging to a matching object pair for which the matching is successful.
It should be noted that: in the resource matching device provided in the above embodiment, when matching resources, only the division of the above functional modules is used for illustration, in practical application, the above functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the computer device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the resource matching device and the resource matching method provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the resource matching device and the resource matching method are detailed in the method embodiments, which are not repeated herein.
According to the technical scheme provided by the embodiment of the application, the resource matching request is responded, and a plurality of resource providing objects, initial resource providing information and initial resource request information of a plurality of resource request objects are obtained from the resource matching request. And acquiring a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine, and the resource matching rules comprise resource matching completion conditions. Based on a plurality of resource matching rules, the plurality of resource providing objects, the initial resource providing information and the initial resource request information of a plurality of resource request objects, the plurality of resource providing objects and the plurality of resource request objects are matched to obtain a resource matching result, thereby realizing the automation of resource matching and improving the efficiency of resource matching.
The embodiment of the application provides a computer device, which is used for executing the method, the computer device can be implemented as a terminal or a server, and the structure of the terminal is described below:
fig. 6 is a schematic structural diagram of a terminal according to an embodiment of the present application. The terminal 600 may be: smart phones, tablet computers, notebook computers or desktop computers. Terminal 600 may also be referred to by other names of user devices, portable terminals, laptop terminals, desktop terminals, etc.
In general, the terminal 600 includes: one or more processors 601 and one or more memories 602.
Processor 601 may include one or more processing cores, such as a 4-core processor, an 8-core processor, and the like. The processor 601 may be implemented in at least one hardware form of DSP (Digital Signal Processing ), FPGA (Field-Programmable Gate Array, field programmable gate array), PLA (Programmable Logic Array ). The processor 601 may also include a main processor, which is a processor for processing data in an awake state, also called a CPU (Central Processing Unit ), and a coprocessor; a coprocessor is a low-power processor for processing data in a standby state. In some embodiments, the processor 601 may integrate a GPU (Graphics Processing Unit, image processor) for rendering and drawing of content required to be displayed by the display screen. In some embodiments, the processor 601 may also include an AI (Artificial Intelligence ) processor for processing computing operations related to machine learning.
The memory 602 may include one or more computer-readable storage media, which may be non-transitory. The memory 602 may also include high-speed random access memory, as well as non-volatile memory, such as one or more magnetic disk storage devices, flash memory storage devices. In some embodiments, a non-transitory computer readable storage medium in memory 602 is used to store at least one computer program for execution by processor 601 to implement the resource matching method provided by the method embodiments herein.
In some embodiments, the terminal 600 may further optionally include: a peripheral interface 603, and at least one peripheral. The processor 601, memory 602, and peripheral interface 603 may be connected by a bus or signal line. The individual peripheral devices may be connected to the peripheral device interface 603 via buses, signal lines or a circuit board. Specifically, the peripheral device includes: at least one of radio frequency circuitry 604, a display 605, a camera assembly 606, audio circuitry 607, and a power supply 608.
Peripheral interface 603 may be used to connect at least one Input/Output (I/O) related peripheral to processor 601 and memory 602. In some embodiments, the processor 601, memory 602, and peripheral interface 603 are integrated on the same chip or circuit board; in some other embodiments, either or both of the processor 601, memory 602, and peripheral interface 603 may be implemented on separate chips or circuit boards, which is not limited in this embodiment.
The Radio Frequency circuit 604 is configured to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The radio frequency circuit 604 communicates with a communication network and other communication devices via electromagnetic signals. The radio frequency circuit 604 converts an electrical signal into an electromagnetic signal for transmission, or converts a received electromagnetic signal into an electrical signal. Optionally, the radio frequency circuit 604 includes: antenna systems, RF transceivers, one or more amplifiers, tuners, oscillators, digital signal processors, codec chipsets, subscriber identity module cards, and so forth.
The display screen 605 is used to display a UI (User Interface). The UI may include graphics, text, icons, video, and any combination thereof. When the display 605 is a touch display, the display 605 also has the ability to collect touch signals at or above the surface of the display 605. The touch signal may be input as a control signal to the processor 601 for processing. At this point, the display 605 may also be used to provide virtual buttons and/or virtual keyboards, also referred to as soft buttons and/or soft keyboards.
The camera assembly 606 is used to capture images or video. Optionally, the camera assembly 606 includes a front camera and a rear camera. Typically, the front camera is disposed on the front panel of the terminal and the rear camera is disposed on the rear surface of the terminal.
The audio circuit 607 may include a microphone and a speaker. The microphone is used for collecting sound waves of users and environments, converting the sound waves into electric signals, and inputting the electric signals to the processor 601 for processing, or inputting the electric signals to the radio frequency circuit 604 for voice communication.
The power supply 608 is used to power the various components in the terminal 600. The power source 608 may be alternating current, direct current, disposable or rechargeable.
In some embodiments, the terminal 600 further includes one or more sensors 609. The one or more sensors 609 include, but are not limited to: acceleration sensor 610, gyroscope sensor 611, pressure sensor 612, optical sensor 613, and proximity sensor 614.
The acceleration sensor 610 may detect the magnitudes of accelerations on three coordinate axes of the coordinate system established with the terminal 600.
The gyro sensor 611 may be used to collect 3D motion of the user on the terminal 600 in cooperation with the acceleration sensor 610, and the gyro sensor 611 may be used to collect the body direction and the rotation angle of the terminal 600.
The pressure sensor 612 may be disposed at a side frame of the terminal 600 and/or at a lower layer of the display 605. When the pressure sensor 612 is disposed at a side frame of the terminal 600, a grip signal of the user to the terminal 600 may be detected, and the processor 601 performs a left-right hand recognition or a shortcut operation according to the grip signal collected by the pressure sensor 612. When the pressure sensor 612 is disposed at the lower layer of the display screen 605, the processor 601 controls the operability control on the UI interface according to the pressure operation of the user on the display screen 605.
The optical sensor 613 is used to collect the intensity of ambient light. In one embodiment, processor 601 may control the display brightness of display 605 based on the intensity of ambient light collected by optical sensor 613.
The proximity sensor 614 is used to collect the distance between the user and the front of the terminal 600.
Those skilled in the art will appreciate that the structure shown in fig. 6 is not limiting of the terminal 600 and may include more or fewer components than shown, or may combine certain components, or may employ a different arrangement of components.
The computer device may also be implemented as a server, and the following describes the structure of the server:
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application, where the server 700 may have a relatively large difference due to configuration or performance, and may include one or more processors (Central Processing Units, CPU) 701 and one or more memories 702, where the one or more memories 702 store at least one computer program, and the at least one computer program is loaded and executed by the one or more processors 701 to implement the methods provided in the foregoing method embodiments. Of course, the server 700 may also have components such as a wired or wireless network interface, a keyboard, and an input/output interface for inputting and outputting, and the server 700 may also include other components for implementing the functions of the device, which are not described herein.
In an exemplary embodiment, a computer readable storage medium, e.g. a memory comprising a computer program, executable by a processor to perform the resource matching method of the above embodiments is also provided. For example, the computer readable storage medium may be Read-Only Memory (ROM), random-access Memory (Random Access Memory, RAM), compact disc Read-Only Memory (CD-ROM), magnetic tape, floppy disk, optical data storage device, and the like.
In an exemplary embodiment, a computer program product or a computer program is also provided, which comprises a program code, which is stored in a computer readable storage medium, from which the processor of the computer device reads the program code, which is executed by the processor, such that the computer device performs the above-mentioned resource matching method.
In some embodiments, the computer program related to the embodiments of the present application may be deployed to be executed on one computer device or on multiple computer devices located at one site, or on multiple computer devices distributed across multiple sites and interconnected by a communication network, where the multiple computer devices distributed across multiple sites and interconnected by a communication network may constitute a blockchain system.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the above storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments is merely exemplary in nature and is not intended to limit the invention, but is intended to cover various modifications, substitutions, improvements, and alternatives falling within the spirit and principles of the invention.

Claims (10)

1. A method of resource matching, the method comprising:
responding to a resource matching request, and acquiring initial resource providing information of a plurality of resource providing objects and initial resource request information of a plurality of resource request objects from the resource matching request;
acquiring a plurality of resource matching rules, wherein the plurality of resource matching rules are obtained by compiling a plurality of rule texts by a rule engine;
and matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource requesting information of the plurality of resource requesting objects to obtain a resource matching result.
2. The method of claim 1, wherein the matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects, and the initial resource requesting information of the plurality of resource requesting objects, comprises:
normalizing the initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource request objects to obtain target resource providing information of each resource providing object and target resource request information of each resource request object;
and matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the target resource providing information of each resource providing object and the target resource requesting information of each resource requesting object to obtain a resource matching result.
3. The method according to claim 2, wherein the matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the target resource providing information of each of the resource providing objects, and the target resource requesting information of each of the resource requesting objects, includes:
Matching the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects by adopting the plurality of resource matching rules to obtain a plurality of matching object pairs, wherein the matching object pairs comprise target resource providing objects and target resource request objects which accord with the resource matching rules;
and determining a resource matching result based on the plurality of matching object pairs.
4. The method of claim 3, wherein matching the target resource provisioning information of the plurality of resource provisioning objects and the target resource request information of the plurality of resource request objects using the plurality of resource matching rules to obtain a plurality of matching object pairs, comprises:
sequentially adopting the plurality of resource matching rules to carry out multi-round matching on the target resource providing information of the plurality of resource providing objects and the target resource request information of the plurality of resource request objects according to the order of the priority from high to low to obtain a plurality of matching object pairs;
wherein the resource providing object or the resource requesting object that completes the matching in any round does not participate in the next round of matching.
5. The method of claim 3, wherein the determining a resource match result based on the plurality of matching object pairs comprises:
For any one of the plurality of matching object pairs, extracting characteristics of target resource providing information of a target resource providing object and target resource request information of a target resource request object in the matching object pair to obtain resource providing information characteristics and resource request information characteristics;
fusing the resource providing information features and the resource request information features to obtain object pair features of the matched object pairs;
mapping the object pair characteristics to obtain a matching risk value of the matched object pair;
and generating a resource matching result of the matched object pair based on the target resource providing information of the target resource providing object and the target resource request information of the target resource request object in the matched object pair under the condition that the matching risk value of the matched object pair is smaller than or equal to the matching risk value threshold.
6. The method of claim 5, wherein the method further comprises:
and marking the target resource providing object and the target resource requesting object in the matched object pair as unmatched under the condition that the matching risk value of the matched object pair is larger than the matching risk value threshold, and re-matching the target resource providing object and the target resource requesting object.
7. The method of claim 1, wherein the matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects, and the initial resource requesting information of the plurality of resource requesting objects, further comprises, prior to obtaining a resource matching result:
acquiring a resource matching risk value of a current resource matching environment, wherein the resource matching risk value is used for representing the risk of resource matching;
determining rule adjustment parameters corresponding to the resource matching risk values;
and updating the plurality of resource matching rules by adopting the rule adjustment parameters.
8. The method of claim 1, wherein the matching the plurality of resource providing objects and the plurality of resource requesting objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects, and the initial resource requesting information of the plurality of resource requesting objects, further comprises, after obtaining a resource matching result:
and executing a resource matching action between a target resource providing object in the plurality of resource providing objects and a target resource requesting object in the plurality of resource requesting objects, wherein the target resource providing object and the target resource requesting object belong to a matched object pair which is successfully matched.
9. A resource matching apparatus, the apparatus comprising:
the information acquisition module is used for responding to the resource matching request and acquiring initial resource providing information of a plurality of resource providing objects and initial resource request information of a plurality of resource request objects from the resource matching request;
the rule acquisition module is used for acquiring a plurality of resource matching rules, wherein the resource matching rules are obtained by compiling a plurality of rule texts by the rule engine;
and the matching module is used for matching the plurality of resource providing objects and the plurality of resource request objects based on the plurality of resource matching rules, the initial resource providing information of the plurality of resource providing objects and the initial resource request information of the plurality of resource request objects to obtain a resource matching result.
10. A computer device comprising one or more processors and one or more memories, the one or more memories having stored therein at least one computer program loaded and executed by the one or more processors to implement the resource matching method of any of claims 1 to 8.
CN202311821119.0A 2023-12-27 2023-12-27 Resource matching method and device and computer equipment Pending CN117788111A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311821119.0A CN117788111A (en) 2023-12-27 2023-12-27 Resource matching method and device and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311821119.0A CN117788111A (en) 2023-12-27 2023-12-27 Resource matching method and device and computer equipment

Publications (1)

Publication Number Publication Date
CN117788111A true CN117788111A (en) 2024-03-29

Family

ID=90393953

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311821119.0A Pending CN117788111A (en) 2023-12-27 2023-12-27 Resource matching method and device and computer equipment

Country Status (1)

Country Link
CN (1) CN117788111A (en)

Similar Documents

Publication Publication Date Title
CN111298445B (en) Target account detection method and device, electronic equipment and storage medium
CN112163428A (en) Semantic tag acquisition method and device, node equipment and storage medium
CN109087194A (en) Invoice checking method, device, computer equipment and storage medium
US20230274282A1 (en) Transaction tracking and fraud detection using voice and/or video data
WO2024099457A1 (en) Information recommendation method and apparatus, and storage medium and electronic device
US20220020358A1 (en) Electronic device for processing user utterance and operation method therefor
CN111914180B (en) User characteristic determining method, device, equipment and medium based on graph structure
CN111091408A (en) User identification model creating method and device and identification method and device
CN112561084B (en) Feature extraction method and device, computer equipment and storage medium
CN112634017A (en) Remote card opening activation method and device, electronic equipment and computer storage medium
CN117788111A (en) Resource matching method and device and computer equipment
CN107798249B (en) Method for releasing behavior pattern data and terminal equipment
CN113486260B (en) Method and device for generating interactive information, computer equipment and storage medium
US11726818B1 (en) System for executing tasks in different programming languages
CN110362981B (en) Method and system for judging abnormal behavior based on trusted device fingerprint
CN113569052A (en) Knowledge graph representation learning method and device
CN113449506A (en) Data detection method, device and equipment and readable storage medium
CN113542527A (en) Face image transmission method and device, electronic equipment and storage medium
CN111651555A (en) Service processing method, system and computer readable storage medium
US20220237035A1 (en) System for electronic identification of attributes for performing maintenance, monitoring, and distribution of designated resource assets
CN114565030B (en) Feature screening method and device, electronic equipment and storage medium
CN117611368A (en) Method, device, equipment and storage medium for debugging account checking parameters
US20230367780A1 (en) Data enrichment using name, location, and image lookup
CN116305255A (en) Data query method, device, equipment and storage medium
CN116383478A (en) Transaction recommendation 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