A digital ideological and political course knowledge graph construction method and related devices

By constructing the ideological and political course content into a knowledge map, it solves the problem of students' difficulty in grasping the key points of the course, realizes the connection of course content, and improves learning efficiency and effect.

CN118245600BActive Publication Date: 2024-09-10GUANGDONG YUEXING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410316033.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-20
Publication Date
2024-09-10
Estimated Expiration
2044-03-20

AI Technical Summary

Technical Problem

In ideological and political courses, it is difficult for students to accurately grasp the core key contents of the course, resulting in low after-class learning efficiency and inability to effectively improve learning effects.

Method used

Adopting a digital-based knowledge graph construction method for ideological and political courses, the course voice data is converted into text content through speech recognition and semantic recognition models, semantic keywords are extracted, and a knowledge graph is formed through content hierarchical classification and tree relationship construction, and is stored as binary data.

Benefits of technology

It realizes the connection of course content, improves the learning efficiency and effect of ideological and political courses, and helps students better consolidate course knowledge.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118245600B
    Figure CN118245600B
Patent Text Reader

Abstract

The present invention discloses a method for constructing a knowledge graph of ideological and political courses based on digitization and a related device, wherein the method comprises: converting the course voice data into course text content information based on a voice recognition model; inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords in the course semantic content corresponding to the course text content information; performing content level classification processing on the semantic keywords to obtain content level classification results of the semantic keywords; performing tree relationship construction processing corresponding to the semantic keywords; indexing the semantic keywords of each node in the semantic keyword tree structure diagram with the corresponding course semantic content to form an ideological and political course knowledge graph, and storing it in the corresponding storage space. In an embodiment of the present invention, the ideological and political course content is constructed into a knowledge graph to realize the series connection of the course content, improve the learning efficiency of the ideological and political course, and improve the learning effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of teaching assistance technology, and in particular to a method for constructing a digital ideological and political course knowledge graph and related devices. Background Art

[0002] During the lectures of ideological and political courses, teachers generally give lectures based on the corresponding course handouts. However, due to the limited acceptance of students in class, they often need to review and consolidate after class. However, students cannot accurately grasp the core content of the course during class and cannot take accurate course notes. Therefore, they cannot effectively consolidate their learning after class, resulting in low learning efficiency of ideological and political courses and inability to effectively improve learning outcomes. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings of the prior art. The present invention provides a digital-based ideological and political course knowledge graph construction method and related devices, which can construct the ideological and political course content into a knowledge graph, realize the concatenation of course content, improve the learning efficiency of ideological and political courses, and improve learning effects.

[0004] In order to solve the above technical problems, an embodiment of the present invention provides a method for constructing a digital ideological and political course knowledge graph, the method comprising:

[0005] Obtaining course voice data of ideological and political courses, and converting the course voice data into course text content information based on a speech recognition model;

[0006] Inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords in the course semantic content corresponding to the course text content information;

[0007] Based on the semantic content of the course, the semantic keywords are subjected to content-level classification processing to obtain content-level classification results of the semantic keywords;

[0008] Based on the semantic keywords corresponding to the content level classification results, a tree relationship construction process corresponding to the semantic keywords is performed to obtain a semantic keyword tree structure diagram;

[0009] The semantic keywords of each node in the semantic keyword tree structure diagram and its corresponding course semantic content are indexed to form an ideological and political course knowledge graph, and the course semantic content corresponding to the semantic keyword index of each node is stored in binary form in the corresponding storage space.

[0010] Optionally, converting the course voice data into course text content information based on a speech recognition model includes:

[0011] Extracting and processing the ambient audio information when the teacher is giving a lecture in the course based on the course voice data to obtain the ambient audio information;

[0012] Performing noise reduction processing on the course voice data based on the environmental audio information to obtain noise-reduced course voice data;

[0013] The noise reduction course voice data is input into a voice recognition model, and the received noise reduction course voice data is converted into course text content information in the semantic recognition model.

[0014] Optionally, performing noise reduction processing on the course voice data based on the environmental audio information to obtain noise-reduced course voice data includes:

[0015] Extracting ambient audio signal features from the ambient audio information, and generating a noise reduction signal based on the extracted ambient audio signal features, wherein the ambient audio signal features include phase data and amplitude data in the ambient audio information, the phase data of the noise reduction signal is opposite to the phase data in the ambient audio information, and the amplitude data of the noise reduction signal is consistent with the amplitude data in the ambient audio information;

[0016] The course voice data is subjected to noise reduction processing based on the noise reduction signal to obtain noise-reduced course voice data.

[0017] Optionally, the step of inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords from the course semantic content corresponding to the course text content information, includes:

[0018] Input the course text content information into a semantic recognition model for semantic recognition processing to obtain the initial course semantics corresponding to the course text content information, wherein the semantic recognition model is a model obtained by converging the semantic expression extraction network training using the course text content in the ideological and political course and the corresponding course semantic content;

[0019] Adjust and proofread the initial course semantics to obtain course semantic content corresponding to the course text content;

