An information extraction method and device, electronic equipment and product

By extracting semantic information of aspect words from video ringback tone comment text, locating the emotional start and end words, and defining the emotional word range, the problem of low emotional matching accuracy in existing technologies is solved, and the accurate extraction of emotional information and robustness are improved.

CN123180144APending Publication Date: 2026-11-27MIGU MUSIC CO LTD +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611093747.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-22
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing solutions suffer from low accuracy and insufficient robustness in matching sentiment words when processing complex, colloquial comment texts containing a large number of interfering words, making it difficult to accurately extract sentiment information from complex texts such as video ringtones.

Method used

By acquiring multiple lexical units in the target text, aspect words referring to the evaluation object are extracted. Based on the semantic information of the aspect words, the sentiment start lexical units and sentiment end lexical units are located, the target sentiment word interval is defined, and the target sentiment information corresponding to the aspect words is extracted.

Benefits of technology

It effectively isolates the judgment bias caused by interfering words in the text, improves the accuracy of sentiment information matching and extraction robustness, and achieves accurate differentiation of the sentiment information corresponding to each evaluation object.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180144A_ABST
    Figure CN123180144A_ABST
Patent Text Reader

Abstract

The application discloses an information extraction method and device, a storage medium and a product, relates to the technical field of artificial intelligence, and comprises the following steps: acquiring a plurality of word units in a target text; extracting an aspect word which refers to an evaluation object of the target text from the plurality of word units; selecting a sentiment starting word unit and a sentiment ending word unit corresponding to the aspect word from the plurality of word units according to semantic information of the aspect word, and determining a target sentiment word interval corresponding to the aspect word according to the sentiment starting word unit and the sentiment ending word unit; and extracting target sentiment information corresponding to the aspect word based on the target sentiment word interval. The application relies on a text prior rule of continuous distribution of sentiment views, determines a complete range of sentiment expression through the above method, can effectively isolate the determination deviation caused by interference word units in the text, improves the sentiment information matching precision and extraction robustness under complex colloquial texts, and realizes accurate differentiation and extraction of sentiment information corresponding to each evaluation object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of artificial intelligence technology, and in particular to an information extraction method, apparatus, storage medium and product. Background Technology

[0002] With the development of artificial intelligence and natural language processing technologies, fine-grained aspect-level sentiment analysis is widely used in scenarios such as user review mining and product experience feedback analysis. For user review texts with prominent colloquial characteristics, such as video ringback tones, the mainstream industry approach is to use deep learning architectures for fine-grained sentiment mining.

[0003] Existing solutions rely on the degree of association between lexical units and aspect words to match sentiment-related words. When processing complex comment texts such as video ringtones, which have prominent colloquial features and contain a large number of interfering words, the interfering lexical units in the text will affect the determination of the association relationship, resulting in low accuracy of sentiment word matching and insufficient robustness. Summary of the Invention

[0004] In view of this, this application provides an information extraction method, apparatus, storage medium and product, the main purpose of which is to solve the technical problems of low accuracy and insufficient robustness of sentiment word matching in existing solutions when processing complex colloquial comment text containing a large number of interfering words.

[0005] Firstly, this application provides an information extraction method, including: Extract multiple tokens from the target text.

[0006] Extract aspect words that refer to the evaluation objects of the target text from multiple lexical units.

[0007] Based on the semantic information of aspect words, the sentiment start word and sentiment end word corresponding to aspect words are selected from multiple word units, and the target sentiment word range corresponding to aspect words is determined based on the sentiment start word and sentiment end word.

[0008] Based on the target sentiment word range, extract the target sentiment information corresponding to the aspect words.

[0009] Secondly, this application provides an information extraction device, comprising: The acquisition module is configured to acquire multiple tokens from the target text.

[0010] The aspect word extraction module is configured to extract aspect words that refer to the evaluation objects of the target text from multiple lexical units.

[0011] The determination module is configured to select the sentiment start word and sentiment end word corresponding to the aspect word from multiple word elements based on the semantic information of the aspect word, and determine the target sentiment word interval corresponding to the aspect word based on the sentiment start word and sentiment end word.

[0012] The sentiment information extraction module is configured to extract the target sentiment information corresponding to aspect words based on the target sentiment word range.

[0013] Thirdly, this application provides an electronic device, including a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, wherein the processor executes the computer program to implement the information extraction method of the first aspect.

[0014] Fourthly, this application provides a computer program product, which includes a computer program that, when executed by a processor, implements the information extraction method of the first aspect.

[0015] By employing the above technical solutions, this application provides an information extraction method, apparatus, storage medium, and product. Compared with existing technologies, this application first extracts aspect words representing the evaluation object, then combines the semantic location of the aspect words to define the emotional start and end words, delineating a continuous and complete target emotional word interval, and finally extracting target emotional information based on the target emotional word interval. Thus, relying on the prior rules of continuous distribution of emotional viewpoints in text, this application determines the complete range of emotional expression through the above method, effectively isolating judgment biases caused by interfering words in the text, improving the accuracy and robustness of emotional information matching in complex colloquial texts, and achieving accurate differentiation and extraction of emotional information corresponding to each evaluation object. Attached Figure Description

[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.

[0017] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0018] Figure 1 A flowchart illustrating an information extraction method provided in an embodiment of this application is shown. Figure 2 This illustration shows a task framework diagram provided in an embodiment of this application; Figure 3 This paper shows a schematic diagram of the structure of a model provided in an embodiment of this application; Figure 4 This illustration shows a schematic diagram of a vector representation layer structure provided in an embodiment of this application; Figure 5This illustration shows a schematic diagram of the structure of a bidirectional long short-term memory sequence modeling layer provided in an embodiment of this application; Figure 6 This illustration shows a structural schematic diagram of a self-attention layer provided in an embodiment of this application; Figure 7 This illustration shows a structural schematic diagram of a masked conditional random field layer provided in an embodiment of this application; Figure 8 A schematic diagram of another model provided in an embodiment of this application is shown; Figure 9 A flowchart of an emotion polarity prediction task provided in an embodiment of this application is shown; Figure 10 This paper shows a schematic diagram of the structure of an information extraction device provided in an embodiment of this application; Figure 11 A schematic diagram of the structure of an electronic device provided in an embodiment of this application is shown. Detailed Implementation

[0019] The embodiments of this application will now be described in more detail with reference to the accompanying drawings. It should be noted that, unless otherwise specified, the embodiments and features described herein can be combined with each other.

