Text label self-adaptive classification method and system of fusion multi-feature large language model

By fusing a multi-feature large language model, constructing a multi-dimensional text feature system, and dynamically adjusting the prototype fusion strength, the problems of classification robustness and label adaptation in multi-source heterogeneous text scenarios are solved, achieving higher classification stability and matching accuracy.

CN123178622APending Publication Date: 2026-11-27BEIJING TAOMI TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202611209792.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-11
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies lack robustness in classification and detection in multi-source heterogeneous text scenarios, and the semantic boundaries of labels and topics cannot adapt to the dynamic changes in the data distribution of batch texts.

Method used

By integrating a multi-feature large language model, a multi-dimensional text feature system is constructed through data collection and preprocessing, multi-dimensional feature extraction, text label classification reasoning, and classification result verification. The prototype fusion intensity is dynamically adjusted to adapt to the semantic distribution differences of different batches of text.

Benefits of technology

It improves the stability and robustness of multi-source heterogeneous text classification and enhances the matching accuracy of cross-source text label classification.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178622A_ABST
    Figure CN123178622A_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of natural language processing, in particular to a text label self-adaptive classification method and system of a large language model fused with multiple features, comprising the following steps: data acquisition and preprocessing; multi-dimensional feature extraction; text label classification reasoning, a cross-source semantic anchor prototype classification model with an embedded semantic differentiation degree adjustment mechanism is used to construct a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes; classification result verification and output. The present application synchronously extracts deep semantic features, text statistical features and cross-source correlation features and completes splicing and integration, and constructs a multi-dimensional complementary text feature system; at the same time, a dual-source prototype set composed of basic semantic prototypes and candidate semantic prototypes is constructed, the prototype fusion strength is dynamically adjusted through the semantic differentiation degree, and the label semantic boundary self-adaptive correction is realized; both the stability and robustness of the classification result are effectively improved, and the matching accuracy of cross-source text label classification is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of natural language processing technology, and more specifically, to a text label adaptive classification method and system that integrates a multi-feature large language model. Background Technology

[0002] With the development of the digital information industry, the scale of multi-source heterogeneous text data from information platforms, business systems, and other channels continues to grow. Automatic text tag classification, as a core supporting technology for information retrieval, content governance, and data structuring, directly determines the operational efficiency of downstream businesses through its classification accuracy and scenario adaptability. In recent years, large language models have effectively improved the classification performance of single-source text. However, in multi-source text mixed classification scenarios, issues such as large differences in data distribution and insufficient adaptability of tag semantic boundaries still hinder the technology's implementation.

[0003] In the existing technology, relevant patents have been used to conduct research in the field of multi-source text topic detection and hierarchical label classification. For example, invention patent CN202110049136.1 discloses a method, device, electronic device and storage medium for topic detection. The method includes: acquiring at least two text sets in the target domain and setting a preset number of topics and topic categories; determining a first probability and a second probability of a word being assigned to any topic and any topic category in the current allocation based on the previous allocation of topics and topic categories in the text sets; assigning topics and topic categories to all words in the text sets based on the first probability and the second probability in the current allocation; and determining the distribution of topics and topic categories in the text sets based on the topic and topic category of each word in the text sets in the last allocation. Another example is invention patent CN202411298650.9, which discloses a method, device, processor and storage medium for hierarchical multi-granularity label recognition processing based on adaptive dynamic path pruning, including the following steps: acquiring content encoding features; acquiring relation encoding features; updating content encoding features; constructing a semantic attention matrix; and performing hierarchical multi-label classification.

[0004] Despite the advantages of the aforementioned technical solutions, they also suffer from the following technical shortcomings: First, the feature fusion dimensions are relatively singular, resulting in insufficient robustness for classification and detection in multi-source heterogeneous text scenarios. Patent CN202411298650.9 only integrates two types of semantic features: content encoding features and relation encoding features, without incorporating complementary dimensions such as text statistical attributes and cross-source association attributes. Patent CN202110049136.1 only conducts topic detection based on word allocation probabilities, without combining deep semantic features and multi-dimensional features for support. Therefore, the stability of classification and detection results is difficult to guarantee when facing heterogeneous texts from significantly different sources. Second, the semantic boundaries between tags and topics are relatively fixed, making it impossible to adapt to the dynamic changes in the data distribution of batch texts. Invention patent CN202110049136.1 performs probability allocation by pre-setting the number of topics and categories, with the semantic boundaries of the topics being a pre-defined fixed state. Invention patent CN202411298650.9 only optimizes the classification process through dynamic path pruning, without dynamically adjusting the semantic representation corresponding to the tags. When the semantic distribution of batch texts differs significantly, the matching accuracy between tags and text will be significantly affected. In view of this, we propose a text tag adaptive classification method and system that integrates a multi-feature large language model. Summary of the Invention

[0005] The purpose of this invention is to provide a text label adaptive classification method and system that integrates multiple feature large language models, in order to solve the problems mentioned in the background art, such as the relatively single feature fusion dimension, insufficient robustness of classification and detection in multi-source heterogeneous text scenarios, and the relatively fixed semantic boundaries between labels and topics, which cannot adapt to the dynamic changes in the data distribution of batch texts.

[0006] To address the aforementioned technical problems, one objective of this invention is to provide an adaptive text label classification method that integrates a multi-feature large language model, comprising the following steps: S1. Data Acquisition and Preprocessing: Collect multi-source texts to be classified from different sources, and perform noise filtering, format normalization and semantic cleaning preprocessing on the multi-source texts to be classified in sequence to remove invalid characters and redundant content in the texts, and obtain the text dataset to be processed. S2. Multidimensional feature extraction: Based on the text dataset to be processed, deep semantic feature extraction, text statistical feature calculation and cross-source association feature construction are performed respectively. The extracted multi-class features are spliced ​​and integrated to obtain multidimensional text features. S3. Text tag classification reasoning: Based on the multi-dimensional text features, a cross-source semantic anchoring prototype classification model with embedded semantic differentiation degree adjustment mechanism is constructed to build a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes. The prototype fusion strength is adjusted according to the semantic differentiation degree value, and the matching reasoning between text features and the tag system is performed to output the preliminary tag classification result with classification confidence. S4. Classification result verification and output: Based on the preliminary label classification results, combined with the preset confidence judgment rules and label constraints, the classification result verification and deviation correction processing is performed to generate the final label classification results and complete the data output.

[0007] As a further improvement to this technical solution, in step S1, data acquisition and preprocessing includes the following steps: S1.1. Identify invalid content in the multi-source text to be classified, remove non-text symbols, repeated fragments and meaningless placeholder content in the text, and obtain the preliminary filtered text; S1.2. Perform format normalization processing on the preliminary filtered text to unify the text encoding standard, text segmentation rules and character expression specifications, and obtain a uniformly formatted text; S1.3. Stop word removal and semantic integrity verification are performed on the standardized text to retain text content with valid semantics, thus obtaining the text dataset to be processed.

[0008] As a further improvement to this technical solution, the multidimensional feature extraction in step S2 includes the following steps: S2.1 Semantically encode the text dataset to be processed, and extract deep semantic features of the text through the embedding layer of the pre-trained language model to obtain deep semantic feature vectors; S2.2 Based on the text dataset to be processed, calculate the statistical attributes of text length, word distribution and content word ratio to obtain the text statistical feature vector; S2.3 Based on the multi-source text association attributes in the text dataset to be processed, construct the association mapping features between texts from different sources to obtain cross-source association feature vectors; S2.4 Perform dimension alignment and normalization on deep semantic feature vectors, text statistical feature vectors, and cross-source association feature vectors; S2.5. The processed deep semantic feature vector, text statistical feature vector and cross-source association feature vector are concatenated and integrated to obtain multi-dimensional text features.