[0020] Based on the keyword extraction model, keyword extraction processing is performed on the course semantic content corresponding to the course text content to obtain semantic keywords in the course semantic content corresponding to the course text content information.

[0021] Optionally, performing content level classification processing on the semantic keywords based on the semantic content of the course to obtain content level classification results of the semantic keywords includes:

[0022] Obtaining the course semantic content corresponding to the semantic keyword, and confirming the level of the course semantic content corresponding to the semantic keyword in the course text content information;

[0023] The course semantic content corresponding to the semantic keyword is subjected to content level classification processing according to the level to obtain a content level classification result of the semantic keyword.

[0024] Optionally, the step of constructing a tree relationship corresponding to the semantic keyword based on the semantic keyword corresponding to the content level classification result to obtain a semantic keyword tree structure diagram includes:

[0025] Determine the corresponding positions of the root node and other nodes in the tree structure according to the semantic keywords corresponding to the content level classification results;

[0026] The semantic keywords corresponding to the content level classification results are filled into the root node and the corresponding position centers of the remaining nodes in the tree structure to form a semantic keyword tree structure diagram.

[0027] Optionally, the keyword of each node in the keyword tree structure diagram is indexed with its corresponding course semantic content to form an ideological and political course knowledge graph, and the course semantic content corresponding to the keyword index of each node is stored in a binary form in a corresponding storage space, including:

[0028] Obtaining the course semantic content corresponding to the semantic keyword of each node in the semantic keyword tree structure diagram, and assigning a corresponding first element to the semantic keyword of each node and a corresponding second element to the course semantic content corresponding to the semantic keyword;

[0029] Based on the corresponding first element and the corresponding second element, the keyword of each node is indexed and associated with the corresponding course semantic content, so as to form a knowledge graph of ideological and political courses;

[0030] The course semantic content corresponding to the semantic keyword index of a node is converted into binary data, and the binary data index is stored in the corresponding storage space.

[0031] In addition, an embodiment of the present invention further provides a device for constructing a digital ideological and political course knowledge graph, the device comprising:

[0032] Conversion module: used to obtain the course voice data of the ideological and political course, and convert the course voice data into course text content information based on the speech recognition model;

[0033] Extraction module: used for inputting the course text content information into the semantic recognition model for semantic recognition processing, and extracting semantic keywords in the course semantic content corresponding to the course text content information;

[0034] Classification module: used for performing content-level classification processing on the semantic keywords based on the semantic content of the course to obtain content-level classification results of the semantic keywords;

[0035] Construction module: used for constructing a tree relationship corresponding to the semantic keyword based on the semantic keyword corresponding to the content level classification result to obtain a semantic keyword tree structure diagram;

[0036] Indexing module: used to index the semantic keywords of each node in the semantic keyword tree structure diagram and its corresponding course semantic content to form an ideological and political course knowledge graph, and store the course semantic content corresponding to the semantic keyword index of each node in binary form in the corresponding storage space.

[0037] In addition, an embodiment of the present invention also provides an electronic device, including a processor and a memory, wherein the processor runs a computer program or code stored in the memory to implement a method for constructing a knowledge graph of ideological and political courses as described in any one of the above.

[0038] In addition, an embodiment of the present invention also provides a computer-readable storage medium for storing a computer program or code. When the computer program or code is executed by a processor, a method for constructing an ideological and political course knowledge graph as described in any one of the above is implemented.

[0039] In the embodiment of the present invention, by constructing the ideological and political course content into a knowledge graph, the course content can be connected in series, the learning efficiency of the ideological and political course can be improved, and the learning effect can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 It is a flowchart of a method for constructing a digital ideological and political course knowledge graph in an embodiment of the present invention;

[0042] Figure 2 It is a schematic diagram of the structural composition of a digital ideological and political course knowledge graph construction device in an embodiment of the present invention;

[0043] Figure 3 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0044] 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.

[0045] For example, see Figure 1 , Figure 1 It is a flow chart of a method for constructing a digital ideological and political course knowledge graph in an embodiment of the present invention.

[0046] like Figure 1 As shown, a method for constructing a digital ideological and political course knowledge graph includes:

[0047] S11: obtaining course voice data of the ideological and political course, and converting the course voice data into course text content information based on a speech recognition model;

[0048] In the specific implementation process of the present invention, the course voice data is converted into course text content information based on the speech recognition model, including: extracting and processing the environmental audio information when the teacher is lecturing in the course based on the course voice data to obtain the environmental audio information; performing noise reduction processing on the course voice data based on the environmental audio information to obtain noise-reduced course voice data; inputting the noise-reduced course voice data into the speech recognition model, and converting the received noise-reduced course voice data into the semantic recognition model.

[0049] Furthermore, the noise reduction processing is performed on the course voice data based on the ambient audio information to obtain noise-reduced course voice data, including: extracting ambient audio signal features in the ambient audio information, and generating a noise reduction signal based on the extracted ambient audio signal features, the ambient audio signal features including phase data and amplitude data in the ambient audio information, the phase data of the noise reduction signal is opposite to the phase data in the ambient audio information, and the amplitude data of the noise reduction signal is consistent with the amplitude data in the ambient audio information; performing noise reduction processing on the course voice data based on the noise reduction signal to obtain noise-reduced course voice data.