[0020] This application is primarily applied to fine-grained sentiment analysis scenarios for user comments on video ringback tones. These comments are typical colloquial texts, characterized by casual expression, fragmented sentence structures, and frequent interjections such as modal particles, irrelevant modifiers, and irrelevant derogatory terms. A single comment may also simultaneously address multiple aspects of the ringback tone content, playback duration, visuals, and background music, resulting in complex texts containing numerous distracting terms. Traditional methods relying solely on word association to match sentiment terms are prone to mismatches and inaccurate targeting.

[0021] In addition to video ringback tone comment analysis, the proposed solution can also be applied to various user comment mining scenarios such as e-commerce product reviews, financial service feedback, and audio-visual content comments. Through the information extraction solution provided in this application, the identification of evaluation objects and the extraction of corresponding sentiment opinions in various scenarios can be completed, supporting the implementation of business such as product iteration, user sentiment analysis, and personalized content recommendation.

[0022] To address the technical issues of low accuracy and insufficient robustness in sentiment word matching when processing complex, colloquial commentary texts containing numerous interfering words, this application relies on prior rules based on the continuous distribution of sentiment viewpoints. By combining semantic information of aspect words, it locates the starting and ending sentiment words separately, thereby defining a specific target sentiment word range to determine the complete scope of sentiment expression. This effectively isolates the judgment bias caused by interfering words in the text, improves the accuracy and robustness of sentiment information matching in complex, colloquial texts, and achieves accurate differentiation and extraction of sentiment information corresponding to each evaluation object.

[0023] This embodiment provides an information extraction method, such as... Figure 1 The diagram shown illustrates a flowchart of an information extraction method, which includes: S101. Obtain multiple tokens from the target text.

[0024] The target text, for example, refers to the text carrying user evaluation content. This target text includes information about the evaluated object and the emotional opinion expressed regarding that object. For instance, taking a video ringback tone user comment scenario as a typical application scenario, the corresponding target text example is "The ringback tone content is good, but the playback time is too short." Here, "ringback tone content" and "playback time" are the evaluated objects, and "good" and "too short" are emotional opinion information. In addition, this target text can also be adapted to various user evaluation text scenarios such as e-commerce product reviews, audio-visual content comments, and financial service feedback, which will not be elaborated upon in this application.

[0025] A token is the smallest unit of text obtained after segmentation. The target text consists of at least one token. Taking the target text "The ringtone content is good, but the playback time is too short" as an example, the smallest unit of token sequence constituting this target text would be [ringtone / content / is / good / , / but / is / play / time / too / short / ]. In addition, there can be other segmentation methods with different granularities or dimensions, which will not be listed here.

[0026] In the above lexical sequence, each element is an indivisible basic lexical unit; the evaluation object and sentiment viewpoint identified in this scheme are both composed of a series of lexical units arranged in a continuous manner. This application achieves the distinction between the two concepts by locating the sentiment start lexical unit and the sentiment end lexical unit and delineating the continuous lexical units to form a complete target sentiment word interval.

[0027] In one implementation, raw user review data can be retrieved as target text from sources such as the application's business service backend, user comment interface, and local text database. Then, a word segmenter is used to standardize and segment the target text, breaking it down into several independent minimum processing units, thus obtaining multiple word units corresponding to the target text.

[0028] S102. Extract aspect words that refer to the evaluation objects of the target text from multiple lexical units.

[0029] Among them, aspect words are semantic units composed of a continuous segment of words, used to directly refer to the evaluation object in the text. One evaluation object corresponds to a complete set of aspect words, and aspect words are the concrete textual expression of the evaluation object in the text.

[0030] In one implementation, based on the prior rule of continuous semantic distribution in the text, the entire sequence of words is traversed to identify continuous word intervals (segments) belonging to the same evaluation object. All words in the same interval are then concatenated and merged to extract all aspect words in the text that refer to the evaluation object.

[0031] For example, a pre-trained entity recognition model (i.e., an aspect recognition network) performs positional label prediction on all word sequences. The labels are entity annotation markers defined for word segments, employing a Begin-Inside-Outside (BIO) entity boundary labeling system. This system defines three types of labels: the starting word segment label of the evaluation object interval (B-Aspect), the word segment label inside the evaluation object interval (I-Aspect), and the word segment label for non-evaluation objects (O). For any word segment, one of the three types of labels is assigned to it to distinguish whether the word segment belongs to the evaluation object and its position within the evaluation object interval. After the model outputs the unique label for each word segment, based on the continuous distribution rules of the labels, all continuous word segment intervals (fragments) labeled B-Aspect and I-Aspect are selected. All word segments within the same continuous interval are then concatenated and merged to finally obtain all aspect words in the text that refer to the evaluation object.

[0032] S103. Based on the semantic information of aspect words, select the sentiment start word and sentiment end word corresponding to aspect words from multiple word elements, and determine the target sentiment word range corresponding to aspect words based on sentiment start word and sentiment end word.

[0033] Among them, the semantic information of aspect words refers to the feature information that can characterize the semantic content of the evaluation object and is used to associate and match the corresponding sentiment expression, including the text lexical content and contextual features corresponding to aspect words.

[0034] In one implementation, by combining the semantic features of aspect words with prior association with the text context, the entire sequence of lexical units is traversed to locate the emotional expression boundary that is semantically related to the aspect word, and the emotional start lexical unit and emotional end lexical unit corresponding to the emotional expression are determined respectively. The start and end lexical units are used to define a continuous range of target emotional words.

[0035] For example, the aspect word is concatenated with the prompt text to construct an input sequence. The input is then fed into a pre-trained relation extraction model (i.e., a semantic encoding model) to predict the probability of each word as the sentiment start position and sentiment end position. Based on the probability prediction results, sentiment start words and sentiment end words that match the aspect word are selected. The continuous words between the two words together constitute the target sentiment word interval corresponding to the aspect word.

[0036] S104. Based on the target sentiment word range, extract the target sentiment information corresponding to the aspect words.

[0037] Among them, the target sentiment information is a complete sentiment expression fragment formed by splicing continuous word elements within the target sentiment word range.

[0038] In one implementation, all word units covered by the target sentiment word range are extracted, and all word units within the range are sequentially concatenated and integrated to obtain the target sentiment information corresponding to that aspect of the word.

