CN111008522A - Automatic article writing method and device, computer equipment and storage medium - Google Patents

Automatic article writing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN111008522A
CN111008522A CN201911268719.2A CN201911268719A CN111008522A CN 111008522 A CN111008522 A CN 111008522A CN 201911268719 A CN201911268719 A CN 201911268719A CN 111008522 A CN111008522 A CN 111008522A
Authority
CN
China
Prior art keywords
article
slot position
data
variable
theme
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911268719.2A
Other languages
Chinese (zh)
Inventor
吴佳军
王力玄
毛康
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dasou Vehicle Software Technology Co Ltd
Original Assignee
Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dasou Vehicle Software Technology Co Ltd filed Critical Zhejiang Dasou Vehicle Software Technology Co Ltd
Priority to CN201911268719.2A priority Critical patent/CN111008522A/en
Publication of CN111008522A publication Critical patent/CN111008522A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/33Querying
    • G06F16/335Filtering based on additional data, e.g. user or group profiles
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/30Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
    • G06F16/35Clustering; Classification

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application relates to an automatic article writing method, an automatic article writing device, a computer device and a storage medium. The method comprises the following steps: obtaining the theme type of an article to be written; searching an article template corresponding to the theme type according to the theme type; searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template; and generating the article with the corresponding theme type according to the content information and the article template. By adopting the method, the corresponding article template can be selected based on the theme type of the article to be written, the content information of the corresponding article template in the database is searched, and the article with the corresponding theme type is generated according to the content information and the article template, so that the automatic writing of the article can be realized, some contents can be edited and created instead of editing, the pressure of content production is solved, the article generation efficiency is high, and the cost is low.

Description