[0050] Specifically, first of all, it is necessary to obtain the course voice data of the ideological and political course. Generally, the course voice data is obtained by recording the teacher in the ideological and political class or by performing voice extraction and processing on the course video of the ideological and political course; after obtaining the course voice data, it is necessary to convert the course voice data into course text content information. At this time, it is necessary to use the speech recognition model. Therefore, in order to improve the recognition accuracy of speech-to-text conversion, it is necessary to perform corresponding noise reduction processing on the course voice data, that is, first of all, the environmental audio information of the teacher's lecture in the course is extracted and processed according to the course voice data, so as to obtain the environmental audio information; specifically, the audio features of the environmental audio are manually defined, and then the course voice data is processed according to the audio features of the environmental audio. The environmental audio information in the course is extracted and processed to obtain the environmental audio information; then the course voice data needs to be denoised according to the environmental audio information to obtain the denoised course voice data; finally, the denoised course voice data is input into the speech recognition model, and the received denoised course voice data is converted into course text content information in the semantic recognition model; the speech recognition model can be iFlytek's speech recognition model, and after using the speech recognition model to convert it into course text content information, the lecturer is also required to make corresponding adjustments to the course text content information, so that the final course text content information has a higher accuracy, so that the accuracy of the ideological and political course knowledge map constructed subsequently is guaranteed accordingly, which is helpful for students to consolidate their learning.

[0051] When performing noise reduction processing, it is necessary to extract the ambient audio signal features in the ambient audio information, where the ambient audio signal features are the phase data and amplitude data in the ambient audio information, and then generate a noise reduction signal based on the ambient audio signal features, where the phase data of the noise reduction signal is opposite to the phase data in the ambient audio information, and the amplitude data of the noise reduction signal is consistent with the amplitude data in the ambient audio information; then the noise reduction signal is mixed with the course voice data to achieve noise reduction processing on the course voice data, and finally obtain the noise-reduced course voice data.

[0052] S12: Inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords in the course semantic content corresponding to the course text content information;

[0053] In the specific implementation process of the present invention, the course text content information is input into a semantic recognition model for semantic recognition processing, and semantic keywords in the course semantic content corresponding to the course text content information are extracted, including: inputting the course text content information into a semantic recognition model for semantic recognition processing, and obtaining the initial course semantics corresponding to the course text content information, the semantic recognition model is a model obtained by training and converging a semantic expression extraction network using the course text content in the ideological and political course and the corresponding course semantic content; adjusting and proofreading the initial course semantics to obtain the course semantic content corresponding to the course text content; performing keyword extraction processing on the course semantic content corresponding to the course text content based on a keyword extraction model to obtain semantic keywords in the course semantic content corresponding to the course text content information.

[0054] Specifically, the first step is to extract the semantic information from the course text content information. This requires inputting the course text content information into the semantic recognition model for semantic recognition processing, so as to obtain the initial course semantics corresponding to the course text content information. Because the semantic recognition of ideological and political courses is different from the general text semantic recognition, it is necessary to use specific semantic recognition data to train the semantic recognition model. Here, the semantic recognition model is a semantic expression extraction network model. During training, the training data used are the course text content in the ideological and political courses and the semantic content corresponding to the course text content. Here, it is necessary to prepare no less than 100 copies of the course text content in the ideological and political courses and the semantic content corresponding to the course text content. The semantic content is used as training data, and these training data are input into the semantic expression extraction network for training until the model converges, and then a semantic recognition model is obtained; after the initial course semantics corresponding to the course text content information is extracted, proofreading is required, and the ideological and political teacher needs to make proofreading adjustments during proofreading, that is, the ideological and political teacher adjusts and proofreads the initial course semantics to obtain the course semantic content corresponding to the course text content; then it is necessary to extract the semantic keywords in the course semantic content, specifically, through the keyword extraction model to perform keyword extraction processing on the course semantic content corresponding to the course text content information, and obtain the semantic keywords in the course semantic content corresponding to the course text content information. In this application, a keyword extraction model based on a graph sorting algorithm is adopted. When this model performs keyword extraction on a single text or a text with fewer document segments, the corresponding keywords will be extracted more accurately; when using a keyword extraction model based on a graph sorting algorithm to extract keywords from the course semantic content, it is first necessary to determine the initial value, which can be set to a non-zero value; the formula in the model is as follows:

[0055] ;

[0056] in, Represents the damping coefficient, which is generally 0.85; represents any node; Pointing to the vertex The set of all vertices of ; Represented by the vertex The set of all connected vertices; Represents a vertex and The connection weight of Represents a vertex The final ranking weight.

