CN116578732A - Presentation generation method and device based on document analysis and terminal equipment - Google Patents

Presentation generation method and device based on document analysis and terminal equipment Download PDF

Info

Publication number
CN116578732A
CN116578732A CN202310482627.4A CN202310482627A CN116578732A CN 116578732 A CN116578732 A CN 116578732A CN 202310482627 A CN202310482627 A CN 202310482627A CN 116578732 A CN116578732 A CN 116578732A
Authority
CN
China
Prior art keywords
answer
data
presentation
filled
answers
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
CN202310482627.4A
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.)
Guangzhou Incai Cloud Technology Application Co ltd
Original Assignee
Guangzhou Incai Cloud Technology Application 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 Guangzhou Incai Cloud Technology Application Co ltd filed Critical Guangzhou Incai Cloud Technology Application Co ltd
Priority to CN202310482627.4A priority Critical patent/CN116578732A/en
Publication of CN116578732A publication Critical patent/CN116578732A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/43Querying
    • G06F16/438Presentation of query results
    • G06F16/4387Presentation of query results by the use of playlists
    • G06F16/4393Multimedia presentations, e.g. slide shows, multimedia albums
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Electrically Operated Instructional Devices (AREA)

Abstract

The invention discloses a presentation generating method, a device and terminal equipment based on document analysis, wherein the method comprises the following steps: acquiring word data to be converted; the word data to be converted comprises test question marks, answer marks and answer analysis marks; extracting test questions, answers and answer analysis in word data to be converted; newly creating a blank presentation file, filling frame elements serving as slide objects in the blank presentation file by analyzing test questions, answers and answers into the slide objects, setting animation playing sequences of the frame elements, and generating filled slide objects; and generating a final presentation according to the filled slide object. The invention can insert the test questions, answers and answer analyses into the corresponding slides according to different playing orders, realizes the playing effect that each slide related to the test questions is in the order of the analysis of the test questions, the answers and the answers, and meets the requirement of teaching scenes.

Description