[0009] As a further improvement to this technical solution, the text label classification reasoning in step S3 includes the following steps: S3.1 Based on the tag system and multi-dimensional text features, construct a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes; S3.2. Using the dual-source prototype set as the processing object, perform cross-source semantic anchoring mapping processing to generate anchoring mapping weights between the two types of prototypes; S3.3. Based on the anchoring mapping weights, adjust the prototype fusion strength in combination with the semantic differentiation degree of the current batch of texts to generate an extended semantic prototype set; S3.4. Based on the extended semantic prototype set, perform label matching inference on the multi-dimensional text features to be classified, and output the preliminary label classification result with classification confidence.

[0010] As a further improvement to this technical solution, in step S3.1, constructing a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes includes the following steps: S3.11 Perform semantic encoding on each tag text in the tag system to generate a basic semantic prototype that corresponds one-to-one with each tag; S3.12 Extract deep semantic features from multi-dimensional text features, perform clustering processing on the deep semantic features, sort and filter according to the number of text feature samples contained in the cluster, and obtain candidate semantic prototypes corresponding to representative semantic cluster centers.

[0011] As a further improvement to this technical solution, step S3.2, which involves performing cross-source semantic anchoring mapping processing, includes the following steps: S3.21 Perform feature dimension alignment processing on the basic semantic prototype and the candidate semantic prototype so that the two types of prototypes are mapped to the same feature vector space; S3.22. Extract cross-source common semantic features from the deep semantic features of multi-dimensional text features as intermediate bridges, and calculate the semantic correlation between the candidate semantic prototype and the intermediate bridge, and between the intermediate bridge and the basic semantic prototype. S3.23. Perform transitive computation based on the two-level semantic relevance, normalize the transitive computation results, and generate the anchoring mapping weights of each candidate semantic prototype corresponding to each basic semantic prototype.

[0012] As a further improvement to this technical solution, step S3.3, adjusting the prototype fusion strength based on the semantic differentiation degree value of the current batch of text, includes the following steps: S3.31 Extract deep semantic features from the multi-dimensional text features of the current batch, calculate the average semantic distance between deep semantic features from different sources, and obtain the semantic differentiation value; S3.32. A dynamic fusion strength coefficient is generated based on the semantic differentiation degree numerical mapping, and the semantic differentiation degree numerical value and the fusion strength coefficient are positively correlated. S3.33. Based on the anchoring mapping weight and fusion strength coefficient, the semantic offsets of the candidate semantic prototypes are weighted and fused to the corresponding basic semantic prototypes to generate extended semantic prototypes corresponding to each label, forming an extended semantic prototype set. The computation method of the extended semantic prototype satisfies the following relation: ; In the formula, For the first The extended semantic prototype corresponding to each label For the first The basic semantic prototype corresponding to each label. For dynamic fusion strength coefficient, The total number of candidate semantic prototypes. For the first The candidate semantic prototype corresponds to the first Anchoring mapping weights of basic semantic prototypes For the first One candidate semantic prototype.

[0013] As a further improvement to this technical solution, step S3.4 involves performing label matching inference on the multi-dimensional text features to be classified, including the following steps: S3.41. Extract the deep semantic features, text statistical features, and cross-source association features from the multi-dimensional text features to be classified, and use them as input features for matching calculation. S3.42. Based on deep semantic features, calculate the semantic matching degree between it and each extended semantic prototype in the extended semantic prototype set; S3.43. Perform confidence calibration on semantic matching degree based on text statistical features, and adjust the confidence weight of matching results according to the distribution normality of text statistical features; combine cross-source association features to perform confidence enhancement on the tag matching results corresponding to the same source associated text, and obtain the comprehensive matching degree corresponding to each tag; S3.44. Map the overall matching degree to the overall classification confidence of the corresponding label, and perform interval normalization on the overall classification confidence of the full label. S3.45. Based on the label system, the label constraint rules filter invalid matching results, sort and filter according to the comprehensive classification confidence, and obtain the preliminary label classification results.

[0014] As a further improvement to this technical solution, step S4, the classification result verification and output, includes the following steps: S4.1 Based on the preset confidence level judgment rule, the confidence level of each label in the preliminary label classification result is checked, and the label results that do not meet the judgment rule are marked as needing correction. S4.2. Based on preset label constraints, perform label compliance verification on the preliminary label classification results and filter out invalid label results that do not meet the label constraints. S4.3 Perform deviation correction processing on the label results to be corrected, integrate the verified label results with the corrected label results, and generate the final label classification results; S4.4 After performing format standardization processing on the final label classification results, the data is output. The second objective of this invention is to provide a text label adaptive classification system that integrates a multi-feature large language model, comprising the steps of performing the aforementioned text label adaptive classification method integrating a multi-feature large language model, including: The data acquisition and preprocessing unit acquires multi-source texts to be classified from different sources, and sequentially performs noise filtering, format normalization and semantic cleaning preprocessing on the multi-source texts to be classified, removing invalid characters and redundant content in the texts to obtain the text dataset to be processed. The multi-dimensional feature extraction and integration unit receives the text dataset to be processed and performs deep semantic feature extraction, text statistical feature calculation and cross-source association feature construction respectively. It performs splicing and integration processing on the extracted multi-class features to obtain multi-dimensional text features. A text label classification and inference unit receives the multi-dimensional text features, performs text label classification inference through a cross-source semantic anchoring prototype classification model with an embedded semantic differentiation adjustment mechanism, and outputs a preliminary label classification result with classification confidence. The text label classification and inference unit includes a dual-source prototype construction module, a prototype fusion adjustment module, and a label matching inference module, wherein: The dual-source prototype construction module constructs a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes based on the tag system and multi-dimensional text features. The prototype fusion adjustment module adjusts the prototype fusion intensity based on the semantic differentiation degree value to achieve adaptive adjustment of the classification prototype; The label matching and reasoning module performs matching and reasoning between text features and the label system based on the adjusted semantic prototype, and generates preliminary label classification results with classification confidence. The classification result verification and output unit receives the preliminary label classification result, and performs classification result verification and deviation correction processing in combination with preset confidence judgment rules and label constraints to generate the final label classification result and complete data output.

[0015] Compared with the prior art, the beneficial effects of the present invention are as follows: 1. This invention simultaneously extracts deep semantic features, text statistical features, and cross-source association features and completes their splicing and integration to construct a multi-dimensional complementary text feature system. This overcomes the limitations of adaptability of a single feature dimension, strengthens the feature support for multi-source heterogeneous text classification, and effectively improves the stability and robustness of classification results. 2. This invention constructs a dual-source prototype set consisting of a basic semantic prototype and candidate semantic prototypes. By dynamically adjusting the prototype fusion strength through semantic differentiation, it achieves adaptive correction of the semantic boundary of the tag, adapts to the semantic distribution differences of different batches of text, and effectively improves the matching accuracy of cross-source text tag classification. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of the overall method steps of the present invention; Figure 2 This is a schematic diagram of the overall system framework structure of the present invention; The meanings of the labels in the diagram are as follows: 1. Data acquisition and preprocessing unit; 2. Multidimensional feature extraction and integration unit; 3. Text tag classification and reasoning unit; 4. Classification result verification and output unit. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of the present invention.