[0057] The specific steps are as follows: segment the semantic content of the course into characters or words; construct a graph model for the segmented characters or words, that is, construct a connection matrix between characters or words, select the neighbors of each word in a sliding window manner, and assume that a sliding window of length k is taken, then ; ; And so on. In a window, an undirected and unweighted edge is added between the nodes corresponding to any two words, a graph is constructed on the neighbors, and the importance of each word node is calculated. Then the weight is calculated, that is, the maximum number of iterations is set, and it is iterated once. According to the connection matrix, the sorting weight of each word node is updated. The word nodes connected to themselves or with empty connections are not calculated. For other connected word nodes, their weights are gradually updated according to the model formula. At the same time, the weight change value of the word between the two iterations is used to determine whether to end the loop process in advance. At the same time, the above algorithm can extract the semantic keywords in the semantic content of the course.

[0058] S13: performing content-level classification processing on the semantic keywords based on the semantic content of the course to obtain content-level classification results of the semantic keywords;

[0059] In the specific implementation process of the present invention, the semantic keywords are subjected to content level classification processing based on the course semantic content to obtain content level classification results of the semantic keywords, including: obtaining the course semantic content corresponding to the semantic keyword, and confirming the level of the course semantic content corresponding to the semantic keyword in the course text content information; performing content level classification processing on the course semantic content corresponding to the semantic keyword according to the level to obtain content level classification results of the semantic keywords.

[0060] Specifically, it is necessary to obtain the course semantic content corresponding to the semantic keyword, and determine the level of the course semantic content corresponding to the semantic keyword in the course text content information through the teachers of the ideological and political courses; then, according to the level of the course semantic content corresponding to the semantic keyword in the course text content information, the course semantic content corresponding to the semantic keyword is classified by content level to obtain the content level classification result of the semantic keyword.

[0061] S14: performing tree relationship construction processing corresponding to the semantic keywords based on the semantic keywords corresponding to the content level classification results to obtain a semantic keyword tree structure diagram;

[0062] In the specific implementation process of the present invention, the tree relationship construction processing corresponding to the semantic keywords is performed based on the semantic keywords corresponding to the content level classification results to obtain a semantic keyword tree structure diagram, including: determining the corresponding positions of the root node and the remaining nodes in the tree structure according to the semantic keywords corresponding to the content level classification results; filling the semantic keywords corresponding to the content level classification results into the corresponding position centers of the root node and the remaining nodes in the tree structure to form a semantic keyword tree structure diagram.

[0063] Specifically, it is first necessary to determine the node position of each semantic keyword in the tree structure based on the content level classification results, that is, to determine the semantic keywords corresponding to the root node and the remaining nodes in the tree structure; then fill the semantic keywords corresponding to the content level classification results into the corresponding position centers of the root node and the remaining nodes in the tree structure to form a semantic keyword tree structure diagram.

[0064] S15: Index the semantic keywords of each node in the semantic keyword tree structure diagram and its corresponding course semantic content to form an ideological and political course knowledge graph, and store the course semantic content corresponding to the semantic keyword index of each node in binary form in the corresponding storage space.

[0065] In the specific implementation process of the present invention, the keywords of each node in the keyword tree structure diagram and the corresponding course semantic content are indexed to form an ideological and political course knowledge graph, and the course semantic content corresponding to the keyword index of each node is stored in a corresponding storage space in binary form, including: obtaining the course semantic content corresponding to the semantic keyword of each node in the semantic keyword tree structure diagram, and assigning a corresponding first element to the semantic keyword of each node and a corresponding second element to the course semantic content corresponding to the semantic keyword; indexing and associating the keyword of each node with the corresponding course semantic content based on the corresponding first element and the corresponding second element to form an ideological and political course knowledge graph; converting the course semantic content corresponding to the semantic keyword index of a node into binary data, and storing the binary data index in the corresponding storage space.

[0066] Specifically, it is necessary to obtain the course semantic content corresponding to the semantic keyword of each node in the semantic keyword tree structure diagram, and assign a corresponding first element to the semantic keyword of each node and a corresponding second element to the course semantic content corresponding to the semantic keyword; and establish an index association between the keyword of each node and its corresponding course semantic content based on the corresponding first element and the corresponding second element to form an ideological and political course knowledge graph; when establishing the index association, the first element and the second element are correspondingly bound to establish the index association; finally, the course semantic content corresponding to the semantic keyword index of a node is converted into binary data, and the binary data index is stored in the corresponding storage space.

[0067] In the embodiment of the present invention, by constructing the ideological and political course content into a knowledge graph, the course content can be connected in series, the learning efficiency of the ideological and political course can be improved, and the learning effect can be improved.

[0068] For example 2, please refer to Figure 2 , Figure 2 It is a schematic diagram of the structural composition of a digital ideological and political course knowledge graph construction device in an embodiment of the present invention.

[0069] like Figure 2 As shown, a device for constructing a digital ideological and political course knowledge graph comprises:

[0070] Conversion module 21: used to obtain the course voice data of the ideological and political course, and convert the course voice data into course text content information based on the speech recognition model;

[0071] In the specific implementation process of the present invention, the course voice data is converted into course text content information based on the speech recognition model, including: extracting and processing the environmental audio information when the teacher is lecturing in the course based on the course voice data to obtain the environmental audio information; performing noise reduction processing on the course voice data based on the environmental audio information to obtain noise-reduced course voice data; inputting the noise-reduced course voice data into the speech recognition model, and converting the received noise-reduced course voice data into the semantic recognition model.