[0039] Compared with existing technologies, this application relies on the prior rules of continuous distribution of sentiment viewpoints in text. By combining the semantic information of aspect words, it locates the sentiment start word and sentiment end word respectively, thereby defining the exclusive target sentiment word interval to determine the complete range of sentiment expression. This can effectively isolate the judgment bias caused by interfering words in the text, improve the matching accuracy and extraction robustness of sentiment information in complex colloquial texts, and achieve accurate differentiation and extraction of the sentiment information corresponding to each evaluation object.

[0040] The information extraction method provided in the embodiments of this application will now be described in detail.

[0041] Optionally, after obtaining the target sentiment information corresponding to the aspect words, this application also provides an embodiment for determining the sentiment polarity of the aspect words. In this embodiment, sentiment words are extracted from the sentiment viewpoints corresponding to the target sentiment information, and the sentiment polarity corresponding to the aspect words is determined according to a preset correspondence between sentiment words and sentiment polarities; the sentiment polarity is any one of positive sentiment tendency, negative sentiment tendency, or neutral sentiment tendency.

[0042] In one implementation, a one-to-one mapping relationship between sentiment words and sentiment polarities is pre-established to form a standardized sentiment lexicon. Then, the text content within the target sentiment information is matched and retrieved against the sentiment lexicon to find the sentiment attribute bound to the corresponding sentiment word, and the sentiment polarity result corresponding to that word is output.

[0043] For example, firstly, high-frequency evaluative terms in the comment corpus are collected as candidate words, and then each candidate word is labeled with its corresponding sentiment attribute. The labeling categories are divided into three types: positive, negative, and neutral. After the labeling is completed, the key-value pair mapping entries are organized, and finally the sentiment lexicon is solidified.

[0044] The embodiments of this application can consist of three sub-tasks: aspect extraction (AE), relation extraction (RE), and sentiment polarity estimation (SPE). Figure 2 The diagram illustrates a task framework where the input is the target text of user comments to be analyzed. The target text is first input to the aspect recognition task (AE) to extract aspect terms. The aspect terms output by AE are split into two paths: one path is sequentially input to the relation extraction task (RE), where the RE task combines the aspect terms with the target text to obtain the corresponding sentiment opinion; the other path is sent to the sentiment polarity prediction task (SPE). After the sentiment opinion output by the RE task is fed into the SPE task, the SPE task combines the aspect terms from the AE task and the sentiment opinion from the RE task to determine the sentiment polarity, ultimately outputting a triplet analysis result of "aspect term-sentiment opinion-sentiment polarity".

[0045] The following sections will introduce the Aspect Recognition (AE) task, Relation Extraction (RE) task, and Sentiment Polarity Prediction (SPE) task, respectively.

[0046] For aspect recognition (AE) tasks, this application provides embodiments including but not limited to the following: Optionally, this application also provides an embodiment for extracting aspect words that refer to the evaluation object of the target text from multiple lexical units. In this embodiment, the lexical unit sequence corresponding to multiple lexical units is input into an aspect recognition network, the aspect recognition network is used to perform semantic modeling on the lexical unit sequence, and a boundary-constrained decoding operation is performed based on the lexical unit features obtained after modeling, outputting a continuous aspect word lexical unit interval; the continuous lexical units within the aspect word lexical unit interval are determined as aspect words.

[0047] The aspect recognition network is a deep semantic model (MacBERT-BAMC) designed for aspect recognition (AE) tasks in this application. It is a multi-level feature extraction network that is adapted to colloquial Chinese comments and can achieve compliant decoding of entity boundaries.

[0048] In one implementation, a lexical sequence is input into the aspect recognition network. The network first performs standardization preprocessing on the input lexical units to obtain a structured tensor, then performs contextual semantic modeling on the lexical sequence and generates refined lexical features, and finally performs constrained decoding in combination with BIO annotation rules to output a continuous lexical interval of aspect words. The continuous lexical units contained in this interval are the aspect words to be extracted.

[0049] like Figure 3 The schematic diagram of the structure of the model (MacBERT-BAMC), also known as the aspect recognition network, includes: a vector representation layer, a bidirectional long short-term memory sequence modeling layer, a self-attention layer, a fully connected layer, and a masked conditional random field (Masked-CRF) layer.

[0050] This application also provides an embodiment that utilizes an aspect recognition network to perform semantic modeling on a lexical sequence, and performs a boundary-constrained decoding operation based on the lexical features obtained after modeling, outputting a continuous range of aspect lexical terms. Wherein: In this embodiment, a vector representation layer is used to extract lexical context vectors from the lexical sequence.

[0051] like Figure 4 The diagram shows a vector representation layer structure. In this embodiment, the vector representation layer extracts the word context vector from the word sequence. First, preprocessing is performed on the input word sequence: the excessively long text is truncated, and [CLS] start markers and [SEP] end markers are concatenated at the beginning and end of the sequence to obtain word units.

[0052] Next, the word units are converted into corresponding numeric IDs according to the fixed vocabulary attached to the MacBERT pre-trained model; a binary attention mask of the same length as the ID sequence is constructed, and the effective input positions are assigned a value of 1; when the actual length of the sequence does not reach the preset maximum length, zero-padding is performed on the ID sequence and the attention mask simultaneously to ensure that the lengths of all samples in the same batch are aligned, and the input ID tensor and attention mask tensor are generated and encapsulated into a structured data dictionary.

[0053] The tensor is then fed into the embedding layer, which maps word IDs to high-dimensional vectors. The word embedding vector, paragraph embedding vector, and position embedding vector are then stacked bit by bit, and the semantics of words, paragraph information, and word order information are fused to obtain the initial word vector.

[0054] The initial word vectors are then fed into a multi-layer Transformer (Trm) encoding module, which uses a self-attention mechanism to capture long-distance dependencies between words and completes contextual semantic encoding.

[0055] After being processed by the multi-layer Trm encoding module, the vector representation layer outputs the context embedding vector corresponding to each token, and inputs this vector into the subsequent bidirectional long short-term memory sequence modeling layer.

[0056] Illustratively, taking the input token sequence as "the ringtone content is wonderful" as an example, in combination with Figure 4 the vector representation layer structure shown in the figure, an example description is given.

[0057] The bottommost part of the vector representation layer is the text input layer. A [CLS] start marker is added to the head of the token sequence, and a [SEP] end marker is added to the tail. The final input sequence is: [CLS], ring, tone, content, is, wonderful, [SEP]. The text input is connected upward to the embedding layer, which is a three-layer vector superposition structure: word embedding, segment embedding, and position embedding, respectively. Among them: the word embedding vector is: ; the segment embedding vector is: E A , E A , E A , E A , E A , E A , E A , E A ; the position embedding vector is: E0, E1, E2, E3, E4, E5, E6, E7.

