Virtual resource association method and device, equipment and storage medium

By extracting and calculating the correlation degree, the virtual resources associated with the target information are determined, which solves the problem of low correlation between individual stocks and information in the existing technology, and improves the user experience.

CN118709770APending Publication Date: 2024-09-27FUTU NETWORK TECH (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410812119.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

When the existing technology associates individual stocks with information, the correlation between individual stocks and information is low, resulting in a low user experience.

Method used

By obtaining the information of the target information and candidate virtual resources, using the pre-trained key information extraction model and relevance judgment model, extracting the key information and resource basic information based on the prompt statement, calculating the relevance, thereby determining the virtual resources associated with the target information .

Benefits of technology

It improves the correlation and association effect between virtual resources and information, and enhances the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118709770A
    Figure CN118709770A
Patent Text Reader

Abstract

The invention provides a virtual resource association method and apparatus, a device and a storage medium. The method comprises the steps of obtaining target information and at least one candidate virtual resource; based on a pre-trained key information extraction model and a preset first prompt statement, information key information of the target information is extracted, and the first prompt statement is used for controlling the key information extraction model to obtain the information key information; obtaining resource basic information of at least one candidate virtual resource; on the basis of a pre-trained association degree judgment model and a preset second prompt statement, according to the at least one piece of resource basic information and the information key information, the association degree between the at least one candidate virtual resource and the target information is obtained, and the second prompt statement is used for controlling the association degree judgment model to determine the association degree; and determining a virtual resource associated with the target information from the at least one candidate virtual resource according to the at least one association degree. The relevance and the association effect between the virtual resources and the information under the association relationship and the user experience are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] At present, brokerage trading clients often associate virtual resources with information. For example, brokerage trading clients generally display individual stocks on the page displaying information, so that investors can directly view and jump to the page of the individual stock while browsing the information, so as to view the market data and financial data of the individual stock and place orders for the individual stock and other subsequent actions, which can reduce the operation path of converting information into investment decisions and improve investment efficiency. However, when the relevant technology associates individual stocks with information, there is a problem of low correlation between individual stocks and information under the same association relationship, resulting in a low user experience. Summary of the invention

[0003] The present application provides a method, device, equipment and storage medium for associating virtual resources to improve the correlation between virtual resources and information under the association relationship, and improve the association effect between virtual resources and information and user experience.

[0004] In a first aspect, the present application provides a method for associating virtual resources, comprising: obtaining target information and at least one candidate virtual resource of the target information; extracting information key information of the target information based on a pre-trained key information extraction model and a preset first prompt sentence; wherein the first prompt sentence is used to control the key information extraction model to obtain information key information of the target information; obtaining resource basic information of at least one candidate virtual resource; based on a pre-trained association judgment model and a preset second prompt sentence, obtaining the degree of association between at least one candidate virtual resource and the target information according to the resource basic information of at least one candidate virtual resource and the information key information of the target information, wherein the second prompt sentence is used to control the association judgment model to determine the degree of association; determining the target virtual resource associated with the target information from at least one candidate virtual resource according to the degree of association of at least one candidate virtual resource.

[0005] In a second aspect, the present application provides a virtual resource association device, comprising: a first acquisition module, used to: acquire target information and at least one candidate virtual resource of the target information; a first extraction module, used to: extract information key information of the target information based on a pre-trained key information extraction model and a preset first prompt statement; wherein the first prompt statement is used to control the key information extraction model to acquire information key information of the target information; a second acquisition module, used to: acquire resource basic information of each of at least one candidate virtual resource; a third acquisition module, used to: acquire the degree of association between at least one candidate virtual resource and the target information based on the resource basic information of each of at least one candidate virtual resource and the information key information of the target information, based on a pre-trained association judgment model and a preset second prompt statement, wherein the second prompt statement is used to control the association judgment model to determine the association; a first determination module, used to: determine the target virtual resource associated with the target information from at least one candidate virtual resource based on the respective association of at least one candidate virtual resource.

[0006] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, the memory being used to store a computer program, the processor being used to call and run the computer program stored in the memory, and executing the method in the first aspect or its various implementations.

[0007] In a fourth aspect, the present application provides a computer-readable storage medium for storing a computer program, wherein the computer program enables a computer to execute the method in the first aspect or its various implementations.

[0008] In a fifth aspect, the present application provides a computer program product, comprising computer program instructions, which enable a computer to execute the method in the first aspect or its various implementations.

[0009] In a sixth aspect, the present application provides a computer program, which enables a computer to execute the method in the first aspect or its various implementations.

[0010] In the above process, when determining the association relationship between virtual resources and information, the electronic device not only considers the basic information of the virtual resources and the key information of the information, but also uses the prompt statement control model to assist in determining the degree of association, thereby improving the correlation and association effect between the virtual resources and information under the association relationship. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0012] Figure 1 An application scenario diagram provided for an embodiment of the present application;

[0013] Figure 2 A flowchart of a method for associating virtual resources provided in an embodiment of the present application;

[0014] Figure 3 A schematic diagram of a method for associating virtual resources provided in an embodiment of the present application;

[0015] Figure 4 A schematic diagram of another method for associating virtual resources provided in an embodiment of the present application;

[0016] Figure 5 A schematic diagram of another method for associating virtual resources provided in an embodiment of the present application;

[0017] Figure 6 A schematic diagram of a virtual resource association device 600 provided in an embodiment of the present application;

[0018] Figure 7 A schematic block diagram of an electronic device 700 provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or server that includes a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0021] As mentioned above, the existing technology has the problem of low correlation between individual stocks and information under the same association relationship when associating individual stocks with information, resulting in a low user experience.

[0022] In order to solve the above technical problems, the present application can determine the information key information of the target information based on a pre-trained key information extraction model and a preset first prompt statement, wherein the first prompt statement can control the key information extraction model to obtain the information key information, and then the electronic device can obtain the degree of association between at least one candidate virtual resource and the target information based on the resource basic information and information key information of at least one candidate virtual resource, based on the pre-trained association judgment model and the preset second prompt statement, and finally determine the virtual resource associated with the target information from at least one candidate virtual resource based on at least one association. That is to say, when determining the association relationship between virtual resources and information, the present application not only considers the basic information of virtual resources and the key information of information, but also uses the prompt statement control model to assist in determining the association, thereby improving the correlation and association effect between virtual resources and information under the association relationship.

[0023] It should be understood that the technical solution of the present application can be applied to the following scenarios, but is not limited to:

[0024] In some implementable embodiments, the technical solution of the present application can be used in scenarios where virtual resources and information are associated. For example, it can be applied to scenarios where related links of virtual resources are displayed in information content, or it can be applied to scenarios where information or information-related links are displayed on a virtual resource page. The present application does not impose any restrictions on this.

[0025] In some possible implementations, Figure 1 An application scenario diagram provided for an embodiment of the present application, such as Figure 1As shown, the application scenario may include a terminal device 110 and an electronic device 120. The terminal device 110 and the electronic device 120 may be connected via a wired network or a wireless network.

[0026] Among them, the terminal device 110 can be installed with a financial client, and the user can conduct business related to virtual resources and view information based on the client. Correspondingly, the electronic device 120 can obtain information and candidate virtual resources, and determine the correlation between the candidate virtual resources and the information, and determine the target virtual resources associated with the information from the candidate virtual resources based on the correlation. After that, the electronic device 120 can associate the information with the target virtual resources so that the user can view the target virtual resources associated with it based on the information display page displayed by the client, and conduct business related to the target virtual resources.