[0072] Furthermore, the noise reduction processing is performed on the course voice data based on the ambient audio information to obtain noise-reduced course voice data, including: extracting ambient audio signal features in the ambient audio information, and generating a noise reduction signal based on the extracted ambient audio signal features, the ambient audio signal features including phase data and amplitude data in the ambient audio information, the phase data of the noise reduction signal is opposite to the phase data in the ambient audio information, and the amplitude data of the noise reduction signal is consistent with the amplitude data in the ambient audio information; performing noise reduction processing on the course voice data based on the noise reduction signal to obtain noise-reduced course voice data.

[0073] Specifically, first of all, it is necessary to obtain the course voice data of the ideological and political course. Generally, the course voice data is obtained by recording the teacher in the ideological and political class or by performing voice extraction and processing on the course video of the ideological and political course; after obtaining the course voice data, it is necessary to convert the course voice data into course text content information. At this time, it is necessary to use the speech recognition model. Therefore, in order to improve the recognition accuracy of speech-to-text conversion, it is necessary to perform corresponding noise reduction processing on the course voice data, that is, first of all, the environmental audio information of the teacher's lecture in the course is extracted and processed according to the course voice data, so as to obtain the environmental audio information; specifically, the audio features of the environmental audio are manually defined, and then the course voice data is processed according to the audio features of the environmental audio. The environmental audio information in the course is extracted and processed to obtain the environmental audio information; then the course voice data needs to be denoised according to the environmental audio information to obtain the denoised course voice data; finally, the denoised course voice data is input into the speech recognition model, and the received denoised course voice data is converted into course text content information in the semantic recognition model; the speech recognition model can be iFlytek's speech recognition model, and after using the speech recognition model to convert it into course text content information, the lecturer is also required to make corresponding adjustments to the course text content information, so that the final course text content information has a higher accuracy, so that the accuracy of the ideological and political course knowledge map constructed subsequently is guaranteed accordingly, which is helpful for students to consolidate their learning.

[0074] When performing noise reduction processing, it is necessary to extract the ambient audio signal features in the ambient audio information, where the ambient audio signal features are the phase data and amplitude data in the ambient audio information, and then generate a noise reduction signal based on the ambient audio signal features, where the phase data of the noise reduction signal is opposite to the phase data in the ambient audio information, and the amplitude data of the noise reduction signal is consistent with the amplitude data in the ambient audio information; then the noise reduction signal is mixed with the course voice data to achieve noise reduction processing on the course voice data, and finally obtain the noise-reduced course voice data.

[0075] Extraction module 22: used for inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords in the course semantic content corresponding to the course text content information;

[0076] In the specific implementation process of the present invention, the course text content information is input into a semantic recognition model for semantic recognition processing, and semantic keywords in the course semantic content corresponding to the course text content information are extracted, including: inputting the course text content information into a semantic recognition model for semantic recognition processing, and obtaining the initial course semantics corresponding to the course text content information, the semantic recognition model is a model obtained by training and converging a semantic expression extraction network using the course text content in the ideological and political course and the corresponding course semantic content; adjusting and proofreading the initial course semantics to obtain the course semantic content corresponding to the course text content; performing keyword extraction processing on the course semantic content corresponding to the course text content based on a keyword extraction model to obtain semantic keywords in the course semantic content corresponding to the course text content information.

[0077] Specifically, the first step is to extract the semantic information from the course text content information. This requires inputting the course text content information into the semantic recognition model for semantic recognition processing, so as to obtain the initial course semantics corresponding to the course text content information. Because the semantic recognition of ideological and political courses is different from the general text semantic recognition, it is necessary to use specific semantic recognition data to train the semantic recognition model. Here, the semantic recognition model is a semantic expression extraction network model. During training, the training data used are the course text content in the ideological and political courses and the semantic content corresponding to the course text content. Here, it is necessary to prepare no less than 100 copies of the course text content in the ideological and political courses and the semantic content corresponding to the course text content. The semantic content is used as training data, and these training data are input into the semantic expression extraction network for training until the model converges, and then a semantic recognition model is obtained; after the initial course semantics corresponding to the course text content information is extracted, proofreading is required, and the ideological and political teacher needs to make proofreading adjustments during proofreading, that is, the ideological and political teacher adjusts and proofreads the initial course semantics to obtain the course semantic content corresponding to the course text content; then it is necessary to extract the semantic keywords in the course semantic content, specifically, through the keyword extraction model to perform keyword extraction processing on the course semantic content corresponding to the course text content information, and obtain the semantic keywords in the course semantic content corresponding to the course text content information. In this application, a keyword extraction model based on a graph sorting algorithm is adopted. When this model performs keyword extraction on a single text or a text with fewer document segments, the corresponding keywords will be extracted more accurately; when using a keyword extraction model based on a graph sorting algorithm to extract keywords from the course semantic content, it is first necessary to determine the initial value, which can be set to a non-zero value; the formula in the model is as follows:

[0078] ;

[0079] in, Represents the damping coefficient, which is generally 0.85; represents any node; Pointing to the vertex The set of all vertices of ; Represented by the vertex The set of all connected vertices; Represents a vertex and The connection weight of Represents a vertex The final ranking weight.

[0080] The specific steps are as follows: segment the semantic content of the course into characters or words; construct a graph model for the segmented characters or words, that is, construct a connection matrix between characters or words, select the neighbors of each word in a sliding window manner, and assume that a sliding window of length k is taken, then ; ; And so on. In a window, an undirected and unweighted edge is added between the nodes corresponding to any two words, a graph is constructed on the neighbors, and the importance of each word node is calculated. Then the weight is calculated, that is, the maximum number of iterations is set, and it is iterated once. According to the connection matrix, the sorting weight of each word node is updated. The word nodes connected to themselves or with empty connections are not calculated. For other connected word nodes, their weights are gradually updated according to the model formula. At the same time, the weight change value of the word between the two iterations is used to determine whether to end the loop process in advance. At the same time, the above algorithm can extract the semantic keywords in the semantic content of the course.

[0081] Classification module 23: used for performing content-level classification processing on the semantic keywords based on the semantic content of the course to obtain content-level classification results of the semantic keywords;

[0082] In the specific implementation process of the present invention, the semantic keywords are subjected to content level classification processing based on the course semantic content to obtain content level classification results of the semantic keywords, including: obtaining the course semantic content corresponding to the semantic keyword, and confirming the level of the course semantic content corresponding to the semantic keyword in the course text content information; performing content level classification processing on the course semantic content corresponding to the semantic keyword according to the level to obtain content level classification results of the semantic keywords.

[0083] Specifically, it is necessary to obtain the course semantic content corresponding to the semantic keyword, and determine the level of the course semantic content corresponding to the semantic keyword in the course text content information through the teachers of the ideological and political courses; then, according to the level of the course semantic content corresponding to the semantic keyword in the course text content information, the course semantic content corresponding to the semantic keyword is classified by content level to obtain the content level classification result of the semantic keyword.

[0084] Construction module 24: used for constructing a tree relationship corresponding to the semantic keyword based on the semantic keyword corresponding to the content level classification result to obtain a semantic keyword tree structure diagram;

[0085] In the specific implementation process of the present invention, the tree relationship construction processing corresponding to the semantic keywords is performed based on the semantic keywords corresponding to the content level classification results to obtain a semantic keyword tree structure diagram, including: determining the corresponding positions of the root node and the remaining nodes in the tree structure according to the semantic keywords corresponding to the content level classification results; filling the semantic keywords corresponding to the content level classification results into the corresponding position centers of the root node and the remaining nodes in the tree structure to form a semantic keyword tree structure diagram.

[0086] Specifically, it is first necessary to determine the node position of each semantic keyword in the tree structure based on the content level classification results, that is, to determine the semantic keywords corresponding to the root node and the remaining nodes in the tree structure; then fill the semantic keywords corresponding to the content level classification results into the corresponding position centers of the root node and the remaining nodes in the tree structure to form a semantic keyword tree structure diagram.

[0087] Indexing module 25: used to index the semantic keywords of each node in the semantic keyword tree structure diagram and its corresponding course semantic content to form an ideological and political course knowledge graph, and store the course semantic content corresponding to the semantic keyword index of each node in binary form in the corresponding storage space.

[0088] In the specific implementation process of the present invention, the keywords of each node in the keyword tree structure diagram and the corresponding course semantic content are indexed to form an ideological and political course knowledge graph, and the course semantic content corresponding to the keyword index of each node is stored in a corresponding storage space in binary form, including: obtaining the course semantic content corresponding to the semantic keyword of each node in the semantic keyword tree structure diagram, and assigning a corresponding first element to the semantic keyword of each node and a corresponding second element to the course semantic content corresponding to the semantic keyword; indexing and associating the keyword of each node with the corresponding course semantic content based on the corresponding first element and the corresponding second element to form an ideological and political course knowledge graph; converting the course semantic content corresponding to the semantic keyword index of a node into binary data, and storing the binary data index in the corresponding storage space.

[0089] Specifically, it is necessary to obtain the course semantic content corresponding to the semantic keyword of each node in the semantic keyword tree structure diagram, and assign a corresponding first element to the semantic keyword of each node and a corresponding second element to the course semantic content corresponding to the semantic keyword; and establish an index association between the keyword of each node and its corresponding course semantic content based on the corresponding first element and the corresponding second element to form an ideological and political course knowledge graph; when establishing the index association, the first element and the second element are correspondingly bound to establish the index association; finally, the course semantic content corresponding to the semantic keyword index of a node is converted into binary data, and the binary data index is stored in the corresponding storage space.

[0090] In the embodiment of the present invention, by constructing the ideological and political course content into a knowledge graph, the course content can be connected in series, the learning efficiency of the ideological and political course can be improved, and the learning effect can be improved.