[0018] like Figure 1 As shown, this embodiment provides a text label adaptive classification method that integrates a multi-feature large language model, including: S1. Data Acquisition and Preprocessing: Collect multi-source text to be classified from various sources. Perform noise filtering, format normalization, and semantic cleaning preprocessing on the multi-source text to remove invalid characters and redundant content, resulting in a dataset of text to be processed. The sources of the multi-source text include, for example: social media platform text, such as user posts, comments, or interaction records; news and information text, such as news headlines, summaries, or lead paragraphs; Q&A platform text, such as user questions, answers, or comments; and system log text, such as status descriptions or operation records generated during application operation. Text from different sources differs in encoding format, character set usage, paragraph organization, and noise distribution. For example, social media text often contains special emojis and repeated characters, while system log text often contains structured fields and placeholders. The purpose of this step is to transform these heterogeneous raw texts into standardized text data. This step includes the following steps: S1.1 Identify invalid content in the multi-source text to be classified, and remove non-text symbols, repeated fragments and meaningless placeholder content in the text to obtain the preliminary filtered text; specifically, S1.1 takes the collected multi-source text to be classified as input, and each original text carries a unique text identifier and source category label.

[0019] First, non-text symbols are removed from each piece of original text. A pre-defined invalid character rule base defines the categories of non-text symbols to be removed, including control characters (ASCII hexadecimal 00 to 1F excluding horizontal tabs 0x09, newlines 0x0A, and carriage returns 0x0D), invisible Unicode characters (such as zero-width spaces U+200B, zero-width non-connectors U+200C, etc.), abnormal symbols (such as substitution characters U+FFFD and garbled byte fragments), and meaningless decorator symbols. Characters or strings matching the above rules are located and deleted using regular expression matching.

[0020] Secondly, repeating segment detection and compression are performed on the text after non-text symbol removal. A character-based sliding window method is adopted, with a window length of 10 characters. The window slides character by character from the beginning of the text. When the character sequence in the window repeats in the same sequence in adjacent positions and the number of consecutive repetitions exceeds a preset threshold of 5, the consecutive repeating segment is compressed into a single occurrence.

[0021] Then, meaningless placeholder content is removed from the text after the repetitive fragment compression is completed. A pre-defined library of meaningless placeholder text templates includes templates such as "No content available," "Empty here," "null," "undefined," "N / A," "None," and "To be supplemented." The edit distance between the text to be detected and each template is calculated. When the ratio of the edit distance to the total character length of the text is less than 0.1, or when the text completely matches a template, it is marked as a meaningless placeholder and removed. All non-text symbols and text that, after repetitive compression, only contains punctuation marks, spaces, or combinations of numbers and contains no text characters, are also removed. The resulting filtered text is the initial filtered text.

[0022] S1.2. The initially filtered text undergoes format normalization, unifying text encoding standards, text segmentation rules, and character expression specifications to obtain uniformly formatted text. Specifically, S1.2 takes the initially filtered text as input and performs format normalization line by line. Regarding encoding standards, after detecting the current encoding type of the text, it is uniformly converted to UTF-8 encoding for storage. Text with decoding errors is recorded in the exception log and shelved. Regarding text segmentation rules, various line breaks in the text are uniformly replaced with standard line breaks, and multiple consecutive line breaks are compressed into a single line break. For text retaining HTML segmentation tags, the tags are first parsed and converted into paragraph separators before line break unification is performed. Regarding character expression specifications, full-width letters and numbers are converted to their corresponding half-width forms. Commonly used full-width punctuation marks are retained in the Chinese context, while other full-width English punctuation marks are converted to half-width or corresponding Chinese punctuation forms. Traditional Chinese characters are mapped to simplified Chinese as needed. After the above processing, uniformly formatted text is obtained.

[0023] S1.3. Stop word removal and semantic integrity verification are performed on the formatted text to retain text content with valid semantics, resulting in the text dataset to be processed. Specifically, S1.3 uses formatted text as the processing object. First, stop word removal is performed by loading a pre-set stop word list. After segmenting each text, words appearing in the stop word list are deleted from the word sequence. The stop word list includes frequently occurring function words and grammatical words that contribute little to the expression of the theme.

[0024] After stop word removal, a semantic integrity check is performed, judging each of the following rules: Rule 1, Length Check: Text with fewer than 2 remaining words or fewer than 4 remaining characters after stop word removal is considered semantically incomplete and discarded; Rule 2, Content Word Distribution Check: Text with no nouns, verbs, or adjectives in the remaining word sequence is discarded; Rule 3, Information Density Check: The ratio of the remaining characters to the total number of characters in the original text is calculated, and text with a ratio less than 0.1 is discarded. Text is removed if any rule is triggered, and is only retained if all rules are passed simultaneously.

[0025] Finally, after processing in S1.3, the text dataset to be processed is obtained. Each text is stored as a structured record, containing a text identifier, source category label, and processed text content, which is passed as input to step S2. After this step, the text dataset to be processed is improved in terms of content purity, format consistency, and semantic usability, reducing noise interference for subsequent feature extraction.

[0026] S2. Multidimensional Feature Extraction: Based on the text dataset to be processed, deep semantic feature extraction, text statistical feature calculation, and cross-source association feature construction are performed respectively. The extracted multi-class features are then concatenated and integrated to obtain multidimensional text features. This step includes the following steps: S2.1 Semantically encode the text dataset to be processed, and extract deep semantic features of the text through the embedding layer of the pre-trained language model to obtain deep semantic feature vectors; In S2.1, each text in the text dataset to be processed output in step S1.3 is taken as the processing object. Let the text dataset to be processed be... ,in Indicates the first The text content after preprocessing Total number of texts. (This refers to the total number of texts.) The text is fed into the embedding and encoding layers of a pre-trained language model. Multiple Transformer layers within the model perform contextual encoding on the text, extracting its deep semantic representation. In one embodiment, the pre-trained language model is the BERT-base model, with a hidden layer dimension of 768.

[0027] For text After adding a start marker [CLS] and an end marker [SEP] to the beginning and end of each input marker respectively, the vectors are fed into the model's embedding layer to obtain the hidden state vector for each input marker. The hidden state vector corresponding to the [CLS] marker output from the last layer of the model is taken as the deep semantic feature vector of the text, denoted as... The dimension of this vector is denoted as The above process can be represented as: ; in, This represents the encoding function of the pre-trained BERT model, whose output is the hidden state vector matrix corresponding to each labeled position; [[CLS]] represents the vector corresponding to the [CLS] labeled position. Equal to the hidden layer dimension of the pre-trained model, in this embodiment .

[0028] In another embodiment, the average pooling result of the hidden state vectors of all input labels can also be taken as the deep semantic feature vector, that is: ; in, For text Length of the token after word segmentation; For the last layer of the model The hidden state vectors of each label are processed one by one to obtain a set of deep semantic feature vectors that correspond one-to-one with the text dataset to be processed.

[0029] S2.2 Based on the text dataset to be processed, calculate the statistical attributes of text length, word distribution and content word ratio to obtain the text statistical feature vector; In S2.2, the text dataset output from step S1.3 is used as the processing object. Multiple statistical attributes are calculated for each text, forming a text statistical feature vector. First, the text... Perform word segmentation to obtain a word sequence, and record the total number of words as... Based on this, the following statistics are calculated: Text length: includes character length Word length .in For text The total number of Unicode characters.

[0030] Lexical distribution characteristics: The type-tag ratio is used to reflect the richness of the vocabulary. Let the text... The number of distinct word forms in the text is Then the type-tag ratio Defined as: ; in This represents the number of words after deduplication. When... When, define .

[0031] Content word proportion: Based on the part-of-speech tagging results obtained during the word segmentation stage, words belonging to the categories of nouns, verbs, and adjectives are selected, and their number is recorded as follows. The proportion of content words Defined as: ; when When, define .

[0032] Combine the above statistics into text The text statistical feature vector, denoted as : ; The dimension of the vector In this example, the value is 4. The types of statistics can be added or removed and adjusted accordingly based on actual needs. The values ​​of . The statistical feature vectors of all texts constitute a set. .