[0058] The word embedding vector, segment embedding vector, and position embedding vector at the same position are added to obtain the initial word vector at the corresponding position.

[0059] The initial word vector is then sent to the upper multi-layer Trm encoding module, and semantic interaction of all tokens is completed by relying on the self-attention mechanism, and finally the token context vector fused with global context information is output.

[0060] In this embodiment, the time series feature is extracted from the token context vector through the bidirectional long short-term memory sequence modeling layer, and the bidirectional context dependence of the token is determined according to the forward and backward time series association information of the time series feature, and the time series feature fused with the bidirectional context dependence is output.

[0061] As Figure 5 the structural schematic diagram of a bidirectional long short-term memory sequence modeling layer is shown, the network is divided into an input layer, a forward Long Short-Term Memory (LSTM) branch, a backward LSTM branch, and an output layer as a whole. The input layer sequentially takes the token context vectors output by the vector representation layer as the input features x of each time step t-1 , x t , x t+1The data is fed into the forward LSTM branch and the backward LSTM branch. The forward LSTM updates the hidden state sequentially from left to right, gradually obtaining... , , The backward LSTM traverses the sequence from right to left in reverse order, obtaining the following results sequentially. , , The output layer concatenates and merges the forward and backward hidden states at the same time step to obtain the final output feature at each time step. h t-1 , h t 、h t+1 .

[0062] For example, the word context vectors output by the vector representation layer are first used as sequence features and input into a bidirectional long short-term memory network step by step. The forward LSTM iteratively updates the hidden states from left to right along the text's word order, learning the semantic information of the preceding text. The backward LSTM iteratively updates the hidden states from right to left in reverse order, learning the semantic information of the following text.

[0063] The forward hidden state update of the forward LSTM satisfies the following relationship: ; The backward hidden state update of the backward LSTM satisfies the following relationship: ; In the formula, x t The input features are for the current time step. f This is the function for updating the hidden layers inside the LSTM.

[0064] For each time step, the forward hidden state and the backward hidden state are concatenated and merged, and the merge expression is shown in the following formula: ; This yields temporal features of bidirectional contextual dependencies before and after fusion, thus enhancing the sequence contextual information.

[0065] In this embodiment, a self-attention layer is used to assign feature weights to the evaluation objects in the target text that correspond to the temporal features, thereby generating enhanced context features. The enhanced context features are the lexical features obtained after modeling.