[0091] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, and when the program is executed by a processor, a method for constructing a knowledge graph of ideological and political courses in any of the above embodiments is implemented. The computer-readable storage medium includes, but is not limited to, any type of disk (including floppy disk, hard disk, optical disk, CD-ROM, and magneto-optical disk), ROM (Read-Only Memory), RAM (Random Access Memory), EPROM (EraSable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash memory, magnetic card or optical card. That is, the storage device includes any medium that can store or transmit information in a readable form by a device (for example, a computer, a mobile phone), which can be a read-only memory, a disk or an optical disk, etc.

[0092] An embodiment of the present invention also provides a computer application that runs on a computer, and the computer application is used to execute the method for constructing an ideological and political course knowledge graph of any one of the above embodiments.

[0093] also, Figure 3 It is a schematic diagram of the structure of an electronic device in an embodiment of the present invention.

[0094] The embodiment of the present invention further provides an electronic device, such as Figure 3The electronic device includes a processor 302, a memory 303, an input unit 304, a display unit 305 and other devices. Those skilled in the art will understand that Figure 3 The electronic device structure device shown does not constitute a limitation on all devices, and may include more or fewer components than shown, or combine certain components. The memory 303 can be used to store the application 301 and various functional modules, and the processor 302 runs the application 301 stored in the memory 303, thereby executing various functional applications and data processing of the device. The memory can be an internal memory or an external memory, or include both internal and external memories. The internal memory may include a read-only memory (ROM), a programmable ROM (PROM), an electrically programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), a flash memory, or a random access memory. The external memory may include a hard disk, a floppy disk, a ZIP disk, a U disk, a magnetic tape, etc. The memory disclosed in the present invention includes but is not limited to these types of memories. The memory disclosed in the present invention is only used as an example and not as a limitation.

[0095] The input unit 304 is used to receive the input of signals and keywords input by the user. The input unit 304 may include a touch panel and other input devices. The touch panel can collect the user's touch operations on or near it (such as the user's operation on or near the touch panel using any suitable object or accessory such as a finger, stylus, etc.), and drive the corresponding connection device according to a pre-set program; other input devices may include but are not limited to one or more of a physical keyboard, a function key (such as a play control key, a switch key, etc.), a trackball, a mouse, a joystick, etc. The display unit 305 can be used to display the information input by the user or the information provided to the user and various menus of the terminal device. The display unit 305 can be in the form of a liquid crystal display, an organic light emitting diode, etc. The processor 302 is the control center of the terminal device, which uses various interfaces and lines to connect various parts of the entire device, and executes various functions and processes data by running or executing software programs and / or modules stored in the memory 303, and calling data stored in the memory.

[0096] As an embodiment, the electronic device includes: one or more processors 302, a memory 303, and one or more applications 301, wherein the one or more applications 301 are stored in the memory 303 and are configured to be executed by the one or more processors 302, and the one or more applications 301 are configured to execute the ideological and political course knowledge graph construction method in any of the above embodiments.

[0097] In the embodiment of the present invention, by constructing the ideological and political course content into a knowledge graph, the course content can be connected in series, the learning efficiency of the ideological and political course can be improved, and the learning effect can be improved.

[0098] In addition, the above is a detailed introduction to a method for constructing a digital ideological and political course knowledge graph and related devices provided by an embodiment of the present invention. Specific examples are used in this article to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those skilled in the art, according to the ideas of the present invention, there will be changes in the specific implementation methods and application scopes. In summary, the content of this specification should not be understood as a limitation on the present invention.

Claims

1. A method for constructing a digital ideological and political course knowledge graph, characterized in that: The method comprises: Obtaining course voice data of ideological and political courses, and converting the course voice data into course text content information based on a speech recognition model; Inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords in the course semantic content corresponding to the course text content information; Based on the semantic content of the course, the semantic keywords are subjected to content-level classification processing to obtain content-level classification results of the semantic keywords; Based on the semantic keywords corresponding to the content level classification results, a tree relationship construction process corresponding to the semantic keywords is performed to obtain a semantic keyword tree structure diagram; The semantic keywords of each node in the semantic keyword tree structure diagram and the corresponding course semantic content are indexed to form an ideological and political course knowledge graph, and the course semantic content corresponding to the semantic keyword index of each node is stored in a corresponding storage space in binary form; The step of inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords from the course semantic content corresponding to the course text content information, includes: Input the course text content information into a semantic recognition model for semantic recognition processing to obtain the initial course semantics corresponding to the course text content information, wherein the semantic recognition model is a model obtained by converging the semantic expression extraction network training using the course text content in the ideological and political course and the corresponding course semantic content; Adjust and proofread the initial course semantics to obtain course semantic content corresponding to the course text content; Perform keyword extraction processing on the course semantic content corresponding to the course text content information based on the keyword extraction model to obtain semantic keywords in the course semantic content corresponding to the course text content information; The performing content level classification processing on the semantic keywords based on the semantic content of the course to obtain the content level classification results of the semantic keywords includes: Obtaining the course semantic content corresponding to the semantic keyword, and confirming the level of the course semantic content corresponding to the semantic keyword in the course text content information; The course semantic content corresponding to the semantic keyword is subjected to content level classification processing according to the level to obtain a content level classification result of the semantic keyword.