[0033] S2.3 Based on the multi-source text association attributes in the text dataset to be processed, construct the association mapping features between texts from different sources to obtain cross-source association feature vectors; In S2.3, the text dataset to be processed, output from step S1.3, and the source category label carried by each text are used as the processing objects. The deep semantic feature vectors extracted in S2.1 are used to construct feature vectors reflecting the cross-source relationships of the texts. Let the dataset involve... A set of three different source categories. For text Record its source category as ,and .

[0034] For text For every other source besides its own origin Retrieve all data belonging to the source from the dataset. The text from which this source of text is denoted as . Calculate text Deep semantic feature vector and Deep semantic feature vector of each text The cosine similarity between the text samples is calculated, and the average value is taken as the text score. Relative to source Cross-source association strength : ; in, Indicate source The number of texts contained; This represents the dot product of two vectors. Let L2 norm represent the L2 norm of a vector. When, define .

[0035] For all The above association strengths are calculated sequentially from each of the other sources to obtain the text. The cross-source association feature vector, denoted as : ; The dimension of this vector is denoted as , When the dataset contains only a single source (i.e. )season It is a zero vector. After processing each text individually, a set of cross-source association feature vectors corresponding to each text is obtained.

[0036] S2.4 Perform dimension alignment and normalization on deep semantic feature vectors, text statistical feature vectors, and cross-source association feature vectors; In S2.4, the three types of feature vectors output from S2.1, S2.2, and S2.3 are used as the processing objects. Due to the original dimensions of the three... , and They may differ, and their numerical dimensions may vary. To ensure the balance of subsequent splicing and integration, they are subjected to dimensional alignment and normalization.

[0037] Dimension alignment is achieved through linear mapping. A uniform mapping dimension is set. ,For example For each text A fully connected mapping layer is applied to each of the three types of feature vectors, projecting them onto... Dimensional space: ; ; ; in, This is the mapping weight matrix for deep semantic features. Its bias vector; The mapping weight matrix for text statistical features. Its bias vector; This is the mapping weight matrix for cross-source association features. This is its bias vector. The parameters of the above mapping layer can be jointly optimized during the training of the classification model using text label annotation results as supervision signals and the cross-entropy loss function through backpropagation, or they can be randomly initialized or pre-trained parameters during the fixed feature extraction stage.

[0038] After dimensional alignment, L2 normalization is performed on the three types of feature vectors after mapping to eliminate numerical scale differences between features: ; ; ; If a mapped vector is zero, its L2 normalization result remains zero. After the above processing, three types of feature vectors with uniform and normalized dimensions are obtained, all having the same dimension. .

[0039] S2.5. The processed deep semantic feature vector, text statistical feature vector and cross-source association feature vector are concatenated and integrated to obtain multi-dimensional text features.

[0040] In S2.5, the processed three-class feature vectors output from S2.4 are used as input for the same text. corresponding , and Perform vector concatenation. The concatenation method is to join the vectors end-to-end in a preset order to form the multi-dimensional text features of the text. : ; in This indicates a vector concatenation operation. The dimension is denoted as , .when When the dataset has only a single source, only splicing is performed. and ,at this time The multi-dimensional textual features of all texts constitute a set. This serves as the input for text label classification reasoning in step S3.

[0041] Through the aforementioned multi-dimensional feature extraction process, the deep semantic information, surface statistical attributes, and cross-source relationships of the text to be processed are integrated into a unified multi-dimensional text feature representation. This multi-dimensional text feature retains the contextual semantic features captured by the pre-trained language model, supplements the statistical characteristics of the text in terms of length, vocabulary distribution, and content word composition, and introduces cross-source semantic relationship information between texts from different sources. This enables the features to have a more comprehensive discriminative ability while characterizing the text content, which is beneficial to improving the accuracy and robustness of subsequent label matching.

[0042] S3. Text Label Classification Inference: Based on multi-dimensional text features, a cross-source semantic anchoring prototype classification model with an embedded semantic differentiation adjustment mechanism is used to construct a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes. The prototype fusion strength is adjusted according to the semantic differentiation value, and matching inference between text features and the label system is performed. Preliminary label classification results with classification confidence are output. When the number of texts to be classified is too small to perform clustering or semantic differentiation calculation, basic semantic prototypes can be used directly to perform label matching inference, ensuring the usability of the classification process. This step includes the following steps: S3.1. Based on the label system and multi-dimensional text features, a dual-source prototype set is constructed, comprising a basic semantic prototype and candidate semantic prototypes. Specifically, S3.1 constructs a basic semantic prototype and candidate semantic prototypes based on the preset label system and the text data to be classified in the current batch, which together constitute the dual-source prototype set. This dual-source prototype set characterizes the classification semantic space from two different perspectives: the basic semantic prototype represents the prior category semantics driven by label knowledge, while the candidate semantic prototype reflects the semantic distribution structure presented by the current data's own clustering. The specific operation steps are as follows: S3.11. Perform semantic encoding on the text of each tag in the tag system to generate a basic semantic prototype corresponding to each tag; specifically, suppose the tag system contains Each label has a text that has been standardized and is denoted as [label name]. For each label text Semantic encoding is performed using the same pre-trained language model as in step S2.1, and the model output is taken. The hidden state vector corresponding to the label serves as the basic semantic prototype of that label, denoted as . : ; in , The dimension of the deep semantic feature vector, when using the BERT-base model All basic semantic prototypes constitute the basic semantic prototype set. .

[0043] S3.12 Extract deep semantic features from multi-dimensional text features, perform clustering processing on deep semantic features, sort and filter according to the number of text feature samples contained in the cluster, and obtain candidate semantic prototypes corresponding to representative semantic cluster centers.

[0044] In S3.12, the multi-dimensional text features generated in step S2.5 are... Extracting its deep semantic feature components. In this embodiment, the first part of the multi-dimensional text features... Dimension is the deep semantic feature after dimension alignment and L2 normalization. This vector is used as the input for clustering.

[0045] Clustering can be performed using the K-means algorithm. Number of clusters. Based on the number of labels Preset, for example, take Alternatively, the elbow rule can be used to adaptively select from multiple candidate values. During clustering, k-means++ initialization can be used with a fixed random seed to ensure reproducible results. After clustering convergence, the results are obtained... Calculate the number of text samples in each cluster, sort them by the number of samples from highest to lowest, and select the cluster with the largest number of samples. Cluster centers serve as candidate semantic prototypes. The value can be preset to match the number of tags. The number of cluster centers is dynamically determined based on whether they are identical or exceed a preset threshold (e.g., 5%) in terms of sample size. The selected candidate semantic prototypes are denoted as... , ,in All candidate semantic prototypes constitute the candidate semantic prototype set. .

[0046] S3.2. Using the dual-source prototype set as the processing object, perform cross-source semantic anchoring mapping processing to generate anchoring mapping weights between the two types of prototypes; the specific operation steps are as follows: S3.21 Perform feature dimension alignment processing on the basic semantic prototype and the candidate semantic prototype so that the two types of prototypes are mapped to the same feature vector space; In S3.21, the basic semantic prototype The dimension is Candidate semantic prototype The dimension is The two may not be equal. Dimension alignment is handled as follows: Set a uniform dimension. The basic semantic prototype is projected onto this space through a linear mapping: ; in For the mapping weight matrix, As the bias vector, the parameters of this mapping layer can be jointly optimized with the feature mapping layer parameters in S2.4 during the model training phase, or pre-trained linear projection parameters can be used. The candidate semantic prototype is already in... 3D space Then it remains unchanged. The basic semantic prototype after dimension alignment is uniformly denoted as... And it is assumed that it is similar to the candidate semantic prototype. In the same 3D space.

