CN112199932A - PPT generation method, device, computer-readable storage medium and processor - Google Patents

PPT generation method, device, computer-readable storage medium and processor Download PDF

Info

Publication number
CN112199932A
CN112199932A CN202011074263.9A CN202011074263A CN112199932A CN 112199932 A CN112199932 A CN 112199932A CN 202011074263 A CN202011074263 A CN 202011074263A CN 112199932 A CN112199932 A CN 112199932A
Authority
CN
China
Prior art keywords
text
ppt
picture
determining
template
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
CN202011074263.9A
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.)
Beijing Sinovoice Technology Co Ltd
Original Assignee
Beijing Sinovoice 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 Beijing Sinovoice Technology Co Ltd filed Critical Beijing Sinovoice Technology Co Ltd
Priority to CN202011074263.9A priority Critical patent/CN112199932A/en
Publication of CN112199932A publication Critical patent/CN112199932A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/186Templates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Library & Information Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a PPT generation method, a PPT generation device, a computer readable storage medium and a processor. Wherein, the method comprises the following steps: determining a PPT template corresponding to the text according to the theme of the text; determining a picture corresponding to the text according to the keywords of the text; and generating the PPT of the text based on the PPT template and the picture. The invention solves the technical problem of high cost caused by manual intervention or massive data for deep learning training in the related technology for manufacturing PPT.

Description