Presentation generation method and device based on document analysis and terminal equipment
Technical Field
The present invention relates to the field of computer processing technologies, and in particular, to a method, an apparatus, and a terminal device for generating a presentation based on document parsing.
Background
In the teaching scene, a better way for a teacher to explain the test questions or the test papers is to use PPT (slide), but most of the data files of many test questions are Word documents, when the test questions in the format of Word documents are converted into PPT, the test questions are generally required to be split, such as test questions, answer analysis, answers or pictures, and when the contents are converted into PPT, the playing sequence of the contents is also required to be controlled (such as playing the test questions and playing the answers again and analyzing). However, in the prior art, when a test question in a Word document is converted into ppt, various labels, such as paragraph labels, character labels, picture labels, table labels or special labels, in a source file of the Word document are mainly read, and then the labels are directly converted into ppt source files, namely, only after each content in the test question document is simply listed, a corresponding presentation file is generated, and the analysis of the test question, the answer or the answer in the test question cannot be analyzed, so that the playing effect that each slide related to the test question is sequentially analyzed by the test question, the answer and the answer cannot be realized, and the requirement of a teaching scene cannot be met.
Disclosure of Invention
The embodiment of the invention provides a presentation generating method, a device and terminal equipment based on document analysis, which can effectively solve the problems that in the prior art, test questions, answers or answer analysis in the test questions cannot be analyzed, so that each slide related to the test questions cannot be played by analyzing the test questions, the answers and the answers into a sequence, and the requirement of a teaching scene cannot be met.
The embodiment of the invention provides a presentation generating method based on document analysis, which comprises the following steps:
acquiring word data to be converted; the word data to be converted comprises a test question mark for characterizing the content of the paragraph as a test question, an answer mark for characterizing the content of the paragraph as an answer and an answer analysis mark for characterizing the content of the paragraph as an answer analysis;
identifying test question marks, answer marks and answer analysis marks in the word data to be converted, and extracting test questions, answers and answer analysis in the word data to be converted;
newly creating a blank presentation, filling frame elements serving as slide objects in the blank presentation by analyzing the test questions, answers and answers into the slide objects, setting animation playing sequences of the frame elements, and generating filled slide objects;
generating a final presentation according to the filled slide object;
the playing sequence of the frame elements corresponding to the test questions is prior to the frame elements corresponding to the answers, and the playing sequence of the frame elements corresponding to the answers is prior to the frame elements corresponding to the answers.
Preferably, the obtaining word data to be converted specifically includes:
acquiring a word document; wherein, the word document includes: a plurality of first title tags for characterizing the paragraph content as a first-level title, and a plurality of second title tags for characterizing the paragraph content as a second-level title;
identifying each first title in the word document, and dividing the word document according to each first-level title to obtain a plurality of sub-documents;
and identifying the secondary titles in the sub-documents for each sub-document, and dividing the sub-documents according to the secondary titles to obtain a plurality of word data to be converted.
Preferably, the method further comprises: and naming the presentation according to the secondary title of the sub-document corresponding to the word data to be converted.
Preferably, the method further comprises:
generating a folder with the same folder name as the primary title according to the primary title for each primary title;
after generating the final presentation according to the filled slide object, the method further comprises:
determining a first-level title of a target corresponding to the presentation according to the name of the presentation;
and storing the presentation file in a folder with the same folder name as the target primary title according to the target primary title.
Preferably, the word data to be converted further includes: unmarked paragraph content;
the generation method of the presentation file further comprises the following steps: extracting unmarked paragraph contents, and filling the paragraph contents into the slide object as frame elements of the slide object in the blank presentation.
Preferably, when identifying the test question mark, the answer mark or the answer analysis mark, the method specifically comprises the following steps:
when identifying a test question mark, determining a test question type corresponding to the test question; the test question type comprises a selection question, a blank filling question, a simple answer question or a judgment question;
when the answer mark is identified, determining an answer type corresponding to the answer;
and when the answer analysis mark is identified, determining the answer analysis type corresponding to the answer analysis mark.
Judging whether an answer type corresponding to an answer mark is matched with the test question type according to the test question type of the test question, and taking the answer as an answer corresponding to the test question when the answer type is determined to be matched with the test question type;
and judging whether the answer analysis type corresponding to the answer analysis mark is matched with the test question type according to the test question type of the test question, and when the answer analysis type is determined to be matched with the test question type, using the answer analysis as the answer analysis corresponding to the test question.
Preferably, the following data population operations to be populated are repeatedly performed until all the data to be populated is populated into the slide object:
acquiring data to be filled; wherein, the data to be filled at least comprises any one of the following: test questions, answers, answer analysis and unmarked paragraph content;
determining the data type of data to be filled; wherein the data types include: text, forms or pictures;
determining the size of a frame corresponding to the data type when the data to be filled is filled into the slide object according to the data type of the data to be filled;
firstly judging whether the sum of frame sizes of all filled data in a current slide exceeds the preset height of the current slide after the data to be filled is filled into the current slide;
if yes, a slide is newly built, the data to be filled is filled into the newly built slide, and if not, the data to be filled is directly filled into the current slide;
and obtaining the next data to be filled.
On the basis of the method embodiment, the invention correspondingly provides the device item embodiment.
An embodiment of the present invention provides a presentation generating device based on document parsing, including: the system comprises a data acquisition module to be converted, a data extraction module, a slide object filling module and a presentation generating module;
the to-be-converted data acquisition module is used for acquiring to-be-converted word data; the word data to be converted comprises a test question mark for characterizing the content of the paragraph as a test question, an answer mark for characterizing the content of the paragraph as an answer and an answer analysis mark for characterizing the content of the paragraph as an answer analysis;
the data extraction module is used for identifying test question marks, answer marks and answer analysis marks in the word data to be converted and extracting test questions, answers and answer analysis in the word data to be converted;
the slide object filling module is used for creating a blank presentation file, filling frame elements of the slide object in the blank presentation file, which are used for analyzing the test questions, answers and answers, into the slide object, setting the animation playing sequence of each frame element, and generating a filled slide object;
the presentation generating module is used for generating a final presentation according to the filled slide object;
the playing sequence of the frame elements corresponding to the test questions is prior to the frame elements corresponding to the answers, and the playing sequence of the frame elements corresponding to the answers is prior to the frame elements corresponding to the answers.
Based on the method embodiment, the invention correspondingly provides the terminal equipment item embodiment.
Another embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the method for generating a presentation based on document parsing according to the embodiment of the present invention when executing the computer program.
The invention has the following beneficial effects:
the embodiment of the invention provides a presentation file generation method, a device and terminal equipment based on document analysis, which can identify a test question mark, an answer mark and an answer analysis mark of to-be-converted word data when obtaining to-be-converted word data, namely to-be-split test question data, so as to obtain test questions, answers and answer analyses in the to-be-converted word data, and facilitate the subsequent analysis of the test questions, the answers and the answers to manufacture corresponding slides; then creating a blank slide object, filling the blank slide object with the frame elements of the test questions, answers and answers as the blank slide object, setting the animation playing sequence of each frame element, and generating a filled slide object; when the animation playing sequence of each frame element is set, the playing sequence of the frame element corresponding to the test question is set to be prior to the frame element corresponding to the answer, the playing sequence of the frame element corresponding to the answer is set to be prior to the frame element corresponding to the answer analysis, and a presentation is generated according to the filled slide object, so that word data to be converted can be converted into the corresponding presentation, and the test question, the answer and the answer analysis are inserted into frames corresponding to different animation playing sequences, so that when a slide is presented, the test question, the answer and the answer analysis can have different playing sequences. Compared with the prior art, the method and the device can extract the test questions in the word data to be converted and the answers or the answer analyses corresponding to the test questions, and can draw corresponding slides according to the test questions and the answers or the answer analyses corresponding to the test questions, and insert the test questions, the answers and the answer analyses into the corresponding slides according to different playing orders, so that the test questions, the answers and the answer analyses have different playing orders, and the effect that each slide related to the test questions plays the test questions, the answers and the answer analyses in order is realized, namely the requirement of a teaching scene is met.
Drawings
Fig. 1 is a schematic flow chart of a presentation generating method based on document parsing according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of a file splitting structure according to an embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a presentation generating device based on document parsing according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a presentation generating method based on document parsing according to an embodiment of the present invention is shown, and the presentation generating method based on document parsing according to an embodiment of the present invention includes:
step S1: acquiring word data to be converted; the word data to be converted comprises a test question mark for characterizing the content of the paragraph as a test question, an answer mark for characterizing the content of the paragraph as an answer and an answer analysis mark for characterizing the content of the paragraph as an answer analysis;
step S2: identifying test question marks, answer marks and answer analysis marks in the word data to be converted, and extracting test questions, answers and answer analysis in the word data to be converted;
step S3: newly creating a blank presentation, filling frame elements serving as slide objects in the blank presentation by analyzing the test questions, answers and answers into the slide objects, setting animation playing sequences of the frame elements, and generating filled slide objects; the playing sequence of the frame elements corresponding to the test questions is prior to the frame elements corresponding to the answers, and the playing sequence of the frame elements corresponding to the answers is prior to the frame elements corresponding to the answers;
step S4: and generating a final presentation according to the filled slide object.
For step S1, in a preferred embodiment, word data to be converted is obtained; the word data to be converted comprises a test question mark for characterizing the content of the paragraph as a test question, an answer mark for characterizing the content of the paragraph as an answer and an answer analysis mark for characterizing the content of the paragraph as an answer analysis;
in a preferred embodiment, the obtaining word data to be converted specifically includes:
acquiring a word document; wherein, the word document includes: a plurality of first title tags for characterizing the paragraph content as a first-level title, and a plurality of second title tags for characterizing the paragraph content as a second-level title;
identifying each first title in the word document, and dividing the word document according to each first-level title to obtain a plurality of sub-documents;
and identifying secondary titles in the sub-documents for each sub-document, and dividing the sub-documents according to the secondary titles to obtain a plurality of word data to be converted.
The word data to be converted further comprises: unmarked paragraph content;
the generation method of the presentation file further comprises the following steps: extracting unmarked paragraph contents, and filling the paragraph contents into the slide object as frame elements of the slide object in the blank presentation.
Specifically, the word document is a word document of a test question, each mark in the test question document corresponds to a paragraph of content, and the test question document comprises a first title mark which is a folder mark and a second title mark which is a file name mark. Wherein each folder tab corresponds to a plurality of file tabs; illustratively, when the paragraph content corresponding to one folder mark (first-level title mark) is a chapter name, the folder mark may correspond to a plurality of file names (second-level titles) as file marks of unit 1 and unit 2. And each file mark also comprises a plurality of test question marks, and answer marks and answer analysis marks corresponding to each test question mark, and when the unmarked paragraph content, test question marks, answer marks or answer analysis marks are identified, paragraphs, test questions, answers or answers are analyzed and classified under the subfolders.
After a word document is acquired, the invention can divide the content of the word document by identifying each primary title to obtain N contents; identifying the secondary title for each content, and then dividing the content to obtain N sub-content; each sub-content corresponds to a file, namely a presentation, and all presentation files are located in the folder corresponding to the primary title. It should be noted that, when the current secondary title mark is identified, the next paragraph content is identified one by one, until the next secondary title mark is identified, the identified paragraph content is stopped being included under the current file name (i.e. the secondary title), then the file corresponding to the next secondary title mark is created and continues to be categorized until the content in the complete word document is identified. As shown in fig. 2, the file splitting structure diagram classifies each sub-file name (secondary title) under the name of the parent folder (primary title), and classifies the common paragraphs, test questions, answers or answers under the corresponding sub-file names, so as to obtain a plurality of unit files, and corresponding paragraphs and test questions included in each unit file.
Specifically, when the word document is read and identified, all characters in the word document are firstly split into character string objects with the format of xml according to paragraphs, the marks of each paragraph character string are identified, after the folder marks and the file marks are identified, each paragraph character string is identified, a data object of a folder list-file list-paragraph list corresponding to each paragraph character string can be obtained, and whether the self-adaptive paragraph character string is an analysis question, an answer or an answer analysis is further carried out, so that the data object of the folder list-file list-common paragraph/test question list can be obtained, that is, 3 folder marks, 6 file marks, a plurality of questions and common paragraphs can be stored in 100 paragraphs, and the answer corresponding to each question are analyzed.
According to the method and the device for classifying and aggregating the test questions, the answers and the answers in the document to be converted are analyzed and identified through marking the paragraphs in the document to be converted, the common paragraphs, the test questions, the answers or the answers can be analyzed and classified under the corresponding sub-file names, the test questions are classified and aggregated in a mode of classifying the file names, teaching or demonstration of the corresponding test questions under different file names can be conveniently conducted according to requirements in a teaching scene, and the teaching efficiency of teachers is improved.
For step S2, in a preferred embodiment, identifying the test question mark, the answer mark and the answer analysis mark in the word data to be converted, and extracting the test question, the answer and the answer analysis in the word data to be converted specifically includes:
when identifying the test question mark, the answer mark or the answer analysis mark, the method specifically comprises the following steps:
when identifying a test question mark, determining a test question type corresponding to the test question; the test question type comprises a selection question, a blank filling question, a simple answer question or a judgment question;
when the answer mark is identified, determining an answer type corresponding to the answer;
and when the answer analysis mark is identified, determining the answer analysis type corresponding to the answer analysis mark.
Judging whether an answer type corresponding to an answer mark is matched with the test question type according to the test question type of the test question, and taking the answer as an answer corresponding to the test question when the answer type is determined to be matched with the test question type;
and judging whether the answer analysis type corresponding to the answer analysis mark is matched with the test question type according to the test question type of the test question, and when the answer analysis type is determined to be matched with the test question type, using the answer analysis as the answer analysis corresponding to the test question.
Therefore, when the test questions, the answers and the answer analyses are identified, whether the types of the test questions are matched with the types of the answers or the answer analyses can be further judged, for example, when the types of the test questions are selected questions, whether the types of the answers belong to the types of A, B, C and D options exist or not is judged, and whether A, B, C letters of the D options and corresponding text analysis contents exist in the answer analyses or not is judged. Therefore, the method can improve the accuracy of extracting the test questions, and in the subsequent presentation, the corresponding slide playing effect can be set according to the types of the test questions, for example, when the types of the test questions are judged to be blank filling questions, the answers of the scribing parts in the test questions are set to appear on the scribing lines after the test questions are compared, so that the teaching effect when the drunk slides are adopted in the subsequent presentation can be better.
For step S3, in a preferred embodiment, a blank presentation is created, frame elements of slide objects in the blank presentation are filled into the slide objects by parsing the test questions, answers and answers, and an animation playing sequence of each frame element is set, and the filled slide objects are generated, which specifically includes:
and when a blank presentation is newly established, naming the presentation according to the secondary title of the sub-document corresponding to the word data to be converted. Namely, generating a folder with the same folder name as the primary title according to the primary title for each primary title, namely generating a folder according to the name of the father folder; then generating a blank presentation file under the folder; the file name of the blank presentation file is a sub-file name, i.e. the presentation file corresponding to the file name (such as a unit name) can be directly generated, and the presentation file includes the relevant contents of each paragraph and test question in the file name (such as the unit name).
The invention can directly generate the corresponding folder by the primary title after extracting the primary title and the corresponding secondary title, generate the corresponding presentation according to the secondary title, directly extract the test questions or paragraphs corresponding to the secondary title, generate the final presentation, and store the extracted content without generating intermediate files, thereby greatly improving the efficiency of converting data into presentation.
In a preferred embodiment, when filling the frame element of the slide object in the blank presentation file, which is the unmarked paragraph content, test questions, answers and answers, to the slide object, the following data filling operation to be filled is repeatedly performed until all the data to be filled is filled into the slide object:
acquiring data to be filled; wherein, the data to be filled at least comprises any one of the following: test questions, answers, answer analysis and unmarked paragraph content;
determining the data type of data to be filled; wherein the data types include: text, forms or pictures;
determining the size of a frame corresponding to the data type when the data to be filled is filled into the slide object according to the data type of the data to be filled;
firstly judging whether the sum of frame sizes of all filled data in a current slide exceeds the preset height of the current slide after the data to be filled is filled into the current slide;
if yes, a slide is newly built, the data to be filled is filled into the newly built slide, and if not, the data to be filled is directly filled into the current slide;
and obtaining the next data to be filled.
After filling all data to be filled into the slide object, setting the animation playing sequence of each frame element according to the marks of the test questions, the answer marks and the answer analysis marks to generate the filled slide object; the playing sequence of the frame elements corresponding to the test questions is prior to the frame elements corresponding to the answers, and the playing sequence of the frame elements corresponding to the answers is prior to the frame elements corresponding to the answers. Illustratively, the questions appear first when the ppt of the test questions has different playing animation sequences, and answers and analysis appear after the mouse is detected to be clicked again.
The invention can convert word data to be converted into corresponding presentation files, and enable test questions, answers and answer analyses to be inserted into corresponding frames of different animation playing sequences, so that when a slide is presented, the test questions, answers and answer analyses can have different playing sequences.
For step S4, in a preferred embodiment, generating a final presentation from the filled slide object specifically includes:
after the filled slide objects are aggregated, a final presentation is generated; in a preferred embodiment, after generating the final presentation from the filled-in slide object, further comprising: determining a first-level title of a target corresponding to the presentation according to the name of the presentation; and storing the presentation file in a folder with the same folder name as the target primary title according to the target primary title.
The invention can realize that the test questions in the word data to be converted and the answers or the answer analyses corresponding to the test questions are extracted, and the corresponding slides can be drawn according to the test questions and the answers or the answer analyses corresponding to the test questions, and the test questions, the answers and the answer analyses are inserted into the corresponding slides according to different playing orders, so that the test questions, the answers and the answer analyses have different playing orders, and the effect that each slide related to the test questions plays the test questions, the answers and the answer analyses in order is realized, namely the requirement of teaching scenes is met.
As shown in fig. 3, on the basis of the above embodiments of the various presentation generating methods based on document parsing, the present invention correspondingly provides device item embodiments;
an embodiment of the present invention provides a presentation generating device based on document parsing, including: the system comprises a data acquisition module to be converted, a data extraction module, a slide object filling module and a presentation generating module;
the to-be-converted data acquisition module is used for acquiring to-be-converted word data; the word data to be converted comprises a test question mark for characterizing the content of the paragraph as a test question, an answer mark for characterizing the content of the paragraph as an answer and an answer analysis mark for characterizing the content of the paragraph as an answer analysis;
the data extraction module is used for identifying test question marks, answer marks and answer analysis marks in the word data to be converted and extracting test questions, answers and answer analysis in the word data to be converted;
the slide object filling module is used for creating a blank presentation file, filling frame elements of the slide object in the blank presentation file, which are used for analyzing the test questions, answers and answers, into the slide object, setting the animation playing sequence of each frame element, and generating a filled slide object;
the presentation generating module is used for generating a final presentation according to the filled slide object;
the playing sequence of the frame elements corresponding to the test questions is prior to the frame elements corresponding to the answers, and the playing sequence of the frame elements corresponding to the answers is prior to the frame elements corresponding to the answers.
It should be noted that the above-described apparatus embodiments are merely illustrative, and the units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the invention, the connection relation between the modules represents that the modules have communication connection, and can be specifically implemented as one or more communication buses or signal lines. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
It will be clearly understood by those skilled in the art that, for convenience and brevity, the specific working process of the apparatus described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
Based on the embodiments of the various presentation generating methods based on document analysis, the invention correspondingly provides embodiments of terminal equipment items.
An embodiment of the present invention provides a terminal device, including a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, where the processor implements the presentation generating method based on document parsing according to any one of the embodiments of the present invention when the processor executes the computer program.
The terminal equipment can be computing terminal equipment such as a desktop computer, a notebook computer, a palm computer, a cloud server and the like. The terminal device may include, but is not limited to, a processor, a memory.
The processor may be a central processing unit (Central Processing Unit, CPU), other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, which is a control center of the terminal device, and which connects various parts of the entire terminal device using various interfaces and lines.
The memory may be used to store the computer program, and the processor may implement various functions of the terminal device by running or executing the computer program stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function, and the like; the storage data area may store data created according to the use of the cellular phone, etc. In addition, the memory may include high-speed random access memory, and may also include non-volatile memory, such as a hard disk, memory, plug-in hard disk, smart Media Card (SMC), secure Digital (SD) Card, flash Card (Flash Card), at least one disk storage device, flash memory device, or other volatile solid state storage device.
While the foregoing is directed to the preferred embodiments of the present invention, it will be appreciated by those skilled in the art that changes and modifications may be made without departing from the principles of the invention, such changes and modifications are also intended to be within the scope of the invention.