[0027] Exemplarily, the terminal device 110 may be a mobile phone, a tablet computer, a desktop, a laptop, a handheld computer, a notebook computer, a vehicle-mounted device, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (PDA), an augmented reality (AR) or virtual reality (VR) device, etc., but is not limited thereto. The electronic device 120 may be a server, a server cluster consisting of multiple servers, or a cloud platform control center, which is not limited in the present embodiment of the application.

[0028] also, Figure 1 The number of terminal devices and electronic devices shown is only exemplary, and may actually include other numbers of terminal devices and electronic devices, which is not limited in this application.

[0029] In some other possible implementations, the technical solution of the present application can be executed by the above-mentioned terminal device 110, and the present application does not impose any limitation on this.

[0030] It should be noted that in the specific implementation of this application, relevant data such as virtual resources, information, key information of information, basic resource information, user portrait information, etc. are involved. When the embodiments of this application are applied to specific products or technologies, user permission, consent or authorization is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.

[0031] After introducing the application scenarios of the embodiments of the present application, the technical solution of the present application will be described in detail below:

[0032] Figure 2 A flowchart of a method for associating virtual resources provided in an embodiment of the present application, the method can be performed as follows Figure 1 The electronic device 120 shown in the figure performs, but is not limited to this. Figure 2 As shown, the method may include the following steps:

[0033] S210: Acquire target information and at least one candidate virtual resource of the target information;

[0034] S220: extracting key information of the target information based on the pre-trained key information extraction model and the preset first prompt sentence, wherein the first prompt sentence is used to control the key information extraction model to obtain the key information of the target information;

[0035] S230: Obtain resource basic information of at least one candidate virtual resource;

[0036] S240: Based on the pre-trained relevance judgment model and the preset second prompt sentence, the relevance between at least one candidate virtual resource and the target information is obtained according to the resource basic information of at least one candidate virtual resource and the information key information of the target information, and the second prompt sentence is used to control the relevance judgment model to determine the relevance;

[0037] S250: Determine a target virtual resource associated with the target information from the at least one candidate virtual resource according to the respective association degree of the at least one candidate virtual resource.

[0038] In some possible implementations, the candidate virtual resource may be any of the following, but is not limited thereto: stocks, funds, futures, options, and foreign exchange.

[0039] Exemplarily, the electronic device may obtain a pre-association result of the target information, and determine at least one candidate virtual resource based on the pre-association result, wherein the pre-association result may include a virtual resource that has an association relationship with the target information before the degree of association is determined, and the electronic device may determine the virtual resource in the pre-association result as a candidate virtual resource.

[0040] Among them, the target information can be individual stock information; it is understandable that the information related to virtual resources includes but is not limited to: individual stock information (Company News), industry information (Industry News), and aggregated information (MergedNews). Since the information text content of different types of information is different, if the same association logic is used to determine the correlation between all types of information and virtual resources, there will be a problem of inaccurate correlation calculation logic. For example, for industry information, it may not mention any company or individual stock. For aggregate information, it mentions a large number of individual stocks, and each individual stock has only 1 to 2 sentences of description. For these two types of information, it is difficult to determine the virtual resources such as individual stocks involved in the information. Based on the above considerations, in order to improve the precise association between virtual resources and information, the electronic device can first classify and screen various types of information to determine individual stock information as the target information.

[0041] Specifically, the electronic device may input a plurality of information into a news classification model (News Classification API), and output respective categories of the plurality of information. Then, the electronic device may determine the information categorized as a stock category as the target information.

[0042] The information category classification model can be obtained by fine-tuning GPT (Generative Pre-trained Transformer). For example, the electronic device can first determine a data set, which can include information, or information and information categories, and then use the training data in the data set to train the GPT model. The number of training iterations can be 3. After that, the trained model can be verified using the verification data in the data set to determine the information category classification model.

[0043] After acquiring the target information, the information text of the target information can be used to extract key information through a pre-trained key information extraction model to obtain the information key information of the target information, wherein the information key information includes but is not limited to: subject information, key entity text and summary text, the subject information is used to describe the subject content of the target information, the key entity text is used to indicate the entity information in the target information, and the summary text refers to the summary content of the target information.

[0044] In some implementable embodiments, the above-mentioned extraction of key information of the target information based on a pre-trained key information extraction model and a preset first prompt sentence may include: inputting the first prompt sentence and the target information into the key information extraction model, extracting the core content of the target information through the key information extraction model to obtain the subject information of the target information; performing entity extraction on the target information based on the subject information through the key information extraction model to obtain key entity text associated with the subject information in the target information; generating a summary of the target information based on the key entity text through the key information extraction model to obtain a summary text of the target information, wherein the summary text includes at least one key entity text; and determining the subject information, the key entity text and the summary text as key information of the information.

[0045] Exemplarily, the electronic device can filter out text in the key entity text that appears less than a second number of times in the target information to obtain filtered key entity text, and determine the subject information, filtered key entity text and summary text as key information of the target information, thereby extracting the most core and key parts of the information text of the target information that are related to the subject of the information and frequently mentioned entities, while ignoring content related to entities such as individual stocks or companies that are slightly mentioned in the information. That is, the accuracy of the key information of the information can be ensured through prior information filtering.

[0046] Exemplarily, the subject information (main_topic) of the target information includes the core content of the information text of the target information, and may include the event or news mainly described in the information text, which may be 1 to 2 sentences. The key entity text (keyentities) may include key entities that appear in the information text of the target information, such as companies, industries, product names, senior executives, and other types of entities, but is not limited thereto. The summary text (summary) may specifically be a Dense Entity-Aware Summarization, including the above-mentioned key entity text to improve the information density of the summary.

[0047] Exemplarily, the first prompt statement (System Prompt) may include: data that the key information extraction model needs to extract (for example, the key information of the news needs to be extracted: topic information, key entity text, and summary text), the output format of the data (i.e., the output format of the key information of the news), the extraction method, and the requirements during the extraction process, but is not limited thereto. The above-mentioned output format may be JSON (JavaScript Object Notation), that is, the key information extraction model may combine and output the extracted topic information, key entity text, and summary text based on the JSON format, wherein JSON is a lightweight data exchange format that can use a text format that is completely independent of a language to store and represent data.

[0048] For example, the first prompt statement may be: for the input information text, determine the subject information {XXX} of the information text; based on the determined subject information {XXX}, determine the key entity text {YYY; YYY; ...} in the information text, where the key entity text may be a company name, product name, personal name, and industry name or department name directly related to the subject information; briefly summarize the information text to obtain a summary text {ZZZ}, wherein the summary text is ensured to contain all key entity texts.

[0049] Exemplarily, the key information extraction model can be a GPT model, and the electronic device can use the Fine-tuning technology to adjust the parameters of the GPT model to determine the key information extraction model, wherein the Fine-tuning technology is a technology based on a pre-trained model, which can adapt to the key information extraction task by fine-tuning the existing model, for example, by adjusting the weight of the pre-trained model so that it can better adapt to the input and output of the key information extraction task, so as to obtain a key information extraction model suitable for the key information extraction task in a short time. Specifically, the key information extraction model can be obtained by fine-tuning the GPT model. For example, the electronic device can obtain training data, and the training data may include sample extraction results and sample information based on a preset format, and the preset format is consistent with the output format specified by the first prompt statement; then, the electronic device can use the training data to fine-tune the GPT model to obtain the key information extraction model.