[0047] S3.22. Extract cross-source common semantic features from the deep semantic features of multi-dimensional text features as intermediate bridges, and calculate the semantic correlation between the candidate semantic prototype and the intermediate bridge, and between the intermediate bridge and the basic semantic prototype. In one embodiment, cross-source shared semantic features are obtained by global average pooling of the deep semantic features of all texts in the current batch. Assume the current batch contains... The deep semantic features of the text Already in 3D space. Cross-source shared semantic features Defined as: ; This feature aggregates semantic information from all source texts and can serve as an intermediate bridge connecting candidate semantic prototypes and base semantic prototypes. In other embodiments, cross-source shared semantic features can also be obtained by averaging the semantic mean vectors of each source again, or by using other methods that can reflect cross-source shared semantic information.

[0048] For the Candidate semantic prototypes Calculate its shared semantic features with cross-source semantic features The cosine similarity, as the semantic relevance between the candidate semantic prototype and the intermediate bridge, is denoted as . : ; For the Basic semantic prototypes Calculate its shared semantic features with cross-source semantic features The cosine similarity, serving as an intermediate bridge between the semantic prototype and the underlying semantic prototype, is denoted as... : .

[0049] S3.23. Perform transitive computation based on the two-level semantic relevance, normalize the transitive computation results, and generate the anchoring mapping weights of each candidate semantic prototype corresponding to each basic semantic prototype.

[0050] In S3.23, the correlation between candidate semantic prototypes and intermediate bridges is determined. The degree of correlation between the intermediate bridge and the basic semantic prototype By performing transitive combination, candidate semantic prototypes are obtained. With basic semantic prototype The original transitive correlation values ​​between them: ; when or When the value is negative, it indicates that the direction of the corresponding semantic vector is opposite to that of the cross-source shared semantic features, and after transmission... It is also a negative value, which will correspond to a lower weight in the subsequent softmax normalization, which is consistent with the intuitive expectation that negative correlations should be suppressed.

[0051] For all candidate semantic prototypes The basic semantic prototype after alignment with all dimensions After calculating the above-mentioned transitive values, for each candidate semantic prototype ,right The passed values ​​on the basic semantic prototypes are subjected to softmax normalization to obtain the anchoring mapping weights. : ; in, Indicates the first The candidate semantic prototype corresponds to the first The anchoring mapping weights of the basic semantic prototypes satisfy the following conditions: .

[0052] S3.3. Based on the anchoring mapping weights and the semantic differentiation value of the current batch of texts, adjust the prototype fusion strength to generate an extended semantic prototype set; the specific operation steps are as follows: S3.31 Extract deep semantic features from the multi-dimensional text features of the current batch, calculate the average semantic distance between deep semantic features from different sources, and obtain the semantic differentiation value; First, group the current batch of texts according to their source category labels. Let the actual number of different source categories involved in this batch of texts be... (Total number of source categories defined in S2.3) Correspondingly, when the batch covers all data sources, the two values ​​are equal, and these source categories are denoted as... ,source The set of deep semantic feature vectors of the included text is Each vector is derived from deep semantic feature components extracted from multi-dimensional text features. For each source Calculate the mean vector of all deep semantic features of the text within this source: ; in For source The number of texts. If a source has no text in the current batch, that source is ignored.

[0053] Then, the semantic distance between the mean vectors from different sources is calculated. Cosine distance is used as the metric for each source. and Semantic distance is defined as The semantic differentiation score is obtained by calculating the distance for each pairwise combination of all sources and taking the average value. : ; when That is, when the current batch contains only a single source, it is defined as follows. .

[0054] S3.32. A dynamic fusion strength coefficient is generated based on the semantic differentiation degree numerical mapping, and the semantic differentiation degree numerical value and the fusion strength coefficient are positively correlated. Specifically, semantic differentiation The value range is [0,1]. In one embodiment, the dynamic fusion intensity coefficient... Direct value ,Right now This mapping exhibits a positive correlation: higher semantic differentiation indicates greater semantic differences between texts from different sources. In this case, the basic semantic prototype needs to incorporate more candidate semantic prototype information from the data itself to adaptively adjust the classification boundary; therefore, the fusion strength coefficient... The corresponding increase. In other embodiments, other positive correlation mapping functions may also be used, such as... ,in This is a preset scaling factor, for example, it can take the value 1.2.

[0055] S3.33. Based on the anchoring mapping weight and fusion strength coefficient, the semantic offsets of the candidate semantic prototypes are weighted and fused to the corresponding basic semantic prototypes to generate extended semantic prototypes corresponding to each label, forming an extended semantic prototype set. For the Basic semantic prototypes This is then fused with all candidate semantic prototypes according to anchoring weights and fusion strength to generate an extended semantic prototype. : ; In the formula, For the first The extended semantic prototype corresponding to each label For the first The basic semantic prototype corresponding to each label. For dynamic fusion strength coefficient, The total number of candidate semantic prototypes. For the first The candidate semantic prototype corresponds to the first Anchoring mapping weights of basic semantic prototypes For the first There are 10 candidate semantic prototypes. In the formula, This represents the semantic offset vector of the candidate semantic prototype relative to the base semantic prototype. The sum of weighted semantic offsets for all candidate prototypes; Adjust the degree to which this offset is adopted.

[0056] For all Calculate the above formula to obtain the extended semantic prototype set. Each extended semantic prototype corresponds to a label.

[0057] S3.4. Based on the extended semantic prototype set, perform label matching inference on the multi-dimensional text features to be classified, and output preliminary label classification results with classification confidence. The specific steps are as follows: S3.41. Extract the deep semantic features, text statistical features, and cross-source association features from the multi-dimensional text features to be classified, and use them as input features for matching calculation. In S3.41, for the text to be classified Its multi-dimensional text features It is composed of three parts. Deep semantic feature components are extracted. , dimension This is used for subsequent semantic matching degree calculation. Simultaneously, the original text statistical feature vector corresponding to the text is obtained from the outputs of steps S2.2 and S2.3. (dimension) ) and the original cross-source association feature vector (dimension) These are used for confidence calibration and confidence enhancement, respectively. When the dataset contains only a single source, There are no cross-source associated feature vectors.

[0058] S3.42. Based on deep semantic features, calculate the semantic matching degree between it and each extended semantic prototype in the extended semantic prototype set; In S3.42, the deep semantic features of the text to be classified are calculated. With each extended semantic prototype The cosine similarity is used as the initial semantic matching degree. : ; Get all the corresponding text The initial semantic matching degree vector of each label .

[0059] S3.43. Perform confidence calibration on semantic matching degree based on text statistical features, and adjust the confidence weight of matching results according to the distribution normality of text statistical features; combine cross-source association features to perform confidence enhancement on the tag matching results corresponding to the same source associated text, and obtain the comprehensive matching degree corresponding to each tag; First, the normality of the distribution of text statistical features is calculated. In one embodiment, the global mean of each dimension of the text statistical feature vector can be calculated in advance using a training dataset or historical batch data. and global standard deviation .in When running for the first time or when historical data is insufficient, the statistics of the current batch of data can be used as an initial reference, or empirical values ​​can be preset during system initialization. During continuous system operation, a sliding window approach can be used to continuously update global statistics; the window size can be flexibly set according to data stability requirements. For the original text statistical feature vector of the current text... Calculate the standardized deviation of each dimension from the global mean, and then average them to map them as normalization factors. , making The closer the value is to 1, the more the statistical characteristics of the text conform to a normal distribution. ; in for The dimensional components, and The first The global mean and global standard deviation of the dimension. A small constant is used to prevent division by zero. In the formula... This operation is used to truncate single-dimensional bias to 1, preventing individual extreme outliers from excessively lowering the overall normality value.

