Sports news writing method based on natural language, device and electronic equipment
The method and device improve sports news writing efficiency and diversity by processing sports news corpora to extract events, assign weights, and generate news content, addressing inefficiencies in current template matching methods.
Patent Information
- Authority / Receiving Office
- CA · CA
- Patent Type
- Patents
- Current Assignee / Owner
- 10353744 CANADA LTD
- Filing Date
- 2020-06-19
- Publication Date
- 2026-07-07
Abstract
Description
SPORTS NEWS WRITING METHOD BASED ON NATURAL LANGUAGE, DEVICE AND ELECTRONIC EQUIPMENT BACKGROUND OF THE INVENTION Technical Field
[0001] The present invention relates to the field of natural language processing technology, and more particularly to a sports news writing method based on a natural language, and corresponding device and electronic equipment. Description of Related Art
[0002] When the currently available template traversing and matching strategy matches event data and templates, it is required to compare slots with the numbers of slots in the templates on a one-by-one basis, until the proper template is found out. For instance, a piece of data of a goal event reads: {ORG_NEU: Newcastle, PER_ACT: Schaer, EVEINF LOC _FROM: center outside the penalty area, EVEINF BODY: right foot, EVEINF LOC_TO: right upper comer of the goal} -this piece of data contains five slots, when templates are matched, it is supposed there are the following templates for goal events:
[0003] {ORG_NEU} Get a goal! {PER-ACT} shoot, the ball flies from {EVEINF LOC_TO} into the goal
[0004] {ORG_NEU} Get a goal! {PER-ACT} {EVEINF_LOC_FROM} {EVEINF_BODY} shoot, the ball draws a perfect arc and flies from {EVEINF LOC TO} into the goal.
[0005] Each template is traversed, a slot set contained in the current template and information concerning the number of times for which each slot appears are calculated according to regular matching, if the slot set of the current template is a subset of a slot set in the data, 1 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 a template is successfully matched. As can be seen, it is required for the traversing strategy to calculate slot information of the templates each time, and then to perform set operation with slot information of the data, so it is relatively time-consuming; because there is performance requirement on the online system, return is usually effected once matching is successful, and the entire templates are not matched. This brings about another problem, i.e., the first successfully matched template that conforms to the condition is usually not the optimum template, that is to say, types of slots and the number of slots do not satisfy the maximum requirement. Taking the above for example, successful matching is counted when the first template is matched, but use of the first template would prevent the EVEINF LOC FROM and the EVEINF BODY information from being filled, so that information volume of the article as generated is relatively small. As a consequence, the traversing and matching strategy is not only low in efficiency, but is also inferior in terms of diversity of the matching results. SUMMARY OF THE INVENTION
[0006] In view of the deficiencies prevalent in the state of the art, one of the objectives of the present application is to provide a sports news writing method based on a natural language, to enhance the diversity of sentence patterns of articles and maximize information volume of articles. The method comprises the following steps:
[0007] obtaining a corpus to be processed, an event set, slots, and a slot value to which each slot corresponds;
[0008] marking event templates in the corpus according to each event in the event set, the slots, and the slot values;
[0009] performing weight assignment on each event;
[0010] coding each event, and types and the number of the slots in the event templates;
[0011] screening the events and the event templates according to the weight of each event;
[0012] matching and filling the screened events and event templates, and generating news content; and 2 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0013] reprocessing the news content to obtain the final news content.
[0014] Preferably, the obtaining an event set, slots, and a slot value to which each slot corresponds includes the following steps:
[0015] obtaining a preset number of sports news corpora;
[0016] processing the sports news corpora to obtain all the events, slots, and the slot value to which each slot corresponds; and
[0017] disposing all the events in the same and single set to obtain the event set.
[0018] Preferably, after processing the sports news corpora to obtain all the events, slots, and the slot value to which each slot corresponds, the method further comprises the following steps:
[0019] judging whether each event, each slot, and each slot value conform to a preset range;
[0020] if yes, retaining the event, the slot, and the slot value;
[0021] if not, deleting the event, the slot, or the slot value.
[0022] Preferably, the event includes a title, an abstract, and a text.
[0023] Preferably, the performing weight assignment on each event includes the following steps:
[0024] dividing the corpus according to all the events to obtain plural sections;
[0025] constructing, with respect to each event, mapping between the event and each section; and
[0026] setting, with respect to each mapping, a weight of the event to which the mapping corresponds.
[0027] Preferably, the coding each event, and types and the number of the slots in the event templates includes the following steps:
[0028] obtaining the event templates and the events to be coded;
[0029] counting the event templates, and the types and the number of the slots in the events 3 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 according to regular matching;
[0030] determining a total number m of all the slots and the maximum number of times n for which the slots appear in each event template;
[0031] determining that each slot should be assigned with n number of binary digits for representation according to the maximum number of times for which the slots appear, wherein n is a divisor of 64;
[0032] determining long types of a coding type as employed and the number x of codes according to the total number of the slots and the number of binary digits assigned to each slot, wherein x=[(m*n) / 64]+ l;
[0033] traversing each slot in the event templates, and performing binary coding on the number of slots of the current slot;
[0034] determining that the current slot is coded at the yth long type according to an index address i of the current slot, wherein y=i / (64 / n)+ l;
[0035] moving binary representation of the number of slots leftwards for p times, wherein p=(i( y-1)*(64 / n))*n; and
[0036] joining all codes of the long type to obtain the final codes.
[0037] Preferably, the screening the events includes the following steps:
[0038] obtaining a corresponding weight of each event;
[0039] comparing each weight with a preset threshold; and
[0040] retaining any event whose weight is greater than the preset threshold, and eliminating the remaining events.
[0041] Preferably, the screening the event templates includes the following steps:
[0042] obtaining the screened events and the codes corresponding thereto, and the codes to which all the event templates correspond in the events;
[0043] selecting one or more event template(s) with the maximum number of slots to serve as candidate event template(s); and
[0044] randomly selecting one event template from the candidate event template(s) to serve as 4 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 the event template to be filled.
[0045] In view of the deficiencies prevalent in the state of the art, the second objective of the present application is to provide a sports news writing device based on a natural language, to enhance the diversity of sentence patterns of articles and maximize information volume of articles. The device comprises:
[0046] an obtaining unit, for obtaining a corpus to be processed, an event set, slots, and a slot value to which each slot corresponds;
[0047] an event template marking unit, for marking event templates in the corpus according to each event in the event set, the slots, and the slot values;
[0048] a weight assigning unit, for performing weight assignment on each event;
[0049] a coding unit, for coding each event, and types and the number of the slots in the event templates;
[0050] a screening unit, for screening the events and the event templates according to the weight of each event;
[0051] a news content generating unit, for matching and filling the screened events and event templates, and generating news content; and
[0052] a news content processing unit, for reprocessing the news content to obtain the final news content.
[0053] In view of the deficiencies prevalent in the state of the art, the third objective of the present application is to provide an electronic equipment to enhance the diversity of sentence patterns of articles and maximize information volume of articles. The electronic equipment comprises:
[0054] at least one processor; and
[0055] a memory, communicably connected with the at least one processor; wherein
[0056] the memory stores an instruction executable by the at least one processor, and the instruction is executed by the at least one processor to enable the processor to execute the aforementioned sports news writing method. 5 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0057] The sports news writing method, device and electronic equipment based on a natural language as provided by the present application make it possible to automatically generate news contents according to event templates extracted by prior analysis of great quantities of sports news and according to weight assignments of users themselves on events, whereby diversity of sentence patterns of articles is enhanced and information volume of articles is maximized on the one hand, highly effectively automatic writing of sports news articles is realized and the input of manpower cost is reduced on the other hand. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] To more clearly describe the embodiments of the present invention or technical solutions in the prior-art technology, drawings required to be used in the description of the embodiments or the prior-art technology are briefly introduced below. Apparently, the drawings as introduced below are merely directed to some embodiments of the present invention, and it is further possible for persons ordinarily skilled in the art to acquire other drawings based on these drawings without spending any creative effort in the process.
[0059] Fig. 1 is a :flowchart illustrating a sports news writing method based on a natural language provided by Embodiment 1 of the present invention;
[0060] Fig. 2 is a :flowchart illustrating a sports news writing method based on a natural language provided by Embodiment 2 of the present invention;
[0061] Fig. 3 is a :flowchart illustrating a sports news writing method based on a natural language provided by Embodiment 3 of the present invention;
[0062] Fig. 4 is a :flowchart illustrating a sports news writing method based on a natural language 6 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 provided by Embodiment 4 of the present invention;
[0063] Fig. 5 is a flowchart illustrating a sports news writing method based on a natural language provided by Embodiment 5 of the present invention;
[0064] Fig. 6 is a flowchart illustrating a sports news writing method based on a natural language provided by Embodiment 6 of the present invention;
[0065] Fig. 7 is a flowchart illustrating a sports news writing method based on a natural language provided by Embodiment 7 of the present invention;
[0066] Fig. 8 is a view schematically illustrating the structure of a sports news writing device based on a natural language provided by the present invention; and
[0067] Fig. 9 is a view schematically illustrating the structure of an electronic equipment provided by the present invention. DETAILED DESCRIPTION OF THE INVENTION
[0068] The embodiments of the current disclosure are described in greater detail below with reference to the accompanying drawings.
[0069] The modes of execution of the current disclosure are described below through specific concrete examples, and it is possible for persons skilled in the art to easily learn of other advantages and effects of the current disclosure from the contents disclosed in this Description. Apparently, the embodiments as described are merely partial, rather than the entire, embodiments of the current disclosure. The current disclosure can be further implemented or applied through additional, different, specific modes of execution, and the various details in this Description can also be variously modified or changed based 7 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 on different viewpoints and applications without departing from the spirits of the current disclosure. As should be noted, the following embodiments and features in the embodiments can be combined with one another provided that they are not contradictory to one another. Based on the embodiments in the current disclosure, all other embodiments obtainable by persons ordinarily skilled in the art without spending any creative effort should all be covered within the protection scope of the current disclosure.
[0070] As should be noted, various aspects of the embodiments are described below within the range of the attached Claims. As is obvious, the aspects described in this Description can be embodied in a wide range of forms, and any specific structure and / or function described in this Description are / is merely explanative in nature. As should be clear to persons skilled in the art on the basis of the current disclosure, one aspect described in this Description can be implemented independently of any other aspect, and can also be combined with two or more aspects in various modes. By way of example, any number of aspects enunciated in this Description can be employed to implement the device / equipment and / or to practice the method. In addition, other structures and / or functions than one or more aspects enunciated in this Description can be employed to implement the device / equipment and / or to practice the method.
[0071] As should be further noted, the illustrations provided in the following embodiments merely illustrate the basic conception of the current disclosure in an illustrative mode, shown in the illustrations are merely the components relevant to the current disclosure and these are not drawn in the number, shapes and sizes of the actual components during actual implementation. The forms, number and proportions of the various components are subjected to random changes during actual implementation, and the layouts and forms of the components might be even more complicated during actual implementation.
[0072] Moreover, specific details are provided in the following description to facilitate thorough understanding of the concrete examples. However, as understood by persons skilled in 8 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 the art, the said aspects can still be practiced in the absence of these specific details.
[0073] An embodiment of the current disclosure provides a sports news writing method based on a natural language. The sports news writing method based on a natural language provided by this embodiment can be executed by a computer system, the computer system can be embodied as software, or a combination of software with hardware, and the computer system can be integrated in a server, a terminal equipment, etc.
[0074] Embodiment 1
[0075] As shown in Fig. 1, in an embodiment of the present application is provided a sports news writing method based on a natural language, and the method comprises the following steps.
[0076] Step SlOl - obtaining a corpus to be processed, an event set, slots, and a slot value to which each slot corresponds.
[0077] In this step, there are many methods of obtaining a corpus to be processed, an event set, slots, and a slot value to which each slot corresponds, for instance, it is possible to manually input preset corpus to be processed, event set, slots, and slot value to which each slot corresponds to an equipment, it is also possible for the equipment to automatically obtain preset corpus to be processed, event set, slots, and slot value to which each slot corresponds, and it is further possible for a server to automatically crawl (by using a crawler for example) preset corpus to be processed, event set, slots, and slot value to which each slot corresponds, to which modes the present application makes no restriction.
[0078] Step Sl02 - marking event templates in the corpus according to each event in the event set, the slots, and the slot values. 9 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0079] In this step, in accordance with each event in the event set, the slots, and the slot values obtained in step S 101, it is possible to mark event templates in the corpus to be processed as obtained in step SlOl.
[0080] Step S 103 - performing weight assignment on each event.
[0081] In this step, there are many methods of performing weight assignment on each event, for instance, it is possible to manually input a weight to which each event corresponds to an equipment, it is also possible for the equipment to automatically obtain a weight to which each event corresponds, and it is further possible for a server to automatically crawl (by using a crawler for example) a weight to which each event corresponds, to which modes the present application makes no restriction.
[0082] Step S 104 - coding each event, and types and the number of the slots in the event templates.
[0083] In this step, there are many methods of coding each event, and types and the number of the slots in the event templates, for instance, it is possible to manually input codes of each event, and types and the number of the slots in the event templates to an equipment, it is also possible for the equipment to automatically obtain codes of each event, and types and the number of the slots in the event templates, and it is further possible for a server to automatically crawl (by using a crawler for example) codes of each event, and types and the number of the slots in the event templates, to which modes the present application makes no restriction.
[0084] In this step, the coding type employed can be binary, octonary or decimal, to which the present application makes no restriction. Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0085] Step S 105 - screening the events and the event templates according to the weight of each event.
[0086] In this step, the events and the event templates are screened according to the weight of each event obtained in step Sl03. There are many screening standards, for instance, it is possible to compare the weight of each event with a preset threshold, and to eliminate any event whose weight is smaller than the preset threshold, while the present application makes no restriction to the screening standards.
[0087] Step S 106 - matching and filling the screened events and event templates, and generating news content.
[0088] In this step, the events and event templates screened in step S 105 are matched and filled to generate news content. There are many matching and filling modes, to which no restriction is made in the present application.
[0089] Step S 107 - reprocessing the news content to obtain the final news content.
[0090] In this step, the news content obtained in step Sl06 is reprocessed to obtain the final news content. There can be many reprocessing modes, such as manual reviewing and retouching, or rechecking by the system, etc., to which no restriction is made in the present application.
[0091] In Embodiment 1, the sports news writing method based on a natural language as provided by the present application makes it possible to automatically process the corpus to be processed, so as to enable automatic generation of news contents, to reduce manpower, and to enhance automatic processing capability for news corpora.
[0092] Embodiment 2 11 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0093] As shown in Fig. 2, in an embodiment of the present application, obtaining an event set, slots, and a slot value to which each slot corresponds in step SlOl includes the following steps.
[0094] Step S201 - obtaining a preset number of sports news corpora.
[0095] In this step, there are many methods of obtaining a preset number of sports news corpora, for instance, it is possible to manually input a preset number of sports news corpora to an equipment, it is also possible for the equipment to automatically obtain a preset number of sports news corpora, and it is further possible for a server to automatically crawl (by using a crawler for example) a preset number of sports news corpora, to which modes the present application makes no restriction.
[0096] In this step, the preset number can be theoretically one piece, and can also be 100,000 pieces, however, out of overall considerations of data processing amount and accuracy of the result, the preset number can be selected as 1,000 pieces.
[0097] An example is taken for explanation by selecting two pieces of sports news corpora, specifically as follows:
[0098] sports news corpus 1: star player A shoots, goal succeeds.
[0099] sports news corpus 2: star player B shoots unsuccessfully, goal fails.
[0100] Step S202 - processing the sports news corpora to obtain all the events, slots, and the slot value to which each slot corresponds.
[0101] In this step, the sports news corpora in step S201 are processed to obtain all the events, slots, and the slot value to which each slot corresponds. 12 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0102] Specifically, an example is taken for explanation with the above two pieces of sports news corpora, specifically as follows:
[0103] event is: goal;
[0104] slot is: shoots (the underlined location is the slot);
[0105] slot values are: star player A shoots, star player B shoots (the underlined locations are the slot values, in other words, the slot values are star player A and star player B).
[0106] Step S203 - disposing all the events in the same and single set to obtain the event set.
[0107] In this step, all the events obtained in step S202 are disposed in the same and single set to obtain an event set. The event set contains at least one event, and the number of event(s) contained in the event set may differ according to classifying standards of events. For instance, the event can be selected as "goal" in step S202, then the event set in step S203 contains only one event - "goal"; it is also possible to select "goal succeeds" and "goal fails" as events in step S202, then the event set in step S203 contains two events -- "goal succeeds" and "goal fails".
[0108] In the embodiments of the present application, an event can further include a title, an abstract, and a text. For instance, a piece of sports news generally at least includes the three sections of "title", "abstract", and "text"; of course, it can further include "subtitle", "editorial note", and "commentary", etc., to which no restriction is made in the present application.
[0109] In Embodiment 2, the sports news writing method based on a natural language as provided by the present application makes it possible to analyze and process great quantities of sports news corpora to obtain therefrom event sets, slots, and slot values to which each slot corresponds, so as to provide research templates for subsequent automatic generation of news contents. 13 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0110] Embodiment 3
[0111] As shown in Fig. 3, in an embodiment of the present application, after processing the sports news corpora to obtain all the events, slots, and the slot value to which each slot corresponds in step S202, the following steps are further included:
[0112] Step S301 - judging whether each event, each slot, and each slot value conform to a preset range;
[0113] Step S302 - if yes, retaining the event, the slot, and the slot value;
[0114] Step S303 - if not, deleting the event, the slot, or the slot value.
[0115] Through the above steps S301-S303, each event, each slot, and each slot value in step S202 can be judged as to whether they conform to a preset range, and to perform eliminating or retaining operation.
[0116] Specifically, the preset range can be either a specific numerical value or a definitive statement. For instance, plural events can be selected from the 1,000 pieces of sports news as "shoot", "goal", and "penalty kick", of which "penalty kick" is proportionally lower relative to "shoot" and "goal", and the event of "penalty kick" can be eliminated in the case processing result precision is required not much highly, whereby data processing amount is greatly reduced.
[0117] In Embodiment 3, the sports news writing method based on a natural language as provided by the present application makes it possible to screen events, slots and slot values to which each slot corresponds as obtained, whereby accuracy of news generation is enhanced on the one hand, and data processing amount is reduced on the other hand.
[0118] Embodiment 4
[0119] As shown in Fig. 4, in an embodiment of the present application, performing weight 14 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 assignment on each event in step S 103 includes the following steps:
[0120] Step S401 - dividing the corpus according to all the events to obtain plural sections;
[0121] Step S402 - constructing, with respect to each event, mapping between the event and each section; and
[0122] Step S403 - setting, with respect to each mapping, a weight of the event to which the mapping corresponds.
[0123] Specific explanation is made below with Table 1 and Table 2:
[0124] Table 1
[0125] Event Section First Paragraph Second Paragraph Title 0.6 0.3 Abstract 0.4 0.7
[0126] With respect to Table 1, the corpus is divided into a first paragraph and a second paragraph, of which the first paragraph is considered by default to be the title section, and the second paragraph is considered by default to be the abstract section (in some news, the abstract may even be larger than one paragraph, but this case is not considered for the sake of brevity).
[0127] When weights are assigned to the title event and the abstract event, the weights of the title event with respect to the first paragraph and the second paragraph are respectively 0.6 and 0.3, and the weights of the abstract event with respect to the first paragraph and the second paragraph are respectively 0.4 and 0.7, that is to say, when the system considers the importance of the title event and the abstract event in the first paragraph and the second paragraph of the corpus, it is apparent that the title event is most probably in the first paragraph, and that the abstract event is most probably in the second paragraph. Of course, in some other embodiments, when ranking is made according to a descending order of weights, the abstract event is most probably in the first paragraph, while the title 15 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 event is most probably in the second paragraph.
[0128] Table 2
[0129] Event Section Goal Penalty Kick First Paragraph 0.6 0.4 Second Paragraph 0.7 0.3
[0130] With respect to Table 2, the corpus is divided into a first paragraph and a second paragraph, of which the first paragraph is considered by default to be the title section, and the second paragraph is considered by default to be the abstract section (in some news, the abstract may even be larger than one paragraph, but this case is not considered for the sake of brevity).
[0131] When weights are assigned to the goal event and the penalty kick event, the weights of the goal event with respect to the first paragraph and the second paragraph are respectively 0.6 and 0.7, and the weights of the penalty kick event with respect to the first paragraph and the second paragraph are respectively 0.4 and 0.3, that is to say, when the system considers the importance of the goal event and the penalty kick event in the first paragraph and the second paragraph of the corpus, it is apparent that the goal event is most probably in the first paragraph, and that the penalty kick event is most probably in the second paragraph. Of course, in some other embodiments, when ranking is made according to a descending order of weights, the penalty kick event is most probably in the first paragraph, while the goal event is most probably in the second paragraph.
[0132] In Embodiment 4, the sports news writing method based on a natural language as provided by the present application makes it possible to assign weight to each event, and it is possible to set event weights by self-definition according to requirements on the one hand, and to also provide basis for subsequent coding operation on the other hand. 16 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0133] Embodiment 5
[0134] As shown in Fig. 5, in an embodiment of the present application, coding each event, and types and the number of the slots in the event templates in step Sl04 includes the following steps.
[0135] Step S501 - obtaining event templates and events to be coded.
[0136] In this step, there are many methods of obtaining event templates and events to be coded, for instance, it is possible to manually input event templates and events to be coded to an equipment, it is also possible for the equipment to automatically obtain event templates and events to be coded, and it is further possible for a server to automatically crawl (by using a crawler for example) event templates and events to be coded, to which modes the present application makes no restriction.
[0137] In the embodiments of the present application, the coding as employed is binary coding.
[0138] Step S502 - counting the event templates, and the types and the number of the slots in the events according to regular matching.
[0139] In this step, a regular expression is employed to sequentially traverse the event templates and events to be coded, so that it is possible to count the types and the number of each type of the event templates, and the types and the number of each type of the slots in the events.
[0140] Step S503 - determining a total number m of all the slots and the maximum number of times n for which the slots appear in each event template. 17 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0141] In this step, through step S502 it is possible to determine a total number m of all the slots and the maximum number of times n for which the slots appear in each event template.
[0142] In the embodiments of the present application, since binary coding is employed, so m=22, n=4. The maximum 4 times for which slots appear in the event template are based on to determine that 4 bits of binary digits should be assigned to each event slot to represent the number of times for which the event slot appears, and in the 4 bits of binary digits, a 1 on each binary digit represents that the event slot appears for one time.
[0143] Step S504 - determining that each slot should be assigned with n number of binary digits for representation according to the maximum number of times for which the slots appear, wherein n is a divisor of 64.
[0144] Step S505 - determining long types of a coding type as employed and the number x of codes according to the total number of the slots and the number of binary digits assigned to each slot, wherein x=[(m*n) / 64]+ 1.
[0145] In steps S504-S505, according to the total number 22 of the slots and the 4 bits of binary digits assigned to each slot, it is derived that 22*4=88 bits of binary digits are required to represent the number of all the slots.
[0146] In the embodiments of the present application, out of overall considerations ofreality and the data processing amount, long type data are used for coding. One piece of long type data consists of 64 bits, son should be a divisor of 64. At this time, 2 pieces of long type data are required to code the event templates and the slots in the corpus, and the 2 pieces oflong type data are both initialized as 0.
[0147] Step S506 - traversing each slot in the event templates, and performing binary coding on the number of slots of the current slot. 18 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0148] In this step, the long type is employed to sequentially traverse each slot in the event templates, and binary coding is performed on each slot number. For instance, a certain slot appears for two times in an event template, then it is binarily represented by the long type as 00ll.
[0149] Step S507 - determining that the current slot is coded at the yth long type according to an index address i of the current slot, wherein y=i / ( 64 / n)+ 1.
[0150] In this step, it is determined that the current slot is coded at the ih long type according to an index address i of the current slot, and the y value can be calculated by the following formula:
[0151] y=i / (64 / 4)+ 1,
[0152] where i is an index address of the current slot. For instance, the index address i of the current slot is 15, then y=l, expressing that the current slot is coded on the first long data; if the current slot i is 16, then y=2, the current slot should be coded on the second long data.
[0153] Step S508 - moving binary representation of the number of slots leftwards for p times, wherein p=(i-(y-1)*(64 / n))*n.
[0154] In this step, binary representation of the number of slots is moved leftwards for p times, and p therein is calculated as follows:
[0155] p=(i-(y-1)*(64 / 4))*4
[0156] where i is a slot index address, and y represents that the current slot is coded on the yth long data. For instance, the index address i of a certain slot is 10, it is then calculated to derive that y=l, that is to say, the slot is coded on the first long data, and the slot appears for two times in the event template, then the number of times of the slot is binarily represented as 00ll, during coding, 00ll is moved leftwards by 10*4 bits, to derive the 19 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 following codes: 0000 0000 0000 0000 0000 0011 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000.
[0157] Step S509 - joining all codes of the long type to obtain the final codes.
[0158] In this step, all codes of the long type are joined, so as to obtain the final codes. All slot codes on the same and single long data should be summated.
[0159] In Embodiment 5, the sports news writing method based on a natural language as provided by the present application makes it possible to binarily code each event and the types and numbers of slots in the event templates, whereby the subsequent operation of screening the events and event templates is facilitated, and the workload of the screening operation is reduced.
[0160] Embodiment 6
[0161] As shown in Fig. 6, in an embodiment of the present application, screening the events in step S 105 includes the following steps:
[0162] Step S601 - obtaining a corresponding weight of each event;
[0163] Step S602 - comparing each weight with a preset threshold; and
[0164] Step S603 - retaining any event whose weight is greater than the preset threshold, and eliminating the remaining events.
[0165] The many events should be screened in steps S601-S603, and the screening standard is the comparison of the weights corresponding to the events with a preset threshold.
[0166] A specific example is taken below for explanation.
[0167] In the embodiments of the present application, the news includes three sections, namely a title, an abstract, and a text, and the events include two types, namely "goal" and 20 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 "penalty kick". The two events are assigned with weights according to business requirements, and the "goal" is assigned with a greater weight than that assigned to the "penalty kick" (the weights here are valuated between 0 and 1). In sports news writing, events are screened according to event weights, an event whose weight is greater than the preset threshold is preferentially selected to be written into the news title section, so the "goal" is written in the title section, whereas the "penalty kick" is written in either the abstract section or the text section.
[0168] Moreover, if an event further includes two sections as an abstract and a text, and the weight of the text event is higher than the weight of the abstract event, then the "penalty kick" will be preferentially written in the text section of the news.
[0169] In Embodiment 6, the sports news writing method based on a natural language as provided by the present application makes it possible to screen events, whereby proper events can be selected from many events according to requirement to provide basis for subsequent generation of news.
[0170] Embodiment 7
[0171] As shown in Fig. 7, in an embodiment of the present application, screening the event templates in step S 105 includes the following steps:
[0172] Step S701 - obtaining the screened events and the codes corresponding thereto, and the codes to which all the event templates correspond in the events;
[0173] Step S702 - selecting one or more event template(s) with the maximum number of slots to serve as candidate event template(s); and
[0174] Step S703 - randomly selecting one event template from the candidate event template(s) to serve as the event template to be filled.
[0175] In steps S701-S703, the event template to be filled can be selected. 21 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22
[0176] A specific example is taken below for explanation.
[0177] Table 3
[0178] Project Number Event Event Template 1 0010 00ll 2 1010 lOll
[0179] As can be seen from Table 3, event 1 is coded 0010, event 2 is coded 1010, event template 1 is coded 00ll, and event template 2 is coded lOll.
[0180] If event template 1 has one slot and event template 2 has two slots, event template 2 with the maximum number of slots is selected as the event template to be filled, so event template 2 serves as the unique one event template to be filled.
[0181] If event template 1 has one slot and event template 2 also has one slot, since the event template with the maximum number of slots is selected, so event template 1 and event template 2 each having one slot can each serve as the event template to be filled, then one event template is randomly selected from event template 1 and event template 2 to serve as the event template to be filled, in other words, the event template to be filled can be either event template 1 or event template 2.
[0182] In Embodiment 7, the sports news writing method based on a natural language as provided by the present application makes it possible to screen event templates, whereby proper event templates can be selected from many event templates according to requirement to provide basis for subsequent generation of news.
[0183] As shown in Fig. 8, in an embodiment of the present application, there is further provided 22 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 a sports news writing device based on a natural language, to enhance the diversity of sentence patterns of articles and maximize information volume of articles, the device compnses:
[0184] an obtaining unit 801, for obtaining a corpus to be processed, an event set, slots, and a slot value to which each slot corresponds;
[0185] an event template marking unit 802, for marking event templates in the corpus according to each event in the event set, the slots, and the slot values;
[0186] a weight assigning unit 803, for performing weight assignment on each event;
[0187] a coding unit 804, for coding each event, and types and the number of the slots in the event templates;
[0188] a screening unit 805, for screening the events and the event templates according to the weight of each event;
[0189] a news content generating unit 806, for matching and filling the screened events and event templates, and generating news content; and
[0190] a news content processing unit 807, for reprocessing the news content to obtain the final news content.
[0191] The device shown in Fig. 8 can correspondingly execute the contents in the foregoing method embodiment. Portions that are not described in detail in this embodiment can be inferred from the contents recited in the foregoing method embodiment, while no repetition is made in this context.
[0192] Refer below to Fig. 9 that is a view schematically illustrating a structure suitable for realizing the electronic equipment 90 according to an embodiment of the current disclosure. The electronic equipment in this embodiment of the current disclosure can include, but is not limited to include, such a mobile terminal as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (portable Android device), a PMP (portable multimedia player), an onboard terminal (such as an onboard navigation terminal), and such a fixed terminal as a digital TV, a 23 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 desktop computer, etc. The electronic equipment shown in Fig. 3 is merely an example, and shall not be anyway restrictive of the function and range of use of the embodiment of the current disclosure.
[0193] As shown in Fig. 9, electronic equipment 90 can include a processing device (such as a central processor, a graphics processor, etc.) 901 capable of executing various proper actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage device 908 to a random-access memory (RAM) 903. In RAM 903 are further stored various programs and data required for the operation of electronic equipment 90. Processing device 901, ROM 902 and RAM 903 are connected to one another via bus 904. Input / output (I / 0) interface 905 is also connected to bus 904.
[0194] Usually, the following systems can be connected to 1 / 0 interface 905: including such an input means 906 as a touch screen, a touch panel, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; such an output means 907 as a liquid crystal display (LCD), a loudspeaker, a vibrator, etc.; such a storge device 908 as a magnetic disk, a hard disk, etc.; and a communication device 909. Communication device 909 allows wireless or wired communication between electronic equipment 90 and other equipments to exchange data. Although an electronic equipment 90 possessing various devices is shown in the Figure, as should be understood, it is not required to implement or possess all the devices as shown. It is alternatively possible to implement or possess more or less devices.
[0195] Particularly, according to the embodiments of the current disclosure, the processes described above with reference to flowcharts can be realized as computer software programs. For instance, embodiments of the current disclosure include a computer program product that includes a computer program borne on a computer-readable medium, and the computer program contains program codes for executing the methods shown in the flowcharts. In such an embodiment, the computer program can be 24 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 downloaded from the network and installed through communication device 909, or installed from storage device 908, or installed from ROM 902. When the computer program is executed by processing device 901, it executes the aforementioned functions defined in the methods of the embodiments of the current disclosure.
[0196] The sports news writing method based on a natural language, and corresponding device and electronic equipment as provided by the present application make it possible to automatically generate news contents according to event templates extracted by prior analysis of great quantities of sports news and according to weight assignments of users themselves on events, whereby diversity of sentence patterns of articles is enhanced and information volume of articles is maximized on the one hand, highly effectively automatic writing of sports news articles is realized and the input of manpower cost is reduced on the other hand.
[0197] As should be noted, the computer-readable medium recited above in the current disclosure can be a computer-readable signal medium or a computer-readable storage medium or a random combination of the two. The computer-readable storage medium can for example be, but is not limited to be, an electric, magnetic, optical, electromagnetic, infrared, or semiconductor device, system or component, or any combination of the above. A more specific example of the computer-readable storage medium can include, but is not limited to include, an electrically connectible, portable computer magnetic disk, a hard disk, a random-access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact magnetic disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device having one or more conducting wire(s), or any suitable combination of the above. In the current disclosure, the computer-readable storage medium can be any tangible medium containing or storing a program usable by or in combination with an instruction executing device, system, or component. Moreover, in the current disclosure, the computer-readable signal medium can include a data signal 25 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 transmitted in a baseband or as part of a carrier wave, in which data signal are borne computer-readable program codes. The data signal thusly propagated can be embodied in plural forms, including, but not limited to, an electromagnetic signal, an optical signal, or any suitable combination thereof. The computer-readable signal medium can further be any other computer-readable medium than the computer-readable storage medium, and the computer-readable signal medium can transmit, propagate, or convey programs for use by or in combination with an instruction executing device, system, or component. The program codes contained in the computer-readable medium can be transmitted via any suitable medium, including, but not limited to, an electric wire, an optical fiber, radio frequency (RF) etc., or any suitable combination of the above.
[0198] The computer-readable medium can be either contained in the electronic equipment, or independent of, not installed in the electronic equipment.
[0199] The computer-readable medium carries therewith one or more program(s), when the one or more program(s) is / are executed by the electronic equipment, the electronic equipment is enabled: to acquire at least two internet protocol addresses; to transmit a node evaluation request including the at least two internet protocol addresses to a node evaluation equipment, which selects an internet protocol address from the at least two internet protocol addresses and returns the same; and to receive the internet protocol address returned by the node evaluation equipment, wherein the internet protocol addresses as acquired indicate boundary nodes in a content distribution network.
[0200] Alternatively, the computer-readable medium carries therewith one or more program(s), when the one or more program(s) is / are executed by the electronic equipment, the electronic equipment is enabled: to receive a node evaluation request including at least two internet protocol addresses; to select an internet protocol address from the at least two internet protocol address; and to return the selected internet protocol address, wherein the internet protocol addresses as received indicate boundary nodes in a content 26 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 distribution network.
[0201] One or more programming language(s) or a combination thereof can be employed to write the computer program codes for executing the operations of the current disclosure, the programming language(s) include(s) such an object-oriented programming language as Java, Smalltalk, C++, and further include(s) such a conventional procedural programming language as "C" language or a similar programming language. The program codes can be entirely executed on a user computer, partly executed on a user computer, executed as an independent software package, partly executed on a user computer and partly executed on a remote computer, or entirely executed on a remote computer or a server. In the case a remote computer is involved, the remote computer can be connected to the user computer via a randomly typed network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, internet connection can be supplied by an internet service provider).
[0202] The flowcharts and block diagrams in the accompanying drawings illustrate systemic frameworks, functions, and operations potentially realizable by the system, method, and computer program product according to the various embodiments of the current disclosure. With respect thereto, each block in the flowcharts or the block diagrams can represent a module, a program segment, or a part of the codes, and the module, the program segment, or the part of the codes includes one or more executable instruction(s) for realizing designated logic function(s). As is also noticeable, in some implementations serving as substitutions, functions marked in the blocks can also occur in sequences different from those marked in the drawings. For instance, two blocks expressed by consecution can in practice be essentially parallelly executed, and they can sometimes also be executed according to inverse sequences, as these are decided by the involved functions. As should also be noted, each block in the block diagrams and / or the flowcharts and the combination of blocks in the block diagrams and / or the flowcharts can be realized by dedicated, hardware-based systems that execute designated functions or operations, 27 Date Re9ue / Date Received 2022-06-22 CA 03165616 2022-06-22 and can be alternatively realized by a combination of dedicated hardware with computer instructions.
[0203] Units involved in the description of the embodiments of the current disclosure can be realized in the form of software, and can also be realized in the form of hardware. The name of a unit does not constitute any restriction to the unit itself under certain circumstances. For instance, a first obtaining unit can as well be referred to as a "unit for obtaining at least two internet protocol addresses".
[0204] As should be understood, the various portions of the current disclosure can be realized by hardware, software, firmware, or a combination thereof.
[0205] What the above describes is merely directed to specific modes of execution of the current disclosure, but the protection scope of the current disclosure is not restricted thereby. Any change or replacement easily conceivable to persons skilled in the art within the technical range disclosed in the current disclosure shall all be covered by the protection scope of the current disclosure. Accordingly, the protection scope of the current disclosure shall be based on the protection scope of the attached Claims. 28 Date Re9ue / Date Received 2022-06-22
Claims
29 Claims:
1. A device comprising: an obtaining unit, configured to obtain a corpus to be processed, an event set, slots, and a slot value to which the slot corresponds; an event template marking unit, configured to mark event templates in the corpus of an event in the event set, the slots, and the slot values; a weight assigning unit, configured to perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; a coding unit, configured to code the event, types and number of the slots in the event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; a screening unit, configured to screen the events and the event templates of weight of the event; a news content generating unit, configured to: match and fill screened events and the event templates; generate news content; and a news content processing unit, configured to reprocess the news content to obtain final news content.
2. The device of claim 1, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; CA 3165616 Date reçue / Received date 2024-07-04 30 processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
3. The device of claim 2, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
4. The device of claim 1, wherein the event includes a title, an abstract, and a text.
5. The device of claim 1, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
6. The device of claim 1, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; CA 3165616 Date reçue / Received date 2024-07-04 31 determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
7. The device of claim 1, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
8. The device of claim 1, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled. CA 3165616 Date reçue / Received date 2024-07-04 32 9. The device of any one of claims 1 to 8, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
10. The device of any one of claims 1 to 8, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
11. The device of any one of claims 1 to 8, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
12. The device of any one of claims 1 to 11, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
13. The device of any one of claims 1 to 12, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
14. The device of any one of claims 1 to 13, wherein the coding type includes binary, octonary or decimal.
15. The device of any one of claims 1 to 14, wherein reprocessing modes includes manual reviewing and retouching and system rechecking.
16. The device of any one of claims 1 to 15, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
17. The device of any one of claims 1 to 16, wherein the preset number of the sports news corpora is selected.
18. The device of any one of claims 1 to 17, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces. CA 3165616 Date reçue / Received date 2024-07-04 33 19. The device of any one of claims 1 to 18, wherein the event set contains one or more event.
20. The device of any one of claims 1 to 19, wherein number of events contained in the event set are according to classifying standards of events.
21. The device of any one of claims 1 to 20, wherein the preset range includes a specific numerical value or a definitive statement.
22. The device of any one of claims 1 to 21, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
23. The device of any one of claims 1 to 22, wherein the coding is binary coding.
24. The device of any one of claims 1 to 23, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
25. The device of any one of claims 1 to 24, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
26. The device of any one of claims 1 to 25, wherein codes of the long type are joined to obtain the final codes.
27. The device of any one of claims 1 to 26, wherein slot codes on same and single long are summated.
28. A system comprising: an obtaining unit, configured to obtain a corpus to be processed, an event set, slots, and a slot value to which the slot corresponds; CA 3165616 Date reçue / Received date 2024-07-04 34 an event template marking unit, configured to mark event templates in the corpus of an event in the event set, the slots, and the slot values; a weight assigning unit, configured to perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; a coding unit, configured to code the event, types and number of the slots in the event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; a screening unit, configured to screen the events and the event templates of weight of the event; a news content generating unit, configured to: match and fill screened events and the event templates; generate news content; and a news content processing unit, configured to reprocess the news content to obtain final news content.
29. The system of claim 28, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
30. The system of claim 29, further comprises: judging the event, the slot, and the slot value conform to a preset range; CA 3165616 Date reçue / Received date 2024-07-04 35 wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
31. The system of claim 28, wherein the event includes a title, an abstract, and a text.
32. The system of claim 28, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
33. The system of claim 28, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; CA 3165616 Date reçue / Received date 2024-07-04 36 moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
34. The system of claim 28, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
35. The system of claim 28, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
36. The system of any one of claims 28 to 35, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
37. The system of any one of claims 28 to 35, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
38. The system of any one of claims 28 to 35, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl. CA 3165616 Date reçue / Received date 2024-07-04 37 39. The system of any one of claims 28 to 38, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
40. The system of any one of claims 28 to 39, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
41. The system of any one of claims 28 to 40, wherein the coding type includes binary, octonary or decimal.
42. The system of any one of claims 28 to 41, wherein reprocessing modes includes manual reviewing and retouching and system rechecking.
43. The system of any one of claims 28 to 42, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
44. The system of any one of claims 28 to 43, wherein the preset number of the sports news corpora is selected.
45. The system of any one of claims 28 to 44, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
46. The system of any one of claims 28 to 45, wherein the event set contains one or more event.
47. The system of any one of claims 28 to 46, wherein number of events contained in the event set are according to classifying standards of events.
48. The system of any one of claims 28 to 47, wherein the preset range includes a specific numerical value or a definitive statement.
49. The system of any one of claims 28 to 48, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl. CA 3165616 Date reçue / Received date 2024-07-04 38 50. The system of any one of claims 28 to 49, wherein the coding is binary coding.
51. The system of any one of claims 28 to 50, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
52. The system of any one of claims 28 to 51, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
53. The system of any one of claims 28 to 52, wherein codes of the long type are joined to obtain the final codes.
54. The system of any one of claims 28 to 53, wherein slot codes on same and single long are summated.
55. A method comprising: obtaining a corpus to be processed, an event set, slots, and a slot value to which the slot corresponds; marking event templates in the corpus of an event in the event set, the slots, and the slot values; performing weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; coding the event, types and number of the slots in the event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; screening the events and the event templates of weight of the event; matching and filling screened events and the event templates; CA 3165616 Date reçue / Received date 2024-07-04 39 generating news content; and reprocessing the news content to obtain final news content.
56. The method of claim 55, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
57. The method of claim 56, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
58. The method of claim 55, wherein the event includes a title, an abstract, and a text.
59. The method of claim 55, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
60. The method of claim 55, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; CA 3165616 Date reçue / Received date 2024-07-04 40 counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
61. The method of claim 55, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
62. The method of claim 55, wherein screening the event templates comprises: CA 3165616 Date reçue / Received date 2024-07-04 41 obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
63. The method of any one of claims 55 to 62, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
64. The method of any one of claims 55 to 62, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
65. The method of any one of claims 55 to 62, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
66. The method of any one of claims 55 to 65, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
67. The method of any one of claims 55 to 66, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
68. The method of any one of claims 55 to 67, wherein the coding type includes binary, octonary or decimal.
69. The method of any one of claims 55 to 68, wherein reprocessing modes includes manual reviewing and retouching and system rechecking. CA 3165616 Date reçue / Received date 2024-07-04 42 70. The method of any one of claims 55 to 69, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
71. The method of any one of claims 55 to 70, wherein the preset number of the sports news corpora is selected.
72. The method of any one of claims 55 to 71, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
73. The method of any one of claims 55 to 72, wherein the event set contains one or more event.
74. The method of any one of claims 55 to 73, wherein number of events contained in the event set are according to classifying standards of events.
75. The method of any one of claims 55 to 74, wherein the preset range includes a specific numerical value or a definitive statement.
76. The method of any one of claims 55 to 75, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
77. The method of any one of claims 55 to 76, wherein the coding is binary coding.
78. The method of any one of claims 55 to 77, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
79. The method of any one of claims 55 to 74, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
80. The method of any one of claims 55 to 74, wherein codes of the long type are joined to obtain the final codes. CA 3165616 Date reçue / Received date 2024-07-04 43 81. The method of any one of claims 55 to 74, wherein slot codes on same and single long are summated.
82. An electronic equipment comprising: at least one processor; a memory, connected with the at least one processor; wherein the memory stores an instruction executable by the at least one processor configured to: obtain a corpus to be processed, an event set, slots, and a slot value to which the slot corresponds; mark event templates in the corpus of an event in the event set, the slots, and the slot values; perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; code the event, types and number of the slots in the event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; screen the events and the event templates of weight of the event; match and filling screened events and the event templates; generate news content; and reprocess the news content to obtain final news content. CA 3165616 Date reçue / Received date 2024-07-04 44 83. The equipment of claim 82, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
84. The equipment of claim 83, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
85. The equipment of claim 82, wherein the event includes a title, an abstract, and a text.
86. The equipment of claim 82, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
87. The equipment of claim 82, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; CA 3165616 Date reçue / Received date 2024-07-04 45 determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
88. The equipment of claim 82, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
89. The equipment of claim 82, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; CA 3165616 Date reçue / Received date 2024-07-04 46 selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
90. The equipment of any one of claims 82 to 89, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
91. The equipment of any one of claims 82 to 89, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
92. The equipment of any one of claims 82 to 89, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
93. The equipment of any one of claims 82 to 92, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
94. The equipment of any one of claims 82 to 93, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
95. The equipment of any one of claims 82 to 94, wherein the coding type includes binary, octonary or decimal.
96. The equipment of any one of claims 82 to 95, wherein reprocessing modes includes manual reviewing and retouching and system rechecking. CA 3165616 Date reçue / Received date 2024-07-04 47 97. The equipment of any one of claims 82 to 96, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
98. The equipment of any one of claims 82 to 97, wherein the preset number of the sports news corpora is selected.
99. The equipment of any one of claims 82 to 98, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
100. The equipment of any one of claims 82 to 99, wherein the event set contains one or more event.
101. The equipment of any one of claims 82 to 100, wherein number of events contained in the event set are according to classifying standards of events.
102. The equipment of any one of claims 82 to 101, wherein the preset range includes a specific numerical value or a definitive statement.
103. The equipment of any one of claims 82 to 102, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
104. The equipment of any one of claims 82 to 103, wherein the coding is binary coding.
105. The equipment of any one of claims 82 to 104, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
106. The equipment of any one of claims 82 to 105, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
107. The equipment of any one of claims 82 to 106, wherein codes of the long type are joined to obtain the final codes. CA 3165616 Date reçue / Received date 2024-07-04 48 108. The equipment of any one of claims 82 to 107, wherein slot codes on same and single long are summated. 109.A computer readable physical memory having stored thereon a computer program executed by a computer configured to: obtain a corpus to be processed, an event set, slots, and a slot value to which the slot corresponds; mark event templates in the corpus of an event in the event set, the slots, and the slot values; perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; code the event, types and number of the slots in the event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; screen the events and the event templates of weight of the event; match and filling screened events and the event templates; generate news content; and reprocess the news content to obtain final news content.
110. The memory of claim 109, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and CA 3165616 Date reçue / Received date 2024-07-04 49 disposing the events in same and single set to obtain the event set.
111. The memory of claim 110, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
112. The memory of claim 109, wherein the event includes a title, an abstract, and a text.
113. The memory of claim 109, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
114. The memory of claim 109, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; CA 3165616 Date reçue / Received date 2024-07-04 50 traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
115. The memory of claim 109, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
116. The memory of claim 109, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
117. The memory of any one of claims 109 to 116, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input. CA 3165616 Date reçue / Received date 2024-07-04 51 118. The memory of any one of claims 109 to 116, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
119. The memory of any one of claims 109 to 116, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
120. The memory of any one of claims 109 to 119, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
121. The memory of any one of claims 109 to 120, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
122. The memory of any one of claims 109 to 121, wherein the coding type includes binary, octonary or decimal.
123. The memory of any one of claims 109 to 122, wherein reprocessing modes includes manual reviewing and retouching and system rechecking.
124. The memory of any one of claims 109 to 123, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
125. The memory of any one of claims 109 to 124, wherein the preset number of the sports news corpora is selected.
126. The memory of any one of claims 109 to 125, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
127. The memory of any one of claims 109 to 126, wherein the event set contains one or more event. CA 3165616 Date reçue / Received date 2024-07-04 52 128. The memory of any one of claims 109 to 127, wherein number of events contained in the event set are according to classifying standards of events.
129. The memory of any one of claims 109 to 128, wherein the preset range includes a specific numerical value or a definitive statement.
130. The memory of any one of claims 109 to 129, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
131. The memory of any one of claims 109 to 130, wherein the coding is binary coding.
132. The memory of any one of claims 109 to 131, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
133. The memory of any one of claims 109 to 132, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
134. The memory of any one of claims 109 to 133, wherein codes of the long type are joined to obtain the final codes.
135. The memory of any one of claims 109 to 134, wherein slot codes on same and single long are summated. 136.A device comprising: a weight assigning unit, configured to perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; CA 3165616 Date reçue / Received date 2024-07-04 53 a coding unit, configured to code the event, types and number of slots in event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; and a screening unit, configured to screen the events and the event templates of weight of the event.
137. The device of claim 136, further comprises: an obtaining unit, configured to obtain a corpus to be processed, an event set, the slots, and a slot value to which the slot corresponds; an event template marking unit, configured to mark the event templates in the corpus of an event in the event set, the slots, and the slot values; a news content generating unit, configured to: match and fill screened events and the event templates; generate news content; and a news content processing unit, configured to reprocess the news content to obtain final news content.
138. The device of claim 137, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
139. The device of claim 138, further comprises: CA 3165616 Date reçue / Received date 2024-07-04 54 judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
140. The device of claim 136, wherein the event includes a title, an abstract, and a text.
141. The device of claim 137, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
142. The device of claim 136, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; CA 3165616 Date reçue / Received date 2024-07-04 55 determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
143. The device of claim 136, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
144. The device of claim 136, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
145. The device of any one of claims 136 to 144, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
146. The device of any one of claims 136 to 144, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically. CA 3165616 Date reçue / Received date 2024-07-04 56 147. The device of any one of claims 136 to 144, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
148. The device of any one of claims 136 to 147, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
149. The device of any one of claims 136 to 148, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
150. The device of any one of claims 136 to 149, wherein the coding type includes binary, octonary or decimal.
151. The device of any one of claims 136 to 150, wherein reprocessing modes includes manual reviewing and retouching and system rechecking.
152. The device of any one of claims 136 to 151, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
153. The device of any one of claims 136 to 152, wherein the preset number of the sports news corpora is selected.
154. The device of any one of claims 136 to 153, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
155. The device of any one of claims 136 to 154, wherein the event set contains one or more event.
156. The device of any one of claims 136 to 155, wherein number of events contained in the event set are according to classifying standards of events. CA 3165616 Date reçue / Received date 2024-07-04 57 157. The device of any one of claims 136 to 156, wherein the preset range includes a specific numerical value or a definitive statement.
158. The device of any one of claims 136 to 157, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
159. The device of any one of claims 136 to 158, wherein the coding is binary coding.
160. The device of any one of claims 136 to 159, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
161. The device of any one of claims 136 to 160, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
162. The device of any one of claims 136 to 161, wherein codes of the long type are joined to obtain the final codes.
163. The device of any one of claims 136 to 162, wherein slot codes on same and single long are summated. 164.A system comprising: a weight assigning unit, configured to perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; a coding unit, configured to code the event, types and number of slots in event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; and CA 3165616 Date reçue / Received date 2024-07-04 58 a screening unit, configured to screen the events and the event templates of weight of the event.
165. The system of claim 164, further comprises: an obtaining unit, configured to obtain a corpus to be processed, an event set, the slots, and a slot value to which the slot corresponds; an event template marking unit, configured to mark the event templates in the corpus of an event in the event set, the slots, and the slot values; a news content generating unit, configured to: match and fill screened events and the event templates; generate news content; and a news content processing unit, configured to reprocess the news content to obtain final news content.
166. The system of claim 165, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
167. The system of claim 166, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value. CA 3165616 Date reçue / Received date 2024-07-04 59 168. The system of claim 164, wherein the event includes a title, an abstract, and a text.
169. The system of claim 165, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
170. The system of claim 164, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; CA 3165616 Date reçue / Received date 2024-07-04 60 moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
171. The system of claim 164, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
172. The system of claim 164, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
173. The system of any one of claims 164 to 172, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
174. The system of any one of claims 164 to 172, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically. CA 3165616 Date reçue / Received date 2024-07-04 61 175. The system of any one of claims 164 to 172, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
176. The system of any one of claims 164 to 175, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
177. The system of any one of claims 164 to 176, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
178. The system of any one of claims 164 to 177, wherein the coding type includes binary, octonary or decimal.
179. The system of any one of claims 164 to 178, wherein reprocessing modes includes manual reviewing and retouching and system rechecking.
180. The system of any one of claims 164 to 179, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
181. The system of any one of claims 164 to 180, wherein the preset number of the sports news corpora is selected.
182. The system of any one of claims 164 to 181, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
183. The system of any one of claims 164 to 182, wherein the event set contains one or more event.
184. The system of any one of claims 164 to 183, wherein number of events contained in the event set are according to classifying standards of events. CA 3165616 Date reçue / Received date 2024-07-04 62 185. The system of any one of claims 164 to 184, wherein the preset range includes a specific numerical value or a definitive statement.
186. The system of any one of claims 164 to 185, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
187. The system of any one of claims 164 to 186, wherein the coding is binary coding.
188. The system of any one of claims 164 to 187, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
189. The system of any one of claims 164 to 188, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
190. The system of any one of claims 164 to 189, wherein codes of the long type are joined to obtain the final codes.
191. The system of any one of claims 164 to 190, wherein slot codes on same and single long are summated. 192.A method comprising: performing weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; coding the event, types and number of slots in event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; and screening the events and the event templates of weight of the event. CA 3165616 Date reçue / Received date 2024-07-04 63 193. The method of claim 192, further comprises: obtaining a corpus to be processed, an event set, the slots, and a slot value to which the slot corresponds; marking the event templates in the corpus of an event in the event set, the slots, and the slot values; matching and filling screened events and the event templates; generating news content; and reprocessing the news content to obtain final news content.
194. The method of claim 193, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
195. The method of claim 194, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
196. The method of claim 192, wherein the event includes a title, an abstract, and a text.
197. The method of claim 193, wherein performing the weight assignment on the event comprises: CA 3165616 Date reçue / Received date 2024-07-04 64 dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
198. The method of claim 192, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
199. The method of claim 192, wherein screening the events comprises: CA 3165616 Date reçue / Received date 2024-07-04 65 obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
200. The method of claim 192, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
201. The method of any one of claims 192 to 200, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
202. The method of any one of claims 192 to 200, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
203. The method of any one of claims 192 to 200, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
204. The method of any one of claims 192 to 203, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl. CA 3165616 Date reçue / Received date 2024-07-04 66 205. The method of any one of claims 192 to 204, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
206. The method of any one of claims 192 to 205, wherein the coding type includes binary, octonary or decimal.
207. The method of any one of claims 192 to 206, wherein reprocessing modes includes manual reviewing and retouching and system rechecking.
208. The method of any one of claims 192 to 207, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
209. The method of any one of claims 192 to 208, wherein the preset number of the sports news corpora is selected.
210. The method of any one of claims 192 to 209, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
211. The method of any one of claims 192 to 210, wherein the event set contains one or more event.
212. The method of any one of claims 192 to 211, wherein number of events contained in the event set are according to classifying standards of events.
213. The method of any one of claims 192 to 212, wherein the preset range includes a specific numerical value or a definitive statement.
214. The method of any one of claims 192 to 213, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
215. The method of any one of claims 192 to 214, wherein the coding is binary coding. CA 3165616 Date reçue / Received date 2024-07-04 67 216. The method of any one of claims 192 to 215, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
217. The method of any one of claims 192 to 216, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
218. The method of any one of claims 192 to 217, wherein codes of the long type are joined to obtain the final codes.
219. The method of any one of claims 192 to 218, wherein slot codes on same and single long are summated. 220.An electronic equipment comprising: at least one processor; a memory, connected with the at least one processor; wherein the memory stores an instruction executable by the at least one processor configured to: perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; code the event, types and number of slots in event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; and screen the events and the event templates of weight of the event.
221. The equipment of claim 220, further comprises: CA 3165616 Date reçue / Received date 2024-07-04 68 obtaining a corpus to be processed, an event set, the slots, and a slot value to which the slot corresponds; marking the event templates in the corpus of an event in the event set, the slots, and the slot values; matching and filling screened events and the event templates; generating news content; and reprocessing the news content to obtain final news content.
222. The equipment of claim 221, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
223. The equipment of claim 222, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
224. The equipment of claim 220, wherein the event includes a title, an abstract, and a text.
225. The equipment of claim 221, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; CA 3165616 Date reçue / Received date 2024-07-04 69 constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
226. The equipment of claim 220, wherein coding the event, the types, and the number of the slots in the event templates comprises: obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
227. The equipment of claim 220, wherein screening the events comprises: obtaining a corresponding weight of the event; CA 3165616 Date reçue / Received date 2024-07-04 70 comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
228. The equipment of claim 220, wherein screening the event templates comprises: obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
229. The equipment of any one of claims 220 to 228, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
230. The equipment of any one of claims 220 to 228, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
231. The equipment of any one of claims 220 to 228, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
232. The equipment of any one of claims 220 to 231, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl. CA 3165616 Date reçue / Received date 2024-07-04 71 233. The equipment of any one of claims 220 to 232, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
234. The equipment of any one of claims 220 to 233, wherein the coding type includes binary, octonary or decimal.
235. The equipment of any one of claims 220 to 234, wherein reprocessing modes includes manual reviewing and retouching and system rechecking.
236. The equipment of any one of claims 220 to 235, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
237. The equipment of any one of claims 220 to 236, wherein the preset number of the sports news corpora is selected.
238. The equipment of any one of claims 220 to 237, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
239. The equipment of any one of claims 220 to 238, wherein the event set contains one or more event.
240. The equipment of any one of claims 220 to 239, wherein number of events contained in the event set are according to classifying standards of events.
241. The equipment of any one of claims 220 to 240, wherein the preset range includes a specific numerical value or a definitive statement.
242. The equipment of any one of claims 220 to 241, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
243. The equipment of any one of claims 220 to 242, wherein the coding is binary coding. CA 3165616 Date reçue / Received date 2024-07-04 72 244. The equipment of any one of claims 220 to 243, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
245. The equipment of any one of claims 220 to 244, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
246. The equipment of any one of claims 220 to 245, wherein codes of the long type are joined to obtain the final codes.
247. The equipment of any one of claims 220 to 246, wherein slot codes on same and single long are summated. 248.A computer readable physical memory having stored thereon a computer program executed by a computer configured to: perform weight assignment on the event, including setting, with mapping, the weight of the event to which the mapping corresponds with section of the corpus of the events; code the event, types and number of slots in event templates, includes determining a total number of the slots and maximum number of times for which the slots appear in the event template; and screen the events and the event templates of weight of the event.
249. The memory of claim 248, further comprises: obtaining a corpus to be processed, an event set, the slots, and a slot value to which the slot corresponds; marking the event templates in the corpus of an event in the event set, the slots, and the slot values; CA 3165616 Date reçue / Received date 2024-07-04 73 matching and filling screened events and the event templates; generating news content; and reprocessing the news content to obtain final news content.
250. The memory of claim 249, wherein obtaining the event set, the slots, and the slot value to which the slot corresponds comprises: obtaining a preset number of sports news corpora; processing the sports news corpora to obtain the events, the slots, and the slot value to which the slot corresponds; and disposing the events in same and single set to obtain the event set.
251. The memory of claim 250, further comprises: judging the event, the slot, and the slot value conform to a preset range; wherein yes, retaining the event, the slot, and the slot value; and wherein not, deleting the event, the slot, or the slot value.
252. The memory of claim 248, wherein the event includes a title, an abstract, and a text.
253. The memory of claim 249, wherein performing the weight assignment on the event comprises: dividing the corpus of the events to obtain plural sections; constructing, with the event, the mapping between the event and the section; and setting, with the mapping, the weight of the event to which the mapping corresponds.
254. The memory of claim 248, wherein coding the event, the types, and the number of the slots in the event templates comprises: CA 3165616 Date reçue / Received date 2024-07-04 74 obtaining the event templates and the events to be coded; counting the event templates, the types and the number of the slots in the events of regular matching; determining a total number m of the slots and maximum number of times n for which the slots appear in the event template; determining the slot assigned with n number of binary digits for representation of the maximum number of times for which the slots appear, wherein n is a divisor of 64; determining long types of a coding type and number x of codes of total number of the slots and number of binary digits assigned to the slot, wherein x=[(m*n) / 64]+1; traversing the slot in the event templates; performing binary coding on number of slots of a current slot; determining the current slot is coded at yth long type of an index address i of the current slot, wherein y=i / (64 / n)+1; moving binary representation of the number of slots leftwards for p times, wherein p=(i- (y-1)*(64 / n))*n; and joining codes of the long type to obtain final codes.
255. The memory of claim 248, wherein screening the events comprises: obtaining a corresponding weight of the event; comparing the weight with a preset threshold; retaining any event whose weight is greater than the preset threshold; and eliminating remaining events.
256. The memory of claim 248, wherein screening the event templates comprises: CA 3165616 Date reçue / Received date 2024-07-04 75 obtaining the screened events and codes corresponding, and the codes to which the event templates correspond in the events; selecting one or more event templates with maximum number of slots to serve as candidate event templates; and randomly selecting one event template from the candidate event templates to serve as the event template to be filled.
257. The memory of any one of claims 248 to 256, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds to an equipment is manually input.
258. The memory of any one of claims 248 to 256, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by an equipment automatically.
259. The memory of any one of claims 248 to 256, wherein the corpus to be processed, the event set, the slots, and the slot value to which the slot corresponds is obtained by a server using automatically crawl.
260. The memory of any one of claims 248 to 259, wherein performing the weight assignment on the event, includes manual input, the equipment to automatically obtain and the server to automatically crawl.
261. The memory of any one of claims 248 to 260, wherein coding the event, the types and the number of the slots in the event templates, include manual input, the equipment to automatically obtain and the server to automatically crawl.
262. The memory of any one of claims 248 to 261, wherein the coding type includes binary, octonary or decimal.
263. The memory of any one of claims 248 to 262, wherein reprocessing modes includes manual reviewing and retouching and system rechecking. CA 3165616 Date reçue / Received date 2024-07-04 76 264. The memory of any one of claims 248 to 263, wherein obtaining the preset number of the sports news corpora includes manual input, the equipment to automatically obtain and the server to automatically crawl.
265. The memory of any one of claims 248 to 264, wherein the preset number of the sports news corpora is selected.
266. The memory of any one of claims 248 to 265, wherein the preset number of the sports news corpora includes one, 1000 and 100000 pieces.
267. The memory of any one of claims 248 to 266, wherein the event set contains one or more event.
268. The memory of any one of claims 248 to 267, wherein number of events contained in the event set are according to classifying standards of events.
269. The memory of any one of claims 248 to 268, wherein the preset range includes a specific numerical value or a definitive statement.
270. The memory of any one of claims 248 to 269, wherein obtaining event templates and the events to be coded includes manual input, the equipment to automatically and the server to automatically crawl.
271. The memory of any one of claims 248 to 270, wherein the coding is binary coding.
272. The memory of any one of claims 248 to 271, wherein long type is for coding, wherein one piece of long type consists of 64 bits, wherein n is a divisor of 64.
273. The memory of any one of claims 248 to 272, wherein 2 pieces of long type is required to code the event templates and the slots in the corpus, wherein the 2 pieces of long type is initialized as 0.
274. The memory of any one of claims 248 to 273, wherein codes of the long type are joined to obtain the final codes. CA 3165616 Date reçue / Received date 2024-07-04 77 275. The memory of any one of claims 248 to 274, wherein slot codes on same and single long are summated. CA 3165616 Date reçue / Received date 2024-07-04