2. The method for constructing a knowledge graph of ideological and political courses according to claim 1 is characterized in that: The converting the course voice data into course text content information based on the speech recognition model includes: Extracting and processing the ambient audio information when the teacher is giving a lecture in the course based on the course voice data to obtain the ambient audio information; Performing noise reduction processing on the course voice data based on the environmental audio information to obtain noise-reduced course voice data; The noise reduction course voice data is input into a voice recognition model, and the received noise reduction course voice data is converted into course text content information in the semantic recognition model.

3. The method for constructing a knowledge graph of ideological and political courses according to claim 2 is characterized in that: The performing noise reduction processing on the course voice data based on the environmental audio information to obtain noise-reduced course voice data includes: Extracting ambient audio signal features from the ambient audio information, and generating a noise reduction signal based on the extracted ambient audio signal features, wherein the ambient audio signal features include phase data and amplitude data in the ambient audio information, the phase data of the noise reduction signal is opposite to the phase data in the ambient audio information, and the amplitude data of the noise reduction signal is consistent with the amplitude data in the ambient audio information; The course voice data is subjected to noise reduction processing based on the noise reduction signal to obtain noise-reduced course voice data.

4. The method for constructing a knowledge graph of ideological and political courses according to claim 1 is characterized in that: The step of constructing a tree relationship corresponding to the semantic keyword based on the semantic keyword corresponding to the content level classification result to obtain a semantic keyword tree structure diagram includes: Determine the corresponding positions of the root node and other nodes in the tree structure according to the semantic keywords corresponding to the content level classification results; The semantic keywords corresponding to the content level classification results are filled into the root node and the corresponding position centers of the remaining nodes in the tree structure to form a semantic keyword tree structure diagram.

5. The method for constructing a knowledge graph of ideological and political courses according to claim 1 is characterized in that: The method of indexing the keywords of each node in the keyword tree structure diagram and the corresponding course semantic content to form an ideological and political course knowledge graph, and storing the course semantic content corresponding to the keyword index of each node in a binary form in a corresponding storage space includes: Obtaining the course semantic content corresponding to the semantic keyword of each node in the semantic keyword tree structure diagram, and assigning a corresponding first element to the semantic keyword of each node and a corresponding second element to the course semantic content corresponding to the semantic keyword; Based on the corresponding first element and the corresponding second element, the keyword of each node is indexed and associated with the corresponding course semantic content to form an ideological and political course knowledge graph; The course semantic content corresponding to the semantic keyword index of a node is converted into binary data, and the binary data index is stored in the corresponding storage space.

6. A digital ideological and political course knowledge graph construction device, characterized in that: The device comprises: Conversion module: used to obtain the course voice data of the ideological and political course, and convert the course voice data into course text content information based on the speech recognition model; Extraction module: used for inputting the course text content information into the semantic recognition model for semantic recognition processing, and extracting semantic keywords in the course semantic content corresponding to the course text content information; Classification module: used for performing content-level classification processing on the semantic keywords based on the semantic content of the course to obtain content-level classification results of the semantic keywords; Construction module: used for constructing a tree relationship corresponding to the semantic keyword based on the semantic keyword corresponding to the content level classification result to obtain a semantic keyword tree structure diagram; Indexing module: used to index the semantic keywords of each node in the semantic keyword tree structure diagram and its corresponding course semantic content to form an ideological and political course knowledge graph, and store the course semantic content corresponding to the semantic keyword index of each node in binary form in the corresponding storage space; The step of inputting the course text content information into a semantic recognition model for semantic recognition processing, and extracting semantic keywords from the course semantic content corresponding to the course text content information, includes: Input the course text content information into a semantic recognition model for semantic recognition processing to obtain the initial course semantics corresponding to the course text content information, wherein the semantic recognition model is a model obtained by converging the semantic expression extraction network training using the course text content in the ideological and political course and the corresponding course semantic content; Adjust and proofread the initial course semantics to obtain course semantic content corresponding to the course text content; Perform keyword extraction processing on the course semantic content corresponding to the course text content information based on the keyword extraction model to obtain semantic keywords in the course semantic content corresponding to the course text content information; The performing content level classification processing on the semantic keywords based on the semantic content of the course to obtain the content level classification results of the semantic keywords includes: Obtaining the course semantic content corresponding to the semantic keyword, and confirming the level of the course semantic content corresponding to the semantic keyword in the course text content information; The course semantic content corresponding to the semantic keyword is subjected to content level classification processing according to the level to obtain a content level classification result of the semantic keyword.

7. An electronic device, comprising a processor and a memory, characterized in that: The processor runs a computer program or code stored in the memory to implement the method for constructing an ideological and political course knowledge graph as described in any one of claims 1 to 5.

8. A computer-readable storage medium for storing a computer program or code, characterized in that: When the computer program or code is executed by a processor, the method for constructing an ideological and political course knowledge graph as described in any one of claims 1 to 5 is implemented.