[0060] The initial semantic matching score is calibrated using a normalization factor to obtain the calibrated matching score: ; Secondly, confidence enhancement is performed using cross-source association features. For texts with cross-source association features, their original cross-source association feature vectors... The Each component This indicates that the text is related to the first... The overall semantic association strength from other sources. Calculate the average of all cross-source associated feature components as the cross-source enhancement factor: ; when At that time, take The enhancement factor is applied as a weighted coefficient to the calibrated matching score to obtain the overall matching score: ; in The amplification factor is adjustable; for example, it can be set to... Through the above process, the more standardized the distribution of text statistical features and the stronger the cross-source correlation, the better the label matching degree of the text will be.

[0061] S3.44. Map the overall matching degree to the overall classification confidence of the corresponding label, and perform interval normalization on the overall classification confidence of the full label. In S3.44, for each text... The overall matching degree vector Apply the softmax function to map it to the comprehensive classification confidence of each label. : ; in and The resulting comprehensive classification confidence vector is denoted as... .

[0062] S3.45. Based on the basic mutually exclusive class constraint rules of the label system, perform preliminary filtering, sort and filter according to comprehensive classification confidence, and obtain preliminary label classification results.

[0063] Specifically, the confidence vectors are filtered based on the pre-defined constraints in the tagging system. This stage uses mutual exclusion constraints as the core for lightweight initial filtering. For example, mutual exclusion constraints mean that certain tags cannot be assigned to the same text simultaneously; if both appear, only the one with the higher confidence is retained. The full set of constraints in the tagging system, such as hierarchical constraints and quantity constraints, will be fully implemented in the subsequent S4.2 compliance verification stage. Any tag matching results that do not comply with the constraints of this stage will have their confidence set to zero or be directly removed from the candidate results.

[0064] After filtering, the remaining labels are sorted from high to low based on their overall classification confidence level, and those with a confidence level greater than a preset threshold are selected. The labels are used as the initial label classification results for this text. The specific value can be set according to the application scenario; for example, it can be set to 0.5, or selected based on the results on the validation set. When the confidence scores of all labels do not meet the threshold, it can be determined that the text has no valid matching label, and it can be marked as "unclassified" or assigned a default label. This result includes the label identifier and the corresponding classification confidence score. The preliminary label classification results of all texts are collected and used as input for the classification result verification and output in step S4.

[0065] Understandably, through the aforementioned semantic differentiation adjustment mechanism, step S3 can integrate the information of candidate semantic prototypes into the basic semantic prototype with greater fusion strength when the semantic distribution of text is relatively dispersed. This allows the extended semantic prototype to adaptively approximate the actual data distribution, improving the label matching ability for texts that deviate from conventional expressions. Simultaneously, cross-source semantic anchoring mapping ensures that the information carried by candidate prototypes is reasonably distributed to the corresponding label prototypes based on their degree of association with the label semantics, avoiding blind fusion. The distribution normalization calibration of text statistical features and cross-source association enhancement further suppress potential mismatches caused by low-quality text and isolated source texts, providing a more reliable preliminary classification result for step S4.

[0066] S4. Classification Result Verification and Output: Based on the preliminary label classification results, and combined with the preset confidence level judgment rules and label constraints, the classification results are verified and bias corrections are performed to generate the final label classification results and complete the data output. This step includes the following steps: S4.1 Based on the preset confidence level judgment rules, the confidence level of each label in the preliminary label classification results is checked, and the label results that do not meet the judgment rules are marked as needing correction. In S4.1, the preliminary label classification result of each text output in step S3.45 is used as the processing object. The preliminary label classification result of each text includes one or more labels and their corresponding comprehensive classification confidence scores. The preset confidence score determination rule is used to determine whether the confidence scores of each label meet the acceptable standard.

[0067] In one embodiment, the confidence level determination rule includes a lower confidence level threshold and a relative confidence level difference threshold. Specifically, for text... The first in the preliminary label classification results Each label is used, and its overall classification confidence level is denoted as . The verification process is as follows: First, Compared with the preset absolute confidence lower limit threshold Compare. If If the label is deemed to have insufficient confidence, it will be marked as a label result that needs to be corrected. It can be set according to the application scenario, for example, the value can be 0.3.

