Implicit knowledge learning method based on non-semantic maximization stripping
By constructing a spatialized bit representation field and non-semantic stripping technology, the implicit knowledge features in text data are automatically extracted, solving the problems of manual intervention and external knowledge base dependence in the existing technology, and achieving efficient knowledge transformation and generalization. migrate.
Patent Information
- Application Number
- CN202411028622.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-01
AI Technical Summary
The existing technology has the problem of manual guidance intervention and excessive reliance on external knowledge bases in the conversion process from data to knowledge, making it difficult to effectively and automatically refine high-value implicit knowledge.
By obtaining the semantic features of the target text data, constructing a spatialized bit representation field, jointly representing the text data, and performing non-semantic stripping and segmentation aggregation, automatic extraction of implicit knowledge features reduces external knowledge base and manual participation.
It improves the efficiency of knowledge transformation, realizes unsupervised rapid reordering and screening, automatically extracts implicit knowledge in data, reduces dependence on external information, and improves the efficiency of knowledge base construction and reasoning applications.
Smart Images

Figure CN118734952A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence technology, and in particular to an implicit knowledge learning method based on non-semantic maximization stripping. Background Art
[0002] In recent years, in the field of big data and artificial intelligence, as the "data dividend" has been exhausted, the mining and accumulation of knowledge has become more important for the further development of artificial intelligence technology. At present, the carrier of knowledge is data, but the data itself is of various types, complex content, and mixed value. Therefore, "from data to knowledge" is still a major research hotspot in the field of artificial intelligence, aiming to make AI go from "only knowing how to distinguish data" to "knowing how to extract data, process data, and use data."
[0003] The current technical methods of "data → knowledge" can be roughly divided into the following categories: (1) Extraction method, that is, directly extracting structured knowledge from data, and its representative is the construction of knowledge graph. (2) Induction method, that is, summarizing and generalizing regular knowledge from general factual data, and its representative is rule mining, which obtains regular knowledge by summarizing from factual data. (3) Generalization method, that is, generalizing known knowledge under certain conditions to other aspects of knowledge with certain common characteristics, and its representative is knowledge analogy or knowledge deduction, by generalizing other knowledge from specific knowledge; (4) Distillation method, that is, condensing high-value knowledge with framework, trunk, and conceptual connotation from sparse data, and its representative is the extraction of thinking knowledge in research reports. For example, extract relevant expert analysis perspective knowledge from a medical report on the analysis of a case.
[0004] However, the above mainstream methods still have their own problems. The extraction method can only achieve "extract what is available" and does not have the ability to further summarize and generalize. In addition, the extracted structured knowledge is semantically no different from that presented in the data. For models with strong processing capabilities such as large models, there is no obvious difference between a sentence of text data containing knowledge and an extracted piece of structured knowledge when used for downstream tasks. The inductive method requires clustering of several factual data and conceptual abstraction of subjects in the same type of data, and needs to rely on additional rules or other processing models. The generalization method and the refinement method rely too much on external knowledge bases or manual participation, and there is no effective intelligent implementation method yet.
[0005] Therefore, there is an urgent need for an intelligent knowledge learning method that can reduce manual guidance intervention (such as labeling, formulating rule templates, etc.), reduce dependence on external knowledge bases or other models, and automatically learn high-value implicit knowledge from the data, so as to improve the efficiency of conversion from data to knowledge and better support downstream tasks such as knowledge base construction, knowledge reasoning and application. Summary of the invention
[0006] To solve the above problems, the present invention provides an implicit knowledge learning method based on non-semantic maximization stripping, and the specific technical solution is as follows:
[0007] S1: Obtain target text data, extract semantic features of each sample, calculate semantic similarity, and classify text data according to semantic similarity;
[0008] S2: Construct a spatialized position representation field, and use the spatialized position representation field to jointly represent the attributes of the text data of the same classification;
[0009] S3: According to the representation results of the text data, based on the preset relationship word type table, the relationship word representation results in the text data are mapped to obtain a number of text data mapped to the same relationship word type, and non-semantic stripping is performed;
[0010] S4: Based on the semantic groups rich in knowledge information obtained after non-semantic stripping, for the semantic groups under the same relational word type, the retained semantic features are segmented and aggregated to obtain the implicit knowledge features in several pieces of data.
[0011] Furthermore, in step S2, the content, position, part of speech, and relational word tags of the text data are jointly represented by using the spatialized positional representation field.
[0012] Further, each piece of data in the classified text data is spatialized and represented to obtain the spatialized and represented field;
[0013] The spatial representation of any piece of text data of the same classification is as follows:
[0014]
[0015] in, Represents data j Words in The encoding vector, p (ji) express Position code, pos (ji) express The part-of-speech code, express The tag value of the relation word.
[0016] Furthermore, in step S3, the result of representing the relational words in the text data is mapped, as follows:
[0017] For each piece of data in the classified text data, perform relational word location and feature splicing according to the defined multi-point feature splicing operation to obtain the relational word features of the data;
[0018] The similarity between the calculated relation word features and the set of all relation words is used to map the data belonging to relation words with high similarity to the same relation word type.
[0019] Furthermore, in step S3, the non-semantic stripping is specifically as follows:
[0020] For any number of text data mapped to the same relational word type, end-position completion or modifier-position side-position completion operations are performed with the relational word as the center, and site-to-site intersection or site-to-site processing is performed on words of different parts of speech.
[0021] Furthermore, before performing the end-completion operation or the side-completion operation of the modifier with the relative word as the center, it also includes:
[0022] The plurality of text data are rearranged bit by bit in three segments based on the relational words, and the relational word segments are padded with zeros for alignment.
[0023] Furthermore, the end-completion or modifier-side-completion operation is performed with the relational word as the center, as follows:
[0024] After aligning the related word segments of several text data, perform corresponding completion operations based on the following rules according to the length of the first and last segments of the text data and the word parts at different positions:
[0025] If p=q, the header or tail of each text data is directly aligned;
[0026] Otherwise, the head segment or tail segment of each text data is subjected to remote bit completion or non-core part-of-speech bit completion.
[0027] Furthermore, after performing the end-position completion or modifier-position completion operation with the relational word as the center, it also includes:
[0028] The completed text data is rearranged in order according to a unified principle of part-of-speech arrangement.
[0029] Furthermore, the principles for arranging the order of parts of speech are as follows:
[0030] The order of the related words in each text data remains unchanged;
[0031] The header of each text data is rearranged in the order of U, NUM, ADV, ADJ, N, V;
[0032] The tail segment of each text data is rearranged in the order of N, V, ADJ, ADV, NUM, U;
[0033] The original position codes of the characters in each text data remain unchanged.
[0034] Furthermore, in step S4, the specific process of the segmented aggregation is as follows:
[0035] For the semantic groups under the same relation word type, the relation word segment features are used as the dividing point to perform feature clustering on the head segment feature groups in the set of semantic groups, and obtain the head segment feature centroid of this class;
[0036] Then, feature clustering is performed on the tail segment feature group in the representation set after the head segment feature clustering.
[0037] The beneficial effects of the present invention are as follows:
[0038] The present invention classifies texts by semantic similarity, and then performs subsequent processing on the classified data. It can automatically discover the implicit knowledge contained in the data based on the carrier data and through explicit knowledge; the classified data is comprehensively jointly represented by a spatialized positional representation field, and mapping is performed according to the representation result of the text data, and non-semantic stripping is performed on the data under the same mapping, and the core knowledge information in the carrier data is quickly reordered and screened in an unsupervised manner at the feature level, which greatly improves the efficiency of knowledge conversion; finally, by performing multi-segment feature aggregation based on relational word alignment, the core content information of implicit knowledge can be automatically and accurately retained without the help of external information such as an artificially constructed knowledge base, thereby playing a better generalization and migration role; through the method of the present invention, the demand for automatically learning the knowledge contained in the data carrier is met, and the carrier data is stripped of the coarse and the essence is retained, as well as the efficient learning of the implicit knowledge of the data is achieved. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] Figure 1 It is a schematic diagram of the overall process of the method of the present invention. DETAILED DESCRIPTION
[0040] The following description clearly and completely describes 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.
[0041] In the description of the embodiments of the present invention, it should be noted that the indicated orientation or positional relationship is based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship in which the invention product is usually placed when in use, or the orientation or positional relationship commonly understood by those skilled in the art, or the orientation or positional relationship in which the invention product is usually placed when in use, which is only for the convenience of describing the present invention and simplifying the description, and does not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. In addition, the terms "first" and "second" are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0042] In the description of the embodiments of the present invention, it is also necessary to explain that, unless otherwise clearly specified and limited, the terms "set" and "connection" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a direct connection, or an indirect connection through an intermediate medium. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0043] Example 1
[0044] Embodiment 1 of the present invention discloses an implicit knowledge learning method based on non-semantic maximization stripping, such as Figure 1 As shown, the details are as follows:
[0045] S1: Obtain target text data, extract semantic features of each sample, calculate semantic similarity, and classify text data according to semantic similarity;
[0046] Specifically, by calculating cosine similarity or the like, the text data with semantic similarity within a preset threshold are classified together;
[0047] S2: Construct a spatialized positional representation field, through which the content, position, part of speech, relational word markers and other attributes of the same classified text data are comprehensively and jointly represented;
[0048] In this embodiment, a spatialized position representation field is constructed as follows:
[0049] Based on the classified text data, select one of the categories of data, denoted as S = {s1, s2, ..., s n}, where s i Represents the i-th data; for any data s j , let its length be l, record in, Represents data j The i-th word in ;
[0050] Thenj The spatial representation result is:
[0051]
[0052] in, Represents data j Words in The encoding vector, p (ji) express Position code, pos (ji) express The part-of-speech code, express The tag value of the relation word.
[0053] As a preferred embodiment, for the convenience of calculation, s j The spatialized position representation matrix is further standardized by taking the values of related elements:
[0054] Position code p (ji) The values are:
[0055] p (ji) =i-1
[0056] Part of speech code pos (ji) Value
[0057] POS (ji) ∈{ADJ,NUM,N,V,ADV,U}
[0058] Among them, represents ADJ adjective, NUM represents quantifier, N represents noun, V represents verb, ADV represents adverb, and U represents stop word;
[0059] Relation word tag value Value
[0060]
[0061] Each piece of data in S is represented in the above manner, that is, a spatialized positional representation field of this type of data is obtained. Through the spatialized positional representation field, it is possible to support the comprehensive representation of the internal and external spatial information and multi-dimensional attributes of this type of data, as well as the rapid indexing and operation of the external features of the data.
[0062] S3: According to the representation results of the text data, based on the preset relationship word type table, the relationship word representation results in the text data are mapped to obtain a number of text data mapped to the same relationship word type, and non-semantic stripping is performed;
[0063] In this embodiment, the mapping process is as follows:
[0064] First, for the key knowledge types, an expandable relation word type table is designed. In this embodiment, the following Table 1 is used as an example for explanation;
[0065] Table 1: Relation word type table
[0066] Serial number Relation word type Relation word set 1 Is A Defined as; is;… 2 Capable Of be able to; can; have the ability to; be able to; will; will;… 3 Causes cause; lead to; cause; … 4 Desires need; demand; request; want; ... 5 Has A possess; have; have; have;… 6 Motivated By Goal for the purpose of; for the purpose of; for the purpose of;… 7 Used For The purpose is to be used for; to be used for; to be used as; ... 8 … …
[0067] Among them, Is A represents the definition relationship type, Capable Of represents the capability relationship type, Causes represents the cause-effect relationship type, Desires represents the demand relationship type, Has A represents the possess relationship type, Motivated By Goal represents the motivation relationship type, and Used For represents the purpose relationship type. The above relationship word types are all extensible and manually definable relationship word types; the relationship word set is the expression form corresponding to a specific relationship word type in text data. Generally, there are multiple relationship words in a relationship word type.
[0068] For each data s in the classified text data S j , j = 1, 2, ..., l, according to the multi-point feature splicing operation defined by the following formula Perform relationship word location and feature splicing to obtain data s j The relational word feature r j :
[0069]
[0070] For all the data in the classified text data S, the relation word feature set {r1, r2, ..., r n}, calculate r1, r2, …, r respectively by cosine formula or projection method n The similarity with all relation word sets is used to map the data s belonging to relation words with high similarity to the same relation word type.
[0071] In this embodiment, the non-semantic stripping process is as follows:
[0072] For any number of text data mapped to the same relational word type, end-position completion or modifier-position side-position completion operations are performed with the relational word as the center, and site-to-site intersection or site-to-site processing is performed on words of different parts of speech.
[0073] As a preferred embodiment, before performing the padding operation, the method further includes:
[0074] The plurality of text data (m data, m≥2) are rearranged bit by bit in three segments based on the relational words, and the relational word segments are padded with zeros for alignment.
[0075] In this embodiment, two data s i andj For example, let s i have a length of l, and s j have a length of h; if there are multiple data, perform a three-segment bit-by-bit rearrangement operation pairwise based on the relational word;
[0076]
[0077] For s i and s j perform a three-segment bit-by-bit rearrangement based on the relational word, and align the relational word segments by padding with zeros, such that the length of the relational word segment of s j is less than or equal to the length of the relational word segment of s i . Then the two rearranged sample data are:
[0078]
[0079] where a is the length of the relational word of s i , b is the length of the relational word of s j , Ο a-b is an array of zero elements of dimension (a - b), is the concatenation of multiple segments of features, p is the length from the first character of the whole sentence to the first character of the relational word in s i , and q is the length from the first character of the whole sentence to the first character of the relational word in s j .
[0080] After the relational word segments of the two data are aligned, perform corresponding padding operations according to the lengths of the head pieces and tail pieces of s i and s j and the word parts of different positions. The specific rules are as follows:
[0081] If p = q, the head pieces and tail pieces of s i and s j are directly aligned;
[0082] If p > q, perform optional padding operations on the head piece and tail piece of s j :
[0083] Padding of the distal position: Ο p-q is an array of zero elements of dimension (p - q);
[0084] Padding of non-core part-of-speech positions: pos (jk) ∈ {ADJ, NUM, ADV, U}, and Ο * is an array of zero elements with adjustable dimension;
[0085] If p < q, then for s iThe header and tail of the :
[0086] Far-end bit padding: Ο q-p is a (qp)-dimensional array of zero elements;
[0087] Non-core part-of-speech completion: POS (ik) ∈{ADJ,NUM,ADV,U}, * is an array of zero elements with adjustable dimension.
[0088] As a preferred embodiment, after performing the end-position completion or modifier-position completion operation centered on the relational word, the method further includes:
[0089] The completed text data is rearranged in order according to a unified principle of part-of-speech arrangement.
[0090] In this embodiment, for the above-mentioned padding data s i and j , rearrange the order of words according to the following rules:
[0091] s i and j The relative words keep the order unchanged;
[0092] s i and j The header section is rearranged in the order of U, NUM, ADV, ADJ, N, V;
[0093] s i and j The tail section is rearranged in the order of N, V, ADJ, ADV, NUM, U;
[0094] s i and j The original position code of the Chinese character remains unchanged.
[0095] Then the reordered s i and j , the positions are calculated according to the head segment, the related word segment, and the tail segment, and the intersection with the positions is calculated as follows:
[0096]
[0097] in, represents the site and operation, .∪ represents and The mth row and the first k features of the nth row of the feature matrix are combined and calculated; represents the position and operation, .∩ represents and The m-th row and the first k features of the n-th row of the feature matrix represent the intersection calculation.
[0098] S4: Based on the semantic groups rich in knowledge information obtained after non-semantic stripping, for the semantic groups under the same relational word type, the retained semantic features are segmented and aggregated to obtain the implicit knowledge features in several pieces of data.
[0099] In this embodiment, the segmented aggregation is specifically as follows:
[0100] For the processed S feature representation set, we first cluster the head segment feature group in the set with the related word segment feature as the dividing point, and then use the K-means algorithm to cluster the S feature representation set into M based on the head segment feature. h Class, get the M h The centroid of the head feature of the class; then cluster them into M h The S feature of the class represents the tail feature group in the set for feature clustering. The K-means algorithm can also be used to cluster the tail features of each class into different M t Class, and finally retain all the implicit knowledge features after aggregation.
[0101] The present invention is not limited to the above-mentioned specific embodiments, but extends to any new features or any new combination disclosed in this specification, as well as any new method or process steps or any new combination disclosed.
Claims
1. A method for learning implicit knowledge based on non-semantic maximization stripping, characterized in that: include: S1: Obtain target text data, extract semantic features of each sample, calculate semantic similarity, and classify text data according to semantic similarity; S2: Construct a spatialized position representation field, and use the spatialized position representation field to jointly represent the attributes of the text data of the same classification; S3: According to the representation results of the text data, based on the preset relationship word type table, the relationship word representation results in the text data are mapped to obtain a number of text data mapped to the same relationship word type, and non-semantic stripping is performed; S4: Based on the semantic groups rich in knowledge information obtained after non-semantic stripping, for the semantic groups under the same relational word type, the retained semantic features are segmented and aggregated to obtain the implicit knowledge features in several pieces of data.
2. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 1 is characterized in that: In step S2, the content, position, part of speech, and relational word tags of the text data are jointly represented by using the spatialized position representation field.
3. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 1 is characterized in that: Performing spatial position representation on each piece of data in the classified text data to obtain the spatial position representation field; The spatial representation of any piece of text data of the same classification is as follows: in, Represents data j Words in The encoding vector, p (ji) express Position code, pos (ji) express The part-of-speech code, express The tag value of the relation word.
4. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 1 is characterized in that: In step S3, the relationship word representation results in the text data are mapped as follows: For each piece of data in the classified text data, perform relational word location and feature splicing according to the defined multi-point feature splicing operation to obtain the relational word features of the data; The similarity between the calculated relation word features and the set of all relation words is used to map the data belonging to relation words with high similarity to the same relation word type.
5. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 1 is characterized in that: In step S3, the non-semantic stripping is specifically as follows: For any number of text data mapped to the same relational word type, end-position completion or modifier-position side-position completion operations are performed with the relational word as the center, and site-to-site intersection or site-to-site processing is performed on words of different parts of speech.
6. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 5 is characterized in that: Before performing the terminal completion or modifier side completion operation with the relative word as the center, it also includes: The plurality of text data are rearranged bit by bit in three segments based on the relational words, and the relational word segments are padded with zeros for alignment.
7. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 5 is characterized in that: The terminal completion or modifier side completion operation is performed with the relative word as the center, as follows: After aligning the related word segments of several text data, perform corresponding completion operations based on the following rules according to the length of the first and last segments of the text data and the word parts at different positions: If p=q, the header or tail of each text data is directly aligned; Otherwise, the head segment or tail segment of each text data is subjected to remote bit completion or non-core part-of-speech bit completion.
8. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 5 is characterized in that: After performing the terminal completion or modifier side completion operation with the relative word as the center, it also includes: The completed text data is rearranged in order according to a unified principle of part-of-speech arrangement.
9. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 8 is characterized in that: The principles for the order of parts of speech are as follows: The order of the related words in each text data remains unchanged; The header of each text data is rearranged in the order of U, NUM, ADV, ADJ, N, V; The tail segment of each text data is rearranged in the order of N, V, ADJ, ADV, NUM, U; The original position codes of the characters in each text data remain unchanged.
10. The implicit knowledge learning method based on non-semantic maximization stripping according to claim 1 is characterized in that: In step S4, the specific process of segmented aggregation is as follows: For the semantic groups under the same relation word type, the relation word segment features are used as the dividing point to perform feature clustering on the head segment feature groups in the set of semantic groups, and obtain the head segment feature centroid of this class; Then, feature clustering is performed on the tail segment feature group in the representation set after the head segment feature clustering.
Citation Information
Patent Citations
Event element extraction method and device based on semantic analysis and prompt learning, electronic equipment and storage medium
CN116186241A
Method and apparatus of semantic technological approach based on semantic relation in context and storage media having program source thereof
US20110208776A1