PPT generation method, device, computer-readable storage medium and processor
Technical Field
The invention relates to the field of document processing, in particular to a PPT generation method, a PPT generation device, a computer-readable storage medium and a processor.
Background
In recent years, the application level of PPT of people is gradually improved, the application field is more and more extensive, PPT is becoming an important component of work and life of people, and the PPT occupies a great position in the fields of work report, enterprise propaganda, product recommendation, project bidding, management consultation, education training and the like, so the efficiency problem of manufacturing PPT gradually becomes the focus of people.
The existing method for rapidly generating PPT comprises the following steps: (1) CN 109634575A: establishing a json data object containing content, page, index and type, and storing elements of the PPT file into a memory; and establishing a PPT template object and realizing the PPT template object according to data stored in the memory by the json data object. By establishing the PPT template, only the json data format is required to be defined by the front end to be filled in the PPT template, and the complex conditions of typesetting, background pictures and the like are not required to be considered. (2) CN 109634575A: the PPT reproduction method is generated based on an OCR character recognition technology, pictures of PPT display pages which are directly shot or uploaded are reproduced into approximate pptx files through the OCR character recognition technology and Python language through a mobile phone camera or other equipment. (3) CN 109948136A: a method and a system for automatically generating PPT templates based on edge calculation are provided, wherein the method comprises the following steps: the method comprises the steps of obtaining a PPT template requirement sent by a terminal, analyzing the PPT template requirement, generating a template to be filled by utilizing a multilayer neural network, sending the template to be filled to the terminal, receiving the filled template fed back by the terminal, and selecting the PPT template corresponding to the filled template from a preset template library so as to feed back the PPT template to the terminal.
Further, in the prior art, the efficiency of manufacturing the PPT is improved by different means, but the coverage is small, most of PPT needs manual intervention or massive data to perform deep learning training, and the cost is high.
In view of the above problems, no effective solution has been proposed.
Disclosure of Invention
The embodiment of the invention provides a PPT generation method, a PPT generation device, a computer readable storage medium and a processor, which are used for at least solving the technical problem of high cost caused by manual intervention or massive data for deep learning training when PPT is manufactured in the related technology.
According to an aspect of an embodiment of the present invention, there is provided a PPT generation method, including: determining a PPT template corresponding to a text according to the theme of the text; determining a picture corresponding to the text according to the keywords of the text; and generating the PPT of the text based on the PPT template and the picture.
Optionally, determining, according to a theme of the text, the PPT template corresponding to the text includes: performing text clustering on the text to obtain a theme of the text; determining a corresponding theme label of the theme of the text in a database; and obtaining the PPT template matched with the text theme in the database according to the theme label.
Optionally, determining, according to the keyword of the text, the picture corresponding to the text includes: extracting key words of the text; determining a content label corresponding to the keyword of the text in a database; and obtaining the picture matched with the key words of the text in the database according to the content label.
Optionally, obtaining the picture matched with the keyword of the text in the database according to the content tag includes: determining the matching degree of the picture matched with the keywords of the text and the content label; and determining a picture matched with the keywords of the text as a picture corresponding to the text under the condition that the matching degree is greater than or equal to a threshold value of the matching degree.
Optionally, generating the PPT of the text based on the PPT template and the picture includes: and inserting the picture into the PPT template to generate the PPT of the text.
Optionally, the method further comprises: and adding the keywords of the text and the sentences in which the keywords of the text are located into the PPT of the text.
Optionally, the method further comprises: performing voice synthesis processing on the text to obtain the audio frequency of the text; determining a total duration of the audio and a timestamp for each word; determining playing parameters of the PPT of the text according to the total duration of the audio and the time stamp of each word, wherein the playing parameters comprise at least one of the following: total playing time and slide switching time; and carrying out playing configuration on the PPT of the text according to the playing parameters.
According to another aspect of the embodiments of the present invention, there is also provided a PPT generation apparatus, including: the first determining module is used for determining a PPT template corresponding to a text according to the theme of the text; the second determining module is used for determining the picture corresponding to the text according to the key words of the text; and the generating module is used for generating the PPT of the text based on the PPT template and the picture.
According to another aspect of the embodiment of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium includes a stored program, and when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the PPT generation method described in any one of the above.
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes to perform the PPT generation method described in any one of the above.
In the embodiment of the invention, a PPT template corresponding to a text is determined by adopting a theme according to the text; determining a picture corresponding to the text according to the keywords of the text; the PPT of the text is generated based on the PPT template and the picture, the PPT template and the picture corresponding to the text are respectively obtained through the theme and the keywords of the text, and then the PPT of the text is generated by utilizing the PPT template and the picture, so that the aim of quickly and efficiently generating the PPT of the text is fulfilled, the technical effects of simplifying the PPT manufacturing process, reducing the cost for manufacturing the PPT and improving the efficiency for manufacturing the PPT are achieved, and the technical problem that in the related technology, manual intervention is needed for manufacturing the PPT or deep learning training is needed for manufacturing massive data, and the cost is high is further solved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
figure 1 is a flow diagram of a method of PPT generation according to an embodiment of the present invention;
figure 2 is a flow diagram of a PPT generation method in accordance with an alternative embodiment of the present invention;
figure 3 is a flow diagram of a PPT generation method in accordance with another alternative embodiment of the present invention;
figure 4 is a schematic diagram of a PPT generation apparatus in accordance with an embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and claims of the present invention and in the drawings described above are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the invention described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
In accordance with an embodiment of the present invention, there is provided a method embodiment of a PPT generation method, it is noted that the steps illustrated in the flowchart of the figure may be performed in a computer system, such as a set of computer-executable instructions, and that while a logical order is illustrated in the flowchart, in some cases the steps illustrated or described may be performed in an order different than here.
Fig. 1 is a flowchart of a PPT generation method according to an embodiment of the present invention, and as shown in fig. 1, the PPT generation method includes the following steps:
step S102, determining a PPT template corresponding to a text according to the theme of the text;
the PPT template can comprise one PPT page or a plurality of PPT pages. Wherein each PPT page in each PPT template is associated with a topic of text. In the specific implementation process, the topic of the text is obtained by text clustering on the text, wherein the topic of the text includes but is not limited to science and technology, education (courseware), reports and the like.
Step S104, determining a picture corresponding to the text according to the keywords of the text;
the pictures at least include still pictures and moving pictures, the formats of the still pictures include but are not limited to JPEG, PNG, BMP, etc., and the formats of the moving pictures include but are not limited to GIF, etc. In a specific implementation process, the picture corresponding to the text can be retrieved according to the keywords of the text. It should be noted that the above-mentioned picture may be a picture in a database, a picture obtained by crawling from any website or server, or a picture uploaded by the user himself/herself, and in the specific implementation, the obtaining route of the picture may not be limited at all.
And S106, generating the PPT of the text based on the PPT template and the picture.
As an optional embodiment, after a text is acquired, the acquired text is correspondingly preprocessed to obtain a theme, a keyword, and the like of the text, a PPT template matched with the theme of the text in a theme search database of the text is utilized, a picture matched with the keyword of the text in the keyword search database of the text is utilized, and then the picture is inserted into a page in the PPT template according to a predetermined sequence, so that the PPT of the text can be generated.
It should be noted that the text may be plain text, and the format of the plain text includes, but is not limited to, Unicode, utf-8, etc.; the PPT format of the text may be either.ppt or.pptx.
Through the steps, the PPT template corresponding to the text can be determined according to the theme of the text, the picture corresponding to the text is determined according to the keyword of the text, and then the PPT of the text is generated based on the PPT template and the picture, namely, the PPT template and the picture corresponding to the text are respectively obtained through the theme and the keyword of the text, and then the PPT of the text is generated by utilizing the PPT template and the picture, so that the aim of quickly and efficiently generating the PPT of the text is fulfilled, the technical effects of simplifying the PPT manufacturing process, reducing the cost for manufacturing the PPT and improving the efficiency for manufacturing the PPT are realized, and the technical problem of high cost caused by manual intervention or deep learning training required by massive data in the related technology is solved.
Optionally, determining, according to the theme of the text, the PPT template corresponding to the text includes: performing text clustering on the text to obtain a theme of the text; determining a corresponding theme label of the theme of the text in a database; and obtaining the PPT template matched with the theme of the text in the database according to the theme label.
As an optional embodiment, text clustering may be performed on the text according to at least one preset text clustering algorithm, and a topic of the text may be obtained in a text clustering result. The text clustering algorithm includes, but is not limited to, a partition-based text clustering algorithm, a density-based text clustering algorithm, a network-based text clustering algorithm, a model-based text clustering algorithm, and a hierarchy-based text clustering algorithm. The text clustering algorithm based on the division can comprise K-means, K-center points and the like, the text clustering algorithm based on the density can comprise DBSCAN, OPTICS and the like, the text clustering algorithm based on the network can comprise SING, CLIQUE and the like, the text clustering algorithm based on the model can comprise statistics, neural networks and the like, and the text clustering algorithm based on the hierarchy can comprise a splitting method, a merging method and the like.
As an alternative embodiment, the thematic tags and the PPT templates associated with the thematic tags are stored in a repository. In a specific implementation, the PPT template associated with the topic tag can be searched through the topic tag. It should be noted that, because the number of PPT templates in the database is large, the PPT templates can be classified by using the topic tags, so that the PPT templates in the database are more ordered, and subsequent searches are facilitated. In addition, the database may be maintained, updated, etc. periodically or aperiodically.
As an optional embodiment, a corresponding topic tag may be searched in the database according to the topic of the text, and then the PPT template matched with the topic of the text in the database is obtained by searching according to the topic tag by using the association relationship between the topic tag and the PPT template.
Optionally, determining, according to the keyword of the text, the picture corresponding to the text includes: extracting keywords of the text; determining a content label corresponding to the keyword of the text in a database; and obtaining the pictures matched with the keywords of the text in the database according to the content labels.
As an alternative embodiment, the keywords of the text may be extracted by various methods, for example, a keyword extraction method based on statistics, a keyword extraction method based on machine learning. The keyword extraction method based on statistics can comprise reverse file frequency, word frequency of the words and the like; the keyword extraction method based on machine learning can comprise a Word2Vec Word vector model and the like. In a specific implementation process, the keyword extraction method can be selected according to the requirements of an application scene.
As an alternative embodiment, the content tag and the picture associated with the content tag are stored in the database. In a specific implementation, the picture associated with the content tag can be searched through the content tag. It should be noted that, because the number of pictures in the database is large, the pictures can be classified by using the content tags, so that the pictures in the database are more ordered, and the subsequent search is facilitated. In addition, the database may be maintained, updated, etc. periodically or aperiodically.
As an optional embodiment, the corresponding content tag may be searched in the database according to the keyword of the text, and then the picture matched with the keyword of the text in the database is searched according to the content tag by using the association relationship between the content tag and the picture.
Optionally, obtaining the picture matched with the keyword of the text in the database according to the content tag includes: determining the matching degree of the picture matched with the keywords of the text and the content label; and determining the picture matched with the keywords of the text as the picture corresponding to the text under the condition that the matching degree is greater than or equal to the threshold value of the matching degree.
As an optional embodiment, the matching degree between the picture matched with the keyword of the text and the content tag may be calculated, and if the matching degree is greater than or equal to the matching degree threshold, the picture matched with the keyword of the text is taken as the picture corresponding to the text; if the matching degree is smaller than the threshold value of the matching degree, discarding the picture matched with the keyword of the text, namely, not taking the picture matched with the keyword of the text as the picture corresponding to the text.
The threshold matching degree may be a default of the system or may be set by the user. In a specific implementation process, the matching degree threshold may be 50%, 60%, 80%, etc., and is not described herein again.
Optionally, generating the PPT of the text based on the PPT template and the picture includes: and inserting the picture into the PPT template to generate the PPT of the text.
As an alternative embodiment, a picture obtained based on a keyword of a text may be inserted into a PPT template, thereby generating a PPT of the text. In a specific implementation process, the picture may be inserted into a predetermined position in the PPT template, for example, the picture may be inserted into a position below a title in the PPT template, and the picture may also be inserted into a background position in the PPT template as a background picture of the PPT template.
As an alternative embodiment, the picture may be inserted into the PPT template according to preset rules, and the PPT of the text may be generated, where the preset rules include, but are not limited to, the order of inserting the pictures, the number of inserting the pictures, and the like. In addition, before inserting the pictures into the PPT template, a priority sequence of each picture may be obtained, and then each picture is inserted into the PPT template according to the priority sequence, for example, 3 pictures need to be added to a certain page of the PPT template, the priorities of the 3 pictures may be sorted first to obtain the priority sequence, and then the 3 pictures are respectively inserted into a certain page of the PPT template by using the priority sequence. At this time, the priority sequence may be from high to low or from low to high.
Optionally, the method further comprises: keywords of the text and sentences in which the keywords of the text are located are added to the PPT of the text.
As an alternative embodiment, a keyword of a text may be added to a title of each page of the PPT, and the keyword of the text is used as the title of the PPT page; the sentence where the keyword of the text is located can be added into the text or the remark of each page of the PPT of the text, and the sentence where the keyword of the text is located is used as the text or the remark of the PPT page. It should be noted that the title of each page of the PPT includes at least one of the following: main title, sub-title. In a specific implementation process, keywords of the text can be added to the main title or the subtitle of each page of the PPT according to the needs of an application scene.
As an alternative embodiment, after adding the keywords of the text and the sentences in which the keywords of the text are located to the PPT of the text, the method further includes: a font format is set, wherein the font format includes, but is not limited to, font size, font color, font label, font bolding, font tilting, and the like.
Optionally, the method further comprises: performing voice synthesis processing on the text to obtain the audio frequency of the text; determining the total duration of the audio and the time stamp of each word; determining playing parameters of PPT of the text according to the total duration of the audio and the time stamp of each word, wherein the playing parameters comprise at least one of the following: total playing time and slide switching time; and carrying out playing configuration on the PPT of the text according to the playing parameters.
As an alternative embodiment, the above processing of speech synthesis on the text includes at least one of: online speech synthesis, offline speech synthesis. Specifically, the online speech synthesis may be a speech synthesis performed in the cloud; offline speech synthesis may be speech synthesis performed locally. In the specific implementation process, at least one mode can be selected according to the application scene to realize voice synthesis, and text information generated by a computer or input from the outside can be converted into standard smooth voice to be read out through the voice synthesis. Through the above speech synthesis process, text can be converted into audio.
As an alternative embodiment, performing a speech synthesis process on the text to obtain an audio of the text includes: parameters of speech synthesis are configured, including but not limited to timbre, volume, pace, intonation, background sounds, etc. The audio is more diversified through the method.
As an alternative embodiment, the total duration of the audio may be used as the total playing time of the PPT playing, and the timestamp of the last word of the sentence where the keyword of the text is located may be used as the slide switching time of the PPT playing.
By the above mode, the PPT can be automatically played.
An alternative embodiment of the invention is described in detail below.
The invention integrates the technologies of text analysis, voice synthesis and the like in the artificial intelligence technology, and matches a PPT template and a picture/GIF according to the text analysis from the acquisition of the text of the pure characters to be processed to the analysis of the subject and the keywords; in addition, the text is converted into audio to acquire the automatic playing time and the slide switching time, so that the PPT file is generated in an integrated mode. One-key conversion to a PPT file can be done using a piece of text. By the mode, the working efficiency of a PPT maker is greatly improved in life, the operation process of a user is simplified, and the content quality of the PPT is improved. In addition, the client can maintain the resource library by himself or select and configure the automatic playing function, and the generated result is high in personalization degree and easy to use.
Fig. 2 is a flow chart of a PPT generation method according to an alternative embodiment of the present invention, as shown in fig. 2, the PPT generation method includes the following steps: s 1: uploading a text; s 2-1: clustering texts; s 2-2: extracting text keywords; s 2-3: generating audio; s 3-1: selecting a theme template; s 3-2: matching pictures with GIF; s 3-3: automatic play setting; s 4: generating a PPT file; s 5: and (6) exporting the file. Wherein generating audio comprises at least: synthesizing voice, and acquiring an audio time length and a word time stamp; the automatic playback setting includes at least: total duration, slide switching time; the PPT file generation at least comprises the following steps: template selection, picture resource insertion, text insertion and automatic playing configuration.
As an alternative embodiment, fig. 3 is a flowchart of a PPT generation method according to another alternative embodiment of the present invention, as shown in fig. 3, the PPT generation method may be input as a plain text, and output as a PPT or pptx file after being processed by a text clustering module, a text keyword extraction module, a database (including PPT template, picture & GIF, etc.), a PPT generation module, a speech synthesis module, and an automatic play setting module, and support setting a custom automatic play function. The specific implementation process is as follows:
inputting: plain text, not limited to the Unicode/utf-8 format.
A text clustering module: the input text is preprocessed, and the subject of the text, such as science and technology, education (courseware), report and the like, is analyzed by using the technology of natural language understanding such as text analysis clustering and the like.
A text keyword extraction module: preprocessing an input text, extracting keywords of the whole text by using natural language understanding technologies such as text analysis and the like, sequentially sequencing according to the sequence of the keywords and setting index to be 0; index is 1; if there are n keywords, index 2 … …, the last index is n-1. This module may set the maximum value of n.
Database: the database is divided into a ppt template and a picture & GIF repository. Wherein, PPT template: and when the text theme output by the text clustering module is received, automatically selecting the PPT template corresponding to the theme. Picture & GIF repository: after receiving the keywords output by the text extraction keyword module, each keyword matches with a picture or a GIF (graphic interchange Format) image corresponding to the keyword in the resource library according to the content tag, each picture has a matching degree with the content tag, a user can control a threshold value of the matching degree to determine which picture is used finally, and the specific value of the threshold value also needs to be optimized and tested in an actual scene by the user.
It should be noted that the PPT template of the local resource of the database is classified according to the subject, the picture & GIF database is classified according to the content tag, if the extracted keyword does not have the corresponding database content tag, the relevant picture can be automatically crawled on the network. The user can upload and maintain the data of the database by himself.
A speech synthesis module: the method completes the configuration of relevant parameters (such as tone, volume, speed, tone, background tone, etc.) of the voice synthesis in advance, supports the user-defined adjustment, and particularly can customize the user-anthropomorphic tone. The method provides a speech synthesis scheme with an online (cloud) mode and an offline (local) mode, converts input characters into audio files, and outputs the total duration of the audio and the time stamp of each character.
Automatic play setting module: the total audio duration of speech synthesis is used as the total duration of PPT automatic playing, and the time stamp of the last character of the sentence (ending with.
A PPT generation module: the text theme output by the text clustering module determines a PPT template in a database, under the template, the keywords output by the text keyword extraction module are used as the title of each PPT page, the page number is n, and the index sequence of the keywords corresponds to the PPT page number sequence. The picture or the image matched with the keyword is inserted into the corresponding page number PPT, and the user can select to add the text of the sentence (ending with the mark point. If the function of automatically playing the slides is needed, the output parameters (total playing time and slide switching time) of the automatic playing setting module can be set in the PPT automatic playing configuration, and simultaneously, the playing audio of the PPT can also be configured, and the audio source is the synthesized audio output by the voice synthesis module. The operations of generating PPT, inserting pictures, setting play time, etc. can be implemented by codes, for example: VBA language.
And (3) outputting: ppt or pptx files.
Example 2
According to another aspect of the embodiments of the present invention, there is also provided a PPT generation device, and fig. 4 is a schematic diagram of the PPT generation device according to the embodiments of the present invention, as shown in fig. 4, the PPT generation device includes: a first determination module 42, a second determination module 44, and a generation module 46. The PPT generation device will be described in detail below.
The first determining module 42 is configured to determine, according to a topic of the text, a PPT template corresponding to the text; a second determining module 44, connected to the first determining module 42, for determining the picture corresponding to the text according to the keyword of the text; a generating module 46, connected to the second determining module 44, is configured to generate a PPT of the text based on the PPT template and the picture.
In the PPT generating device in the above embodiment, the first determining module 42 is adopted to determine the PPT template corresponding to the text according to the topic of the text, the second determining module 44 is further utilized to determine the picture corresponding to the text according to the keyword of the text, and the generating module 46 is further utilized to generate the PPT of the text based on the PPT template and the picture, that is, the PPT template and the picture corresponding to the text are respectively obtained through the topic and the keyword of the text, and then the PPT of the text is generated by utilizing the PPT template and the picture, so that the purpose of generating the PPT of the text quickly and efficiently is achieved, thereby achieving the technical effects of simplifying the PPT manufacturing process, reducing the cost for manufacturing the PPT and improving the efficiency for manufacturing the PPT, and further solving the technical problem of high cost caused by the fact that manual intervention is required for manufacturing the PPT or deep learning training is required for massive data in related technologies.
It should be noted that the above modules may be implemented by software or hardware, for example, for the latter, the following may be implemented: the modules can be located in the same processor; alternatively, the modules may be located in different processors in any combination.
It should be noted here that the first determining module 42, the second determining module 44 and the generating module 46 correspond to steps S102 to S106 in embodiment 1, and the modules are the same as the corresponding steps in the implementation example and application scenarios, but are not limited to the disclosure in embodiment 1. It should be noted that the modules described above as part of an apparatus may be implemented in a computer system such as a set of computer-executable instructions.
Optionally, the first determining module includes: the clustering unit is used for carrying out text clustering on the text to obtain the theme of the text; the first determining unit is used for determining a corresponding theme label of the theme of the text in the database; and the first matching unit is used for obtaining the PPT template matched with the text theme in the database according to the theme label.
Optionally, the second determining module includes: an extraction unit for extracting keywords of the text; the second determining unit is used for determining the corresponding content label of the keyword of the text in the database; and the second matching unit is used for obtaining the picture matched with the key words of the text in the database according to the content label.
Optionally, the second matching unit includes: the first determining subunit is used for determining the matching degree of the picture matched with the keywords of the text and the content label; and the second determining subunit is used for determining the picture matched with the keyword of the text as the picture corresponding to the text under the condition that the matching degree is greater than or equal to the matching degree threshold value.
Optionally, the generating module includes: and the generating unit is used for inserting the picture into the PPT template to generate the PPT of the text.
Optionally, the apparatus further comprises: and the adding module is used for adding the keywords of the text and the sentences in which the keywords of the text are positioned into the PPT of the text.
Optionally, the apparatus further comprises: the synthesis module is used for carrying out voice synthesis processing on the text to obtain the audio frequency of the text; the third determining module is used for determining the total time length of the audio and the time stamp of each word; a fourth determining module, configured to determine, according to the total duration of the audio and the timestamp of each word, a playing parameter of the PPT of the text, where the playing parameter includes at least one of: total playing time and slide switching time; and carrying out playing configuration on the PPT of the text according to the playing parameters.
Example 3
According to another aspect of the embodiments of the present invention, a computer-readable storage medium is further provided, where the computer-readable storage medium includes a stored program, and when the program runs, the apparatus where the computer-readable storage medium is located is controlled to execute the PPT generation method of any one of the above.
Optionally, in this embodiment, the computer-readable storage medium may be located in any one of a group of computer terminals in a computer network or in any one of a group of mobile terminals, and the computer-readable storage medium includes a stored program.
Optionally, the program when executed controls an apparatus in which the computer-readable storage medium is located to perform the following functions: determining a PPT template corresponding to the text according to the theme of the text; determining a picture corresponding to the text according to the keywords of the text; and generating the PPT of the text based on the PPT template and the picture.
Example 4
According to another aspect of the embodiments of the present invention, there is also provided a processor, configured to execute a program, where the program executes to perform the PPT generation method of any one of the above.
The embodiment of the application provides equipment, which comprises a processor, a memory and a program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the following steps: determining a PPT template corresponding to the text according to the theme of the text; determining a picture corresponding to the text according to the keywords of the text; and generating the PPT of the text based on the PPT template and the picture.
The present application further provides a computer program product adapted to perform a program for initializing the following method steps when executed on a data processing device: determining a PPT template corresponding to the text according to the theme of the text; determining a picture corresponding to the text according to the keywords of the text; and generating the PPT of the text based on the PPT template and the picture.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
In the above embodiments of the present invention, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed technology can be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units may be a logical division, and in actual implementation, there may be another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, units or modules, and may be in an electrical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The foregoing is only a preferred embodiment of the present invention, and it should be noted that, for those skilled in the art, various modifications and decorations can be made without departing from the principle of the present invention, and these modifications and decorations should also be regarded as the protection scope of the present invention.

Claims (10)

1. A PPT generation method, comprising:
determining a PPT template corresponding to a text according to the theme of the text;
determining a picture corresponding to the text according to the keywords of the text;
and generating the PPT of the text based on the PPT template and the picture.
2. The method as claimed in claim 1, wherein determining the PPT template corresponding to the text according to the subject of the text comprises:
performing text clustering on the text to obtain a theme of the text;
determining a corresponding theme label of the theme of the text in a database;
and obtaining the PPT template matched with the text theme in the database according to the theme label.
3. The method of claim 1, wherein determining the picture corresponding to the text according to the keyword of the text comprises:
extracting key words of the text;
determining a content label corresponding to the keyword of the text in a database;
and obtaining the picture matched with the key words of the text in the database according to the content label.
4. The method of claim 3, wherein obtaining the picture in the database matching the keyword of the text according to the content tag comprises:
determining the matching degree of the picture matched with the keywords of the text and the content label;
and determining a picture matched with the keywords of the text as a picture corresponding to the text under the condition that the matching degree is greater than or equal to a threshold value of the matching degree.
5. The method as recited in any one of claims 1 to 4, wherein generating the PPT of the text based on the PPT template and the picture comprises:
and inserting the picture into the PPT template to generate the PPT of the text.
6. The method of claim 5, further comprising:
and adding the keywords of the text and the sentences in which the keywords of the text are located into the PPT of the text.
7. The method of claim 6, further comprising:
performing voice synthesis processing on the text to obtain the audio frequency of the text;
determining a total duration of the audio and a timestamp for each word;
determining playing parameters of the PPT of the text according to the total duration of the audio and the time stamp of each word, wherein the playing parameters comprise at least one of the following: total playing time and slide switching time;
and carrying out playing configuration on the PPT of the text according to the playing parameters.
8. A PPT generation apparatus, comprising:
the first determining module is used for determining a PPT template corresponding to a text according to the theme of the text;
the second determining module is used for determining the picture corresponding to the text according to the key words of the text;
and the generating module is used for generating the PPT of the text based on the PPT template and the picture.
9. A computer-readable storage medium, comprising a stored program, wherein the program, when executed, controls an apparatus in which the computer-readable storage medium is located to perform the PPT generation method recited in any one of claims 1-7.
10. A processor, characterized in that the processor is configured to run a program, wherein the program when running performs the PPT generation method of any one of claims 1 to 7.
CN202011074263.9A 2020-10-09 2020-10-09 PPT generation method, device, computer-readable storage medium and processor Pending CN112199932A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011074263.9A CN112199932A (en) 2020-10-09 2020-10-09 PPT generation method, device, computer-readable storage medium and processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011074263.9A CN112199932A (en) 2020-10-09 2020-10-09 PPT generation method, device, computer-readable storage medium and processor

Publications (1)

Publication Number Publication Date
CN112199932A true CN112199932A (en) 2021-01-08

Family

ID=74013795

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011074263.9A Pending CN112199932A (en) 2020-10-09 2020-10-09 PPT generation method, device, computer-readable storage medium and processor

Country Status (1)

Country Link
CN (1) CN112199932A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113221509A (en) * 2021-06-11 2021-08-06 中国平安人寿保险股份有限公司 Automatic generation method, device and equipment of slide and storage medium
CN113553450A (en) * 2021-08-03 2021-10-26 广东新学未科技有限公司 Automatic PPT presentation generation method and device, computing equipment and storage medium
CN115994527A (en) * 2023-03-23 2023-04-21 广东聚智诚科技有限公司 Machine learning-based PPT automatic generation system
CN117332098A (en) * 2023-10-24 2024-01-02 深圳市金大智能创新科技有限公司 Content generation method based on interactive virtual assistant

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109195007A (en) * 2018-10-19 2019-01-11 深圳市轱辘汽车维修技术有限公司 Video generation method, device, server and computer readable storage medium
CN109344291A (en) * 2018-09-03 2019-02-15 腾讯科技(武汉)有限公司 A kind of video generation method and device
CN109783798A (en) * 2018-12-12 2019-05-21 平安科技(深圳)有限公司 Method, apparatus, terminal and the storage medium of text information addition picture
CN109948136A (en) * 2019-03-26 2019-06-28 中国联合网络通信集团有限公司 The method and system for automatically generating PPT template based on edge calculations
CN110807126A (en) * 2018-08-01 2020-02-18 腾讯科技(深圳)有限公司 Method, device, storage medium and equipment for converting article into video
CN111291210A (en) * 2020-01-14 2020-06-16 广州视源电子科技股份有限公司 Image material library generation method, image material recommendation method and related device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110807126A (en) * 2018-08-01 2020-02-18 腾讯科技(深圳)有限公司 Method, device, storage medium and equipment for converting article into video
CN109344291A (en) * 2018-09-03 2019-02-15 腾讯科技(武汉)有限公司 A kind of video generation method and device
CN109195007A (en) * 2018-10-19 2019-01-11 深圳市轱辘汽车维修技术有限公司 Video generation method, device, server and computer readable storage medium
CN109783798A (en) * 2018-12-12 2019-05-21 平安科技(深圳)有限公司 Method, apparatus, terminal and the storage medium of text information addition picture
CN109948136A (en) * 2019-03-26 2019-06-28 中国联合网络通信集团有限公司 The method and system for automatically generating PPT template based on edge calculations
CN111291210A (en) * 2020-01-14 2020-06-16 广州视源电子科技股份有限公司 Image material library generation method, image material recommendation method and related device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113221509A (en) * 2021-06-11 2021-08-06 中国平安人寿保险股份有限公司 Automatic generation method, device and equipment of slide and storage medium
CN113221509B (en) * 2021-06-11 2022-06-17 中国平安人寿保险股份有限公司 Automatic generation method, device and equipment of slide and storage medium
CN113553450A (en) * 2021-08-03 2021-10-26 广东新学未科技有限公司 Automatic PPT presentation generation method and device, computing equipment and storage medium
CN113553450B (en) * 2021-08-03 2024-01-30 广东新学未科技有限公司 Automatic generation method and device of PPT presentation, computing equipment and storage medium
CN115994527A (en) * 2023-03-23 2023-04-21 广东聚智诚科技有限公司 Machine learning-based PPT automatic generation system
CN117332098A (en) * 2023-10-24 2024-01-02 深圳市金大智能创新科技有限公司 Content generation method based on interactive virtual assistant

Similar Documents

Publication Publication Date Title
CN112199932A (en) PPT generation method, device, computer-readable storage medium and processor
CN110781347A (en) Video processing method, device, equipment and readable storage medium
CN113641859B (en) Script generation method, system, computer storage medium and computer program product
CN112689189A (en) Video display and generation method and device
CN108121715B (en) Character labeling method and character labeling device
CN112929746B (en) Video generation method and device, storage medium and electronic equipment
KR102490319B1 (en) Methods for automatic generation and transformation of artificial intelligence content
CN111400513A (en) Data processing method, data processing device, computer equipment and storage medium
CN114297439A (en) Method, system, device and storage medium for determining short video label
CN114938473B (en) Comment video generation method and comment video generation device
CN116127054B (en) Image processing method, apparatus, device, storage medium, and computer program
CN113536172B (en) Encyclopedia information display method and device and computer storage medium
CN109508448A (en) Short information method, medium, device are generated based on long article and calculate equipment
CN116738250A (en) Prompt text expansion method, device, electronic equipment and storage medium
CN115129806A (en) Data processing method and device, electronic equipment and computer storage medium
CN112163560A (en) Video information processing method and device, electronic equipment and storage medium
CN107122393B (en) electronic album generating method and device
CN111125384A (en) Multimedia answer generation method and device, terminal equipment and storage medium
CN113407775B (en) Video searching method and device and electronic equipment
CN117952203A (en) Knowledge base construction method, video automatic production method and software product
CN113676772A (en) Video generation method and device
CN117676277A (en) Video generation method, device, electronic equipment and storage medium
CN117436414A (en) Presentation generation method and device, electronic equipment and storage medium
CN110297965B (en) Courseware page display and page set construction method, device, equipment and medium
CN114218437A (en) Adaptive picture clipping and fusing method, system, computer device and 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