Sports news writing method and device based on natural language and electronic equipment

A technology of natural language and news, applied in the field of devices and electronic equipment, and sports news writing methods, can solve the problems of less information in articles, poor diversity of matching results, and low efficiency of traversal matching strategies, and achieve efficient automatic writing and article information Maximize and reduce the effect of labor cost input

Pending Publication Date: 2020-05-22
SUNING CLOUD COMPUTING CO LTD
View PDF2 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

For example, when matching the first template above, it can be successfully matched, but using the first template will cause the EVEINF_LOC_FROM and EVEINF_BODY information will not be filled, and the generated article information will be less
Therefore, the traversal matching strategy is not only inefficient, but also the diversity of matching results is poor

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Sports news writing method and device based on natural language and electronic equipment
  • Sports news writing method and device based on natural language and electronic equipment
  • Sports news writing method and device based on natural language and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0075] like figure 1 , in the embodiment of the present application, the present application provides a method for writing sports news based on natural language, the method includes steps:

[0076] Step S101: Obtain the corpus to be processed, event set, slots, and slot values ​​corresponding to each slot.

[0077] In this step, there are many ways to obtain the corpus to be processed, the event set, the slot and the slot value corresponding to each slot. For example, the pre-set corpus to be processed, event set, The slots and the slot values ​​corresponding to each slot can also automatically obtain the preset corpus to be processed, event collection, slots and the slot values ​​corresponding to each slot through the device, and the server can also automatically grab (For example, using a crawler to crawl) the pre-set corpus to be processed, event collection, slots, and slot values ​​corresponding to each slot. This application does not limit this method.

[0078] Step S10...

Embodiment 2

[0093] like figure 2 , in the embodiment of the present application, the acquisition of event sets, slots, and slot values ​​corresponding to each slot in step S101 includes steps:

[0094] Step S201: Obtain a preset amount of sports news corpus.

[0095] In this step, there are many ways to obtain the preset amount of sports news corpus, for example, the preset amount of sports news corpus can be manually input to the device, or the preset amount of sports news corpus can be automatically obtained through the device, or The server can automatically crawl (for example, use a crawler to crawl) a preset amount of sports news corpus, and this application does not limit this method.

[0096] In this step, theoretically, the preset number can be 1 or 100,000, but considering the amount of data processing and the accuracy of the results, the preset number can be selected as 1,000.

[0097] Among them, two sports news corpus are selected for illustration, as follows:

[0098] Spo...

Embodiment 3

[0111] like image 3 , in the embodiment of the present application, after processing the sports news corpus in step S202 to obtain all events, slots and the slot values ​​corresponding to each slot, the steps further include:

[0112] Step S301: Determine whether each event, each slot, and the value of each slot conform to a preset range.

[0113] Step S302: If yes, retain the event, the slot and the value of the slot.

[0114] Step S303: If not, delete the event, slot or slot value.

[0115] After the above steps S301-S303, each event, each slot and the value of each slot in step S202 can be judged to determine whether it meets the preset range, and the operation of elimination or retention can be performed.

[0116] Specifically, the preset range may be a specific numerical value, or it may be a descriptive language. For example, multiple events can be selected from 1000 sports news as "shooting", "goal" and "free throw". As a result, the event of "free throw" can be el...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a sports news writing method and device based on a natural language and electronic equipment. The method comprises the following steps: obtaining a corpus to be processed, an event set, slot positions and slot position values corresponding to the slot positions; marking an event template in the corpus according to each event in the event set, the slot positions and the slotposition values; carrying out weight assignment on each event; encoding the types and the number of the slot positions in each event and the event template; screening the events and the event templateaccording to the weight of each event; matching and filling the screened events with the event template to generate news content; and reprocessing the news content to obtain final news content. By the adoption of the method, the diversity of sentence patterns of articles is improved, and the amount of information of the articles is maximized; sports news articles can be efficiently and automatically written, and labor cost investment is reduced.

Description

technical field [0001] The invention belongs to the technical field of natural language processing, and in particular relates to a sports news writing method, device and electronic equipment based on natural language. Background technique [0002] When the existing template traversal matching strategy matches event data and templates, it needs to compare the slots and the number of slots in the templates one by one until a suitable template is found. For example, a piece of data for a goal event is: {ORG_NEU: Newcastle United, PER_ACT: Scheer, EVEINF_LOC_FROM: center outside the penalty area, EVEINF_BODY: right foot, EVEINF_LOC_TO: upper right corner of the goal}, this data contains five slots, when matching When creating a template, assume that the goal event has the following partial templates: [0003] {ORG_NEU} scored a goal! {PER_ACT} shot into goal from {EVEINF_LOC_TO} [0004] {ORG_NEU} scored a goal! {PER_ACT}{EVEINF_LOC_FROM}{EVEINF_BODY} takes a shot and the ba...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F40/186
CPCG06F40/186
Inventor 周金娟沈艺倪合强齐康梁诗雯
Owner SUNING CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products