A method for hiding knowledge in text files based on AI technology and reading them independently or in combination
Through AI technology and NLP analysis, OFD expansion file packages are generated, which solves the problem that traditional files cannot automatically comment and match knowledge in offline environments, realizes knowledge hiding and display of file content, and improves reading experience and efficiency.
Patent Information
- Application Number
- CN202411216100.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-02
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-09-02
AI Technical Summary
Traditional electronic files cannot be automatically noted, marked or knowledge matching in offline environments, and reading is limited by the file itself and cannot be associated and matched with other files.
Using AI technology to set up a knowledge matching library, analyze file types through NLP, convert them into standard OFD files, obtain file content information, generate knowledge base xml files, form an OFD extended file package, support online or offline reading, and use OFD readers to parse it Expand file packages and display the knowledge matching library for file content.
It realizes the method of hiding knowledge in files, improves reading experience and efficiency, expands the scope of application of file types, and supports offline reading without online knowledge base support.
Smart Images

Figure CN118761390B_ABST
Abstract
Description
Technical Field
[0001] This technology belongs to the field of artificial intelligence technology, specifically, it is a method of AI technology to hide knowledge in text files for independent or combined reading. Background Art
[0002] When reading traditional electronic files, the content is limited to the file itself. It is not possible to expand or associate the file itself. Compared with web pages, notes need to be added during maintenance. Automatic notes, markings or judgments cannot be made. In addition, file reading is all online matching and query, and cannot be viewed offline. Summary of the invention
[0003] The purpose of the present invention is to provide a method for using AI technology to hide knowledge in text files for independent or combined reading, so as to solve one or more problems raised in the above-mentioned background technology.
[0004] To achieve the above object, the present invention provides the following technical solution: a method for hiding knowledge in text files for independent or combined reading based on AI technology, comprising the following steps:
[0005] Step S1: Setting the knowledge matching library;
[0006] Step S2: Analyze and determine the type of the uploaded file. If the file type is not a standard OFD file, convert it to a standard OFD file.
[0007] Step S3: Analyze the file using NLP to obtain the field type to which the file belongs. If the field type of the file cannot be determined, match the general data in the knowledge matching library;
[0008] Step S4: According to the file domain type, parse and obtain the file content information, obtain the text queue that needs to be expanded, input the text queue into the knowledge model, and obtain a one-to-one corresponding key, value key-value pair model;
[0009] Step S5: Record the association relationship information between the original content (key) and the original explanation (value) and format them according to the format to form a knowledge base xml file, generate an OFD extension file package, and generate a new OFD file. The new OFD file can be used for online or offline transmission and reading;
[0010] Step S6: Use the OFD reader to load the original OFD file for reading. If the original file contains a knowledge extension file package, parse the knowledge extension file package, display the content identifier specified by the original file, and use different display modes to display and read the knowledge matching library of the file.
[0011] Preferably, the fields of the knowledge matching library include the field to which it belongs, a written description, a specific meaning and content explanation, a source, and a content description.
[0012] Preferably, in step S2, the uploaded file type is analyzed and determined. If it is a PDF, PPT, PPTX, DOC, DOCX, XLS, XLXS, CAD, True, or DLF file, it is converted into an OFD file; if it is a picture or scanned file, the file is subjected to OCR to generate a double-layer OFD file; if it is an audio, video or other file, it is filled into the OFD framework as a resource, and the text therein is recognized and displayed synchronously as subtitles of the audio and video.
[0013] Preferably, the field types to which the files belong include medical industry, science and technology industry, education industry, politics and law, and chemistry; the common data refers to: the same industry explanation information between different fields.
[0014] Preferably, the specific steps of analyzing the file in step S4 are:
[0015] Step S41: parsing the file content information, and performing semantic analysis on phrases, entries, and related sentences;
[0016] Step S42: obtaining a text queue that needs to be expanded;
[0017] Step S43: input the above text queue into the knowledge model to obtain a one-to-one corresponding key and value model;
[0018] Step S44: Save the extended text generated in step S43 to generate a new OFD file.
[0019] Preferably, the extended text is used to record the relationship between the content of the original text and the explanation of the original text.
[0020] Preferably, the specific steps of using the OFD reader to read in step S5 are as follows:
[0021] Step S51: Use the OFD reader to load the basic content of the OFD original text, and determine whether there is an extension file in the original text;
[0022] Step S52: if the original text has an extension file, the extension file is parsed, and the designated content in the original text is marked and displayed, and the designated content includes the words, terms, and sentences of the original text;
[0023] Step S53: Display the content in the extended file in the OFD original text in various forms, including mouse hover display and annotation content description on the right side of the OFD original text;
[0024] Step S54: Draw a menu in the original text to display the names and explanations contained in the full text.
[0025] Preferably, the operations on the content in the knowledge matching library include editing, modifying, and erasing; the content of the extended file displayed in the OFD original text is updated and adjusted in real time according to the update of the knowledge matching library.
[0026] Preferably, during the reading process, different modes can be selected to control whether the displayed content is dynamically displayed or hidden.
[0027] Preferably, when the original OFD file is a combined file, the combined file directory can display content information on whether there is hidden knowledge.
[0028] Compared with the prior art, the present invention has the following beneficial effects:
[0029] (1) The present invention effectively integrates AI technology and OFD extension files to create a method for hiding knowledge in files. By processing files with this technology, a large amount of knowledge content is attached to the original files, which improves the reading experience of readers and improves reading efficiency.
[0030] (2) The present invention can convert various types of files through OFD conversion technology, which can expand the scope of hiding knowledge in files and is applicable to more file types;
[0031] (3) The present invention supports offline reading. After the file is processed, knowledge can be attached to the file without the need for other online knowledge bases or any background support. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] Figure 1 It is a flow chart of the present invention; DETAILED DESCRIPTION
[0033] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention. Example
[0034] Combination Figure 1 As shown, the present invention provides a method for hiding knowledge in text files by using AI technology and reading them independently or in combination, comprising the following steps:
[0035] Step S1: Set up the knowledge matching library. The fields of the knowledge matching library include the field, written description, specific meaning and content explanation, source, and content description. A series of operations can be performed on the content in the knowledge matching library, including editing, modifying, and erasing;
[0036] Step S2: when uploading a file, the file is uploaded to the server, and the type of the uploaded file is analyzed and determined. If the file type is not a standard OFD file, it is converted into a standard OFD file. When analyzing and determining the type of the uploaded file, if it is a PDF, PPT, PPTX, DOC, DOCX, XLS, XLXS, CAD, True, or DLF file, it is converted into an OFD file, wherein a DLF file refers to a compressed package file, and the DLF contains a navigation file and several OFD files, wherein the navigation file mainly records the association relationship between files, the entry of the file, the storage path of the OFD file, and the triggering position and jump event between OFD and OFD; if it is a picture, such as PNG, JPG, TIF, or a scanned file, the file is subjected to OCR to generate a double-layer OFD file; if it is an audio, video, or other file, it is filled into the OFD framework as a resource, and the text therein is recognized and displayed synchronously as subtitles of the audio and video;
[0037] Step S3: Analyze the file using NLP to obtain the field type to which the file belongs. If the field type of the file cannot be determined, match the general data in the knowledge matching library, where the field types of the file include the medical industry, science and technology industry, education industry, politics and law, chemistry, agriculture and other industries; general data refers to: the same industry explanation information between different fields;
[0038] Step S4: According to the file domain type, parse and obtain the file content information, obtain the text queue that needs to be expanded, input the queue into the knowledge model, and obtain a one-to-one corresponding key, value key-value pair model, where the key refers to the content of the original text and the value refers to the explanation of the original text. The specific steps for analyzing the file content information are as follows:
[0039] Step S41: parsing the file content information, and performing semantic analysis on the phrases, entries, and related sentences in the file;
[0040] Step S42: obtaining a text queue that needs to be expanded, where the expanded text queue refers to a list of original text contents;
[0041] Step S43: input the above text queue, i.e. the list of original text contents, into the knowledge model, and then match the corresponding interpreted original text contents through original text retrieval, obtain a one-to-one corresponding key and value model, and thus generate an extended text;
[0042] Step S44: directly writing the generated extended text, i.e., the text queue for recording the relationship between the content of the original text and the explanation of the original text, into the OFD file, thereby saving and generating a new OFD file;
[0043] Step S5: Record the association relationship information between the original content (key) and the original explanation (value), and format them according to the format to form a knowledge base xml file, thereby generating an extended file package of OFD. Generate a new OFD file based on the extended file package of OFD. The new OFD file can be used for online or offline transmission and reading. The extended file content displayed by the OFD original text is updated and adjusted in real time according to the update of the knowledge matching library. The specific steps of using the OFD reader for reading are as follows:
[0044] Step S51: Use the OFD reader to load and generate a new OFD original text basic content. If the OFD file is an independent file, determine whether the original text contains an extended file package of the "knowledge matching library";
[0045] Step S52: if the original text contains an extended file package, the extended file package is parsed, and the designated content in the original text is marked and displayed, and the designated content includes words, terms, and sentences in the original text;
[0046] Step S53: Display the content in the extended file in the OFD original text in various forms, including mouse hover display, annotation content description on the right side of the OFD original text, etc.;
[0047] Step S54: drawing a menu in the original text to display the names and explanations contained in the full text;
[0048] Step S6: When reading, first use the OFD reader to load the original content of the OFD file, and then determine whether there is an extended file package of the knowledge matching library. If there is an extended file package of the knowledge matching library in the original file, it means that there is knowledge hiding in the OFD file. Then, the extended file package of the knowledge matching library is parsed, and the specified content in the original file, such as "words, entries, sentences", is displayed. Different display modes are used to display and read the knowledge matching library of the file, such as mouse hover display, content description of the annotation status on the right, and unified display of all involved entries, so as to control whether the displayed content is dynamically displayed or hidden.
[0049] When the original OFD file is a combined file, when reading the combined file, it is determined whether there is an extended file package of the knowledge matching library in the combined file. If there is an extended file package of the knowledge matching library in the file, the extended file package of the knowledge matching library in the combined file is parsed, wherein the extended files of the combined file are all stored in their respective file contents, and the content existing in the extended file of the knowledge matching library can be displayed in the OFD file in one or more of the following forms: mouse hover display, content description of the annotation status on the right, and unified display of all involved entries, and the specified content in the OFD file can be marked for display, and the reader can dynamically control whether to display or hide knowledge. At the same time, the directory of the combined file can display the content information of whether there is hidden knowledge, so that AI technology and OFD extended files can be effectively integrated, creating a method of hiding knowledge in files. By processing the files through this technology, a large amount of knowledge content is attached to the original files, which improves the reading experience of readers and improves reading efficiency.
[0050] It will be apparent to those skilled in the art that the invention is not limited to the details of the exemplary embodiments described above and that the invention can be implemented in other specific forms without departing from the spirit or essential features of the invention. Therefore, the embodiments are to be regarded as exemplary and non-limiting in all respects, and the scope of the invention is to be defined by the appended claims rather than by the foregoing description, and it is intended that all variations falling within the meaning and range of equivalent elements of the claims be included in the invention. Any reference numeral in a claim should not be regarded as limiting the claim to which it relates.
Claims
1. A method for hiding knowledge in text files for independent or combined reading based on AI technology, characterized in that: The following steps are involved: Step S1: Setting the knowledge matching library; Step S2: Analyze and determine the uploaded file type. If the file type is not a standard OFD file, convert it to a standard OFD file. Step S3: Analyze the file using NLP to obtain the field type to which the file belongs. If the field type of the file cannot be determined, match the general data in the knowledge matching library; Step S4: According to the file domain type, parse and obtain the file content information, obtain the text queue that needs to be expanded, input the text queue into the knowledge model, and obtain a one-to-one corresponding key, value key-value pair model; Step S5: Record the content of the original text and the information on the relationship between the explanations of the original text and format them according to the format to form a knowledge base xml file, generate an extended file package of OFD, and generate a new OFD file. The new OFD file is used for online or offline transmission and reading; Step S6: Use the OFD reader to load the original OFD file for reading. If the original file contains a knowledge extension file package, parse the knowledge extension file package, display the content identifier specified by the original file, and use different display modes to display and read the knowledge matching library of the file.
2. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 1, characterized in that: The fields of the knowledge matching library include the field to which it belongs, written description, specific meaning and content explanation, source, and content description.
3. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 1, characterized in that: In the step S2, the type of the uploaded file is analyzed and determined. If it is a PDF, PPT, PPTX, DOC, DOCX, XLS, XLXS, CAD, True, or DLF file, it is converted into an OFD file; if it is a picture or a scanned file, the file is subjected to OCR to generate a double-layer OFD file; If it is an audio or video file, it will be filled into the OFD framework as a resource, and the text in it will be recognized and displayed synchronously as subtitles of the audio and video.
4. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 1, characterized in that: The types of fields to which the files belong include the medical industry, the science and technology industry, the education industry, politics and law, and chemistry; the common data refers to: the same industry explanation information between different fields.
5. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 1, characterized in that: The specific steps of analyzing the file in step S4 are: Step S41: parsing the file content information, and performing semantic analysis on phrases, entries, and related sentences; Step S42: obtaining a text queue that needs to be expanded; Step S43: input the above text queue into the knowledge model to obtain a one-to-one corresponding key and value model; Step S44: Save the extended text generated in step S43 to generate a new OFD file.
6. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 5, characterized in that: The extended text in step S44 is used to record the relationship between the content of the original text and the explanation of the original text.
7. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 1, characterized in that: The specific steps of using the OFD reader to read in step S5 are as follows: Step S51: Use the OFD reader to load the basic content of the OFD original text, and determine whether there is an extended file package in the original text; Step S52: if the original text contains an extended file package, the extended file package is parsed, and the designated content in the original text is marked and displayed, and the designated content includes words, terms, and sentences in the original text; Step S53: Display the content in the extended file package in the OFD original text in various forms, including mouse hover display and annotation content description on the right side of the OFD original text; Step S54: Draw a menu in the original text to display the names and explanations contained in the full text.
8. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 1, characterized in that: The content operations on the knowledge matching library include editing, modifying, and erasing; the extended file content displayed in the OFD original text is updated and adjusted in real time according to the update of the knowledge matching library.
9. The method for hiding knowledge in text files for independent or combined reading based on AI technology according to claim 7, characterized in that: During the reading process, you can select different modes to control whether the displayed content is dynamically displayed or hidden.
10. The method for hiding knowledge in text files based on AI technology and reading them independently or in combination according to claim 1, characterized in that: When the original OFD file is a combined file, the combined file directory can display content information on whether there is hidden knowledge.