Automatic article writing method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of information processing technologies, and in particular, to an automatic article writing method, an automatic article writing apparatus, a computer device, and a storage medium.
Background
With the development of economic level and the improvement of living standard of people, the annual sales volume of automobiles in the whole country in recent three years exceeds 2000 ten thousand, a large number of users need to know enough information related to the automobiles when making purchasing decisions, and the article is a main channel for the users to know the automobile information at present. Generally, the process of selecting questions, searching materials, auditing the materials, arranging the materials, organizing pens and auditing finished texts is needed to edit and write one article, and the edited and written article can only write 2-3 articles even if the structure is simple, so that the efficiency is low. In addition, the editing of articles in part categories needs to be written repeatedly, although the types of the articles are simple, the editing is very painful when the same article is repeated every day, the enthusiasm of content creation cannot be exerted, and the waste of human resources is caused.
Disclosure of Invention
In view of the above, it is necessary to provide an automatic article writing method, an apparatus, a computer device, and a storage medium capable of automatically writing an article, in view of the above technical problems.
A method of automatically composing an article, the method comprising:
obtaining the theme type of an article to be written;
searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and generating the article with the corresponding theme type according to the content information and the article template.
In one embodiment, basic data of a field to which an article to be written belongs is acquired;
screening the basic data to obtain effective data;
acquiring official data, and matching the effective data with the official data to obtain real data;
and storing the real data according to a preset rule.
In one embodiment, the real data is classified according to data variables, condition variables and text variables, and is stored in a database in an associated manner.
In one embodiment, the monthly sales volume of each brand of vehicle is obtained according to the real data;
calculating the monthly sales change rate of each brand of vehicle according to the monthly sales volume of each brand of vehicle;
storing the monthly sales change rate for each brand of vehicle as a condition variable.
In one embodiment, the monthly sales volume of each vehicle type is obtained according to real data and/or condition variables;
calculating the monthly sales change rate of each vehicle type according to the monthly sales volume of each vehicle type;
the monthly sales change rate of each vehicle model is stored as a data variable.
In one of the embodiments, the first and second electrodes are,
acquiring monthly sales volume of each brand of vehicle according to the real data and/or the condition variable;
and sequencing according to the monthly sales volume of each brand of vehicle, and storing the sequencing result in a text variable.
In one embodiment, slot position information of the article template is searched according to the article template;
acquiring corresponding content information in a database according to the slot position information;
and filling the content information into the corresponding slot position.
An automatic article writing apparatus, the apparatus comprising:
the theme acquisition module is used for acquiring the theme type of the article to be written;
the template searching module is used for searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
the content retrieval module is used for searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and the article generating module is used for generating articles with corresponding theme types according to the content information and the article template.
A computer device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
obtaining the theme type of an article to be written;
searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and generating the article with the corresponding theme type according to the content information and the article template.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
obtaining the theme type of an article to be written;
searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and generating the article with the corresponding theme type according to the content information and the article template.
The method, the device, the computer equipment and the storage medium for automatically writing the article select the corresponding article template based on the theme type of the article to be written, search the content information of the corresponding article template in the database, and generate the article with the corresponding theme type according to the content information and the article template, so that the automatic writing of the article is realized, some contents can be edited instead of editing and created, the pressure of content production is solved, and the article generation efficiency is high and the cost is low.
Drawings
FIG. 1 is a flow chart illustrating an automatic article writing method according to an embodiment;
FIG. 2 is a block diagram showing the construction of an automatic document writing apparatus according to an embodiment;
FIG. 3 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The automatic article writing method can be applied to computer equipment. The computer device may be a personal computer, a notebook computer, a smart phone, a tablet computer, a portable wearable device, a server, or a server cluster composed of a plurality of servers.
In one embodiment, as shown in fig. 1, there is provided an automatic article writing method, which is described by taking the method as an example applied to a computer device, and comprises the following steps:
step 102, obtaining the theme type of the article to be written.
Wherein the topic type is a central topic of the article, such as a SUV sales leaderboard, Hangzhou region BMW 3 series promotion information, new car marketing or other topics.
Specifically, the computer device obtains a topic type of an article to be written, which is input by a user. In one embodiment, a user selects a topic type of an article to be composed on an operation interface.
And 104, searching an article template corresponding to the theme type according to the theme type.
The article template comprises a fixed sentence pattern slot, a theme variable slot, a data variable slot, a condition variable slot and a text variable slot.
Specifically, the computer equipment selects the corresponding authoring interfaces according to different theme types, and selects the article templates in the authoring interfaces according to the theme types. In one embodiment, the computer equipment selects a corresponding authoring interface according to different theme types, and obtains theme variables in a corresponding database through the theme types; and selecting an article template in the authoring interface, and inputting the theme variable into the theme variable slot of the article template. The article template includes official version, self-media version, vendor version or other version. The theme variables can be the brand of the vehicle, the type of the vehicle, the series of the vehicle, and the like.
And 106, searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template.
Specifically, according to the article template, slot position information of the article template is searched; acquiring corresponding content information in a database according to the slot position information; and filling the content information into the corresponding slot position. More specifically, the computer device obtains corresponding fixed sentence patterns, theme variables, data variables, condition variables and text variables in the database according to the theme types, and fills the fixed sentence pattern slot positions, the theme variable slot positions, the data variable slot positions, the condition variable slot positions and the text variable slot positions corresponding to the article template. Wherein the fixed sentence pattern is a specific sentence for a usage scenario; the theme variables are parameters corresponding to the theme types; the data variable is a numerical value; the condition variable is a descriptive statement of a judgment condition; the text variable is a description in text form.
Before the searching the corresponding database fills the corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template, the method comprises the following steps: acquiring basic data of a field to which an article to be written belongs; screening the basic data to obtain effective data; acquiring official data, and matching the effective data with the official data to obtain real data; and storing the real data according to a preset rule.
Wherein the official data are automotive industry association data and brand official website data.
Specifically, the computer equipment acquires the field to which the article to be written belongs, acquires basic data about the field to which the article to be written belongs in a network through a search engine, cleans the basic data, and eliminates noise data in the basic data to obtain effective data. And acquiring official data, and matching the effective data with the official data to obtain real data. And associating the real data according to a preset rule, and storing the associated real data in a database. In one embodiment, the area in which the article to be written belongs is the automobile area, content information about the automobile area in the network is obtained through a search engine, and the obtained basic data comprises data of automobile type, manufacturer, country, level, structure, configuration table, guide price, real-time price, monthly sales volume and the like. Among a plurality of data sources, the data source with the earliest data updating time is obtained, and content publishing is facilitated. And eliminating the noise data in the basic data to obtain effective data. Official data are obtained, and part of valid data related to configuration and sales volume are matched with automobile industry association data and brand official network data to obtain real data. And associating the real data according to the association rule of the brand, the vehicle type and the vehicle money, and storing the associated real data into a corresponding database. It is understood that the field may also be the field of mobile phones, the field of computer hardware, or other fields.
The storing the real data according to a preset rule comprises: and classifying the real data according to the data variable, the condition variable and the text variable, and storing the real data in a database in a correlation manner.
Specifically, the classifying the real data according to a data variable, a condition variable and a text variable and storing the real data in a database in an associated manner includes: the method comprises the steps of obtaining the monthly sales volume of each brand of vehicle according to real data, calculating the monthly sales change rate of each brand of vehicle according to the monthly sales volume of each brand of vehicle, and storing the monthly sales change rate of each brand of vehicle as a condition variable. In one embodiment, the popular lunar sales volume is obtained, the change rate of the popular lunar sales volume is calculated, and the popular lunar sales change is stored to the database by the condition variable.
The classifying the real data according to the data variable, the condition variable and the text variable, and the associating and storing to the database further comprises: acquiring monthly sales volume of each vehicle type according to the real data and/or the condition variable; calculating the monthly sales change rate of each vehicle type according to the monthly sales volume of each vehicle type; the monthly sales change rate of each vehicle model is stored as a data variable. In one embodiment, monthly sales data for 5 months and 6 months of the SUV model are obtained according to the real data or condition variables, and the change rate of the data of the SUV sales for 6 months compared with the SUV sales for 5 months is calculated. In another embodiment, monthly sales data for 5 months and 6 months of the SUV model are obtained based on the real data and the condition variables, and the rate of change of the data for the SUV sales for 6 months compared to the SUV sales for 5 months is calculated.
The classifying the real data according to the data variable, the condition variable and the text variable, and the associating and storing to the database further comprises: acquiring monthly sales volume of each brand of vehicle according to the real data and/or the condition variable; and sequencing according to the monthly sales volume of each brand of vehicle, and storing the sequencing result in a text variable. In one embodiment, monthly sales volumes for each brand of vehicle are obtained based on the real data or condition variables, and ranked according to the monthly sales volumes for each brand of vehicle. The ranking mode can be that the sales volume of the vehicle brand is ranked from high to low or low to high, the sales volume of the vehicle type is ranked from high to low or low to high, the sales volume of the vehicle series is ranked from high to low or low to high, or other criteria.
In one embodiment, corresponding fixed sentence patterns are generated based on the version of the article template. If the article template is official edition, the official kouming is adopted to generate a corresponding fixed sentence pattern, such as: recently, the industry and the credit department released new-period automobile sales data. If the article template is a self-media version, a self-media kiss is adopted to generate a corresponding fixed sentence pattern, such as: the car sales data for month 6 came out, and pacho brought the car model analysis of the first time for you. Corresponding sentence patterns are established in advance, preset sentence patterns under corresponding use scenes are called according to the use scenes of the theme types, corresponding fixed sentence patterns are generated and stored in a database, and corresponding fixed sentence patterns are formulated according to different use scenes, so that persuasion of articles is enhanced.
And 108, generating an article with a corresponding theme type according to the content information and the article template.
The method further comprises the following steps: storing the article to a database of the corresponding topic type; and acquiring release information, and releasing the article according to the release information.
Specifically, the computer device stores the generated article in a database corresponding to the article topic type. And when the release information is received, calling the corresponding article according to the release information, and releasing the article on the network platform. It is understood that the network platform may be a web site, a self-media platform, an official platform, or other platform.
In one embodiment, a user selects a theme type of an article to be written, selects an article template corresponding to the theme type, obtains content information corresponding to the theme type, searches a corresponding database to fill corresponding content information into a fixed sentence pattern slot, a theme variable slot, a data variable slot, a condition variable slot and a text variable slot of the article template, selects corresponding content information, and inputs the corresponding content information into the article template to generate the article of the corresponding theme type. And storing the generated articles into a database corresponding to the topic types of the articles. And when the release information is received, calling the corresponding article according to the release information, and releasing the article in the network platform.
In the automatic article writing method, based on the theme type of the article to be written, the corresponding article template is selected, the content information of the corresponding article template in the database is searched, and the article with the corresponding theme type is generated according to the content information and the article template, so that the automatic writing of the article is realized, some contents can be edited and created instead of editing, the pressure of content production is solved, and the article generation efficiency is high and the cost is low.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 1 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 2, there is provided an automatic article writing apparatus including: a topic acquisition module 210, a template search module 220, a content retrieval module 230, and an article generation module 240, wherein:
the topic obtaining module 210 is configured to obtain a topic type of an article to be written.
The template searching module 220 is configured to search an article template of a corresponding topic type according to the topic type; the article template comprises a fixed sentence pattern slot, a theme variable slot, a data variable slot, a condition variable slot and a text variable slot.
The content retrieval module 230 is configured to search a corresponding database to fill corresponding content information into the fixed sentence pattern slot, the theme variable slot, the data variable slot, the condition variable slot, and the text variable slot of the article template.
The article generating module 240 is configured to generate an article of a corresponding topic type according to the content information and the article template.
The content retrieval module 230 is further configured to obtain basic data of a field to which the article to be written belongs; screening the basic data to obtain effective data; acquiring official data, and matching the effective data with the official data to obtain real data; and storing the real data according to a preset rule.
The content retrieving module 230 is further configured to classify the real data according to data variables, condition variables, and text variables, and store the real data in a database in an associated manner.
The content retrieval module 230 is further configured to obtain monthly sales volume of each brand of vehicle according to the real data; calculating the monthly sales change rate of each brand of vehicle according to the monthly sales volume of each brand of vehicle; storing the monthly sales change rate for each brand of vehicle as a condition variable.
The content retrieval module 230 is further configured to obtain monthly sales volume of each vehicle type according to the real data and/or the condition variable; calculating the monthly sales change rate of each vehicle type according to the monthly sales volume of each vehicle type; the monthly sales change rate of each vehicle model is stored as a data variable.
The content retrieval module 230 is further configured to obtain monthly sales volume of each brand of vehicle according to the real data and/or the condition variables; and sequencing according to the monthly sales volume of each brand of vehicle, and storing the sequencing result in a text variable.
The content retrieval module 230 is further configured to search slot information of the article template according to the article template; acquiring corresponding content information in a database according to the slot position information; and filling the content information into the corresponding slot position.
For the specific definition of the automatic article writing device, reference may be made to the above definition of the automatic article writing method, which is not described herein again. The modules in the automatic writing apparatus of the above article can be wholly or partially implemented by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, the internal structure of which may be as shown in fig. 3. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing the automatic writing data of the article. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an automatic article writing method.
Those skilled in the art will appreciate that the architecture shown in fig. 3 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory and a processor, the memory having a computer program stored therein, the processor implementing the following steps when executing the computer program:
obtaining the theme type of an article to be written;
searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and generating the article with the corresponding theme type according to the content information and the article template.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring basic data of a field to which an article to be written belongs;
screening the basic data to obtain effective data;
acquiring official data, and matching the effective data with the official data to obtain real data;
and storing the real data according to a preset rule.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and classifying the real data according to the data variable, the condition variable and the text variable, and storing the real data in a database in a correlation manner.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring monthly sales volume of each brand of vehicle according to the real data;
calculating the monthly sales change rate of each brand of vehicle according to the monthly sales volume of each brand of vehicle;
storing the monthly sales change rate for each brand of vehicle as a condition variable.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring monthly sales volume of each vehicle type according to the real data and/or the condition variable;
calculating the monthly sales change rate of each vehicle type according to the monthly sales volume of each vehicle type;
the monthly sales change rate of each vehicle model is stored as a data variable.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
acquiring monthly sales volume of each brand of vehicle according to the real data and/or the condition variable;
and sequencing according to the monthly sales volume of each brand of vehicle, and storing the sequencing result in a text variable.
In one embodiment, the processor, when executing the computer program, further performs the steps of: searching slot position information of the article template according to the article template;
acquiring corresponding content information in a database according to the slot position information;
and filling the content information into the corresponding slot position.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
obtaining the theme type of an article to be written;
searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and generating the article with the corresponding theme type according to the content information and the article template.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring basic data of a field to which an article to be written belongs;
screening the basic data to obtain effective data;
acquiring official data, and matching the effective data with the official data to obtain real data;
and storing the real data according to a preset rule.
In one embodiment, the computer program when executed by the processor further performs the steps of: and classifying the real data according to the data variable, the condition variable and the text variable, and storing the real data in a database in a correlation manner.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring monthly sales volume of each brand of vehicle according to the real data;
calculating the monthly sales change rate of each brand of vehicle according to the monthly sales volume of each brand of vehicle;
storing the monthly sales change rate for each brand of vehicle as a condition variable.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring monthly sales volume of each vehicle type according to the real data and/or the condition variable;
calculating the monthly sales change rate of each vehicle type according to the monthly sales volume of each vehicle type;
the monthly sales change rate of each vehicle model is stored as a data variable.
In one embodiment, the computer program when executed by the processor further performs the steps of: acquiring monthly sales volume of each brand of vehicle according to the real data and/or the condition variable;
and sequencing according to the monthly sales volume of each brand of vehicle, and storing the sequencing result in a text variable.
In one embodiment, the computer program when executed by the processor further performs the steps of: searching slot position information of the article template according to the article template;
acquiring corresponding content information in a database according to the slot position information;
and filling the content information into the corresponding slot position.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A method for automatically composing an article, the method comprising:
obtaining the theme type of an article to be written;
searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and generating the article with the corresponding theme type according to the content information and the article template.
2. The method of claim 1, wherein the searching the corresponding database before populating the corresponding content information with the fixed sentence slot, the subject variable slot, the data variable slot, the condition variable slot, and the text variable slot of the article template comprises:
acquiring basic data of a field to which an article to be written belongs;
screening the basic data to obtain effective data;
acquiring official data, and matching the effective data with the official data to obtain real data;
and storing the real data according to a preset rule.
3. The method according to claim 2, wherein the storing the real data according to a preset rule comprises:
and classifying the real data according to the data variable, the condition variable and the text variable, and storing the real data in a database in a correlation manner.
4. The method of claim 3, wherein classifying the real data according to data variables, condition variables, and text variables and storing the association to a database comprises:
acquiring monthly sales volume of each brand of vehicle according to the real data;
calculating the monthly sales change rate of each brand of vehicle according to the monthly sales volume of each brand of vehicle;
storing the monthly sales change rate for each brand of vehicle as a condition variable.
5. The method of claim 4, wherein classifying the real data according to data variables, condition variables, and text variables and storing the real data in association with a database comprises:
acquiring monthly sales volume of each vehicle type according to the real data and/or the condition variable;
calculating the monthly sales change rate of each vehicle type according to the monthly sales volume of each vehicle type;
the monthly sales change rate of each vehicle model is stored as a data variable.
6. The method of claim 5, wherein classifying the real data according to data variables, condition variables, and text variables and storing the association to a database comprises:
acquiring monthly sales volume of each brand of vehicle according to the real data and/or the condition variable;
and sequencing according to the monthly sales volume of each brand of vehicle, and storing the sequencing result in a text variable.
7. The method of claim 1, wherein the searching the corresponding database to populate the corresponding content information with the fixed sentence slot, the subject variable slot, the data variable slot, the condition variable slot, and the text variable slot of the article template comprises:
searching slot position information of the article template according to the article template;
acquiring corresponding content information in a database according to the slot position information;
and filling the content information into the corresponding slot position.
8. An apparatus for automatically composing an article, the apparatus comprising:
the theme acquisition module is used for acquiring the theme type of the article to be written;
the template searching module is used for searching an article template corresponding to the theme type according to the theme type; the article template comprises a fixed sentence pattern slot position, a theme variable slot position, a data variable slot position, a condition variable slot position and a text variable slot position;
the content retrieval module is used for searching a corresponding database to fill corresponding content information into the fixed sentence pattern slot position, the theme variable slot position, the data variable slot position, the condition variable slot position and the text variable slot position of the article template;
and the article generating module is used for generating articles with corresponding theme types according to the content information and the article template.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911268719.2A 2019-12-11 2019-12-11 Automatic article writing method and device, computer equipment and storage medium Pending CN111008522A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911268719.2A CN111008522A (en) 2019-12-11 2019-12-11 Automatic article writing method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911268719.2A CN111008522A (en) 2019-12-11 2019-12-11 Automatic article writing method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111008522A true CN111008522A (en) 2020-04-14