[0066] like Figure 6 The diagram shows a self-attention layer structure that integrates temporal features with bidirectional contextual dependencies. h 1. h 2 ...h T ](in,T Given the total number of words in the word sequence, input three linear transformation branches. Generate query vector Q, key vector K, and value vector V respectively; perform operations on query vector Q and key vector K to obtain the attention score, and then perform softmax normalization to obtain the attention weight (i.e., the feature weight assigned to the evaluation object). w 1. w 2 ...w T Finally, the value vector V is weighted and summed using attention weights to output the enhanced lexical features, which are also the enhanced context features.

[0067] For example, the hidden state sequence output by the bidirectional long short-term memory sequence modeling layer (i.e., the temporal features that fuse the bidirectional contextual dependencies before and after) is first used as the input feature matrix H, and three learnable parameter matrices W are then used. Q W K W V Perform linear mappings to obtain the query vector Q, the key vector K, and the value vector V.

[0068] Next, the attention score between the elements of the hidden state sequence is calculated by taking the dot product of the query vector Q and the key vector K, and then scaling the result by dividing by the square root of the dimension of the key vector K. The expression is as follows: ; In the formula, Q i For the first i Query vectors for each location; K i Let j be the key vector at the j-th position; The two are first multiplied to obtain the original matching score; d k The vector dimension of the key vector; use right Q i and K i The dot product result (original matching score) is scaled by division to suppress the gradient vanishing problem caused by excessively large dot product values ​​in high-dimensional vectors, thus ensuring that the attention score distribution remains stable.

[0069] Then, the attention score is normalized to an attention weight with a value range of 0 to 1 using the softmax function.

[0070] Finally, the value vector V is weighted and summed using the obtained attention weights to obtain the enhanced context features.

[0071] The above process fully aggregates the semantic information of the entire input sequence, generates lexical features that integrate global contextual information, and improves the model's accuracy in understanding the semantics of each lexical in a specific context.

[0072] In this embodiment, the enhanced context features are mapped to aspect word boundary label scores of multiple lexical units through a fully connected layer.

[0073] In one implementation, a fully connected layer is positioned between the self-attention layer and the Masked-CRF layer. This layer adjusts the dimensionality of the output of the self-attention mechanism to fit the input requirements of the Masked-CRF layer. After the text sequence is processed by the bidirectional Long Short-Term Memory network, the feature dimension is twice the dimension of the hidden layer of the bidirectional network, integrating bidirectional semantic information. The self-attention layer then refines and highlights key sequence features. Subsequently, the fully connected layer uses a linear transformation to perform a dimensionality transformation on the enhanced context features, adjusting the feature dimension to match the number of predefined labels, ensuring that at each lexical time step, the predicted scores corresponding to all candidate labels are output.

[0074] For example, the output of a self-attention layer is constructed as a tensor. Where B is the batch size, T is the word sequence length, and D is the hidden feature dimension. In this model, D=256, and the tensor Z is the word feature obtained from the self-attention weighted output. z i Arrangement and composition.

[0075] The fully connected layer employs a learnable linear projection to map the context vector at a single time step to the label space. This linear transformation is achieved by the weight matrix. and bias vector Determined, C represents the number of predefined label categories. The feature vector at time step t for the b-th sample. The corresponding label score x is calculated. b,t The calculation formula is shown below: ; in, Each component represents the unnormalized score predicted for the corresponding label at that position. This operation is performed in batches over the entire sequence, ultimately generating a label-score tensor. This provides the basic input for sequence-level tag decoding in the subsequent Masked-CRF layer.

[0076] In this embodiment, a masked conditional random field layer is used to eliminate label jump paths between adjacent lexical units that do not conform to structural constraints. Based on the aspect word boundary label scores of multiple lexical units, the optimal label sequence is selected from the remaining label jump paths, and continuous aspect word lexical intervals are determined based on the optimal label sequence.

[0077] like Figure 7 The diagram shows a structure of a masked conditional random field layer. The input information received by the Masked-CRF layer includes the label score tensor output by the fully connected layer, the true label sequence of the samples, the mapping relationship between labels and indices (label2idx_map), and a mask used to mark the positions of valid terms within the sequence. This part of the input provides observational features and supervisory constraints for model training.

[0078] First, the Masked-CRF layer performs validity checks on the input data, verifying the dimensionality information of the label score tensor and checking whether the mask of the first time step of each sequence is valid, ensuring that all input data have a consistent format and valid values.

[0079] Next, the transition parameters are configured. These transition parameters are used to learn the dependencies between label sequences. This layer configures four types of transition parameters: start transition parameters pointing from the initial state to various labels, end transition parameters pointing from various labels to the final state, transition matrices for jumping between different labels, and an optional mask matrix. The mask matrix, generated based on label2idx_map according to preset BIO annotation rules, is used to intercept illegal label jumps.

[0080] This solution uses the BIO annotation system to annotate aspect terms. The tag categories include: B-Aspect (beginning of aspect term), I-Aspect (inside aspect term), and O (non-aspect term).

[0081] label2idx_map maps string labels to unique integer indices. A binary mask transition matrix is ​​constructed based on this mapping. The transition matrix It is a C×C binary matrix, and its elements are defined as follows: ; Where idx2label is the inverse mapping of label2idx_map; i is the index of the label before the jump; j is the index of the tag after the jump.

[0082] The role of `label2idx_map` in this process is to convert string label rules into index positions in a matrix. That is, a valid label jump position is assigned a value of 1, and an invalid jump position is assigned a value of 0. For example, the valid transition B-Aspect → I-Aspect corresponds to index pair (1,2), therefore... An illegal transfer from I-Aspect to B-Aspect occurs, corresponding to index pair (2,1). .

[0083] During the training phase, this mask matrix Used to constrain the update of the transition score matrix T, any jump path judged as illegal by the mask will have its corresponding score set to negative infinity, thus pruning unreasonable paths in advance and compressing the decoding search space.

[0084] After the parameter constraints are completed, the model outputs the label-score tensor through the fully connected layer. Sequence scores and normalization factors are calculated based on the transfer parameters.

[0085] The sequence score calculates the total score of a specific label sequence under a given observation score; while the normalization factor calculates the sum of the scores of all possible label sequences.

[0086] For example, for sequence score calculation, given a label sequence and label score tensor The formula for calculating the total sequence score is shown below: ; in, The total sequence score for the label path y corresponding to the current input score tensor x; From the label Transfer to label The transfer fraction; In position Above, label The word tag score; It is the transition from the initial state to the label at the beginning of the sequence. The transfer fraction; It is the end of the sequence from the label The transition score to the final state; It is the sequence length of the input lexical observation sequence.

[0087] The above formula combines the observation score of each word element with the jump score between adjacent tags to calculate the total score of the entire tag path.

[0088] For the calculation of the normalization factor The calculation is shown in the formula below: ; In the formula, This involves traversing all valid label sequences, that is, traversing label sequences that conform to the structural constraints. The total sequence score for the label path y corresponding to the current input score tensor x; During the training phase, a loss function is constructed using the logarithmic difference between sequence scores and normalization factors to optimize label prediction accuracy.

[0089] In the prediction phase, the Viterbi algorithm is used to perform sequence decoding. Combining the token label score, start transition parameters, and end transition parameters, the algorithm iteratively searches for the label path with the highest score at each time step. For any time step t and any label state y, define... For a moment In state The highest-scoring path. The recursive formula for the Viterbi algorithm is shown below: ; In the formula, Let y be the highest total score of the path that can be obtained when the word is in the label state y at the t-th time step; This represents the state of all selectable tags in the previous time step; The score is the score of the optimal path corresponding to label \(y'\) at the previous time step; For the preceding tag The transition score to the current label y; Let y be the tag score of the t-th lexical unit that is predicted to be the tag y.

[0090] Iterate through all preceding label states and take the maximum value, then recursively advance word by word; after the traversal is complete, backtrack the entire path and output the label sequence with the highest global score, thereby locating the continuous aspect word interval in the text.

[0091] For relation extraction (RE) tasks, this application provides embodiments including but not limited to the following: Optionally, this application also provides an embodiment in which, based on the semantic information of aspect words, sentiment start words and sentiment end words corresponding to aspect words are selected from multiple word elements, and the target sentiment word interval corresponding to aspect words is determined based on the sentiment start words and sentiment end words. In this embodiment, based on the semantic information of aspect words, sentiment viewpoint boundary prediction is performed on multiple word elements to obtain a first probability value of multiple word elements as sentiment start words for matching aspect words, and a second probability value as sentiment end words; the word element with the largest first probability value among multiple word elements is determined as the sentiment start word element, and the word element with the largest second probability value among multiple word elements is determined as the sentiment end word element; the target sentiment word interval corresponding to aspect words is determined based on the first index of the sentiment start word element among multiple word elements and the second index of the sentiment end word element among multiple word elements.

[0092] In one implementation, the semantic features of all words in the target text are first extracted. Combined with the semantic information of the identified aspect words, sentiment boundary prediction is performed, and two types of probabilities are output for each word: the first probability value of the current word as the starting position of the sentiment opinion of the corresponding aspect word, and the second probability value of the current word as the ending position of the sentiment opinion.

[0093] Then, all lexical units are traversed, and the lexical unit with the highest first probability value is selected as the sentiment starting lexical unit, and the lexical unit with the highest second probability value is selected as the sentiment ending lexical unit. Finally, the first sequence index corresponding to the sentiment starting lexical unit and the second sequence index corresponding to the sentiment ending lexical unit are read, and the two indexes form a closed interval to obtain the target sentiment word interval that matches the words in that aspect.

[0094] Optionally, this application also provides an embodiment for predicting the sentiment / viewpoint boundary of multiple lexical units based on the semantic information of aspect words. In this embodiment, aspect words are concatenated with preset prompt words to obtain an input sequence, whereby the preset prompt words are used to constrain the prediction range of sentiment / viewpoint; the input sequence is then input into a semantic coding model for sentiment / viewpoint boundary prediction; the semantic coding model is obtained through pre-training with synonym replacement mask correction on unlabeled text and fine-tuning training on text containing sentiment / viewpoint start and end labels.

[0095] The semantic encoding model is the MacBERT-RE-FC model. This MacBERT-RE-FC model first performs pre-training learning using synonym replacement masks on unlabeled text to build a general contextual semantic representation capability; then, it performs fine-tuning using labeled samples with sentiment start and end labels, and relies on a two-branch fully connected network to predict the start and end boundary probabilities of sentiment, thus completing the extraction of sentiment intervals.

[0096] Optionally, the semantic encoding model includes a first branch network and a second branch network, the parameters of which are not shared; the first branch network is used to output multiple word units as the first probability value of the sentiment start word unit based on the encoding features corresponding to the input sequence; the second branch network is used to output multiple word units as the second probability value of the sentiment end word unit based on the encoding features corresponding to the input sequence.

[0097] like Figure 8 The diagram shows the structure of another model (MacBERT-RE-FC), which includes a semantic encoding layer (MacBERT layer), a start-FC fully connected layer (i.e., the first branch network), an end-FC fully connected layer (i.e., the second branch network), and a loss calculation module.

[0098] The semantic encoding layer employs an optimized masking strategy, replacing traditional [MASK] placeholders with synonyms to enhance the model's understanding of word semantics and overall sentence context. Pre-trained on massive amounts of unlabeled text, the semantic encoding layer possesses powerful general semantic representation capabilities, improving the model's generalization performance in sentiment extraction tasks. The model incorporates two independent fully connected branches to predict the start and end positions of sentiment opinions, respectively, thereby improving the prediction accuracy of sentiment interval extraction.

[0099] First, the semantic encoding layer performs encoding operations on the input word sequence and outputs the context embedding features of each word, providing high-dimensional semantic features for the subsequent dual-branch network.

[0100] Subsequently, the embedded features are input in parallel to the first and second branch networks. The first branch network outputs two types of scores, which are normalized by softmax to obtain the probability values ​​of whether the current word is a sentiment opinion starting word or not. The second branch network outputs two types of scores, which are normalized by softmax to obtain the probability values ​​of whether the current word is a sentiment opinion ending word or not.

[0101] Finally, the start probability, termination probability, and true start and end labels are fed into the loss calculation module, and the jointly supervised dual-branch network completes the model iteration, outputting the start and end boundary prediction results of sentiment opinions.

[0102] In one implementation, during the training phase of the MacBERT-RE-FC model, the loss calculation module independently calculates the cross-entropy loss for the starting label and the ending label based on the predicted scores output by the first branch network and the second branch network, and the true label, respectively. For a single sample, the formula for calculating the single-branch cross-entropy loss is as follows: ; in, This represents the value of the single-branch loss function. The total number of categories (representing the start and end of sentiment / opinion, so the value is 2); The value is 1 when category i is the correct category, and 0 otherwise. The class prediction probability is obtained after the original model score is transformed by the softmax function.

[0103] The total loss of the MacBERT-RE-FC model L T The calculation formula is shown below: ; in, The cross-entropy loss of the first branch network; This represents the cross-entropy loss of the second branch network.

[0104] The two losses are added together to obtain the overall loss value, thereby simultaneously optimizing the model parameters of the two branch networks.

[0105] In one implementation, during the prediction phase of the MacBERT-RE-FC model, the first branch network outputs the predicted probability sequence of all word units corresponding to the sentiment start position, and the second branch network outputs the predicted probability sequence of all word units corresponding to the sentiment end position. The two sets of probability sequences are decoded to select the start word unit and the end word unit with the highest probability, and finally the prediction result of the sentiment opinion interval is output, that is, the target sentiment word interval.

[0106] For the sentiment polarity prediction (SPE) task, this application provides embodiments including but not limited to the following: The Sentiment Polarity Prediction (SPE) task, in conjunction with the Aspect Identification (AE) and Relation Extraction (RE) tasks, achieves aspect-level sentiment analysis. For example... Figure 9 The flowchart shown is for a sentiment polarity prediction task. First, the original text is preprocessed, and then the processed target text is fed into the AE task. The AE task calls the MacBERT-BAMC model. The text features are sequentially passed through a semantic encoding layer, a bidirectional long short-term memory network, an attention layer, and a masked conditional random field layer, outputting the aspect words identified in the target text.

[0107] Subsequently, the target text and the extracted aspect terms are fed into the RE task, which calls the MacBERT-RE-FC model to perform the computation. This model relies on two independent fully connected branches (the first branch network and the second branch network) to predict the starting and ending boundaries of sentiment opinions, and outputs sentiment opinion text corresponding one-to-one with each aspect term, that is, the target sentiment information.

[0108] Subsequently, the aspect terms output by the AE task and the sentiment opinion text output by the RE task are fed into the SPE task. The SPE task uses the aspect terms obtained by batch mining and the matched sentiment opinions to construct a sentiment dictionary, performs sentiment polarity mapping on the aspect terms and sentiment opinion text, and outputs the sentiment polarity prediction result corresponding to each aspect term.

[0109] Compared with existing technologies, this application first extracts aspect words representing the evaluation object, then combines the semantic location of the aspect words to define the emotional start and end words to delineate a continuous and complete target emotional word interval, and then extracts the target emotional information based on the target emotional word interval. In this way, relying on the prior rules of continuous distribution of emotional viewpoints in the text, this application determines the complete range of emotional expression through the above method, which can effectively isolate the judgment bias caused by interfering words in the text, improve the accuracy of emotional information matching and extraction robustness in complex colloquial texts, and achieve accurate differentiation and extraction of the corresponding emotional information of each evaluation object.

[0110] Furthermore, as Figure 1 To illustrate the specific implementation of the method shown, this embodiment provides an information extraction device, such as... Figure 10 The diagram shows the structure of an information extraction device 1000, which includes an acquisition module 1010, an aspect word extraction module 1020, a determination module 1030, and an emotional information extraction module 1040, wherein: The acquisition module 1010 is configured to acquire multiple words in the target text.

[0111] The aspect word extraction module 1020 is configured to extract aspect words that refer to the evaluation objects of the target text from multiple lexical units.

[0112] The determination module 1030 is configured to select the sentiment start word and sentiment end word corresponding to the aspect word from multiple word elements based on the semantic information of the aspect word, and determine the target sentiment word interval corresponding to the aspect word based on the sentiment start word and sentiment end word.

[0113] The sentiment information extraction module 1040 is configured to extract the target sentiment information corresponding to aspect words based on the target sentiment word range.

[0114] Optionally, when determining the aspect word, the determining module 1030 selects the sentiment start word and sentiment end word corresponding to the aspect word from multiple word elements based on the semantic information of the aspect word, and determines the target sentiment word interval corresponding to the aspect word based on the sentiment start word and sentiment end word, it is configured as follows: Based on the semantic information of aspect words, sentiment boundary prediction is performed on multiple word units to obtain the first probability value of multiple word units as sentiment start word units for matching aspect words, and the second probability value as sentiment end word units.

[0115] The lexicon with the highest first probability value among multiple lexicons is determined as the sentiment initiation lexicon, and the lexicon with the highest second probability value among multiple lexicons is determined as the sentiment termination lexicon.

[0116] Based on the first index of the sentiment initiation word in multiple words and the second index of the sentiment termination word in multiple words, the target sentiment word range corresponding to the aspect word is determined.

[0117] Optionally, when determining the aspect word, the module 1030 is configured to concatenate the aspect word with a preset prompt word to obtain an input sequence, based on the semantic information of the aspect word. The preset prompt word is used to constrain the prediction range of the sentiment opinion. The input sequence is fed into the semantic coding model for sentiment boundary prediction. The semantic coding model is obtained by pre-training unlabeled text with synonym replacement mask correction and fine-tuning text containing sentiment start and end labels.

[0118] Optionally, the semantic coding model includes a first branch network and a second branch network.

[0119] The first branch network is used to output multiple lexical units as the first probability value of sentiment initiation lexical units based on the encoding features corresponding to the input sequence.

[0120] The second branch network is used to output multiple lexical units as the second probability value of sentiment termination lexical units based on the encoding features corresponding to the input sequence.

[0121] Optionally, when the aspect word extraction module 1020 extracts aspect words referring to the evaluation object of the target text from multiple lexical units, it is configured as follows: The word sequence corresponding to multiple words is input into the aspect recognition network. The aspect recognition network is used to perform semantic modeling on the word sequence. Based on the word features obtained after modeling, a decoding operation with boundary constraints is performed to output a continuous aspect word word interval.

[0122] Aspect words are defined as consecutive words within a specific lexical interval.

[0123] Optionally, the aspect word extraction module 1020 uses an aspect recognition network to perform semantic modeling on the lexical sequence, and performs a boundary-constrained decoding operation based on the lexical features obtained after modeling. When outputting continuous aspect word lexical intervals, it is configured as follows: The vector representation layer extracts lexical context vectors from the lexical sequence.

[0124] By using a bidirectional long short-term memory sequence modeling layer, temporal features are extracted from the word context vectors. Based on the bidirectional temporal correlation information of the temporal features, the bidirectional contextual dependency relationship of words is determined, and the temporal features that fuse the bidirectional contextual dependency relationship are output.

[0125] By using a self-attention layer, feature weights are assigned to the evaluation objects in the target text that correspond to the temporal features, thereby generating enhanced contextual features, which are the lexical features obtained after modeling.

[0126] The enhanced contextual features are mapped to aspect word boundary label scores of multiple lexical units through a fully connected layer.

[0127] By using a masked conditional random field layer, label jump paths that do not conform to structural constraints between adjacent lexical units are eliminated. Based on the aspect word boundary label scores of multiple lexical units, the optimal label sequence is selected from the remaining label jump paths, and continuous aspect word lexical intervals are determined based on the optimal label sequence.

[0128] The device also includes an emotion polarity prediction module, configured to: Emotional words are extracted from the emotional viewpoints corresponding to the target emotional information. Based on the pre-defined correspondence between emotional words and emotional polarities, the emotional polarity corresponding to the aspect words is determined. The emotional polarity can be any one of positive emotional tendency, negative emotional tendency, or neutral emotional tendency.

[0129] It should be noted that other corresponding descriptions of the functional units involved in the information extraction device provided in this embodiment can be found in [reference]. Figure 1 The corresponding description in [the document] will not be repeated here.

[0130] Based on the above, Figure 1 Accordingly, this embodiment also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the above-described method. Figure 1 The method shown.

[0131] Based on this understanding, the technical solution of this application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (such as CD-ROM, USB flash drive, mobile hard drive, etc.) and includes several instructions to cause a computer device (such as personal computer, server, or network device, etc.) to execute the methods of various implementation scenarios of this application.

[0132] like Figure 11 The diagram shown is a hardware structure schematic of an electronic device according to the present invention, comprising: At least one processor 1101; and, A memory 1102 is communicatively connected to at least one of the processors 1101; wherein, The memory 1102 stores instructions that can be executed by at least one of the processors to enable the at least one of the processors to perform the information extraction method as described above.

[0133] Figure 11 Take a processor 1101 as an example.

[0134] The electronic device may also include an input device 1103 and a display device 1104.

[0135] The processor 1101, memory 1102, input device 1103, and display device 1104 can be connected via a bus or other means. Figure 11 Taking the example of a connection between China and Israel via a bus.

[0136] The memory 1102, as a non-volatile computer-readable storage medium, can be used to store non-volatile software programs, non-volatile computer-executable programs, and modules, such as the program instructions / modules corresponding to the information extraction method in the embodiments of this application, for example, Figure 1 The method flow is shown. The processor 1101 executes various functional applications and data processing by running non-volatile software programs, instructions, and modules stored in the memory 1102, thereby realizing the information extraction method in the above embodiments.

[0137] The memory 1102 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created according to the use of the information extraction method. Furthermore, the memory 1102 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some embodiments, the memory 1102 may optionally include memory remotely located relative to the processor 1101, and these remote memories may be connected to the apparatus performing the information extraction method via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.

[0138] The input device 1103 can receive user clicks and generate signal inputs related to user settings and function control for information extraction methods. The display device 1104 may include a display screen or other display equipment.

[0139] When one or more modules are stored in the memory 1102, and are run by one or more processors 1101, the information extraction method in any of the above method embodiments is executed.

[0140] Optionally, the aforementioned physical devices may also include a user interface, a network interface, a camera, radio frequency (RF) circuitry, sensors, audio circuitry, a Wi-Fi module, etc. The user interface may include a display screen, input units such as a keyboard, etc., and optional user interfaces may also include USB interfaces, card reader interfaces, etc. The network interface may optionally include standard wired interfaces, wireless interfaces (such as Wi-Fi interfaces), etc.

[0141] Those skilled in the art will understand that the physical device structure provided in this embodiment does not constitute a limitation on the physical device, and may include more or fewer components, or combine certain components, or have different component arrangements.

[0142] The storage medium may also include an operating system and a network communication module. The operating system is a program that manages the hardware and software resources of the aforementioned physical device, supporting the operation of information processing programs and other software and / or programs. The network communication module is used to enable communication between the various components within the storage medium, as well as communication with other hardware and software in the information processing physical device.

[0143] Through the above description of the embodiments, those skilled in the art can clearly understand that this application can be implemented using software plus necessary general-purpose hardware platforms, or it can be implemented using hardware. By applying the scheme of this embodiment, compared with the prior art, this application first extracts aspect words representing the evaluation object, then combines the semantic location of the aspect words to define the emotional start and end words to delineate a continuous and complete target emotional word interval, and then extracts the target emotional information based on the target emotional word interval. Thus, this application, relying on the prior rules of continuous distribution of emotional viewpoints in text, determines the complete range of emotional expression through the above method, effectively isolating the judgment bias caused by interfering words in the text, improving the accuracy and robustness of emotional information matching and extraction in complex colloquial texts, and achieving accurate differentiation and extraction of the corresponding emotional information for each evaluation object.

[0144] It should be noted that, in this document, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0145] The above description is merely a specific embodiment of this application, enabling those skilled in the art to understand or implement this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments described herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.

Claims

1. An information extraction method, characterized in that, include: Extract multiple tokens from the target text; Extract aspect words that refer to the evaluation objects of the target text from the multiple lexical units; Based on the semantic information of the aspect words, the sentiment start word and sentiment end word corresponding to the aspect words are selected from the plurality of word elements, and the target sentiment word range corresponding to the aspect words is determined based on the sentiment start word and sentiment end word. Based on the target sentiment word range, extract the target sentiment information corresponding to the aspect words.

2. The method according to claim 1, characterized in that, The step of selecting the sentiment start word and sentiment end word corresponding to the aspect word from the plurality of word units based on the semantic information of the aspect word, and determining the target sentiment word interval corresponding to the aspect word based on the sentiment start word and sentiment end word, includes: Based on the semantic information of the aspect words, the sentiment viewpoint boundary is predicted for the multiple word elements to obtain a first probability value of the multiple word elements as sentiment start words matching the aspect words, and a second probability value as sentiment end words. The word with the largest first probability value among the plurality of word elements is determined as the emotion initiation word element, and the word with the largest second probability value among the plurality of word elements is determined as the emotion termination word element; Based on the first index of the emotion start word in the plurality of words and the second index of the emotion end word in the plurality of words, the target emotion word range corresponding to the aspect word is determined.

3. The method according to claim 2, characterized in that, The step of predicting the sentiment boundary of the multiple lexical units based on the semantic information of the aspect words includes: The aspect words are concatenated with preset prompt words to obtain the input sequence. The preset prompt words are used to constrain the prediction range of sentiment viewpoints. The input sequence is fed into a semantic coding model for sentiment boundary prediction; the semantic coding model is obtained by pre-training unlabeled text with synonym replacement mask correction and fine-tuning text containing sentiment start and end labels.

4. The method according to claim 3, characterized in that, The semantic coding model includes a first branch network and a second branch network; The first branch network is used to output the first probability value of the plurality of lexical units as sentiment initiation lexical units based on the encoding features corresponding to the input sequence; The second branch network is used to output the multiple lexical units as the second probability value of sentiment termination lexical units based on the encoding features corresponding to the input sequence.

5. The method according to any one of claims 1-4, characterized in that, The step of extracting aspect words referring to the evaluation objects of the target text from the plurality of lexical units includes: The lexical sequence corresponding to the multiple lexical units is input into the aspect recognition network. The aspect recognition network is used to perform semantic modeling on the lexical sequence. Based on the lexical features obtained after modeling, a decoding operation with boundary constraints is performed to output a continuous aspect word lexical interval. The continuous lexical units within the aforementioned aspect term lexical unit interval are defined as the aspect term.

6. The method according to claim 5, characterized in that, The aspect recognition network includes: a vector representation layer, a bidirectional long short-term memory sequence modeling layer, a self-attention layer, a fully connected layer, and a masked conditional random field layer; The step of using the aspect recognition network to perform semantic modeling on the lexical sequence and performing a boundary-constrained decoding operation based on the lexical features obtained after modeling, outputting continuous aspect word lexical intervals, includes: The vector representation layer extracts lexical context vectors from the lexical sequence. Through the bidirectional long short-term memory sequence modeling layer, temporal features are extracted from the word context vector, and based on the bidirectional temporal correlation information of the temporal features, the bidirectional contextual dependency relationship of words is determined, and the temporal features that fuse the bidirectional contextual dependency relationship are output. Through the self-attention layer, feature weights are assigned to the evaluation objects in the target text that correspond to the temporal features to generate enhanced context features, which are the word features obtained after modeling. The enhanced context features are mapped to aspect word boundary label scores of the multiple lexical units through the fully connected layer. By using the masked conditional random field layer, label jump paths that do not conform to structural constraints between adjacent lexical units are eliminated. Based on the aspect word boundary label scores of the multiple lexical units, the optimal label sequence is selected from the remaining label jump paths, and continuous aspect word lexical intervals are determined based on the optimal label sequence.

7. The method according to any one of claims 1-4, characterized in that, After extracting the target sentiment information corresponding to the aspect words, the method further includes: Emotional words are extracted from the emotional viewpoints corresponding to the target emotional information, and the emotional polarity corresponding to the aspect words is determined based on the preset correspondence between the emotional words and emotional polarities; the emotional polarity is any one of positive emotional tendency, negative emotional tendency, and neutral emotional tendency.

8. An information extraction device, characterized in that, include: The acquisition module is configured to acquire multiple tokens from the target text. The aspect word extraction module is configured to extract aspect words that refer to the evaluation objects of the target text from the plurality of lexical units; The determining module is configured to select the sentiment start word and sentiment end word corresponding to the aspect word from the plurality of word elements based on the semantic information of the aspect word, and determine the target sentiment word interval corresponding to the aspect word based on the sentiment start word and the sentiment end word. The sentiment information extraction module is configured to extract the target sentiment information corresponding to the aspect words based on the target sentiment word range.

9. An electronic device, comprising a storage medium, a processor, and a computer program stored on the storage medium and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method according to any one of claims 1 to 7.

10. A computer program product, the computer program product comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method as described in any one of claims 1 to 7.