[0050] For example, the target information is a news article about "Company 1's device 1 will be equipped with function 1". By inputting the first prompt sentence and the information text of the target information into the key information extraction model, the key information extraction model first extracts the core content of the target information according to the steps indicated in the first prompt sentence, and obtains the subject information of the target information {Company 1's device 1 will be equipped with function 1}. Then, according to the subject information of the target information, the key entity text directly related to the subject information is extracted from the information text of the target information: company name {Company 1}, product name {Device 1} and {Function 1}, personal name {Executive 1}, industry name {Cloud Service}, etc. Then, the information text is briefly summarized to obtain the summary text: {Company 1 announced that its device 1 will be equipped with function 1, and a large number of devices 1 equipped with function 1 will enter preliminary use at the beginning of next year. The technology has been verified by the original equipment, and the specific implementation process of the technology is process 1. In the test, the effect of effect 1 was achieved. In addition, Company 1 plans to complete the deployment of task 1 in the next two and a half years. It is worth mentioning that the device 1 of PR 1 has deployed similar functions}.

[0051] Further, after determining the subject information, key entity text and summary text, the subject information, key entity text and summary text and other key information can be output in a specific output format according to the output format of the data indicated in the first prompt statement, which can be specifically as follows:

[0052] {'main_topic':'Company 1's device 1 will be equipped with function 1',

[0053] 'key_entities':['Company 1', 'Device 1', 'Function 1', 'Executive 1', 'Cloud Service'],

[0054] 'summary':'Company 1 announced that its device 1 will be equipped with function 1. At the beginning of next year, a large number of devices 1 equipped with function 1 will enter preliminary use. The technology has been verified by the original equipment, and the specific implementation process of the technology is process 1. In the test, the effect of effect 1 was achieved. In addition, Company 1 plans to complete the deployment of task 1 in the next two and a half years. It is worth mentioning that Company 1's device 1 has already deployed similar functions. '}.

[0055] Among them, main_topic refers to the topic information, key_entities refers to the key entity text, and summary refers to the summary text.

[0056] Exemplarily, the above-mentioned entity extraction of the target information based on the subject information to obtain the key entity text associated with the subject information in the target information may include: determining the entity text extraction strategy based on the number of preset entity text types included in the target information and the number of occurrences of the entity text corresponding to each preset entity text type in the target information; performing entity extraction on the target information based on the entity text extraction strategy and the subject information to obtain the key entity text in the target information.

[0057] Among them, the types of preset entity texts, i.e., preset entity text types, may include: company names, executive names, product names, but are not limited thereto. By performing entity extraction on the target information based on the subject information, the information entity text related to the subject information can be obtained, and then the information entity text can be classified to obtain entity texts belonging to different preset entity text types and related to the subject information. For example, entity texts belonging to the type of company name can be obtained, i.e., different company names included in the target information and associated with the subject information, and entity texts belonging to the type of executive name can also be obtained, i.e., different executive names included in the target information and associated with the subject information. Furthermore, the entity text extraction strategy can be determined based on the number of preset entity text types appearing in the target information and the number of entity texts classified under various preset entity text types appearing in the target information, and then the target information can be entity extracted based on the entity text extraction strategy and the subject information to obtain the key entity texts in the target information.

[0058] It is understandable that if the information entity text in the target information corresponds to a large number of preset entity text types and the number of occurrences (i.e., frequency of occurrence) of the information entity text under each preset entity text type in the target information is small, it is easy to determine more key entity texts, resulting in the subsequent calculated target information and the correlation between multiple candidate virtual resources being similar, and it is difficult to determine the virtual resource with the highest correlation. Therefore, the key entity text can be assisted in extracting based on the user portrait information, which not only makes the correlation between the target information and multiple candidate virtual resources more different, making it easier to accurately determine the virtual resource with the highest correlation from multiple candidate virtual resources, but also takes into account the user portrait information, so that the target virtual resources determined to be associated with the target information are more in line with user needs, thereby improving the user experience.

[0059] Specifically, in some implementable methods, the above-mentioned determination of the entity text extraction strategy based on the number of types of preset entity texts included in the target information and the number of occurrences of each type of preset entity texts in the target information may include: in response to the number of types including preset entity text types being greater than a type threshold and the number of occurrences of each corresponding entity text in the target information being less than an occurrence number threshold, determining the entity text extraction strategy includes: extracting key information of the information based on user portrait information, wherein the user portrait information includes at least one of the following: information on the target user's preference for preset entity text types, and user attention information for the preset entity texts.

[0060] Among them, the user portrait information may include but is not limited to: the current target user's preference information for different preset entity text types, user attention information, etc. Specifically, the historical information set corresponding to the user may be obtained, and the historical information set includes the historical information browsed by the target user at a historical time; entity recognition is performed on the information title of each historical information in the historical information set to obtain the title entity text, and the title entity text is classified to obtain the preset entity text type to which the title entity text belongs in the preset entity text type; by classifying the title entity text into the preset entity text type to which it belongs, and then counting the number of title entity texts under different preset entity text types, the target user's preference information for each preset entity text type is determined based on the number of title entity texts under different preset entity text types; at the same time, the title entity text that can be attributed to different preset entity text types in the information title corresponding to each historical information is determined as the preset entity text, and the user attention information of the target user for the preset entity text is determined based on the number of occurrences of the preset entity text in the historical information set.

[0061] In some achievable embodiments, the target user's preference information for each preset entity text type is determined based on the number of title entity texts under different preset entity text types. Specifically, the number of title entity texts under each preset entity text type can be normalized, and the normalized value is used as the target user's preference information for each preset entity text type. For example, the number of title entity texts under the preset entity text type can be normalized by the following formula (1):

[0062]

[0063] Among them, A′ i A represents the normalized value of the number of title entity texts corresponding to the i-th preset entity text type, that is, the target user's preference information for the i-th preset entity text type. iA′ represents the number of title entity texts under the i-th preset entity text type, A(min) represents the minimum number of title entity texts corresponding to all preset entity text types, and A(max) represents the maximum number of title entity texts corresponding to all preset entity text types. It can be understood that A′ i The larger the value is, the higher the target user's preference for the entity text belonging to the i-th preset entity text type is. i The smaller it is, the lower the target user's preference for the entity text belonging to the i-th preset entity text type.

[0064] For example, the title of historical information is "Executive A: Company A recently recalled 600 imported vehicles as some functions posed safety hazards." The title entity texts "Executive A" and "Company A" can be identified from the title of the historical information. "Executive A" belongs to the name of the executive and "Company A" belongs to the company name. The title entity text "Executive A" can be classified into the preset entity text type of executive name, that is, the number of title entity texts under the preset entity text type of executive name is increased by 1. The title entity text "Company A" can be classified into the preset entity text type of company name, that is, the number of title entity texts under the preset entity text type of company name is increased by 1.

[0065] Similarly, the user attention information of the target user for the preset entity text is determined based on the number of occurrences of the preset entity text in the historical information set. Specifically, the number of occurrences of each preset entity text in the historical information set can be normalized, and the normalized value is used as the user attention information of the target user for each preset entity text. It can be understood that the larger the number of occurrences after normalization (i.e., user attention information), the higher the user attention of the target user to the preset entity text, and the smaller the number of occurrences after normalization (i.e., user attention information), the lower the user attention of the target user to the preset entity text.

[0066] Continuing with the above example, since "Executive A" can be attributed to the name of the executive and "Company A" can be attributed to the name of the company, "Executive A" and "Company A" can be determined as preset entity texts, and the number of appearances of "Executive A" and "Company A" in the corresponding information titles of each historical information are normalized respectively, and the user attention information of the target user for "Executive A" and "Company A" is generated.

[0067] If the entity text extraction strategy is to extract key information of information based on user portrait information, entity extraction is performed on the target information according to the entity text extraction strategy and the subject information to obtain the key entity text in the target information. Specifically, it may include: entity extraction is performed on the target information based on the subject information to obtain candidate entity texts associated with the subject information in the target information; the candidate entity texts are classified according to preset entity text types to determine the preset entity text type to which each candidate entity text belongs, and then the text weight value of each candidate entity text is determined according to the target user's preference information for different preset entity text types and the preset entity text type to which each candidate entity text belongs. Finally, based on the text weight value of each candidate entity text, N (N is greater than 1) candidate entity texts with the largest text weight values ​​can be screened as key entity texts.

[0068] Furthermore, each candidate entity text can also be matched with the preset entity text. If the match is successful, the text weight value of the candidate entity text that matches it is adjusted according to the user attention information of the target user for the preset entity text. Finally, according to the adjusted text weight values ​​corresponding to each candidate entity text, the N candidate entity texts with the largest text weight values ​​are selected as key entity texts. For example, if the candidate entity text is "executive A", the target user's preference information for the preset entity text type of executive name is A', and the target user's preference information for the preset entity text "executive A" is B, which can be calculated according to the formula A"=A'×(1+B), where A" represents the adjusted text weight value.

[0069] In addition, the above-mentioned determination of the entity text extraction strategy based on the number of types of preset entity texts included in the target information and the number of occurrences of each type of preset entity texts in the target information may also include: in response to the number of types including preset entity text types being 0, determining that the entity text extraction strategy is an explicit extraction strategy to extract key entity texts based on a manual method.

[0070] It is understandable that when the preset entity text does not appear in the target information, the key information extraction model may not be able to extract the key entity text, and the first prompt statement controls the data that the key information extraction model needs to extract, which includes the key entity text. Therefore, in order to ensure the logical rationality of the technical solution, that is, to ensure that the data extracted by the key information extraction model includes the key entity text (that is, to ensure that the data extracted by the key information extraction model can be interpreted and conform to the content included in the first prompt statement), the key entity text can be extracted through an explicit extraction strategy, that is, the key entity text is determined manually.

[0071] The following describes the process of obtaining the resource basic information of at least one candidate virtual resource:

[0072] The resource basic information includes, but is not limited to: the virtual resource code of the virtual resource, the virtual resource name, the basic description information of the virtual resource issuance object, the description information of the core personnel, the business information, the concept section information, etc. Specifically, a service interface for obtaining the resource basic information can be pre-set to obtain the resource basic information of the candidate virtual resource through the pre-set service interface.

[0073] In some achievable embodiments, the above-mentioned acquisition of the resource basic information of each of the at least one candidate virtual resources includes: determining an information data service interface and an issuance object data service interface, the information data service interface is used to acquire the first resource basic information of each candidate virtual resource, and the issuance object data service interface is used to acquire the second resource basic information of each candidate virtual resource; merging the information data service interface and the issuance object data service interface to obtain a comprehensive data service interface; acquiring the virtual resource identifier of each of the at least one candidate virtual resource; inputting at least one of the virtual resource identifiers into the comprehensive data service interface to acquire the first resource basic information and the second resource basic information of each of the at least one candidate virtual resource; wherein the first resource basic information includes at least one of the following: a virtual resource code, a virtual resource name based on at least one language; and the second resource basic information includes at least one of the following: basic description information of the virtual resource issuance object, description information of core personnel, business information, and concept section information. The virtual resource issuance object is the company or individual represented by the virtual resource, and the core personnel may be the company's senior executives.

[0074] Exemplarily, if the candidate virtual resources are stocks, the information data service interface can be a stock information data service API (Security Information Data Service API), where API is Application Programming Interface. The electronic device can determine the identification (stock identity, stock_id) of at least one candidate virtual resource, and then generate a set of virtual resource lists based on the identifications of all candidate virtual resources, namely, a stock_id list, and then pass the stock_id list to the stock information data service API to batch obtain the first resource basic information of the above-mentioned candidate virtual resources. For example, the first resource basic information can include: stock code, simplified Chinese, traditional Chinese or English name of the stock and other fields.

[0075] Taking into account situations such as duplicate company names, company business and information content mismatch, the electronic device also needs additional object information of the virtual resource corresponding to the issuing object as the second resource basic information to assist the correlation judgment model in judging the correlation between the candidate virtual resource and the target information, so as to improve the accuracy of the correlation. Among them, the second resource basic information can include the object information of the virtual resource corresponding to the issuing object, for example, the basic situation description information, core personnel description information, business information, and concept section information of the issuing company corresponding to the virtual resource. By inputting the object information of the virtual resource corresponding to the issuing object as the resource basic information of the candidate virtual resource into the correlation judgment model, the correlation judgment model can judge the correlation between the issuing object of the candidate virtual resource and the content mentioned in the target information in terms of business, industry, executives, products, etc. based on this part of the resource basic information, that is, the correlation between the candidate virtual resource and the target information can be determined by combining factors such as the business scope and industry field corresponding to the virtual resource.

[0076] Similarly, if the candidate virtual resource is a stock, the issuing object data service interface can be a company brief data service API. The electronic device can pass the stock_id list and the output language to the company brief data service API, and can return the second resource basic information based on the output language. The second resource basic information returned by the company brief data service API can include but is not limited to the following field information: basic situation description information such as company name field, company registration country and stock issue price, core personnel description information such as core personnel names and core personnel positions, business information and concept sector information.

[0077] Exemplarily, the electronic device may first determine the implementation classes of the information data service interface and the issuance object data service interface respectively. The implementation class refers to a specific class that can implement the interface (such as the above-mentioned information data service interface and issuance object data service interface) or the methods defined by the abstract class. Then, a merged class is created based on the two implementation classes. The merged class can provide specific implementations of all methods in the comprehensive data service interface, thereby realizing the comprehensive data service interface. The merged class can call the methods of the above-mentioned two implementation classes. For example, the above-mentioned two implementation classes can be called by dependency injection or combination, thereby completing the merger of the information data service interface and the issuance object data service interface to obtain the comprehensive data service interface.

[0078] For example, in combination with the above embodiments, the electronic device can merge the individual stock information data service API and the company profile data service API to obtain an individual stock company comprehensive data service API (Stock Company Profile Data Service API) that can implement the results returned by the two interfaces respectively, so that all resource basic information such as profile data of candidate virtual resources and their corresponding companies can be called at one time through only one interface, without having to call the two APIs twice each time, thereby improving the efficiency of information acquisition.

[0079] The following is an introduction to the process of determining the relevance between at least one candidate virtual resource and the target information:

[0080] In some implementable methods, in one embodiment, the above-mentioned pre-trained association judgment model and the preset second prompt sentence obtain the association between at least one candidate virtual resource and the target information according to the resource basic information of at least one candidate virtual resource and the information key information of the target information, including: determining the resource name set of at least one candidate virtual resource according to at least one resource basic information; generating a target indication instruction according to the resource name set and the second prompt sentence; inputting the target indication instruction, the resource basic information of at least one candidate virtual resource and the information key information of the target information into the association judgment model, and outputting the association between at least one candidate virtual resource and the target information.

[0081] Exemplarily, the correlation degree may be a value between 0 and 1, or a percentage or other values, which is not limited in the present application.

[0082] Exemplarily, the resource basic information may include at least the resource names of the candidate virtual resources. The electronic device may extract the resource names of the candidate virtual resources from the resource basic information of each candidate virtual resource and combine them to obtain a resource name set. The resource name set is used to instruct the association judgment model to determine the virtual resources in the resource name set that need to calculate the association with the target information, that is, to instruct the association judgment model that when calculating the association between the target resource and different virtual resources, the scope of the virtual resources is limited to the virtual resources corresponding to the resource names in the resource name set.

[0083] Among them, the relevance judgment model can be implemented based on a large language model (LLM). When judging the relevance between candidate virtual resources and target information, the textual entailment technology in the field of natural language processing (NLP) can be used to obtain the relationship between the key information (premise) of the target information and the resource basic information (hypothesis) of the target candidate virtual resources, and classify it into a probability value of the entailment relationship, and use the probability value to determine the relevance between the target information and the candidate virtual resources.

[0084] Specifically, the resource names of the candidate virtual resources can be extracted from the resource basic information of each candidate virtual resource to construct a resource name set, and then, based on the resource name set and the second prompt statement, a target indication instruction is generated, and the target indication instruction, the resource basic information of at least one candidate virtual resource and the information key information of the target information are input into the association judgment model. The association judgment model obtains a candidate virtual resource from the resource name set one by one according to the target indication instruction, and obtains the probability value of classifying the relationship between the target information and the candidate virtual resource as an implication relationship based on the resource basic information of the candidate virtual resource and the information key information of the target information, and outputs the probability value as the association between the candidate virtual resource and the target information.

[0085] Furthermore, considering that there are multiple candidate virtual resources, in order to ensure the consistency and computational efficiency of judging the correlation between any candidate virtual resource and the target information, the correlation between multiple candidate virtual resources and the target information can be calculated by constructing parallel correlation calculation tasks.

[0086] Exemplarily, in one embodiment, the target indication instruction, at least one resource basic information and information key information are input into the correlation judgment model, and the correlation between at least one candidate virtual resource and the target information is output, including: for any target candidate virtual resource among the at least one candidate virtual resource, the resource name of the target candidate virtual resource is determined from the resource name set, and a correlation calculation task for the target candidate virtual resource is created based on the correlation judgment model; the target correlation between the target candidate virtual resource and the target information is obtained through the correlation calculation task; based on a preset output structure model, the target correlation and the resource name of the target candidate virtual resource are formatted to obtain a target correlation that conforms to a preset format.

[0087] For example, if the preset format defined by the preset output structure model is: stock field, relatedness_score field and reason field, wherein the stock field can be described based on the above-mentioned resource name set, indicating the resource name of at least one candidate virtual resource; the relatedness_score field is used to indicate the correlation between the corresponding candidate virtual resource and the target information; the reason field is used to indicate the correlation reason for determining the correlation, so as to guide and control the correlation judgment model to output a more accurate correlation, that is, to improve the accuracy of correlation judgment.

[0088] Accordingly, the second prompt statement may include the field type, field description, etc. of the above fields. Similarly, the electronic device may determine the second prompt statement based on the CoT method, but is not limited thereto. The electronic device may list the resource names in the resource name set into the second prompt statement to generate a target prompt instruction.

[0089] For example, the electronic device can first determine the number of resource names included in the resource name set. If the number of resource names is 1, the electronic device can directly create an association calculation task for the candidate virtual resource corresponding to this resource name based on the association judgment model; if the number of resource names is greater than 1, the electronic device can first determine the association calculation task for the candidate virtual resource corresponding to any resource name in the resource name set, and then package the association calculation task to transform a single task into multiple tasks (for example, the input and output of the association calculation task for processing a single task can be modified to input and output that can process information in batches, and at the same time, the task processing parameters of the association calculation task of a single task can be modified to configure the processing process of multiple tasks to realize batch judgment of association, thereby obtaining an association calculation task for processing multiple tasks.) to simultaneously judge the associations of multiple candidate virtual resources.

[0090] Specifically, the electronic device can first obtain the resource name of the target candidate virtual resource from the resource name set, and create a corresponding association calculation task based on the resource name of the target candidate virtual resource as the task identifier; when the association calculation task performs the association calculation between the target candidate virtual resource and the target information, the association calculation task can obtain the task identifier (i.e., the resource name) based on its own task identifier to obtain the corresponding resource basic information of the target candidate virtual resource, and then calculate the association between the candidate virtual resource and the target information according to the target indication instruction based on the resource basic information of the target candidate virtual resource and the information key information of the target information, and based on the preset output structure model, format the target association and the resource name of the target candidate virtual resource for output.

[0091] For example, the relevance judgment model can be a GPT-based model, and the relevance judgment model has the functioncall capability, which can be used to call external functions or interfaces. The relevance judgment model can obtain the structured Pydantic BaseModel model based on this capability and use it as a relevance calculation task, wherein the return value of the relevance calculation task, that is, the type definition and description of each field in the relevance, can be completed through Pydantic's BaseModel, making the processing process more intuitive and easy to manage, and can also avoid piling all fields in the second prompt statement. Afterwards, the electronic device can reuse a relevance calculation task of a candidate virtual resource using the MultiTask capability of the instructor library. Specifically, MultiTask can be used to package the outside of the task to obtain a relevance calculation task for obtaining the relevance of each of multiple candidate virtual resources, wherein the relevance judgment model can include the instructor library.

[0092] For example, the electronic device can connect the preset output structure model to the relevance judgment model in a patch manner. In combination with the above embodiment, the relevance judgment model can use the OpenAI interface as the output of the relevance calculation task, and then encapsulate the output structure model into the OpenAI interface, which can make the relevance and resource name more structured and controllable.

[0093] For example, in combination with the above embodiments, Figure 3As shown, the electronic device can extract the resource name from the resource basic information candidate_stock_infos of at least one candidate virtual resource, obtain the resource name candidate_stock_names of at least one candidate virtual resource, and then combine the extracted resource names to generate a resource name set MultipleStockChoices, which can include enumeration values ​​of the names of all candidate virtual resources. The second prompt statement can be used to define the field type and field description that the relevance judgment model needs to return for each candidate virtual resource. The fields that need to be returned can specifically include: stock field, relatedness_score field and reason field. Among them, the resource name in the resource name set can be used as the type (type) of the stock field, and the resource basic information can be used to participate in the description (description) of the stock field. If it is determined according to the resource name set that the number of candidate virtual resources such as candidate stocks is equal to 1, then the relevance calculation task OneRelatedStock model of this candidate stock can be created based on the relevance judgment model; if it is determined according to the resource name set that the number of candidate virtual resources such as candidate stocks is greater than 1, then the relevance calculation task OneRelatedStock model of a candidate stock can be encapsulated according to MultiTask. Afterwards, the correlation between the candidate virtual resources and the target information can be obtained through the correlation calculation task, and based on the preset output structure model, the correlation and the resource name of the target candidate virtual resource are formatted to obtain the correlation that conforms to the preset format. The preset format of the correlation includes the above three fields: stock field, relatedness_score field and reason field.

[0094] Exemplarily, the second prompt statement may include a system prompt (System Prompt) and a user prompt (UserPrompt). The system prompt may include: data that needs to be output from the correlation judgment model (for example, the correlation between at least one candidate virtual resource and the target information needs to be output), the output format of the data (i.e., the output format of the correlation), the specific process of determining the output data, and specific requirements, but is not limited thereto.

[0095] For example, the output format may be JSON, that is, the relevance judgment model may combine and output the relevance between the at least one determined candidate virtual resource and the target information based on the JSON format.

[0096] For example, the specific requirements for determining the output data may include: only outputting the association degree greater than 0, but is not limited thereto.

[0097] For example, the system prompt statement may be: determine the resource name set based on at least one resource basic information: {virtual resource 1, virtual resource 2, ..., virtual resource n}, where n is a positive integer; for any resource name in the resource name set, create a correlation calculation task for the target candidate virtual resource corresponding to the resource name; if the resource name set includes only one resource name, then only the one correlation calculation task may be created; if the resource name set includes multiple resource names, then a correlation calculation task for the candidate virtual resource corresponding to any one of the resource names may be created, and the correlation calculation task may be packaged to obtain a correlation calculation task for calculating multiple candidate virtual resources corresponding to the resource name (the specific process here may refer to the above embodiment and will not be repeated here); obtain the target correlation between the target candidate virtual resource and the target information through the correlation calculation task, and the target correlation may be a value or percentage between 0-1; convert the target correlation and the resource name corresponding to the target candidate virtual resource into a format that conforms to the preset format (for example, conforms to the above output format, such as JSON format).

[0098] The user prompt is similar to the system prompt statement, and the content of the system prompt statement can be supplemented to further control the correlation calculation model to determine the correlation. For example, the user prompt may include: the processing object and input of the correlation calculation model. The user prompt statement may be: the processing object of the correlation calculation model is the target information and at least one candidate virtual resource; the input of the correlation calculation model is: the information key information of the target information, the resource basic information of at least one candidate virtual resource, and the target indication instruction generated according to the resource name set and the second prompt statement.

[0099] In some implementations, the electronic device may generate training data based on the first intelligent model, the training data including: sample relevance and sample relevance determination basis information; and use the training data to fine-tune the second intelligent model to obtain a relevance judgment model. The relevance determination basis information may be referred to as relevance reasons.

[0100] Exemplarily, an electronic device can use a finetuned model to determine a relevance judgment model: first, GPT-4 can be used to generate 22 training data (cases), each of which contains relatively accurate relevance and relevance reasons after manual review. Then, these generated training data are used to fine-tune the GPT-3.5-turbo model to obtain a more economical and more accurate specialized model than the original GPT-3.5-turbo, namely, a relevance judgment model.

[0101] In some implementations, the electronic device may determine the virtual resource corresponding to the highest degree of association among at least one determined degree of association as the virtual resource associated with the target information, i.e., the target virtual resource. Alternatively, the virtual resource corresponding to the degree of association greater than the degree of association threshold may be determined as the virtual resource associated with the target information.

[0102] Afterwards, the electronic device can directly use the target virtual resource for the information display page corresponding to the target information, realize the association between the target virtual resource and the target information, thereby meeting the product needs in the financial field. For example, from the perspective of securities companies, it can accurately distribute massive unstructured information in the dimension of individual stocks, that is, the dimension of virtual resources, which can improve the efficiency of information operation; from the perspective of investors, while browsing the information, they can directly view and jump to the most relevant individual stocks and other virtual resource pages, and perform subsequent actions such as checking market conditions, browsing financial data, placing orders, etc., which can reduce the operational path from converting information messages into investment decisions and improve investment efficiency.

[0103] In some possible implementations, the electronic device assembles the above-mentioned relevance judgment model, information category classification model and key information extraction model to obtain the following: Figure 4 The overall linking service API (News Stock Linking API) corresponding to the main process part. The output of the overall linking service API includes a field linking_result, which can record the correlation between at least one candidate virtual resource and the target information, as shown below:

[0104] {'Company NewsName':'Stock Information 1',

[0105] 'MultipleStockChoices': 'Virtual Resource 1, Virtual Resource 2, Virtual Resource 3',

[0106] 'stock_id':'001, 002, 003',

[0107] 'threshold':'0.75',

[0108] 'relatedness_score':['Virtual resource 1, 0.5; Virtual resource 2, 0.78; Virtual resource 3, 0.8',

[0109] 'keep':['Virtual resource 1, False; Virtual resource 2, True; Virtual resource 3, True',}.

[0110] Among them, Company NewsName records the name of the target news; relatedness_score is a value between 0 and 1, indicating the relevance; stock_id indicates the virtual resource identifier of the candidate virtual resource; MultipleStockChoices refers to a resource name set, which records the resource name of at least one candidate virtual resource, and corresponds to the resource name and relevance of the virtual resource involved in relatedness_score, and the virtual resource identifier in stock_id; threshold is a configuration parameter. Indicates the relevance threshold; keep is used to record whether the relevance corresponding to the candidate virtual resource is greater than the relevance threshold. If the relevance corresponding to the candidate virtual resource is greater than the relevance threshold, it is True, otherwise it is False.

[0111] Accordingly, the overall association service API can only output the content corresponding to the keep being True in the above fields, that is, only output the content related to the candidate virtual resources associated with the target information, as shown below:

[0112] {'Company NewsName':'Stock Information 1',

[0113] 'relatedness_MultipleStockChoices': 'Virtual Resource 2, Virtual Resource 3',

[0114] 'relatedness_stock_id':'002,003',

[0115] 'threshold':'0.75',

[0116] 'relatedness_score':['Virtual resource 2, 0.78; Virtual resource 3, 0.8',}.

[0117] Among them, relatedness_MultipleStockChoices' represents a resource name set of candidate virtual resources associated with the target information, and records the resource names of the candidate virtual resources associated with the target information; relatedness_stock_id represents the virtual resource identifier of the candidate virtual resource associated with the target information.

[0118] For example, in combination with the above embodiments, Figure 4As shown, the electronic device can continuously monitor the request message in kafka, and the request message is used to request to obtain the virtual resources associated with the target information. The request message may include: the information text of the target information, all the pre-associated results of the target information, that is, at least one candidate virtual resource, and at least one candidate virtual resource can be used as a candidate virtual resource list. The electronic device can judge the major category of the target information through the information major category classification model. If the target information is not individual stock information, it can be directly returned, that is, no subsequent processing is performed. If the target information is individual stock information, the resource basic information of the candidate resource can be obtained according to the candidate virtual resource list using the comprehensive data service interface, and the key information in the target information can be extracted using the key information extraction model to obtain the information key information. After that, the resource basic information and the information key information can be input into the correlation judgment model to obtain the degree of correlation between the target information and the candidate virtual resource, that is, the correlation. In addition, the correlation can be written into kafka and mysql records.

[0119] In some feasible embodiments, electronic devices can test the above technical solutions and obtain test results: information data is pulled from a real online environment. For example, 919 pieces of information are pulled, of which 595 pieces of information are successfully associated with 609 stocks. The test results are determined through manual testing: the association accuracy rate is 97.8%, which can meet the high-accuracy association requirements.

[0120] In addition, by applying for technical solutions, you can link to some non-popular virtual resources. For example, Figure 5 As shown, stock 1 is a long-tail stock and is not a popular stock. However, the technical solution of the present application can determine that stock 1 is associated with information 2, while manual operation cannot pay enough attention to and review the associated information of such stocks. In other words, the present application can achieve automatic association with high accuracy, thereby improving the information distribution capability of long-tail stocks.

[0121] It should be noted that all the above technical solutions can be combined in any way to form optional embodiments of the present application, which will not be described one by one here.

[0122] Figure 6 A schematic diagram of a virtual resource association device 600 provided in an embodiment of the present application.

[0123] like Figure 6 As shown, the virtual resource association device 600 includes: a first acquisition module 601 , a first extraction module 602 , a second acquisition module 603 , a third acquisition module 604 , a first determination module 605 , a generation module 606 , and a fine-tuning module 607 .

[0124] In some possible implementations, the first acquisition module 601 is used to: acquire target information and at least one candidate virtual resource of the target information; the first extraction module 602 is used to: extract information key information of the target information based on a pre-trained key information extraction model and a preset first prompt statement; wherein the first prompt statement is used to control the key information extraction model to acquire information key information of the target information; the second acquisition module 603 is used to: acquire resource basic information of each of at least one candidate virtual resource; the third acquisition module 604 is used to: based on a pre-trained association judgment model and a preset second prompt statement, acquire the degree of association between at least one candidate virtual resource and the target information according to the resource basic information of each of at least one candidate virtual resource and the information key information of the target information, wherein the second prompt statement is used to control the association judgment model to determine the degree of association; the first determination module 605 is used to: determine the target virtual resource associated with the target information from at least one candidate virtual resource according to the degree of association of each of the at least one candidate virtual resource.

[0125] In some possible implementations, the third acquisition module 604 is specifically used to: determine a resource name set of at least one candidate virtual resource based on at least one resource basic information; generate a target indication instruction based on the resource name set and the second prompt statement; input the target indication instruction, the resource basic information of at least one candidate virtual resource, and the information key information of the target information into the association judgment model, and output the association between at least one candidate virtual resource and the target information.

[0126] In some possible implementations, the third acquisition module 604 is specifically used to: for any target candidate virtual resource among at least one candidate virtual resource, determine the resource name of the target candidate virtual resource from the resource name set, and create a correlation calculation task for the target candidate virtual resource based on the correlation judgment model; obtain the target correlation between the target candidate virtual resource and the target information through the correlation calculation task; based on a preset output structure model, convert the target correlation and the resource name of the target candidate virtual resource into a format to obtain a target correlation that conforms to a preset format.

[0127] In some possible implementations, the generation module 606 is used to generate training data based on the first intelligent model, and the training data includes: sample correlation and information on basis for determining the sample correlation; the fine-tuning module 607 is used to use the training data to fine-tune the second intelligent model to obtain a correlation judgment model.

[0128] In some implementable methods, the second acquisition module 603 is specifically used to: determine an information data service interface and an issuance object data service interface, the information data service interface is used to obtain the first resource basic information of each candidate virtual resource, and the issuance object data service interface is used to obtain the second resource basic information of each candidate virtual resource; merge the information data service interface and the issuance object data service interface to obtain a comprehensive data service interface; obtain the virtual resource identifier of at least one candidate virtual resource; input at least one virtual resource identifier into the comprehensive data service interface to obtain the first resource basic information and the second resource basic information of at least one candidate virtual resource; wherein the first resource basic information includes at least one of the following: a virtual resource code, a virtual resource name based on at least one language; the second resource basic information includes at least one of the following: basic situation description information of the virtual resource issuance object, core personnel description information, business information, and concept section information.

[0129] In some implementable embodiments, the first extraction module 602 is specifically used to: input the first prompt sentence and the target information into the key information extraction model, extract the core content of the target information through the key information extraction model, and obtain the subject information of the target information; perform entity extraction on the target information based on the subject information through the key information extraction model, and obtain the key entity text associated with the subject information in the target information; generate a summary of the target information based on the key entity text through the key information extraction model, and obtain a summary text of the target information, wherein the summary text includes at least one key entity text; and determine the subject information, key entity text, and summary text as key information of the information.

[0130] In some possible implementations, the first extraction module 602 is specifically used to: determine an entity text extraction strategy based on the number of preset entity text types included in the target information and the number of occurrences of entity texts corresponding to each preset entity text type in the target information; perform entity extraction on the target information based on the entity text extraction strategy and topic information to obtain key entity texts in the target information.

[0131] In some possible implementations, the first extraction module 602 is specifically used to: in response to the number of categories being greater than a category threshold and each number of occurrences being less than an occurrence threshold, determine the entity text extraction strategy including: extracting key information based on user portrait information, wherein the user portrait information includes at least one of the following: target user preference information for preset entity texts, and user attention information.

[0132] It should be understood that the device embodiment and the method embodiment may correspond to each other, and similar descriptions may refer to the method embodiment. To avoid repetition, they will not be described here. Specifically, Figure 6The device 600 shown can execute the above method embodiments, and the above and other operations and / or functions of each module in the device 600 are respectively for implementing the corresponding processes in the above methods, which will not be repeated here for the sake of brevity.

[0133] The above describes the device 600 of the embodiment of the present application from the perspective of the functional module in conjunction with the accompanying drawings. It should be understood that the functional module can be implemented in hardware form, can be implemented by instructions in software form, and can also be implemented by a combination of hardware and software modules. Specifically, the steps of the method embodiment in the embodiment of the present application can be completed by the hardware integrated logic circuit and / or software form instructions in the processor, and the steps of the method disclosed in the embodiment of the present application can be directly embodied as a hardware decoding processor to perform, or a combination of hardware and software modules in the decoding processor to perform. Optionally, the software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory, and completes the steps in the above method embodiment in conjunction with its hardware.

[0134] Figure 7 A schematic block diagram of an electronic device 700 provided in an embodiment of the present application.

[0135] like Figure 7 As shown, the electronic device 700 may include:

[0136] The memory 710 and the processor 720, the memory 710 is used to store the computer program and transmit the program code to the processor 720. In other words, the processor 720 can call and run the computer program from the memory 710 to implement the method in the embodiment of the present application.

[0137] For example, the processor 720 may be configured to execute the above method embodiments according to instructions in the computer program.

[0138] In some embodiments of the present application, the processor 720 may include but is not limited to:

[0139] General-purpose processor, digital signal processor (DSP), application-specific integrated circuit (ASIC), field programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, etc.

[0140] In some embodiments of the present application, the memory 710 includes but is not limited to:

[0141] Volatile memory and / or non-volatile memory. Among them, the non-volatile memory can be read-only memory (ROM), programmable ROM (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM) or flash memory. The volatile memory can be random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAMbus RAM (DR RAM).

[0142] In some embodiments of the present application, the computer program may be divided into one or more modules, which are stored in the memory 710 and executed by the processor 720 to complete the method provided by the present application. The one or more modules may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program in the electronic device.

[0143] like Figure 7 As shown, the electronic device may also include:

[0144] The transceiver 730 may be connected to the processor 720 or the memory 710 .

[0145] The processor 720 may control the transceiver 730 to communicate with other devices, specifically, to send information or data to other devices, or to receive information or data sent by other devices. The transceiver 730 may include a transmitter and a receiver. The transceiver 730 may further include an antenna, and the number of antennas may be one or more.

[0146] It should be understood that the various components in the electronic device are connected via a bus system, wherein the bus system includes not only a data bus but also a power bus, a control bus and a status signal bus.

[0147] The present application also provides a computer storage medium on which a computer program is stored, and when the computer program is executed by a computer, the computer can perform the method of the above method embodiment. In other words, the present application embodiment also provides a computer program product containing instructions, and when the instructions are executed by a computer, the computer can perform the method of the above method embodiment.

[0148] When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instruction is loaded and executed on a computer, the computer can be made to perform the corresponding flow in each method in the embodiment of the present application in whole or in part, and generate the functions that can be realized by each method in the embodiment of the present application. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction can be transmitted from a website site, computer, server or data center by wired (such as coaxial cable, optical fiber, digital subscriber line (Digital Subscriber Line, DSL)) or wireless (such as infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integrations. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital video disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).

[0149] Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0150] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the module is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0151] The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. For example, each functional module in each embodiment of the present application may be integrated into a processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.

[0152] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for associating virtual resources, characterized in that: include: Acquire target information and at least one candidate virtual resource of the target information; Extracting the key information of the target information based on the pre-trained key information extraction model and the preset first prompt sentence; wherein the first prompt sentence is used to control the key information extraction model to obtain the key information of the target information; Acquire resource basic information of each of the at least one candidate virtual resources; Based on the pre-trained relevance judgment model and the preset second prompt sentence, the relevance between the at least one candidate virtual resource and the target information is obtained according to the resource basic information of each of the at least one candidate virtual resources and the information key information of the target information, and the second prompt sentence is used to control the relevance judgment model to determine the relevance; According to the respective relevance of the at least one candidate virtual resource, a target virtual resource associated with the target information is determined from the at least one candidate virtual resource.

2. The method according to claim 1, characterized in that The pre-trained relevance judgment model and the preset second prompt sentence are used to obtain the relevance between the at least one candidate virtual resource and the target information according to the resource basic information of each candidate virtual resource and the key information of the target information, including: Determine a resource name set of the at least one candidate virtual resource according to at least one of the resource basic information; Generate a target indication instruction according to the resource name set and the second prompt statement; The target indication instruction, the resource basic information of each of the at least one candidate virtual resource and the information key information of the target information are input into the association judgment model, and the association between the at least one candidate virtual resource and the target information is output.

3. The method according to claim 2, characterized in that The step of inputting the target indication instruction, the resource basic information of each of the at least one candidate virtual resource, and the information key information of the target information into the correlation judgment model, and outputting the correlation between the at least one candidate virtual resource and the target information, respectively, comprises: For any target candidate virtual resource among the at least one candidate virtual resource, determine the resource name of the target candidate virtual resource from the resource name set, and create a relevance calculation task for the target candidate virtual resource based on the relevance judgment model; Obtaining the target correlation between the target candidate virtual resource and the target information through the correlation calculation task; Based on a preset output structure model, the target relevance and the resource name of the target candidate virtual resource are formatted to obtain the target relevance that conforms to the preset format.

4. The method according to claim 2, characterized in that: Also includes: Generate training data based on the first intelligent model, the training data including: sample relevance and sample relevance determination basis information; The second intelligent model is fine-tuned using the training data to obtain the relevance judgment model.

5. The method according to any one of claims 1 to 4, characterized in that: The obtaining of resource basic information of each of the at least one candidate virtual resources includes: Determine an information data service interface and an issue object data service interface, wherein the information data service interface is used to obtain first resource basic information of each candidate virtual resource, and the issue object data service interface is used to obtain second resource basic information of each candidate virtual resource; Merging the information data service interface and the issuing object data service interface to obtain a comprehensive data service interface; Obtaining a virtual resource identifier of each of the at least one candidate virtual resources; Inputting at least one of the virtual resource identifiers into the integrated data service interface to obtain first resource basic information and second resource basic information of each of the at least one candidate virtual resource; The first resource basic information includes at least one of the following: a virtual resource code, a virtual resource name based on at least one language; The second resource basic information includes at least one of the following: basic situation description information of the virtual resource issuance object, core personnel description information, business information, and concept section information.

6. The method according to any one of claims 1 to 4, characterized in that: The extracting of key information of the target information based on the pre-trained key information extraction model and the preset first prompt sentence includes: Inputting the first prompt sentence and the target information into the key information extraction model, extracting the core content of the target information through the key information extraction model, and obtaining the subject information of the target information; By using the key information extraction model, entity extraction is performed on the target information based on the subject information to obtain key entity text associated with the subject information in the target information; By using the key information extraction model, the target information is summarized based on the key entity text to obtain a summary text of the target information, wherein the summary text includes at least one of the key entity texts; The subject information, the key entity text and the summary text are determined as the information key information.

7. The method according to claim 6, characterized in that The step of extracting entities from the target information based on the subject information to obtain key entity text associated with the subject information in the target information includes: Determining an entity text extraction strategy according to the number of preset entity text types included in the target information and the number of occurrences of entity text corresponding to each preset entity text type in the target information; Entity extraction is performed on the target information according to the entity text extraction strategy and the subject information to obtain key entity texts in the target information.

8. The method according to claim 7, characterized in that Determining the entity text extraction strategy according to the number of preset entity text types included in the target information and the number of occurrences of entity text corresponding to each preset entity text type in the target information includes: In response to the number of categories being greater than the category threshold and each of the occurrence numbers being less than the occurrence number threshold, determining the entity text extraction strategy includes: extracting the information key information based on user portrait information, wherein the user portrait information includes at least one of the following: target user preference information for preset entity text categories, and user attention information.

9. A virtual resource association device, characterized in that: include: A first acquisition module is used to: acquire target information and at least one candidate virtual resource of the target information; A first extraction module is used to extract the key information of the target information based on a pre-trained key information extraction model and a preset first prompt sentence; wherein the first prompt sentence is used to control the key information extraction model to obtain the key information of the target information; The second acquisition module is used to: acquire resource basic information of each of the at least one candidate virtual resources; A third acquisition module is used to: acquire the degree of association between the at least one candidate virtual resource and the target information respectively based on the pre-trained association judgment model and the preset second prompt sentence, according to the resource basic information of each of the at least one candidate virtual resource and the information key information of the target information, wherein the second prompt sentence is used to control the association judgment model to determine the association; The first determination module is used to determine a target virtual resource associated with the target information from the at least one candidate virtual resource according to the respective association degrees of the at least one candidate virtual resource.

10. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to perform the method of any one of claims 1 to 8 by executing the executable instructions.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.