Claims (9)

1. A presentation generating method based on document analysis is characterized by comprising the following steps:
acquiring word data to be converted; the word data to be converted comprises a test question mark for characterizing the content of the paragraph as a test question, an answer mark for characterizing the content of the paragraph as an answer and an answer analysis mark for characterizing the content of the paragraph as an answer analysis;
identifying test question marks, answer marks and answer analysis marks in the word data to be converted, and extracting test questions, answers and answer analysis in the word data to be converted;
newly creating a blank presentation, filling frame elements serving as slide objects in the blank presentation by analyzing the test questions, answers and answers into the slide objects, setting animation playing sequences of the frame elements, and generating filled slide objects;
generating a final presentation according to the filled slide object;
the playing sequence of the frame elements corresponding to the test questions is prior to the frame elements corresponding to the answers, and the playing sequence of the frame elements corresponding to the answers is prior to the frame elements corresponding to the answers.
2. The method for generating a presentation file based on document parsing as claimed in claim 1, wherein the step of obtaining word data to be converted specifically comprises:
acquiring a word document; wherein, the word document includes: a plurality of first title tags for characterizing the paragraph content as a first-level title, and a plurality of second title tags for characterizing the paragraph content as a second-level title;
identifying each first title in the word document, and dividing the word document according to each first-level title to obtain a plurality of sub-documents;
and identifying the secondary titles in the sub-documents for each sub-document, and dividing the sub-documents according to the secondary titles to obtain a plurality of word data to be converted.
3. The document parsing-based presentation generating method of claim 2, further comprising: and naming the presentation according to the secondary title of the sub-document corresponding to the word data to be converted.
4. The presentation generating method based on document parsing as claimed in claim 3, further comprising:
generating a folder with the same folder name as the primary title according to the primary title for each primary title;
after generating the final presentation according to the filled slide object, the method further comprises:
determining a first-level title of a target corresponding to the presentation according to the name of the presentation;
and storing the presentation file in a folder with the same folder name as the target primary title according to the target primary title.
5. The presentation generating method based on document parsing as claimed in claim 1, wherein the word data to be converted further comprises: unmarked paragraph content;
the generation method of the presentation file further comprises the following steps: extracting unmarked paragraph contents, and filling the paragraph contents into the slide object as frame elements of the slide object in the blank presentation.
6. The document resolution-based presentation generating method as claimed in claim 1, wherein when the test question mark, the answer mark or the answer resolution mark is recognized, the method comprises the steps of:
when identifying a test question mark, determining a test question type corresponding to the test question; the test question type comprises a selection question, a blank filling question, a simple answer question or a judgment question;
when the answer mark is identified, determining an answer type corresponding to the answer;
and when the answer analysis mark is identified, determining the answer analysis type corresponding to the answer analysis mark.
Judging whether an answer type corresponding to an answer mark is matched with the test question type according to the test question type of the test question, and taking the answer as an answer corresponding to the test question when the answer type is determined to be matched with the test question type;
and judging whether the answer analysis type corresponding to the answer analysis mark is matched with the test question type according to the test question type of the test question, and when the answer analysis type is determined to be matched with the test question type, using the answer analysis as the answer analysis corresponding to the test question.
7. The presentation generating method based on document parsing as claimed in claim 5, wherein the following data filling operation to be filled is repeatedly performed until all data to be filled is filled into the slide object:
acquiring data to be filled; wherein, the data to be filled at least comprises any one of the following: test questions, answers, answer analysis and unmarked paragraph content;
determining the data type of data to be filled; wherein the data types include: text, forms or pictures;
determining the size of a frame corresponding to the data type when the data to be filled is filled into the slide object according to the data type of the data to be filled;
firstly judging whether the sum of frame sizes of all filled data in a current slide exceeds the preset height of the current slide after the data to be filled is filled into the current slide;
if yes, a slide is newly built, the data to be filled is filled into the newly built slide, and if not, the data to be filled is directly filled into the current slide;
and obtaining the next data to be filled.
8. A presentation generating device based on document parsing, comprising: the system comprises a data acquisition module to be converted, a data extraction module, a slide object filling module and a presentation generating module;
the to-be-converted data acquisition module is used for acquiring to-be-converted word data; the word data to be converted comprises a test question mark for characterizing the content of the paragraph as a test question, an answer mark for characterizing the content of the paragraph as an answer and an answer analysis mark for characterizing the content of the paragraph as an answer analysis;
the data extraction module is used for identifying test question marks, answer marks and answer analysis marks in the word data to be converted and extracting test questions, answers and answer analysis in the word data to be converted;
the slide object filling module is used for creating a blank presentation file, filling frame elements of the slide object in the blank presentation file, which are used for analyzing the test questions, answers and answers, into the slide object, setting the animation playing sequence of each frame element, and generating a filled slide object;
the presentation generating module is used for generating a final presentation according to the filled slide object;
the playing sequence of the frame elements corresponding to the test questions is prior to the frame elements corresponding to the answers, and the playing sequence of the frame elements corresponding to the answers is prior to the frame elements corresponding to the answers.
9. A terminal device comprising a processor, a memory and a computer program stored in the memory and configured to be executed by the processor, the processor implementing a document parsing based presentation generation method according to any one of claims 1 to 7 when the computer program is executed.
CN202310482627.4A 2023-04-28 2023-04-28 Presentation generation method and device based on document analysis and terminal equipment Pending CN116578732A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310482627.4A CN116578732A (en) 2023-04-28 2023-04-28 Presentation generation method and device based on document analysis and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310482627.4A CN116578732A (en) 2023-04-28 2023-04-28 Presentation generation method and device based on document analysis and terminal equipment