Family

ID=70114307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911268719.2A Pending CN111008522A (en) 2019-12-11 2019-12-11 Automatic article writing method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111008522A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835577A (en) * 2021-01-28 2021-05-25 北京百家科技集团有限公司 Data processing method, data processing device, computer equipment and readable storage medium
CN113449196A (en) * 2021-07-16 2021-09-28 北京天眼查科技有限公司 Information generation method and device, electronic equipment and readable storage medium
CN113609263A (en) * 2021-09-30 2021-11-05 网娱互动科技(北京)股份有限公司 Method and system for automatically generating articles
CN113836301A (en) * 2021-09-26 2021-12-24 北京凤凰天博网络技术有限公司 Automatic generation method of house property articles
CN115270725A (en) * 2022-07-04 2022-11-01 温州佳合标准化信息技术事务所 Method, system, device and medium for automatically converting standard format
CN116933751A (en) * 2023-06-30 2023-10-24 北京百度网讯科技有限公司 Article generation method and device, electronic equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110282649A1 (en) * 2010-05-13 2011-11-17 Rene Waksberg Systems and methods for automated content generation
CN106874248A (en) * 2017-01-22 2017-06-20 百度在线网络技术(北京)有限公司 article generation method and device based on artificial intelligence
CN107153978A (en) * 2016-03-02 2017-09-12 腾讯科技(北京)有限公司 Vehicle methods of exhibiting and system
CN107193792A (en) * 2017-05-18 2017-09-22 北京百度网讯科技有限公司 The method and apparatus of generation article based on artificial intelligence
CN108717403A (en) * 2018-05-11 2018-10-30 北京搜狗科技发展有限公司 A kind of processing method, device and the device for processing
CN109885821A (en) * 2019-03-05 2019-06-14 中国联合网络通信集团有限公司 Article writting method and device, computer storage medium based on artificial intelligence

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110282649A1 (en) * 2010-05-13 2011-11-17 Rene Waksberg Systems and methods for automated content generation
CN107153978A (en) * 2016-03-02 2017-09-12 腾讯科技(北京)有限公司 Vehicle methods of exhibiting and system
CN106874248A (en) * 2017-01-22 2017-06-20 百度在线网络技术(北京)有限公司 article generation method and device based on artificial intelligence
CN107193792A (en) * 2017-05-18 2017-09-22 北京百度网讯科技有限公司 The method and apparatus of generation article based on artificial intelligence
CN108717403A (en) * 2018-05-11 2018-10-30 北京搜狗科技发展有限公司 A kind of processing method, device and the device for processing
CN109885821A (en) * 2019-03-05 2019-06-14 中国联合网络通信集团有限公司 Article writting method and device, computer storage medium based on artificial intelligence

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112835577A (en) * 2021-01-28 2021-05-25 北京百家科技集团有限公司 Data processing method, data processing device, computer equipment and readable storage medium
CN113449196A (en) * 2021-07-16 2021-09-28 北京天眼查科技有限公司 Information generation method and device, electronic equipment and readable storage medium
CN113449196B (en) * 2021-07-16 2024-04-19 北京金堤科技有限公司 Information generation method and device, electronic equipment and readable storage medium
CN113836301A (en) * 2021-09-26 2021-12-24 北京凤凰天博网络技术有限公司 Automatic generation method of house property articles
CN113609263A (en) * 2021-09-30 2021-11-05 网娱互动科技(北京)股份有限公司 Method and system for automatically generating articles
CN113609263B (en) * 2021-09-30 2022-01-25 网娱互动科技(北京)股份有限公司 Method and system for automatically generating articles
CN115270725A (en) * 2022-07-04 2022-11-01 温州佳合标准化信息技术事务所 Method, system, device and medium for automatically converting standard format
CN116933751A (en) * 2023-06-30 2023-10-24 北京百度网讯科技有限公司 Article generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111008522A (en) Automatic article writing method and device, computer equipment and storage medium
CN108509485B (en) Data preprocessing method and device, computer equipment and storage medium
CN109558440A (en) Batch data processing method, device, computer equipment and storage medium
CN109543925B (en) Risk prediction method and device based on machine learning, computer equipment and storage medium
CN111061475B (en) Software code generating method, device, computer equipment and storage medium
CN110457431A (en) Answering method, device, computer equipment and the storage medium of knowledge based map
CN111046645A (en) Method and device for generating article, computer equipment and storage medium
CN110399420A (en) A kind of deriving method, electronic equipment and the medium of configurableization Excel format
CN109858010A (en) Field new word identification method, device, computer equipment and storage medium
CN110008455A (en) Table edit method, apparatus, computer equipment and storage medium
CN107169021A (en) Method and apparatus for predicting application function label
CN111324716A (en) Index data acquisition method and device, computer equipment and storage medium
CN108803996B (en) Graphic file processing method and device, computer equipment and storage medium
CN109062925A (en) Automatically generate the method, apparatus, computer equipment and storage medium of insert sentence
CN112286934A (en) Database table importing method, device, equipment and medium
CN113076731A (en) Report file generation method and device, computer equipment and storage medium
CN111738774A (en) Method, apparatus, computer device and storage medium for identifying potential target users
CN108829651A (en) A kind of method, apparatus of document treatment, terminal device and storage medium
CN111309991B (en) Query statement generation method and device and data query method and system
CN110727777A (en) Knowledge graph management method and device, computer equipment and storage medium
CN110134589B (en) Interface test case generation method and device, computer equipment and storage medium
CN110597951A (en) Text parsing method and device, computer equipment and storage medium
CN111552503B (en) Project file processing method and device, computer equipment and storage medium
CN111078564B (en) UI test case management method, device, computer equipment and computer readable storage medium
CN115408997A (en) Text generation method, text generation device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200414