Information generation method, device, equipment and storage medium
By generating news events through comparison of changes in rights and interests data, the system automates the production of individual stock news, solving the problems of insufficient timeliness and coverage of news, reducing production costs, improving the richness of news, and promoting user activity and transaction conversion.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- FUTU NETWORK TECH (SHENZHEN) CO LTD
- Filing Date
- 2022-12-30
- Publication Date
- 2026-04-17
AI Technical Summary
In existing technologies, the timeliness of individual stock information is poor, the coverage is insufficient, and the information richness is inadequate, resulting in a high barrier for users to obtain information and making it difficult to promote user activity and transaction conversion.
By obtaining the previously cached first information data and the currently obtained unprocessed second information data, the changes between the two are compared to generate information events. Information events are then automatically generated based on these information events, including events such as addition, deletion, update, and expiration, thus achieving automated information production.
It reduced information production costs, improved the timeliness and coverage of information, increased the richness of information, and promoted user activity and transaction conversion.
Smart Images

Figure CN116467541B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, specifically to an information generation method, apparatus, device, and storage medium. Background Technology
[0002] Individual stocks are securities with no maturity date. Based on the shareholder, they can be categorized into three types: state-owned shares, legal person shares, and individual shares. Individual stocks are funded by individuals and can be freely traded on the market.
[0003] Currently, much of the publicly available market information that is valuable to users exists only in various official websites and documents, without being refined into news articles, resulting in a high barrier for users to access information. At the same time, information producers hope to produce this information at low cost in order to increase the coverage of individual stocks and the richness of information, thereby promoting user activity and transaction conversion.
[0004] Currently, similar types of information on the market mainly come from manual editing and writing, resulting in poor timeliness, insufficient coverage of individual stocks, and poor information richness. Summary of the Invention
[0005] This application provides an information generation method, apparatus, device, and storage medium that can automatically generate information, reduce information production costs, improve information timeliness, increase information coverage of individual stocks, and enhance information richness.
[0006] On one hand, embodiments of this application provide an information generation method, the method comprising:
[0007] Obtain first rights and information data and second rights and information data, wherein the first rights and information data is the rights and information data cached last time, and the second rights and information data is the currently obtained unprocessed rights and information data;
[0008] Based on the changes in rights and interests between the first rights and interests data and the second rights and interests data, an information event is generated;
[0009] Generate corresponding information based on the information event.
[0010] On the other hand, embodiments of this application provide an information generation apparatus, the apparatus comprising:
[0011] The acquisition unit is used to acquire first rights and information data and second rights and information data, wherein the first rights and information data is the rights and information data cached last time, and the second rights and information data is the currently acquired unprocessed rights and information data;
[0012] The first generation unit is used to generate information events based on the rights and interests change information between the first rights and interests data and the second rights and interests data;
[0013] The second generation unit is used to generate corresponding information based on the information event.
[0014] On the other hand, embodiments of this application provide a computer device, the computer device including a processor and a memory, the memory storing a computer program, the processor executing the information generation method as described in any of the above embodiments by calling the computer program stored in the memory.
[0015] On the other hand, embodiments of this application provide a computer-readable storage medium storing a computer program adapted for loading by a processor to execute the information generation method as described in any of the above embodiments.
[0016] This application embodiment acquires first rights and interest data and second rights and interest data. The first rights and interest data is the previously cached rights and interest data, and the second rights and interest data is the currently acquired but unprocessed rights and interest data. Based on the rights and interest change information between the first and second rights and interest data, an information event is generated, and then corresponding information is generated based on the information event. This application embodiment can generate information events based on the rights and interest change information between the first and second rights and interest data, and automatically generate information based on the information events, reducing information production costs, improving information timeliness, increasing information coverage of individual stocks, and enhancing information richness, thereby promoting user activity and transaction conversion. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] Figure 1 This is a schematic diagram of the first process of the information generation method provided in the embodiments of this application.
[0019] Figure 2 This is a schematic diagram illustrating an application scenario provided in an embodiment of this application.
[0020] Figure 3 This is a second flowchart illustrating the information generation method provided in an embodiment of this application.
[0021] Figure 4 This is a schematic diagram of the third process of the information generation method provided in the embodiments of this application.
[0022] Figure 5 This is a schematic diagram of the fourth process of the information generation method provided in the embodiments of this application.
[0023] Figure 6 This is a schematic diagram of the information generation device provided in an embodiment of this application.
[0024] Figure 7 This is a schematic diagram of the server structure provided in an embodiment of this application. Detailed Implementation
[0025] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0026] This application provides an information generation method, apparatus, terminal device, and storage medium. Specifically, the information generation method of this application can be executed by a computer device, which can be a terminal or a server. The terminal can be a smartphone, tablet, laptop, desktop computer, smart TV, wearable smart device, smart vehicle terminal, etc. The terminal can also include a client, which can be a financial client, browser client, instant messaging client, or mini-program, etc. The server can be an independent physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network services, and big data and artificial intelligence platforms, but is not limited to these.
[0027] To further improve information coverage of individual stock markets and enhance product competitiveness, information operators, based on their understanding of market users, can add automated information such as ex-rights and ex-dividend updates. This can cover the Hong Kong and US stock markets, reducing operational workload while automatically providing standardized, quick-read information to Hong Kong and US stock users. In this embodiment, when market rights and dividend data changes, users are promptly provided with relevant information, increasing information coverage of individual stocks. This embodiment can also provide information related to individual stock dividend data in the Hong Kong and US stock markets, generating information at low cost, improving timeliness and richness, thereby promoting user activity and transaction conversion.
[0028] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the priority of the embodiments.
[0029] Please see Figures 1 to 5 , Figure 1 , Figures 3 to 5 These are all schematic flowcharts of the information generation method provided in the embodiments of this application. Figure 2 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. The method includes the following steps:
[0030] Step 110: Obtain first rights and information data and second rights and information data. The first rights and information data is the rights and information data cached last time, and the second rights and information data is the currently obtained unprocessed rights and information data.
[0031] In some embodiments, obtaining the first rights and information data and the second rights and information data includes:
[0032] Retrieve the first information data from the cached cache;
[0033] Retrieve the second set of rights and interests data from the database.
[0034] The first rights and dividend data may include detailed information about the first rights and dividend data, such as the registration date, division date, dividend payment date, market information, trading day, amount, and currency unit. If the first rights and dividend data corresponds to Hong Kong stock dividends, the first rights and dividend data may also include the first rights and dividend processing status data for Hong Kong stock dividends, which includes the progress status of the first event.
[0035] The second rights and benefits data may include detailed information such as the registration date, division date, dividend payment date, market information, trading day, amount, and currency unit. If the second rights and benefits data corresponds to Hong Kong stock dividends, it may also include the processing status data for the Hong Kong stock dividends, which includes the progress status of the second event. For example, all non-deleted second rights and benefits data can be retrieved from the information rights and benefits event table in the database, which stores the rights and benefits data already stored.
[0036] Step 120: Generate an information event based on the change information of rights and interests between the first rights and interests data and the second rights and interests data.
[0037] In some embodiments, generating an information event based on the rights and interests change information between the first rights and interests data and the second rights and interests data includes:
[0038] If the second rights and interests data contains data records that are not present in the first rights and interests data, or if the event progress status of Hong Kong stock rights and interests in the second rights and interests data has changed compared to the event progress status of Hong Kong stock rights and interests in the first rights and interests data, then the generated information event is a new event; or
[0039] If the first rights and information data does not exist in the second rights and information data, and the first rights and information data has not expired, then the generated information event is a deletion event; or
[0040] If the first rights and information data does not exist in the second rights and information data, and the first rights and information data has expired, then the generated information event is an expired event; or
[0041] If the first rights and information data exists in the second rights and information data, and the rights and information text of the second rights and information data is different from the rights and information text of the first rights and information data, then the generated information event is an update event; or
[0042] If the transaction date in the second rights and interests data is the transaction day preceding the action date of the rights and interests event, then the service for the transaction day in the second rights and interests data is determined to have expired, and the generated information event is an expiration event.
[0043] For example, during the execution of this information generation method, two roles can participate: a scheduled task process and a Worker. The Worker is a thread object with a persistent context, typically used for thread reuse. For instance, in this embodiment, the Worker may include an event generation thread (EventGenerateWorker) and an information generation thread.
[0044] NewsGenerateWorker.
[0045] For example, the overall process of this information generation method is mainly divided into three parts: timed task initiation, generation of information events (AutoNewsEvent), and generation of automated information.
[0046] The scheduled task process, based on settings, periodically sends two protocols to the Worker. Upon receiving the protocol, the Worker initiates and executes the pre-defined task based on the protocol. The protocol types are as follows:
[0047] The AutoNewsEvent generation protocol is used to query upstream market data and compare it with historical data to determine whether there have been changes, and generate corresponding news events (AutoNewsEvent). The worker that executes the task is called EventGenerateWorker.
[0048] The information generation protocol is used to read AutoNewsEvent and generate different types of information based on AutoNewsEvent. The worker that performs the task is called NewsGenerateWorker.
[0049] The NewsGenerateWorker generates news only after the EventGenerateWorker has already been executed. There is a certain order in the settings of the scheduled task processes. The news generation protocol needs to be triggered more frequently so that the corresponding news can be generated quickly after the AutoNewsEvent is generated.
[0050] like Figure 2 As shown, the specific process for scheduled task initiation is as follows:
[0051] S1. The scheduled task process periodically (e.g., every 5 minutes) sends the AutoNewsEvent generation protocol to EventGenerateWorker.
[0052] S2.EventGenerateWorker executes the event generation process.
[0053] S3. The scheduled task process sends the information generation protocol to NewsGenerateWorker at regular intervals (e.g., every 1 minute).
[0054] S4.NewsGenerateWorker executes the news generation process.
[0055] For example, in Figure 2 In step S2, after EventGenerateWorker receives the AutoNewsEvent generation protocol, it initializes the task and calls the pre-set process to execute the Event generation process to generate the corresponding news event AutoNewsEvent.
[0056] like Figure 3 As shown, step S2, corresponding to the execution of the Event generation process by EventGenerateWorker, can also be implemented through the following steps S2.1 to S2.6, specifically:
[0057] S2.1. Retrieve the first information data from the cached space.
[0058] S2.2. Retrieve the second rights and information data from the database.
[0059] S2.3. Compare the first rights and interests data with the second rights and interests data to determine the rights and interests change information between the first rights and interests data and the second rights and interests data.
[0060] S2.4. Generate an AutoNewsEvent based on the information regarding changes in rights and interests.
[0061] During the comparison process, when changes in rights and dividends are determined, such as additions, deletions, updates, or expirations, changes in the progress status of rights and dividends for Hong Kong stocks will also need to be considered, and a corresponding AutoNewsEvent will be generated.
[0062] S2.5. Write AutoNewsEvent to the database for later use by NewsGenerateWorker.
[0063] S2.6. Write the second information data read this time into the cache space so that when EventGenerateWorker receives the protocol again, the above process S2.1 to S2.6 will be repeated.
[0064] For example, regarding the design and types of news events (AutoNewsEvent):
[0065] Ex-rights and ex-dividend (hereinafter referred to as ex-rights and ex-dividend) is an event that occurs in the normal business operations of a listed company. According to the requirements, two information articles should be released to users when the ex-rights and ex-dividend event is announced and on the trading day before the event action date. For Hong Kong stock ex-rights and ex-dividend events, information should also be released according to the progress of the event, such as the event progress status being "approved by shareholders' meeting", "implemented plan" or "not implemented and terminated".
[0066] At the same time, to avoid misleading users, it is necessary to update or hide previously published information after changes to rights and benefits (such as changes to action dates or dividend distributions).
[0067] For example, based on the type of information to be generated, the NewsType can be defined. For example, NewsType includes plan (nor), event progress (passed by shareholders' meeting) (pass), event progress (implementation of plan, termination if not implemented) (end), and due date (due).
[0068] For example, since the news backend periodically synchronizes information data from upstream and writes it to the database, the information data is constantly being updated during this process. NewsGenerateWorker needs to shield itself from these updates and only care about the logic that actually triggers news updates. Therefore, an intermediate layer AutoNewsEvent table is added to record the event types that NewsGenerateWorker really needs to care about. NewsGenerateWorker can execute tasks based on AutoNewsEvent without having to care about the changes in the information data itself. This makes the tasks of NewsGenerateWorker and EventGenerateWorker singular and facilitates subsequent data maintenance.
[0069] For example, depending on the type of rights and dividend events to be processed, define a rights and dividend event type EventType. EventType can include stock splits, stock consolidations, rights and dividends, etc., where rights and dividends can include dividend payments, bonus shares, special dividends, etc.
[0070] A stock split, also known as a "split," occurs when a stock's price is high, affecting trading volume and investor appetite. In such cases, a company may consider splitting its stock. After the split, shareholder equity and the company's total market capitalization remain unchanged, but the number of shares held changes.
[0071] A stock consolidation is the process of combining multiple shares into one. Before and after the consolidation, the company's total market capitalization remains unchanged, but the total number of shares outstanding decreases.
[0072] Dividend distribution refers to the payment of interest, or cash, by a listed company to its shareholders. If a client holds shares in the listed company after the settlement date one day before the ex-rights date, they will participate in the dividend distribution. On the ex-rights date, the company's stock price will fall, and this loss will be converted into cash interest and distributed to the shareholder's account. In other words, dividend distribution means that the shareholder's holdings change from all shares to all shares (due to a price decrease) plus cash interest (the amount corresponding to the stock price decrease). The cash will be deposited into the shareholder's account on the distribution date.
[0073] Special dividends refer to interest paid in addition to regular dividends under special circumstances.
[0074] Stock dividends, also known as bonus shares, are distributed on the day before the ex-rights date. If a client holds shares in a listed company, they will participate in the stock dividend distribution. On the ex-rights date, the company's stock price will fall, and this loss will be converted into bonus shares and distributed to the shareholder's holdings. In other words, a stock dividend changes a shareholder's holdings from all existing shares to all existing shares (due to the price decrease) plus bonus shares (the value of which is the price decrease). The bonus shares will be deposited into the shareholder's holdings on the distribution date (the bonus shares are the same type of stock as the existing shares).
[0075] Among them, AutoNewsEvent is defined. One AutoNewsEvent corresponds to one piece of news. The Event itself should have an event key index, a unique constraint on the news, and should record the life cycle of the news itself, the status of the rights and information data at the time of Event generation, etc.
[0076] For example, regarding the design of the key index and unique key for AutoNewsEvent: Since rights and interest records are unique (i.e., only one rights and interest record exists for the same company on the same action date), a single record will correspond to a batch of information. Therefore, a key index, EventKey, needs to be set up, containing the rights and interest event type EventType, event date, and individual stock ID, to index all AutoNewsEvents associated with the same record, facilitating subsequent processing. As for the unique key, since one AutoNewsEvent corresponds to one piece of information, a combination of the key index and NewsType can be used to design the unique key. This unique key also serves as the unique key for generating the information, and will be used to perform update and hiding operations on the information.
[0077] For example, a unique key design is as follows:
[0078] Hong Kong equity dividend unique key:
[0079] Data collected in the backend: AutoNews_{rights and dividends}_{event date}_{stock ID}_nor;
[0080] The event's progress status has changed: "Shareholders' Meeting Approved" — AutoNews_{Rights and Interests}_{Event Date}_{Stock ID}_nor_pass;
[0081] The event's progress status has changed: "Plan Implemented" or "Terminated Without Implementation" — AutoNews_{Rights & Interests}_{Event Date}_{Stock ID}_nor_end;
[0082] The trading day preceding the ex-rights date — AutoNews_{dividends}_{event date}_{stock ID}_due.
[0083] US equity dividend unique key:
[0084] Data collected in the backend: AutoNews_{rights and dividends}_{event date}_{stock ID}_nor;
[0085] The trading day preceding the ex-rights date — AutoNews_{dividends}_{event date}_{stock ID}_due.
[0086] Stock split unique key:
[0087] Data collected in the backend: AutoNews_{stock split}_{event date}_{stock ID}_nor;
[0088] The trading day prior to the stock split — AutoNews_{stock split}_{event date}_{stock ID}_due.
[0089] Unique key for joint venture:
[0090] Data collected in the backend: AutoNews_{pairings}_{event date}_{stock ID}_nor;
[0091] Trading day prior to the share consolidation — AutoNews_{share consolidation}_{event date}_{stock ID}_due.
[0092] For example, regarding the lifecycle of AutoNewsEvent information: Due to changes in the text and date of news events, some operations need to be performed on the generated information. Therefore, a NewsChangeType type is defined, which includes add, update, and delete, to distinguish the state of the information corresponding to the AutoNewsEvent. The information state of the AutoNewsEvent will flow unidirectionally through these three states, and the unidirectional flow cycle of each state can be regarded as the information lifecycle of the corresponding state. NewsGenerateWorker can perform different processing on the information according to the NewsChangeType in the AutoNewsEvent.
[0093] For example, regarding the status of rights and information data at the time of AutoNewsEvent's generation: when the text of the rights and information event changes and the current event progress has been updated, the status of rights and information data at the time of the new information addition in AutoNewsEvent needs to be saved, and some text needs to be updated.
[0094] For example, Announcement A states: "On November 26, 2022, stock C will undergo ex-rights and ex-dividend on January 5, 2023, with a dividend of HKD 0.1 per share. The relevant record date for dividend payment is January 6, 2023, the ex-rights date is January 5, 2023, and the payment date is February 3, 2023. Status: Prospective."
[0095] Information A was generated on November 26, 2022, and its status at the time of generation was "proposed". Suppose that on December 30, 2022, the dividend proposal changes (for example, the original dividend proposal was "0.1 HKD per share", and the new dividend proposal is "0.2 HKD per share"). If the status at this time is "approved by shareholders", then the dividend proposal of Information A needs to be updated to "0.2 HKD per share", and the status of the event remains unchanged.
[0096] exist Figure 3In step S2.4, each time the EventGenerateWorker starts a task, it retrieves the latest second-weighted information data and compares it with the previously retrieved first-weighted information data. Based on the key index EventKey of the weighted information and the changes in the event's progress status, the generated news event AutoNewsEvent can include new events, deleted events, updated events, expired events, and overdue events. Different operations are performed on the AutoNewsEvent table according to different event types, such as adding, updating, deleting, or issuing overdue reminders.
[0097] New event: If the second set of rights and interests data retrieved this time contains data records that were not present in the first set of rights and interests data retrieved last time, or if the event progress status of Hong Kong stock rights and interests has changed, it indicates that a new AutoNewsEvent has been added.
[0098] Deletion Event: If the first piece of information data retrieved last time is not present in the second piece of information data retrieved this time, it means that the first piece of information data has been deleted. All AutoNewsEvents under this EventKey need to have their NewsChangeType updated to "deleted". For example, during the generation of deleted items, if the information data changes, such as a date change, the original information event will be recorded as deleted during the comparison process. Therefore, all AutoNewsEvents under the corresponding EventKey for that information event need to have their NewsChangeType updated to "deleted". Subsequently, when NewsGenerateWorker reads the corresponding AutoNewsEvent with the changed status, it executes the process of hiding existing information.
[0099] Update event: For the same EventKey, if the content text of the second content data retrieved this time is different from the content text of the first content data retrieved last time, it is recorded as an update operation, and all AutoNewsEvents under the corresponding EventKey will have their NewsChangeType updated to update.
[0100] Expiration Event: Remaining data in the second rights and interests data that satisfies the condition that the current date is the previous trading day before the rights and interests event action date is recorded as an expiration AutoNewsEvent. For example, to obtain the previous trading day and generate a rights and interests expiration event, during the generation process, a forward-looking information reminder needs to be provided to the user on the trading day before the action date of the rights and interests event. In actual program processing, since trading days and calendar days differ, it is necessary to obtain the corresponding market trading day information from market data to confirm whether the current calendar day is the corresponding previous trading day. For example, to avoid multiple calls to the interface to query trading day information, the program will fetch a certain range of trading days at once for caching. When the data exists in the cache, a binary search can be used to return the nearest previous trading day. When the data in the cache does not meet the condition, the interface is automatically called to query and update the cache.
[0101] Expiration event: If the first rights and interests data retrieved last time does not exist in the second rights and interests data retrieved this time, and the current date of the first rights and interests data is greater than the action date, then the first rights and interests data has expired and no further processing is required.
[0102] like Figure 4 As shown, step S2.4 can be implemented through the following steps S2.4.1 to S2.4.13, specifically as follows:
[0103] S2.4.1 Determine whether the first rights and interests data exists in the second rights and interests data; if not, proceed to step S2.4.2; if yes, proceed to step S2.4.5.
[0104] S2.4.2 Determine whether the first rights and interests data has expired; if yes, proceed to step S2.4.3; if no, proceed to step S2.4.4.
[0105] S2.4.3, generates an expiration event.
[0106] S2.4.4, Generate a deletion event.
[0107] S2.4.5 Determine whether the rights and interests text of the second rights and interests data is different from the rights and interests text of the first rights and interests data; if yes, proceed to step S2.4.6; if no, proceed to step S2.4.7.
[0108] S2.4.6, Generate update event.
[0109] S2.4.7 Determine whether the first and second rights and interests data are Hong Kong stock rights and interests; if yes, proceed to step S2.4.8; if no, proceed to step S2.4.9.
[0110] S2.4.8 Determine whether the event progress status in the second rights and information data has changed compared to the event progress status in the first rights and information data; if not, proceed to step S2.4.9; if yes, proceed to step S2.4.12.
[0111] S2.4.9, query whether the transaction day service in the second rights and interests data has expired; if not, proceed to step S2.4.10; if yes, proceed to step S2.4.13.
[0112] For example, if the transaction date in the second rights and interests data is the transaction day preceding the action date of the rights and interests event, then the service for the transaction day in the second rights and interests data is determined to be due.
[0113] S2.4.10, the data remains unchanged, no processing is required.
[0114] S2.4.11, The comparison result shows that the second set of rights and interests data retrieved this time contains data records that were not present in the first set of rights and interests data retrieved last time.
[0115] S2.4.12, generate new events.
[0116] S2.4.13, generates an expiration event.
[0117] Step 130: Generate corresponding information based on the information event.
[0118] In some embodiments, generating corresponding information based on the information event includes:
[0119] If the information event is a new event, then according to the details of the second rights and information data, the data is filled in according to the preset automated information template to generate the information corresponding to the second rights and information data.
[0120] In some embodiments, generating corresponding information based on the information event includes:
[0121] If the information event is a deletion event or an expiration event, then the existing information corresponding to the first rights and information data will be hidden.
[0122] In some embodiments, generating corresponding information based on the information event includes:
[0123] If the information event is an update event, then the existing information corresponding to the first rights and information data is updated according to the change information of the rights and information text between the second rights and information data and the first rights and information data.
[0124] In some embodiments, updating the existing information corresponding to the first rights and information data based on the changes in the rights and information text between the second rights and information data and the first rights and information data includes:
[0125] Based on the changes in the rights and information text between the second rights and information data and the first rights and information data, determine the new text of the existing information corresponding to the first rights and information data;
[0126] When it is determined that the new text has passed the review mechanism of sensitive words and filtering rules, the new text is updated to the existing information corresponding to the first rights and information data, and the new text is displayed.
[0127] In some embodiments, generating corresponding information based on the information event includes:
[0128] If the information event is an expiration event, a notification message is generated to indicate that the transaction day service in the second rights and interests data has expired.
[0129] For example, in Figure 2 In step S4, after NewsGenerateWorker receives the news generation protocol, it initializes the task, calls the pre-set process, and executes the news generation process to generate automated news.
[0130] For example, query the AutoNewsEvent table for unprocessed AutoNewsEvents and execute the corresponding processing flow according to the NewsChangeType.
[0131] For example, due to changes in the text or date of rights and information events, it is necessary to perform some operations on the already generated information. Therefore, the NewsChangeType type is defined. The NewsChangeType type includes addition, update, deletion, etc., to distinguish the status of the information corresponding to AutoNewsEvent.
[0132] The information state of AutoNewsEvent will flow unidirectionally through these three states. NewsGenerateWorker can perform different processing on the information based on the NewsChangeType in AutoNewsEvent.
[0133] exist Figure 2In step S4, during the information content generation process, after NewsGenerateWorker retrieves the corresponding event from the AutoNewsEvent table, except for events with NewsChangeType of deletion, all other new or updated events require the execution of the information generation process. For example, the first step in executing the information generation process is to query the relevant data. For AutoNewsEvents with EventType of stock split or stock consolidation, it is necessary to query the closing price of the previous trading day for the specified date; for AutoNewsEvents with EventType of rights and dividends, it is necessary to query the details of the corresponding rights and dividend records, including the specific registration date, division date, and dividend payment date. After preparing the data, the data processing process is executed, which specifically includes decimal point processing and unit conversion for numbers and amounts, and then filling in the corresponding data according to the pre-set automated information template (the template varies for different EventTypes), and generating the final information text for display.
[0134] For example, the generated information text could be: "XX stock (stock name) will go ex-rights and ex-dividend on XX year XX month XX day, with a dividend of XX currency per share and XX bonus shares for every XX shares held."
[0135] For example, the generated information text could be: "XX stock (stock name) will go ex-rights and ex-dividend on XX year XX month XX day, with a dividend of XX currency per share and XX bonus shares for every XX shares held. This will not be implemented and will be terminated."
[0136] For example, for Hong Kong stocks, the generated information text could be: "Announcement on XX / XX / 2023: Stock name (code) will go ex-rights and ex-dividend on XX / XX / 2023. 1 share will receive a dividend of XXX HKD, 1 share will receive a special dividend of XXX HKD (currency), and X shares will be distributed as bonus shares. The relevant dividend record date is XX / XX / 2023, the ex-dividend date is XX / XX / 2023, and the dividend payment date is XX / XX / 2023. Event progress status: one of the following: preliminary plan, shareholder approval, implementation, non-implementation and termination, expiration."
[0137] For example, for new events, the content generation process is executed directly to generate information content, and the backend interface is called to execute the data entry into the database.
[0138] For example, for deletion events, the management backend interface needs to be called to hide existing information to avoid providing incorrect data to users. For instance, EventGenerateWorker updates the NewsChangeType status in AutoNewsEvent to the deleted status, and NewsGenerateWorker hides the existing information. Specifically, when rights and information data changes, such as a date change, during the comparison process, the original rights and information event will be recorded as deleted. All AutoNewsEvents under the corresponding EventKey for that event need to update their NewsChangeType to the deleted status. Subsequently, NewsGenerateWorker reads the corresponding AutoNewsEvent with the changed status and executes the process of hiding the existing information.
[0139] For example, for update events, information content also needs to be generated after the content generation process is executed, and the management backend interface needs to be called to update the information.
[0140] When NewsGenerateWorker retrieves an update event from the AutoNewsEvent table, it needs to update the existing information. For example, if the text of an informational article changes, the content of the corresponding position in the existing information should also change accordingly.
[0141] For example, Announcement A states: "November 26, 2022: Stock C will go ex-rights and ex-dividend on January 5, 2023, with a dividend of HKD 0.1 per share. The record date for the dividend is January 6, 2023, the ex-dividend date is January 5, 2023, and the payment date is February 3, 2023. Status: Proposed." If, on December 30, 2022, the dividend payment statement changes (e.g., the original statement was "HKD 0.1 per share," and the new statement is "HKD 0.2 per share"), then Announcement A's dividend payment statement needs to be updated to "HKD 0.2 per share."
[0142] like Figure 5 As shown, if the information event is an update event, the information update process needs to be combined with the automatic review logic of the management backend. This requires considering not only the review status and display status of the information to be updated itself, but also whether the new text of the information to be updated triggers the sensitive word and filtering rules mechanism of the information management backend. During the information update process, different update logic is determined based on the review status of the information to be updated, and combined with the information review process to achieve the information update. Figure 5 The dashed lines in the code represent the automatic update logic.
[0143] For example, Figure 5 The information to be updated can be the existing information corresponding to the first rights and interests data to be updated.
[0144] like Figure 5 As shown, if the information event is an update event, the information update process can be implemented through the following steps S5.1 to S5.15, specifically:
[0145] S5.1 Before calling the automated news update interface, first call the management backend interface to query sensitive words and filtering rules to determine whether the new text of the news to be updated has passed the review of sensitive words and filtering rules.
[0146] S5.2 calls the automated information update interface and carries the review result of whether the new text of the information to be updated has passed the review of sensitive words and filtering rules.
[0147] The audit result is used to determine whether it is necessary to call the interface to hide information.
[0148] S5.3 Determine whether the information to be updated has been approved; if yes, proceed to step S5.13; if no, proceed to step S5.4.
[0149] S5.4 Determine whether the information to be updated is under review; if yes, proceed to step S5.5; if no, proceed to step S5.6.
[0150] S5.5, abandon update, wait for retry.
[0151] S5.6 Determine whether the information to be updated has not been reviewed; if yes, proceed to step S5.7; if no, proceed to step S5.10.
[0152] S5.7 updates the information to be updated to the information to be added to the database and waits for automatic review.
[0153] S5.8 Determine whether the information to be added to the database meets the automatic review conditions; if yes, proceed to step S5.10; if no, proceed to step S5.9.
[0154] S5.9 marks the review status as pending review.
[0155] S5.10, Initiate automatic review logic. If the automatic review fails, proceed to step S5.11; if the automatic review passes, proceed to step S5.13.
[0156] S5.11 marks the review status as "Review Failed".
[0157] S5.12, set sensitive words and filtering rules.
[0158] S5.13, save to database.
[0159] S5.14: Obtain the information to be updated. Once it is determined that the new copy of the information to be updated has passed the review mechanism of sensitive words and filtering rules, distribute the information to be updated and display the new copy of the information to be updated.
[0160] S5.15: Obtain information to be updated. If it is determined that the new text of the information to be updated cannot pass the review mechanism of sensitive words and filtering rules, call the hidden information interface to execute the subsequent hidden information logic.
[0161] As in steps S5.3 to S5.7, the original review status of the information to be updated needs to be considered during the update process. In step S5.3, when the review status of the information to be updated is "approved," step S5.13 is executed, directly calling the automated information update interface to update the information content and save it to the database. In step S5.4, when the review status of the information to be updated is "under review," to avoid data inconsistency, step S5.5 is executed, and the automated information update interface should abandon the update and wait for the next request to retry. In step S5.6, when the review status of the information to be updated is "unapproved," step S5.7 is executed, directly updating the information to be added to the database, and waiting for the subsequent management backend to start the automatic review logic to review the information to be added. In step S5.6, when the review status of the information to be updated is "approved but not approved," the review status of the information to be updated needs to be reset, and step S5.10 is executed, calling the automatic review logic to review the information to be updated.
[0162] In step S5.8, when the management backend initiates the automatic review logic to review the information to be added to the database, it obtains the information to be added and determines whether it meets the automatic review conditions. If it does not meet the automatic review conditions, step S5.9 is executed, marking the review status of the information to be added to the database as pending review. If it meets the automatic review conditions, step S5.10 is executed, invoking the automatic review logic to perform the review. For example, the information to be added to the database includes the aforementioned information to be updated.
[0163] The automatic review conditions include: 1) The content source of the information to be added to the database is the scene automatic review source and whether the secondary tag tab has been submitted; 2) The content source of the information to be added to the database is the individual stock automatic review source; 3) When the content source of the information to be added to the database is set to third-party information, the function group surl is not empty.
[0164] When the source of the information to be added to the database is an automatically reviewed source for individual stocks, the intelligent association of individual stocks will be initiated.
[0165] If the automatic review of the information to be imported fails, step S5.11 is executed to mark the review status of the information to be imported as "approved". If the automatic review of the information to be imported passes, step S5.13 is executed to save the information to be imported to the database.
[0166] For example, in step S5.14, if the automatically approved information to be added to the database includes information to be updated, when updating the information, the saved information to be updated is retrieved from the database. If it is determined that the new text of the information to be updated passes the review mechanism for sensitive words and filtering rules, the information to be updated is distributed and the new text of the information to be updated is displayed. Alternatively, in step S5.15, if it is determined that the new text of the information to be updated cannot pass the review mechanism for sensitive words and filtering rules, the hidden information interface is called to execute subsequent hidden information logic.
[0167] The automatic review logic in the management backend refers to the automated process of transferring information to be added to the database from the database to the distribution channels and displaying it automatically. This process does not require manual intervention; it only requires preset settings to achieve automatic content distribution and display.
[0168] Automatic review logic: For information with automatic review enabled, it will determine whether the information to be added to the database meets the automatic review conditions. Then, based on the pre-set sensitive words and filtering rules, it will match the information title and body of the information to be added to the database. Information that matches the corresponding rules will not pass the review.
[0169] Sensitive word matching: The information operations staff maintains a list of sensitive words. If the title or body of the information to be added to the database contains a sensitive word from the list, it will be determined that the review will not be approved.
[0170] Filtering rules: The information operations staff maintains a list of rules based on multi-dimensional conditions (such as content source, text, source, individual stocks, sensitive words, etc.). If the information to be added to the database matches the filtering rules in the list, it will be determined that the review will not be approved.
[0171] Automatic distribution settings: These depend on the preset on / off options of the content source. The settings include: whether the information is allowed to be automatically reviewed, whether it is allowed to be automatically displayed, and whether it is a secondary tag that can be distributed (such as news, new stocks, funds, etc.).
[0172] The logic for intelligently associating individual stocks is as follows: During automatic review, the system matches potentially related stocks from the news title and distributes them to the corresponding stock channels.
[0173] Automatic display: Only information that has been set to allow automatic display and has passed the review process and been successfully distributed to the second-level tab or individual stock channel will be automatically displayed.
[0174] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0175] This application embodiment acquires first rights and interest data and second rights and interest data. The first rights and interest data is the previously cached rights and interest data, and the second rights and interest data is the currently acquired but unprocessed rights and interest data. Based on the rights and interest change information between the first and second rights and interest data, an information event is generated, and then corresponding information is generated based on the information event. This application embodiment can generate information events based on the rights and interest change information between the first and second rights and interest data, and automatically generate information based on the information events, reducing information production costs, improving information timeliness, increasing information coverage of individual stocks, and enhancing information richness, thereby promoting user activity and transaction conversion.
[0176] To facilitate better implementation of the information generation method in this application, this application also provides a client. Please refer to... Figure 6 , Figure 6 This is a schematic diagram of the structure of the information generation apparatus provided in an embodiment of this application. The information generation apparatus 200 may include:
[0177] The acquisition unit 210 is used to acquire first rights and information data and second rights and information data, wherein the first rights and information data is the rights and information data cached last time, and the second rights and information data is the currently acquired unprocessed rights and information data;
[0178] The first generation unit 220 is used to generate information events based on the rights and interests change information between the first rights and interests data and the second rights and interests data;
[0179] The second generation unit 230 is used to generate corresponding information based on the information event.
[0180] In some embodiments, the first generating unit 220 is configured to:
[0181] If the second rights and interests data contains data records that are not present in the first rights and interests data, or if the event progress status of Hong Kong stock rights and interests in the second rights and interests data has changed compared to the event progress status of Hong Kong stock rights and interests in the first rights and interests data, then the generated information event is a new event; or
[0182] If the first rights and information data does not exist in the second rights and information data, and the first rights and information data has not expired, then the generated information event is a deletion event; or
[0183] If the first rights and information data does not exist in the second rights and information data, and the first rights and information data has expired, then the generated information event is an expired event; or
[0184] If the first rights and information data exists in the second rights and information data, and the rights and information text of the second rights and information data is different from the rights and information text of the first rights and information data, then the generated information event is an update event; or
[0185] If the transaction date in the second rights and interests data is the transaction day preceding the action date of the rights and interests event, then the service for the transaction day in the second rights and interests data is determined to have expired, and the generated information event is an expiration event.
[0186] In some embodiments, the second generating unit 230 is configured to:
[0187] If the information event is a new event, then according to the details of the second rights and information data, the data is filled in according to the preset automated information template to generate the information corresponding to the second rights and information data.
[0188] In some embodiments, the second generating unit 230 is configured to:
[0189] If the information event is a deletion event or an expiration event, then the existing information corresponding to the first rights and information data will be hidden.
[0190] In some embodiments, the second generating unit 230 is configured to:
[0191] If the information event is an update event, then the existing information corresponding to the first rights and information data is updated according to the change information of the rights and information text between the second rights and information data and the first rights and information data.
[0192] In some embodiments, when the second generation unit 230 updates the existing information corresponding to the first rights and information data based on the change information of the rights and information text between the second rights and information data and the first rights and information data, it is used to:
[0193] Based on the changes in the rights and information text between the second rights and information data and the first rights and information data, determine the new text of the existing information corresponding to the first rights and information data;
[0194] When it is determined that the new text has passed the review mechanism of sensitive words and filtering rules, the new text is updated to the existing information corresponding to the first rights and information data, and the new text is displayed.
[0195] In some embodiments, the second generating unit 230 is configured to:
[0196] If the information event is an expiration event, a notification message is generated to indicate that the transaction day service in the second rights and interests data has expired.
[0197] All of the above technical solutions can be combined in any way to form optional embodiments of this application, and will not be described in detail here.
[0198] It should be understood that the information generation apparatus embodiments and method embodiments can correspond to each other, and similar descriptions can be found in the method embodiments. To avoid repetition, further details are omitted here. Specifically, Figure 6 The information generation apparatus shown can execute the above-described information generation method embodiments, and the aforementioned and other operations and / or functions of each unit in the information generation apparatus respectively implement the corresponding processes of the above-described method embodiments. For the sake of brevity, they will not be described in detail here.
[0199] Optionally, this application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0200] Figure 7 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application. The computer device may be a terminal or a server. Figure 7 As shown, the computer device 300 may include: a communication interface 301, a memory 302, a processor 303, and a communication bus 304. The communication interface 301, memory 302, and processor 303 communicate with each other via the communication bus 304. The communication interface 301 is used for data communication between the computer device 300 and external devices. The memory 302 can be used to store software programs and modules, and the processor 303 runs the software programs and modules stored in the memory 302, such as the software programs for the corresponding operations in the foregoing method embodiments.
[0201] Optionally, the processor 303 can invoke software programs and modules stored in the memory 302 to perform the following operations:
[0202] Acquire first rights and information data and second rights and information data, wherein the first rights and information data is the previously cached rights and information data and the second rights and information data is the currently acquired but unprocessed rights and information data; generate information events based on the rights and information change information between the first rights and information data and the second rights and information data; generate corresponding information based on the information events.
[0203] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0204] Therefore, embodiments of this application provide a computer-readable storage medium storing multiple computer programs that can be loaded by a processor to execute the steps of any of the information generation methods provided in this application. Specific implementations of the above operations can be found in the preceding embodiments and will not be repeated here.
[0205] The storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0206] Since the computer program stored in the storage medium can execute the steps in any of the information generation methods provided in the embodiments of this application, the beneficial effects that any of the information generation methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0207] This application also provides a computer program product, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding process in any of the information generation methods described in this application. For simplicity, further details are omitted here.
[0208] This application also provides a computer program comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the corresponding process in any of the information generation methods described in this application. For brevity, further details are omitted here.
[0209] The above provides a detailed description of an information generation method, client, server, equity incentive system, and storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. An information generation method, characterized in that, The method includes: Obtain first rights and information data and second rights and information data, wherein the first rights and information data is the rights and information data cached last time, and the second rights and information data is the currently obtained unprocessed rights and information data; Based on the changes in rights and interests between the first rights and interests data and the second rights and interests data, an information event is generated; Generate corresponding information based on the information event; The step of generating information events based on the change information of rights and interests between the first rights and interests data and the second rights and interests data includes: If the second rights and interests data contains data records that are not present in the first rights and interests data, or if the event progress status of Hong Kong stock rights and interests in the second rights and interests data has changed compared to the event progress status of Hong Kong stock rights and interests in the first rights and interests data, then the generated information event is a new event; or If the first rights and information data does not exist in the second rights and information data, and the first rights and information data has not expired, then the generated information event is a deletion event; or If the first rights and information data does not exist in the second rights and information data, and the first rights and information data has expired, then the generated information event is an expired event; or If the first rights and information data exists in the second rights and information data, and the rights and information text of the second rights and information data is different from the rights and information text of the first rights and information data, then the generated information event is an update event; or If the transaction date in the second rights and interests data is the transaction day preceding the action date of the rights and interests event, then the service for the transaction day in the second rights and interests data is determined to have expired, and the generated information event is an expiration event; Define an AutoNewsEvent, where each AutoNewsEvent corresponds to one piece of news. The Event itself has an event key index, a unique constraint on the news, and records the life cycle of the news itself and the status of the information data at the time the Event is generated. The key index and unique key of the AutoNewsEvent are designed as follows: a key index EventKey is set, which includes the rights and information event type, event date, and individual stock ID, and is used to index all states of the AutoNewsEvent associated with the same rights and information record; the unique key corresponds to one piece of information in one AutoNewsEvent, and the unique key is designed by combining the key index and NewsType. The unique key is also the unique key for generating the information and performing update and hiding operations on the information.
2. The information generation method as described in claim 1, characterized in that, The step of generating corresponding information based on the information event includes: If the information event is a new event, then according to the details of the second rights and information data, the data is filled in according to the preset automated information template to generate the information corresponding to the second rights and information data.
3. The information generation method as described in claim 1, characterized in that, The step of generating corresponding information based on the information event includes: If the information event is a deletion event or an expiration event, then the existing information corresponding to the first rights and information data will be hidden.
4. The information generation method as described in claim 1, characterized in that, The step of generating corresponding information based on the information event includes: If the information event is an update event, then the existing information corresponding to the first rights and information data is updated according to the change information of the rights and information text between the second rights and information data and the first rights and information data.
5. The information generation method as described in claim 4, characterized in that, The step of updating the existing information corresponding to the first rights and information data based on the changes in the rights and information text between the second rights and information data and the first rights and information data includes: Based on the changes in the rights and information text between the second rights and information data and the first rights and information data, determine the new text of the existing information corresponding to the first rights and information data; When it is determined that the new text has passed the review mechanism of sensitive words and filtering rules, the new text is updated to the existing information corresponding to the first rights and information data, and the new text is displayed.
6. The information generation method as described in claim 1, characterized in that, The step of generating corresponding information based on the information event includes: If the information event is an expiration event, a notification message is generated to indicate that the transaction day service in the second rights and interests data has expired.
7. An information generation device, characterized in that, The apparatus for performing the information generation method according to any one of claims 1-6, the apparatus comprising: The acquisition unit is used to acquire first rights and information data and second rights and information data, wherein the first rights and information data is the rights and information data cached last time, and the second rights and information data is the currently acquired unprocessed rights and information data; The first generation unit is used to generate information events based on the rights and interests change information between the first rights and interests data and the second rights and interests data; The second generation unit is used to generate corresponding information based on the information event.
8. A computer device, characterized in that, The computer device includes a processor and a memory, the memory storing a computer program, and the processor executing the information generation method according to any one of claims 1-6 by calling the computer program stored in the memory.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program adapted for loading by a processor to perform the information generation method as described in any one of claims 1-6.
Citation Information
Patent Citations
Method and system based on enterprise financial loan risk control
CN114998004A