Publications (1)

Publication Number Publication Date
CN116578732A true CN116578732A (en) 2023-08-11

Family

ID=87535148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310482627.4A Pending CN116578732A (en) 2023-04-28 2023-04-28 Presentation generation method and device based on document analysis and terminal equipment

Country Status (1)

Country Link
CN (1) CN116578732A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2153841Y (en) * 1993-05-22 1994-01-19 胡斌 Lantern slide rack structure
CN104424825A (en) * 2013-08-30 2015-03-18 鸿富锦精密工业(深圳)有限公司 Remote teaching method and system
CN105844989A (en) * 2016-06-02 2016-08-10 新乡学院 English teaching language learning system
CN108583059A (en) * 2018-07-16 2018-09-28 许敏 A kind of paper and the pattern of examination question parsing
CN113779270A (en) * 2021-09-13 2021-12-10 东莞市亚太未来软件有限公司 Intelligent lesson preparation system
CN115510347A (en) * 2022-09-26 2022-12-23 北京世纪好未来教育科技有限公司 Presentation file conversion method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN2153841Y (en) * 1993-05-22 1994-01-19 胡斌 Lantern slide rack structure
CN104424825A (en) * 2013-08-30 2015-03-18 鸿富锦精密工业(深圳)有限公司 Remote teaching method and system
CN105844989A (en) * 2016-06-02 2016-08-10 新乡学院 English teaching language learning system
CN108583059A (en) * 2018-07-16 2018-09-28 许敏 A kind of paper and the pattern of examination question parsing
CN113779270A (en) * 2021-09-13 2021-12-10 东莞市亚太未来软件有限公司 Intelligent lesson preparation system
CN115510347A (en) * 2022-09-26 2022-12-23 北京世纪好未来教育科技有限公司 Presentation file conversion method and device, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"全是选择题的word文件转换为ppt", pages 1 - 2, Retrieved from the Internet <URL:https://zhidao.***.com/question/575947181.html> *