[0068] Secondly, for labels that pass the absolute threshold check, further examine the confidence difference between them and the next label in the confidence ranking. Assume that after the labels are sorted in descending order of confidence, the confidence of the current label is... The confidence level of the next label is Calculate the relative difference between the two: ; when Less than the preset relative difference threshold (For example If the confidence level of the label is insufficient to distinguish it from subsequent labels, there is a possibility of blurred label boundaries, and the label is marked as a label result to be corrected. The label ranked last has no subsequent comparison objects, so no relative difference check is performed, and it is directly retained; when only one label remains, the relative difference is not calculated, and it is directly retained. Since the absolute confidence lower limit check has been passed beforehand, the extreme case of a denominator of 0 can be automatically avoided.

[0069] The above rules can be used individually or in combination. After verification, unmarked label results are considered to have passed the verification and are directly retained; marked label results are sent to step S4.3 for deviation correction processing.

[0070] S4.2 Based on the preset full-scale label constraints (including mutual exclusion constraints, hierarchical constraints, and quantity constraints), perform label compliance verification on the preliminary label classification results and filter out invalid label results that do not meet the label constraints. In S4.2, the label results verified in step S4.1 (including those that passed verification and those marked as needing correction) are processed, and compliance verification is performed based on preset label constraints. Label constraints refer to the rule-based expression of the logical relationships between labels in the label system, used to eliminate label allocation results that do not conform to the label system specifications.

[0071] In one embodiment, the label constraints include the following types, which are executed sequentially by default in the order of hierarchical constraints, mutual exclusion constraints, and quantity constraints: Mutual Exclusion Constraint: If mutually exclusive tag pairs or groups are defined in the tagging system, the tagging results for the same text must not contain both tags from the mutually exclusive tag pair simultaneously. When mutually exclusive tags are detected to exist simultaneously, their confidence levels are compared. The tag with the higher confidence level is retained, and the tag with the lower confidence level is marked as invalid and filtered out.

[0072] Hierarchical Constraints: If the tag system has a hierarchical structure (such as a tree or parent-child relationship), then when a child tag is assigned to a certain text, its parent tag must also be assigned that text. When a child tag is detected to exist but a parent tag is missing, check the confidence level of the parent tag in the preliminary classification results: if the parent tag confidence level is higher than the preset hierarchical completion threshold... (For example, 0.2), then the parent label is added to the label result and its original confidence score is assigned; if the parent label confidence score is lower than 0.2, the parent label is added to the label result and its original confidence score is assigned. If the sub-tag violates the hierarchical constraints, it will be marked as invalid and filtered out.

[0073] Quantity constraint: If the tag system stipulates that each text can be assigned a maximum of [number] tags... 1 tag, when the number of tags exceeds At that time, retain the top results in descending order of confidence level. One tag is selected, and the rest are filtered out.

[0074] After the above label compliance verification, labels that do not meet the label constraints are filtered out (including labels already marked as pending correction; if a label violates a constraint, it will also be directly filtered out and will not proceed to the subsequent deviation correction stage). The remaining label results constitute the compliant label result set. If a text has no label results after compliance verification, the text is marked as "label pending" and can be further processed in subsequent manual review or log records.

[0075] S4.3 Perform deviation correction processing on the label results to be corrected, integrate the verified label results with the corrected label results, and generate the final label classification results; In S4.3, the processing objects are the set of labels to be corrected marked in S4.1 and the set of compliant labels filtered in S4.2. For the labels marked as to be corrected in S4.1, deviation correction processing is performed to restore or adjust their confidence level so that they more reasonably reflect the true degree of matching between the text and the labels.

[0076] In one embodiment, the deviation correction process employs a confidence adjustment strategy based on tag context. Specifically, for the tag to be corrected, related tags in the tag system are retrieved, including parent tags with direct hierarchical relationships, sibling tags at the same level, and semantically similar tags with semantic similarity higher than a preset threshold (e.g., 0.6). The weights of related tags are allocated according to the following rules: parent tags have the highest weight (e.g., 0.5), sibling tags have the next highest weight (e.g., uniformly 0.3), and semantically similar tags are dynamically weighted according to their semantic cosine similarity with the tag to be corrected. The confidence scores of these related tags in the current text are obtained, and their weighted average is calculated. If the confidence scores of related tags are generally high, the confidence score of the tag to be corrected is adjusted upwards; if the confidence scores of related tags are generally low, the confidence score of the tag to be corrected is adjusted downwards or remains unchanged. The correction formula can be expressed as: ; in This is the corrected confidence level. This is a correction amount. It can be calculated based on the difference between the weighted average of the confidence scores of associated labels and the confidence score of the current label, for example: ; in This is the weighted average of the confidence scores of the associated labels calculated according to the above weighting rules. To correct the step size coefficient and control the correction magnitude, for example, take... The corrected confidence level needs to be constrained within the interval [0,1], i.e. .

[0077] In another embodiment, the deviation correction process can also be carried out in a simpler way: directly weighting and fusing the confidence of the label to be corrected with the preset default confidence, or lowering its confidence by a preset ratio and then re-participating in the sorting and filtering.

[0078] After bias correction, the corrected label results are integrated with the label results that passed verification in S4.1 and the label results retained after compliance verification in S4.2. For cases where the same label appears in multiple processing stages, the final confidence level after verification and correction is used. The integration yields the final label classification result for each text, including the label identifier and the corresponding final confidence level. If a text ultimately has no valid labels, it is marked as "unclassified".

[0079] S4.4 After performing format standardization processing on the final label classification results, the data output is completed.

[0080] In S4.4, the final label classification results generated in S4.3 are used as the processing object, and format standardization is performed for use by downstream systems or users. Format standardization includes the following: Field normalization: The classification results for each text are standardized into a predefined data structure, including fields such as: text identifier (text_id), label list (labels), and confidence list (confidences). The label list and confidence list are arranged in descending order of confidence and correspond one-to-one.

[0081] Numerical precision uniformity: The confidence level values ​​are uniformly retained to a preset number of decimal places, such as 4 decimal places.

[0082] Null value handling: For text marked as "Uncategorized" or "Label pending", fill in the label list with a preset placeholder label (such as "UNCLASSIFIED"), and set the confidence level to null or the default value.

[0083] Output format conversion: Based on the requirements of downstream interfaces, the standardized results are serialized into a specified format, such as JSON, CSV or structured database records.

[0084] After format standardization is completed, the final label classification results are written to the specified output target, such as a database table, message queue, file system, or returned to the caller via API interface, completing the entire process of the text label adaptive classification method.

[0085] Through the confidence verification, compliance filtering, and bias correction processes in this step, problems such as insufficient confidence, ambiguous label boundaries, and non-compliant label combinations that may exist in the preliminary classification results of step S3 can be effectively identified and corrected. This improves the quality of the final output label classification results in terms of confidence rationality and label system consistency, and ensures the output stability and usability of the entire classification method.

[0086] like Figure 2As shown, this embodiment also provides a text label adaptive classification system that integrates a multi-feature large language model, used to perform the above-described text label adaptive classification method that integrates a multi-feature large language model, including: Data acquisition and preprocessing unit 1: Data acquisition and preprocessing unit 1 acquires multi-source texts to be classified from different sources, and performs noise filtering, format normalization and semantic cleaning preprocessing on the multi-source texts to be classified in sequence to remove invalid characters and redundant content in the texts, and obtains the text dataset to be processed. Multidimensional feature extraction and integration unit 2 receives the text dataset to be processed and performs deep semantic feature extraction, text statistical feature calculation and cross-source association feature construction respectively. It performs splicing and integration processing on the extracted multi-class features to obtain multidimensional text features. Text label classification and inference unit 3 receives multi-dimensional text features and performs text label classification inference through a cross-source semantic anchoring prototype classification model with an embedded semantic differentiation adjustment mechanism, outputting preliminary label classification results with classification confidence. Text label classification and inference unit 3 includes a dual-source prototype construction module, a prototype fusion adjustment module, and a label matching inference module, wherein: The dual-source prototype construction module constructs a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes based on the tag system and multi-dimensional text features. The prototype fusion adjustment module adjusts the prototype fusion strength based on the semantic differentiation degree value to achieve adaptive adjustment of the classification prototype; The label matching and reasoning module performs matching and reasoning between text features and the label system based on the adjusted semantic prototype, generating preliminary label classification results with classification confidence. The classification result verification and output unit 4 receives the preliminary label classification results and performs classification result verification and deviation correction processing in combination with the preset confidence judgment rules and label constraints, generates the final label classification results and completes data output.

[0087] Those skilled in the art will understand that the process of implementing all or part of the steps of the above embodiments can be carried out by hardware or by a program instructing the relevant hardware.

[0088] The foregoing has shown and described the basic principles, main features, and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited to the above embodiments. The embodiments and descriptions in the specification are merely preferred examples and are not intended to limit the invention. Various changes and modifications can be made to the invention without departing from its spirit and scope, and all such changes and modifications fall within the scope of the claimed invention.

Claims

1. A text label adaptive classification method integrating a multi-feature large language model, characterized in that, include: S1. Data Acquisition and Preprocessing: Collect multi-source texts to be classified from different sources, and perform noise filtering, format normalization and semantic cleaning preprocessing on the multi-source texts to be classified in sequence to remove invalid characters and redundant content in the texts, and obtain the text dataset to be processed. S2. Multidimensional feature extraction: Based on the text dataset to be processed, deep semantic feature extraction, text statistical feature calculation and cross-source association feature construction are performed respectively. The extracted multi-class features are spliced ​​and integrated to obtain multidimensional text features. S3. Text tag classification reasoning: Based on the multi-dimensional text features, a cross-source semantic anchoring prototype classification model with embedded semantic differentiation degree adjustment mechanism is constructed to build a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes. The prototype fusion strength is adjusted according to the semantic differentiation degree value, and the matching reasoning between text features and the tag system is performed to output the preliminary tag classification result with classification confidence. S4. Classification result verification and output: Based on the preliminary label classification results, combined with the preset confidence judgment rules and label constraints, the classification result verification and deviation correction processing is performed to generate the final label classification results and complete the data output.

2. The text label adaptive classification method based on a multi-feature large language model according to claim 1, characterized in that, In step S1, data acquisition and preprocessing include the following steps: S1.

1. Identify invalid content in the multi-source text to be classified, remove non-text symbols, repeated fragments and meaningless placeholder content in the text, and obtain the preliminary filtered text; S1.

2. Perform format normalization processing on the preliminary filtered text to unify the text encoding standard, text segmentation rules and character expression specifications, and obtain a uniformly formatted text; S1.

3. Stop word removal and semantic integrity verification are performed on the standardized text to retain text content with valid semantics, thus obtaining the text dataset to be processed.

3. The text label adaptive classification method based on a multi-feature large language model according to claim 1, characterized in that, In step S2, the multidimensional feature extraction includes the following steps: S2.1 Semantically encode the text dataset to be processed, and extract deep semantic features of the text through the embedding layer of the pre-trained language model to obtain deep semantic feature vectors; S2.2 Based on the text dataset to be processed, calculate the statistical attributes of text length, word distribution and content word ratio to obtain the text statistical feature vector; S2.3 Based on the multi-source text association attributes in the text dataset to be processed, construct the association mapping features between texts from different sources to obtain cross-source association feature vectors; S2.4 Perform dimension alignment and normalization on deep semantic feature vectors, text statistical feature vectors, and cross-source association feature vectors; S2.

5. The processed deep semantic feature vector, text statistical feature vector and cross-source association feature vector are concatenated and integrated to obtain multi-dimensional text features.

4. The text label adaptive classification method based on a multi-feature large language model according to claim 1, characterized in that, In step S3, the text label classification reasoning includes the following steps: S3.1 Based on the tag system and multi-dimensional text features, construct a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes; S3.

2. Using the dual-source prototype set as the processing object, perform cross-source semantic anchoring mapping processing to generate anchoring mapping weights between the two types of prototypes; S3.

3. Based on the anchoring mapping weights, adjust the prototype fusion strength in combination with the semantic differentiation degree of the current batch of texts to generate an extended semantic prototype set; S3.

4. Based on the extended semantic prototype set, perform label matching inference on the multi-dimensional text features to be classified, and output the preliminary label classification result with classification confidence.

5. The text label adaptive classification method based on a multi-feature large language model according to claim 4, characterized in that, In step S3.1, constructing a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes includes the following steps: S3.11 Perform semantic encoding on each tag text in the tag system to generate a basic semantic prototype that corresponds one-to-one with each tag; S3.12 Extract deep semantic features from multi-dimensional text features, perform clustering processing on the deep semantic features, sort and filter according to the number of text feature samples contained in the cluster, and obtain candidate semantic prototypes corresponding to representative semantic cluster centers.

6. The text label adaptive classification method based on a multi-feature large language model according to claim 4, characterized in that, In step S3.2, the cross-source semantic anchoring mapping process is performed, including the following steps: S3.21 Perform feature dimension alignment processing on the basic semantic prototype and the candidate semantic prototype so that the two types of prototypes are mapped to the same feature vector space; S3.

22. Extract cross-source common semantic features from the deep semantic features of multi-dimensional text features as intermediate bridges, and calculate the semantic correlation between the candidate semantic prototype and the intermediate bridge, and between the intermediate bridge and the basic semantic prototype. S3.

23. Perform transitive computation based on the two-level semantic relevance, normalize the transitive computation results, and generate the anchoring mapping weights of each candidate semantic prototype corresponding to each basic semantic prototype.

7. The text label adaptive classification method based on a multi-feature large language model according to claim 4, characterized in that, In step S3.3, adjusting the prototype fusion strength based on the semantic differentiation value of the current batch of text includes the following steps: S3.31 Extract deep semantic features from the multi-dimensional text features of the current batch, calculate the average semantic distance between deep semantic features from different sources, and obtain the semantic differentiation value; S3.

32. A dynamic fusion strength coefficient is generated based on the semantic differentiation degree numerical mapping, and the semantic differentiation degree numerical value and the fusion strength coefficient are positively correlated. S3.

33. Based on the anchoring mapping weight and fusion strength coefficient, the semantic offsets of the candidate semantic prototypes are weighted and fused to the corresponding basic semantic prototypes to generate extended semantic prototypes corresponding to each label, forming an extended semantic prototype set. The computation method of the extended semantic prototype satisfies the following relation: ; In the formula, For the first The extended semantic prototype corresponding to each label For the first The basic semantic prototype corresponding to each label. For dynamic fusion strength coefficient, The total number of candidate semantic prototypes. For the first The candidate semantic prototype corresponds to the first Anchoring mapping weights of basic semantic prototypes For the first One candidate semantic prototype.

8. The text label adaptive classification method based on a multi-feature large language model according to claim 4, characterized in that, In step S3.4, label matching inference is performed on the multi-dimensional text features to be classified, including the following steps: S3.

41. Extract the deep semantic features, text statistical features, and cross-source association features from the multi-dimensional text features to be classified, and use them as input features for matching calculation. S3.

42. Based on deep semantic features, calculate the semantic matching degree between it and each extended semantic prototype in the extended semantic prototype set; S3.

43. Perform confidence calibration on semantic matching degree based on text statistical features, and adjust the confidence weight of matching results according to the distribution normality of text statistical features; combine cross-source association features to perform confidence enhancement on the tag matching results corresponding to the same source associated text, and obtain the comprehensive matching degree corresponding to each tag; S3.

44. Map the overall matching degree to the overall classification confidence of the corresponding label, and perform interval normalization on the overall classification confidence of the full label. S3.

45. Based on the label system, the label constraint rules filter invalid matching results, sort and filter according to the comprehensive classification confidence, and obtain the preliminary label classification results.

9. The text label adaptive classification method based on a multi-feature large language model according to claim 1, characterized in that, In step S4, the classification result verification and output includes the following steps: S4.1 Based on the preset confidence level judgment rule, the confidence level of each label in the preliminary label classification result is checked, and the label results that do not meet the judgment rule are marked as needing correction. S4.

2. Based on preset label constraints, perform label compliance verification on the preliminary label classification results and filter out invalid label results that do not meet the label constraints. S4.3 Perform deviation correction processing on the label results to be corrected, integrate the verified label results with the corrected label results, and generate the final label classification results; S4.4 After performing format standardization processing on the final label classification results, the data is output.

10. A text label adaptive classification system integrating multi-feature large language models, characterized in that, When the computer program of the text label adaptive classification system that integrates multi-feature large language models is executed, the steps for performing the text label adaptive classification method that integrates multi-feature large language models as described in any one of claims 1-9 include: The data acquisition and preprocessing unit (1) acquires multi-source texts to be classified from different sources, and performs noise filtering, format normalization and semantic cleaning preprocessing on the multi-source texts to be classified in sequence to remove invalid characters and redundant content in the texts and obtain the text dataset to be processed. Multidimensional feature extraction and integration unit (2) receives the text dataset to be processed and performs deep semantic feature extraction, text statistical feature calculation and cross-source association feature construction respectively. It performs splicing and integration processing on the extracted multi-class features to obtain multidimensional text features. The text label classification and reasoning unit (3) receives the multi-dimensional text features, performs text label classification reasoning through a cross-source semantic anchoring prototype classification model with embedded semantic differentiation adjustment mechanism, and outputs a preliminary label classification result with classification confidence. The text label classification and reasoning unit (3) includes a dual-source prototype construction module, a prototype fusion adjustment module, and a label matching reasoning module, wherein: The dual-source prototype construction module constructs a dual-source prototype set containing basic semantic prototypes and candidate semantic prototypes based on the tag system and multi-dimensional text features. The prototype fusion adjustment module adjusts the prototype fusion intensity based on the semantic differentiation degree value to achieve adaptive adjustment of the classification prototype; The label matching and reasoning module performs matching and reasoning between text features and the label system based on the adjusted semantic prototype, and generates preliminary label classification results with classification confidence. The classification result verification and output unit (4) receives the preliminary label classification result and performs classification result verification and deviation correction processing in combination with the preset confidence judgment rules and label constraints to generate the final label classification result and complete data output.

Citation Information

Patent Citations

  • Theme detection method and device, electronic equipment and storage medium

    CN112733542A

  • Method and device for realizing hierarchical multi-granularity label identification processing based on adaptive dynamic path pruning, processor and storage medium thereof

    CN119202945A