Similar Documents

Publication Publication Date Title
CN110083805B (en) Method and system for converting Word file into EPUB file
CN107766371B (en) Text information classification method and device
CN108108342B (en) Structured text generation method, search method and device
CN111191012B (en) Knowledge graph generation device and method and computer readable storage medium thereof
CN112016273A (en) Document directory generation method and device, electronic equipment and readable storage medium
CN103136228A (en) Image search method and image search device
CN102193906A (en) Method for automatically introducing examination paper in WORD format into database system
CN106940693B (en) Single structure processing method for laboratory original record
CN109918351B (en) Method and system for converting Beamer presentation into PowerPoint presentation
EP3617910A1 (en) Method and apparatus for displaying textual information
CN108121715A (en) A kind of word tag method and word tag device
CN111737443B (en) Answer text processing method and device and key text determining method
CN113420164A (en) Information display method, information search method and device
CN111078915B (en) Click-to-read content acquisition method in click-to-read mode and electronic equipment
CN109614594B (en) Method for analyzing topic document into topic library data
CN110990539A (en) Manuscript internal duplicate checking method and device, storage medium and electronic equipment
CN110209780B (en) Question template generation method and device, server and storage medium
CN107506407B (en) File classification and calling method and device
US10261987B1 (en) Pre-processing E-book in scanned format
CN112860845A (en) Test question retrieval method and device, electronic equipment and storage medium
CN116578732A (en) Presentation generation method and device based on document analysis and terminal equipment
CN114581934A (en) Test paper image processing method, device and equipment
CN114067343A (en) Data set construction method, model training method and corresponding device
CN113343663A (en) Bill structuring method and device
CN111401005B (en) Text conversion method and 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