A method, system and device for constructing a posteriori opinion semantic space and a medium
By constructing a semantic space of opinions using a fixed-weight semantic encoder and an iterative decomposition model, the problems of inaccurate polarity positioning and insufficient dimensional semantic interpretability in public opinion analysis are solved, and stable interpretability and efficient decomposition of opinions are achieved.
Patent Information
- Application Number
- CN202611270307.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-20
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies struggle to accurately pinpoint neutral and polar regions in public opinion analysis, and their dimensional semantic interpretability is insufficient, especially in the process of multidimensional decomposition where the correspondence between the number of decomposition layers and dimensional semantics is unclear.
A fixed-weight semantic encoder maps opinion text to a target vector space, determines theoretical extreme points and neutral points through polar projection, generates semantic space information, and decomposes opinion into interpretable sub-opinions through an iterative decomposition model.
It improves the accuracy of viewpoint polarity positioning and the interpretability of dimensional semantics, ensures projection stability and reproducibility, reduces polarity positioning bias, and eliminates the need for manual pre-setting of rules and labeled data, making it suitable for various business scenarios.
Smart Images

Figure CN123180149A_ABST
Abstract
Description
Technical Field
[0001] This specification relates to the fields of data analysis and natural language processing technology, and in particular to a method, system, device and medium for constructing a posteriori semantic space. Background Technology
[0002] In scenarios such as public opinion analysis, comment understanding, and opinion mining, sentiment analysis, unsupervised clustering, topic models, or general large models are commonly used to determine the polarity, dimensionality, and trend inference of textual opinions. Some solutions divide the opinion space based on sample density centers, classifier boundaries, or preset levels, and combine static semantic features or time-series information to predict extreme opinions. However, in scenarios where opinion distributions exhibit opposing clustering characteristics, the above methods may have inaccuracies in locating neutral and polar regions. During multi-dimensional decomposition, the correspondence between the number of decomposition levels and dimensional semantics is sometimes unclear, thus leaving room for improvement in interpretability and business usability.
[0003] Therefore, we hope to propose a method, system, device and medium for constructing the a posteriori semantic space of viewpoints, so as to improve the accuracy of viewpoint polarity positioning and the interpretability of dimensional semantics. Summary of the Invention
[0004] One embodiment of this specification provides a method for constructing a posteriori semantic space of viewpoints. The method includes: mapping viewpoint text to a target vector space based on a semantic encoder with fixed weights to obtain multiple target vectors; determining a polar projection direction based on the multiple target vectors; projecting the multiple target vectors onto the polar projection direction to obtain coordinate values of multiple viewpoints in the viewpoint text on a one-dimensional polar axis; determining theoretical extreme points corresponding to the viewpoint text based on the coordinate values, the theoretical extreme points including theoretical maximum and minimum values; determining theoretical neutral points corresponding to the viewpoint text based on the theoretical maximum and minimum values; generating semantic space information based on the one-dimensional polar axis, the theoretical extreme points, and the theoretical neutral points, and outputting the semantic space information; responding to a viewpoint decomposition instruction, iteratively decomposing the multiple viewpoints using a decomposition model until the decomposed sub-viewpoints meet a preset convergence criterion, at which point the decomposition is terminated and the sub-viewpoints are output, wherein the decomposition model is a machine learning model.
[0005] One embodiment of this specification provides a post-hoc construction system for opinion semantic space. The system includes a processing module and an opinion decomposition module. The processing module is configured to: map opinion text to a target vector space based on a semantic encoder with fixed weights to obtain multiple target vectors; determine a polar projection direction based on the multiple target vectors; project the multiple target vectors onto the polar projection direction to obtain coordinate values of multiple opinions in the opinion text on a one-dimensional polar axis; determine the theoretical extreme point corresponding to the opinion text based on the coordinate values, the theoretical extreme point including a theoretical maximum value and a theoretical minimum value; determine the theoretical neutral point corresponding to the opinion text based on the theoretical maximum value and the theoretical minimum value; generate semantic space information based on the one-dimensional polar axis, the theoretical extreme point, and the theoretical neutral point, and output the semantic space information. The opinion decomposition module is configured to respond to opinion decomposition instructions by iteratively decomposing the multiple opinions using a decomposition model until the decomposed sub-opinions meet a preset convergence criterion, at which point the decomposition is terminated and the sub-opinions are output. The decomposition model is a machine learning model.
[0006] One embodiment of this specification provides a viewpoint semantic space a posteriori construction apparatus, the apparatus including at least one processor and at least one memory; the at least one memory is used to store computer instructions; the at least one processor is used to execute at least a portion of the computer instructions to implement the viewpoint semantic space a posteriori construction method described in the above embodiment.
[0007] One embodiment of this specification provides a computer-readable storage medium that stores computer instructions. When a computer reads the computer instructions in the storage medium, the computer executes the viewpoint semantic space a posteriori construction method described in the above embodiment. Attached Figure Description
[0008] This specification will be further described by way of exemplary embodiments, which will be described in detail with reference to the accompanying drawings. These embodiments are not limiting; in these embodiments, the same reference numerals denote the same structures, wherein: Figure 1 This is an exemplary block diagram of a semantic space a posteriori construction system based on some embodiments of this specification; Figure 2 This is an exemplary flowchart of a semantic space a posteriori construction method based on some embodiments of this specification; Figure 3 This is an exemplary flowchart illustrating the determination of instantaneous maxima and instantaneous minima according to some embodiments of this specification; Figure 4 This is an exemplary flowchart illustrating the generation of prompt information according to some embodiments of this specification. Detailed Implementation
[0009] To more clearly illustrate the technical solutions of the embodiments in this specification, the accompanying drawings used in the description of the embodiments will be briefly introduced below. The accompanying drawings do not represent all implementation methods.
[0010] It should be understood that the terms "system," "device," "unit," and / or "module" used herein are a method of distinguishing different components, elements, parts, sections, or assemblies at different levels. If other terms can achieve the same purpose, they may be replaced by other expressions.
[0011] Unless the context clearly indicates an exception, words such as "a," "an," "a kind," and / or "the" do not specifically refer to the singular and may also include the plural. Generally speaking, the terms "comprising" and "including" only indicate the inclusion of explicitly identified steps and elements, which do not constitute an exclusive list, and the method or apparatus may also include other steps or elements.
[0012] In the embodiments of this specification, the order of the steps described in the step-by-step instructions is interchangeable unless otherwise specified, and steps may be omitted. Other steps may also be included in the operation process.
[0013] Figure 1 This is an exemplary block diagram of a semantic space a posteriori construction system based on some embodiments of this specification. For example... Figure 1 As shown, the opinion semantic space a posteriori construction system 100 may include a processing module 110 and an opinion decomposition module 120.
[0014] The Opinion Semantic Space Post-construction System 100 can build an opinion semantic space for public opinion, transforming chaotic subjective opinions into structured and interpretable information. For example, the Opinion Semantic Space Post-construction System 100 can be applied to scenarios such as product review analysis, social media opinion statistics, and user research.
[0015] In some embodiments, the opinion semantic space posterior construction system 100 can be a geometry-density decoupling-based opinion semantic space posterior construction system without predefined labels. It determines the polarity and distribution of opinions by analyzing the geometric position and density of opinions in the vector space separately. Furthermore, unlike traditional fixed-dimensional sentiment dictionaries or supervised methods that require large amounts of labeled data, the opinion semantic space posterior construction system 100 does not require predefined labels such as "positive / negative." It can automatically identify the polarity or attitude of opinions from the opinion text, and opinions with different polarities or attitudes will naturally appear in the semantic space without supervised training.
[0016] The Opinion Semantic Space A posteriori construction system 100 can also break down opinions into interpretable natural language descriptions, allowing users to directly verify the truth or falsehood of opinions or understand the attitudes behind them.
[0017] In some embodiments, the processing module 110 is configured to map the opinion text to the target vector space based on a semantic encoder with fixed weights to obtain multiple target vectors; determine the polar projection direction based on the multiple target vectors; project the multiple target vectors onto the polar projection direction respectively to obtain the coordinate values of multiple opinions in the opinion text on a one-dimensional polar axis; determine the theoretical extreme points (theoretical extreme points include theoretical maximum and theoretical minimum points) corresponding to the opinion text based on the coordinate values; determine the theoretical neutral points corresponding to the opinion text based on the theoretical maximum and theoretical minimum points; generate semantic space information based on the one-dimensional polar axis, theoretical extreme points, and theoretical neutral points, and output the semantic space information.
[0018] In some embodiments, the processing module 110 is further configured to determine a coordinate value time series based on timestamp information and coordinate values; after smoothing the coordinate value time series, determine the peak time and valley time in the coordinate value time series through first derivative analysis, record the coordinate value corresponding to the peak time as the instantaneous maximum value, and record the coordinate value corresponding to the valley time as the instantaneous minimum value; and output the instantaneous maximum value and instantaneous minimum value.
[0019] In some embodiments, the processing module 110 is further configured to determine the kernel density curve based on coordinate values; determine the view deviation zone based on the kernel density curve; and generate and output a prompt message indicating that the theoretical neutral point has deviated from the view deviation zone in response to the theoretical neutral point being located in the view deviation zone.
[0020] In some embodiments, the viewpoint decomposition module 120 is configured to respond to a viewpoint decomposition instruction by iteratively decomposing multiple viewpoints using a decomposition model until the decomposed subviewpoints meet a preset convergence criterion, at which point the decomposition is terminated and the subviewpoints are output.
[0021] In some embodiments, the viewpoint semantic space a posteriori construction system 100 may further include a processor, and the processing module 110 and the viewpoint decomposition module 120 may be integrated on the processor. The processor may include a central processing unit (CPU), an application-specific integrated circuit (ASIC), an application-specific instruction set processor (ASIP), a graphics processing unit (GPU), a physical processing unit (PPU), a digital signal processor (DSP), a controller, or any combination thereof.
[0022] In some embodiments, the processor integrates a memory (such as a mass storage device, a removable memory, etc.). The memory may store information or data related to the viewpoint semantic space a posteriori construction system 100.
[0023] For a detailed explanation of the foregoing content, please refer to Figures 2 to 4 Related descriptions.
[0024] In some embodiments of this specification, the opinion semantic space a posteriori construction system 100 can quickly and accurately construct the opinion semantic space, iteratively decompose the opinions, and finally output relevant information of the opinion semantic space and detailed opinions after decomposition, so that users can clearly understand the polarity distribution of opinions on public opinion events and the detailed opinions with interpretability.
[0025] Figure 2 This is an exemplary flowchart of a viewpoint semantic space a posteriori construction method according to some embodiments of this specification. In some embodiments, process 200 is executed by the processor (or processing module 110 and viewpoint decomposition module 120) of the viewpoint semantic space a posteriori construction system. Figure 2 As shown, process 200 includes the following steps:
[0026] Step 210: Based on a semantic encoder with fixed weights, the opinion text is mapped to the target vector space to obtain multiple target vectors.
[0027] A semantic encoder is a model that converts text content into a vector representation that can characterize its semantic features. For example, text embedding models such as BGE-M3 (BAAI General Embedding M3-Embedding) can be used as semantic encoders.
[0028] A semantic encoder with fixed weights means that the model parameters of the semantic encoder are not updated during model inference or subsequent tasks. A semantic encoder with fixed weights ensures that the mapping results remain stable and consistent even when the same text is input multiple times at different times and in different contexts.
[0029] Opinion text refers to natural language content that contains the views, evaluations, attitudes, judgments, or claims of an individual or group regarding a thing, event, or concept. Opinion text can be one or more natural language paragraphs or documents, including multiple viewpoints.
[0030] An opinion refers to an individual's or group's view, evaluation, attitude, judgment, or claim about a thing, event, or concept. For example, "This policy has high implementation costs, but its long-term effects are better" can be considered an opinion.
[0031] The target vector space refers to the vector space containing multiple target vectors. A target vector is a vector that can represent the semantic features of a viewpoint.
[0032] In some embodiments, the processor may first segment the opinion text into multiple opinion fragments based on punctuation marks, adversative conjunctions, or coordinating conjunctions, and then input each opinion fragment into a semantic encoder with fixed weights. The processor does not update the weights of the semantic encoder and uses the embedding vectors output by the semantic encoder as multiple target vectors. For example, the target vectors may be 1024-dimensional vectors, and the target vector space may be a 1024-dimensional vector space. Points in the target vector space represent target vectors, and the spatial distance (such as cosine distance) or direction between points can reflect the semantic similarity and differences between opinion points.
[0033] In some embodiments, the processor can also extract semantic units consisting of evaluation objects and evaluation descriptions from the opinion text based on syntactic dependency relations or semantic role labeling, and input them into a semantic encoder to obtain multiple target vectors. Compared with segmentation by punctuation, this implementation yields target vectors with a granularity closer to the semantic structure.
[0034] Step 220: Determine the polar projection direction based on multiple target vectors.
[0035] The polarity projection direction refers to the unit vector in the target vector space used to characterize the trend of polarity change of the viewpoint.
[0036] Opinion polarity can be the direction and / or intensity of the stance, emotional attitude, or value judgment expressed by an opinion. For example, opinion polarity can include positive, neutral, and negative, or extreme and neutral, etc.
[0037] In some embodiments, the processor can perform principal component analysis on multiple target vectors using algorithms such as Principal Component Analysis (PCA), select the first principal component as a candidate direction, and then normalize the candidate direction to obtain the polarity projection direction. This implementation utilizes the principal change directions of multiple target vectors in high-dimensional space to characterize the principal axis of polarity change.
[0038] In some embodiments, the processor may first perform clustering on multiple target vectors, dividing the target vectors into two clusters with significantly different polarities, then calculate the difference vector between the centers of the two clusters, and normalize the difference vector to obtain the polarity projection direction. This implementation determines the polarity change direction through the directional differences between clusters.
[0039] Step 230: Project multiple target vectors onto the polar projection direction respectively to obtain the coordinate values of multiple viewpoints in the viewpoint text on the one-dimensional polar axis.
[0040] Coordinate values are numerical values that represent the position of a viewpoint on a one-dimensional polar axis.
[0041] It is understandable that the processor can obtain multiple scalar values by projecting multiple target vectors onto the polar projection direction. These multiple scalar values constitute one-dimensional data and are distributed on the one-dimensional polar axis defined by the polar projection direction. Therefore, the numerical value (i.e., coordinate value) of the position of the viewpoint on the one-dimensional polar axis can represent the polarity of the viewpoint.
[0042] In some embodiments, the processor can first perform normalization processing on the target vector and the polar projection direction, then use the polar projection direction as the direction basis of the one-dimensional polar axis, and perform a dot product operation on each target vector and the polar projection direction to obtain the coordinate values corresponding to multiple viewpoints falling into the (-1, 1) interval (or mapped to the (0, 1) interval through linear transformation), thereby obtaining the one-dimensional polar axis.
[0043] For example, the coordinate values corresponding to multiple viewpoints fall into the (0, 1) interval. The coordinate values from 0 to 1 on the one-dimensional polarity axis represent the polarity of the viewpoint from negative to positive. The closer the coordinate value is to 0, the greater the degree of negativity of the viewpoint (the more extreme the negativity). The closer the coordinate value is to 1, the greater the degree of positivity of the viewpoint (the more extreme the positivity).
[0044] In some embodiments, the processor may first calculate the mean vector of multiple target vectors, subtract the mean vector from each target vector, and then project it onto the polar projection direction to obtain a one-dimensional polar axis and the coordinate values of multiple viewpoints on the one-dimensional polar axis. This implementation can reduce the impact of the overall corpus offset on the projection results.
[0045] In some embodiments, the processor may also perform mean-reduction, standardization, or whitening on the target vector before projection to adapt to different corpus distributions.
[0046] Step 240: Based on the coordinate values, determine the theoretical extreme points corresponding to the viewpoint text. The theoretical extreme points include the theoretical maximum value and the theoretical minimum value.
[0047] The theoretical extreme point refers to the extreme point that characterizes the boundary position of a one-dimensional polar axis.
[0048] The theoretical maximum value refers to the coordinate value of the positive polarity boundary on the one-dimensional polarity axis.
[0049] The theoretical minimum value refers to the coordinate value of the negative polarity boundary on the one-dimensional polarity axis.
[0050] In some embodiments, the processor can traverse all coordinate values on the one-dimensional polar axis, take the coordinate with the largest value as the theoretical maximum value, and take the coordinate with the smallest value as the theoretical minimum value.
[0051] In some embodiments, the processor can also determine the instantaneous maxima and minima of the viewpoint coordinates in the time series based on the timestamp information of the viewpoint text. See [link to documentation] for further details on this section. Figure 3 And its related descriptions.
[0052] Step 250: Based on the theoretical maximum and minimum values, determine the theoretical neutral point corresponding to the opinion text.
[0053] The theoretical neutral point refers to the coordinate value of a completely neutral viewpoint on a one-dimensional polarity axis in the opinion text.
[0054] In some embodiments, the processor calculates the arithmetic mean of the theoretical maximum and the theoretical minimum, and determines the average as the theoretical neutral point.
[0055] Step 260: Generate semantic space information based on the one-dimensional polar axis, theoretical extreme point, and theoretical neutral point, and output the semantic space information.
[0056] Semantic space information refers to information used to characterize the semantic space structure of a viewpoint, including information such as one-dimensional polarity axes, theoretical extreme points, and theoretical neutral points.
[0057] In some embodiments, the processor uses the polar projection direction as the direction representation of a one-dimensional polar axis, and the theoretical maximum, theoretical minimum, and theoretical neutral point as key anchor points on the one-dimensional polar axis to generate a standardized data structure. This data structure may also include a list of coordinate values corresponding to multiple viewpoints and be output in JSON, table structure, or key-value pair format.
[0058] In some embodiments, the processor can also generate semantic space information for display, such as one-dimensional polar axis parameters, theoretical extreme point locations, theoretical neutral point locations, and a set of viewpoint projection points. The processor can output the semantic space information to a user terminal (such as a mobile phone) display or an external interface.
[0059] In some embodiments, the way semantic space information is output can also vary. For example, the processor can store it locally before outputting it, or it can send it directly to a remote service via a network interface.
[0060] In some embodiments, in response to the theoretical neutral point being located in the viewpoint deviation zone, the processor can generate and output a warning message indicating that the theoretical neutral point has deviated. See [link to documentation] for further details on this section. Figure 4 And its related descriptions.
[0061] Step 270: In response to the viewpoint decomposition instruction, the decomposition model is used to iteratively decompose multiple viewpoints until the decomposed subviewpoints meet the preset convergence criteria, at which point the decomposition is terminated and the subviewpoints are output.
[0062] A viewpoint decomposition instruction is a command message used to trigger the decomposition of viewpoints. In some embodiments, the viewpoint decomposition instruction can be issued by the user or executed automatically by the processor.
[0063] A decomposition model is a model used to break down an opinion into sub-opinions. Based on the input opinion text, the decomposition model outputs multiple sub-opinions, and continues iteratively decomposing sub-opinions that have not converged based on a preset convergence criterion.
[0064] A sub-viewpoint refers to a viewpoint unit of atomic dimension obtained by breaking down the original viewpoint. The atomic dimension can be the most basic and indivisible viewpoint dimension. For example, breaking down "This restaurant is expensive, napkins cost 3 yuan, and a bowl of rice costs 5 yuan" into two sub-viewpoints: "rice costs 5 yuan" and "napkins cost 3 yuan".
[0065] The preset convergence criterion refers to the pre-set conditions used to determine whether the viewpoint decomposition should be terminated. When a subviewpoint meets the condition, it is considered that the granularity has reached the point where it cannot be further divided or there is no need to continue decomposition.
[0066] In some embodiments, the decomposition model can be a machine learning model, including a Transformer-based generative language model (such as a Large Language Model (LLM)), a sequence-to-sequence model, or other machine learning models capable of learning the decomposition boundaries of viewpoints and outputting a list of sub-viewpoints. The input to the decomposition model may include viewpoint text, and the output may include multiple sub-viewpoints that meet preset convergence criteria.
[0067] In some embodiments, the decomposition model can be obtained through training. Training samples may include sample viewpoint text, and training labels may include multiple manually labeled sub-viewpoints. Training samples can be obtained from historical viewpoint text, and training labels can be obtained through manual annotation. The processor inputs the training samples into the initial decomposition model to obtain multiple candidate sub-viewpoints. Based on the multiple candidate sub-viewpoints and training labels, it constructs a sequence generation loss and an overlap constraint loss, and iteratively updates the model parameters until the maximum number of training epochs is reached or the loss converges, resulting in a trained decomposition model.
[0068] In some embodiments, after receiving a viewpoint decomposition instruction, the processor sequentially feeds multiple viewpoints into the decomposition model and iteratively decomposes them using a breadth-first approach. During each decomposition round, the processor uses few-shot learning prompts to instruct the decomposition model to decompose one or more viewpoints into multiple non-overlapping sub-viewpoints. After decomposition, the processor uses a semantic encoder to calculate the semantic overlap between sub-viewpoints. If the semantic overlap exceeds an overlap threshold (e.g., 0.3), a re-decomposition is triggered until the sub-viewpoints meet a preset convergence criterion.
[0069] In some embodiments, the processor may also use a depth-first iterative decomposition method, that is, to prioritize the continuous decomposition of a single view that has not yet converged until a sub-view that meets the preset convergence criteria is obtained before processing the next view.
[0070] In some embodiments, the preset convergence criteria can be pre-set, including sub-viewpoints being truth propositions that can be independently verified, or sub-viewpoints being descriptive terms that cannot be further decomposed.
[0071] A truth proposition is a propositional statement that has a verifiable truth value. For example, the statement "This restaurant is expensive; napkins cost 3 yuan, and a bowl of rice costs 5 yuan" can be broken down into two sub-statements: "rice costs 5 yuan" and "napkins cost 3 yuan." Since these two sub-statements can be independently verified as true or false, they are considered truth propositions. "Independently verifiable" means that it does not require subjective feelings, other viewpoints, or complex reasoning processes; it can be verified independently using only common sense, basic logic, or direct sensory observation.
[0072] A descriptive word is the smallest semantic unit used to express an attribute, feeling, state, or evaluation. For example, "comfortable," "crowded," and "expensive" can be descriptive words.
[0073] In some embodiments, the processor determines that a sub-viewpoint meets a preset convergence criterion by: performing syntactic analysis and propositional integrity detection on the current sub-viewpoint; when a sub-viewpoint is a statement whose truth or falsity can still be independently verified after being removed from the original viewpoint context, the processor determines the sub-viewpoint as a truth proposition and stops further decomposition.
[0074] In some embodiments, the processor's determination that a sub-viewpoint meets a preset convergence criterion may further include: performing word segmentation, part-of-speech tagging, and modifier identification on the current sub-viewpoint; when a sub-viewpoint has converged into a single attribute word, feeling word, state word, or evaluation word, and further splitting will no longer form a more independent semantic unit, the processor identifies the sub-viewpoint as a descriptive word and stops further splitting.
[0075] Some embodiments in this specification pre-determine the convergence criterion as truth propositions or descriptive terms as the convergence endpoint. Complex viewpoints are iteratively decomposed into truth propositions or indivisible descriptive terms that can be independently judged as true or false. This improves the interpretability of viewpoint decomposition, ensuring that the semantics of the sub-viewpoints at the atomic dimensions are absolutely understandable to humans without requiring domain expert annotation. This solves the problem of fuzzy dimensions in unsupervised semantic decomposition (humans cannot understand the actual meaning corresponding to the dimensions), and can be directly applied to business scenarios such as public opinion monitoring, user surveys, and comment analysis.
[0076] Some embodiments in this specification employ a fixed-weight semantic encoder to ensure stable and reproducible projection. Without pre-setting neutral and extreme value positions, the theoretical extreme points are derived from the geometric edges of the one-dimensional polar projection. The theoretical neutral point is then determined using the geometric midpoint of the theoretical extreme points, completely resolving the issue of traditional methods misclassifying extremes as neutral in bimodal scenarios. Combined with iterative viewpoint decomposition, the stability of semantic projection is improved, reducing polarity positioning bias under bimodal distributions. Through a common-sense convergence viewpoint decomposition mechanism, the viewpoints are guaranteed to be understandable to humans, solving the black-box problem of unsupervised semantic space. This method can be directly applied to various business scenarios. Furthermore, this method requires no manually preset rules or labeled data, shortening the adaptation cycle to new domains and reducing cross-domain migration costs.
[0077] Figure 3 This is an exemplary flowchart illustrating the determination of instantaneous maxima and minima according to some embodiments of this specification. Figure 3 As shown, process 300 includes the following steps:
[0078] Step 310: Determine the time series of coordinate values based on timestamp information and coordinate values.
[0079] For an explanation of the coordinate values, please refer to step 230 and its related description.
[0080] In some embodiments, the opinion text includes timestamp information.
[0081] Timestamp information refers to time-identifying data associated with opinion texts, used to record the generation time, collection time, or publication time of different opinions in the opinion text.
[0082] A coordinate value time series is a sequence of coordinate values of multiple viewpoints arranged in the order of timestamps on a one-dimensional polar axis, where each coordinate value corresponds to a timestamp or time interval.
[0083] In some embodiments, the processor can count the timestamps corresponding to multiple viewpoints based on the timestamp information of the viewpoint text, and sort the coordinate values corresponding to the multiple viewpoints according to the order of the timestamps to obtain a coordinate value time series.
[0084] In some embodiments, the processor can also divide the coordinate value time series into hourly granularities, with each hour's corresponding coordinate value being the average coordinate value of all viewpoints within that hour. That is, one element in the coordinate value time series corresponds to one hour, and the element's value is the average coordinate value of all viewpoints within that hour.
[0085] Step 320: After smoothing the coordinate value time series, the peak and valley times in the coordinate value time series are determined by first derivative analysis. The coordinate value corresponding to the peak time is recorded as the instantaneous maximum, and the coordinate value corresponding to the valley time is recorded as the instantaneous minimum.
[0086] Smoothing refers to the process of suppressing random fluctuations or noise in a time series of coordinate values to highlight its overall trend. Examples of smoothing techniques include moving averages, median filtering, or Savitzky-Golay filtering.
[0087] First derivative analysis is an analytical method that identifies the trend and extreme value characteristics of coordinate values by analyzing the rate of change of the coordinate value time series.
[0088] A peak moment refers to the moment when the coordinate value time series reaches a local maximum value. A trough moment refers to the moment when the coordinate value time series reaches a local minimum value. An instantaneous maximum value is the coordinate value corresponding to the peak moment. An instantaneous minimum value is the coordinate value corresponding to the trough moment.
[0089] In some embodiments, the processor can calculate the difference between adjacent time points (or hours) in the smoothed coordinate value time series. When the difference changes from positive to negative, the processor identifies the corresponding time point as the peak time. When the difference changes from negative to positive, the processor identifies the corresponding time point as the valley time. The processor records the coordinate value corresponding to the peak time point as the instantaneous maximum value and the coordinate value corresponding to the valley time point as the instantaneous minimum value.
[0090] In some embodiments, the processor may also use an exponentially weighted average or similar method to smooth the coordinate value time series in order to suppress short-term jitter and give higher weight to data from more recent times (or hours).
[0091] Step 330: Output the instantaneous maximum and instantaneous minimum values.
[0092] In some embodiments, the processor can encapsulate the instantaneous maximum, instantaneous minimum, and corresponding time (or hour) into a structured result and send it to a user terminal or external interface. The structured result can be in the form of field pairs, including the size of the instantaneous maximum and the corresponding time (or hour), and the size of the instantaneous minimum and the corresponding time (or hour).
[0093] In some embodiments, the processor may also output a smoothed coordinate value time series, mark the instantaneous maxima and minima on the curve formed by the coordinate value time series, and output the corresponding coordinate values synchronously.
[0094] In some embodiments, if the opinion text does not contain timestamp information, the processor only outputs the theoretical extreme point obtained in step 240. If the opinion text contains timestamp information, the processor can output the instantaneous maximum, instantaneous minimum, and theoretical extreme point together. The processor can also automatically switch between static geometric extreme value mode (outputting only theoretical extreme points) and dynamic temporal extreme value mode (outputting only instantaneous maximum and instantaneous minimum values) according to a preset configuration.
[0095] In some embodiments, methods based solely on static semantic extrapolation or solely on time-series trend prediction may not be able to simultaneously reflect the combined impact of semantic boundaries and dynamic events on the evolution of opinions, thus requiring further improvement in the accuracy and robustness of extreme value inference in dynamic scenarios such as hot public opinion.
[0096] Some embodiments in this specification, by constructing time series coordinate values with a time dimension and combining smoothing processing with first-order derivative to locate peaks and troughs, can identify turning points in the evolution of viewpoints, improving the accuracy and robustness of extreme value detection. A dual-modal extreme value derivation method (static geometric extreme value mode and dynamic temporal extreme value mode) is employed, automatically switching between or combining the two modes depending on whether the viewpoint text contains timestamp information. It simultaneously supports static semantic space construction and dynamic detection of public opinion turning points, exhibiting significantly better robustness than single methods.
[0097] Figure 4 This is an exemplary flowchart illustrating the generation of prompt information according to some embodiments of this specification. For example... Figure 4 As shown, process 400 includes the following steps:
[0098] Step 410: Determine the kernel density curve based on the coordinate values. The kernel density curve characterizes the density distribution of multiple viewpoints along a one-dimensional polar axis. See step 230 and its related description for further explanation of the coordinate values.
[0099] A kernel density curve is a curve obtained by estimating the kernel density of multiple coordinate values on a one-dimensional polar axis. It is used to represent the degree of clustering of viewpoints near different coordinate values.
[0100] In some embodiments, the processor can use the coordinate values corresponding to multiple viewpoints as sample points, select a kernel function (such as a Gaussian kernel function), determine the bandwidth based on the Silverman criterion, and take multiple calculation positions within the coordinate value range at a preset step size. The processor calculates the kernel density estimate corresponding to each calculation position, and connects the multiple kernel density estimates in ascending order of coordinate values to obtain the kernel density curve. For example, the step size can be preset according to the coordinate value range and the number of sample points to balance computational accuracy and computational efficiency.
[0101] In some embodiments, the processor can also use the coordinate values corresponding to multiple viewpoints as sample points, select a kernel function (such as the Epanechnikov kernel function), and select the bandwidth through cross-validation to construct a discrete sampling grid on a one-dimensional polar axis. The processor calculates the kernel density value of each grid point on the discrete sampling grid and performs smooth connections to obtain a kernel density curve.
[0102] Step 420: Determine the viewpoint deviation zone based on the kernel density curve.
[0103] The viewpoint deviation zone refers to the range of coordinate values where the distribution density is below a density threshold. Viewpoints in the viewpoint deviation zone have a lower distribution density.
[0104] In some embodiments, the processor can calculate the maximum kernel density value in the kernel density curve, determine the maximum kernel density value at a preset ratio (e.g., 0.1 to 0.3) as the density threshold, filter all continuous coordinate intervals on the kernel density curve that are below the density threshold, and determine the filtered continuous coordinate intervals as the viewpoint deviation area.
[0105] In some embodiments, the processor may first identify local minima from the kernel density curve, and then divide the kernel density curve into peak regions and tail regions based on the local minima. The continuous coordinate intervals between peak regions or tail regions are defined as viewpoint deviation regions. This method is suitable for situations where there are multiple clustering centers in the viewpoint distribution. The tail region can be a continuous coordinate interval to the left of the leftmost local minima or to the right of the rightmost local minima.
[0106] Step 430: In response to the theoretical neutral point being located in the viewpoint deviation zone, generate and output a prompt message indicating that the theoretical neutral point has deviated.
[0107] A notification message is information used to indicate a deviation from the theoretical neutral point. Notification messages can take the form of text, voice, etc. In some embodiments, the notification message may include the coordinates of the theoretical neutral point, the range of the deviation zone where the theoretical neutral point is located, etc.
[0108] In some embodiments, the processor can obtain the coordinates of the theoretical neutral point on a one-dimensional polar axis and determine whether the coordinates fall within any viewpoint deviation zone. If the coordinates fall within the viewpoint deviation zone, a prompt message is generated and sent to the user terminal or an external interface.
[0109] In some embodiments, after receiving a prompt message, the user can send a correction command to the processor via a user terminal. Upon receiving the correction command, the processor can re-execute steps 210 to 260 to regenerate semantic space information and determine whether the new theoretical neutral point is located in the new viewpoint deviation zone. If the new theoretical neutral point is still located in the new viewpoint deviation zone, the processor re-executes steps 210 to 260 and subsequent judgment steps until the new theoretical neutral point is no longer located in the new viewpoint deviation zone, and then sends the latest semantic space information to the user terminal or an external interface.
[0110] In some embodiments, users may choose not to perform any operation after receiving a prompt message, i.e., there is no need to regenerate semantic space information.
[0111] Some embodiments in this specification identify low-density regions of viewpoints using kernel density curves and automatically alert when the theoretical neutral point falls into these regions. This allows for the diagnosis of abnormal polarity distribution, sample bias, or semantic space asymmetry without the need for manual threshold setting, providing a quantitative basis for subsequent model calibration.
[0112] It should be noted that the above descriptions of processes 200, 300, and 400 are for illustrative purposes only and do not limit the scope of this specification. Those skilled in the art can make various modifications and changes to processes 200, 300, and 400 under the guidance of this specification. However, these modifications and changes remain within the scope of this specification.
[0113] This specification also provides an apparatus for constructing a post-hoc semantic space, which includes at least one processor and at least one memory. The at least one memory is used to store computer instructions, and the at least one processor is used to execute at least a portion of the computer instructions to implement the post-hoc semantic space construction method described in this specification.
[0114] Some embodiments of this specification also provide a computer-readable storage medium that stores computer instructions, and when a computer reads the computer instructions from the storage medium, the computer executes the viewpoint semantic space a posteriori construction method as described in the embodiments of this specification.
[0115] The basic concepts have been described above. Obviously, for those skilled in the art, the detailed disclosure above is merely illustrative and does not constitute a limitation of this specification. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements, and corrections to this specification. Such modifications, improvements, and corrections are suggested in this specification and therefore remain within the spirit and scope of the exemplary embodiments described herein.
[0116] Furthermore, this specification uses specific terms to describe embodiments thereof. For example, "an embodiment," "one embodiment," and / or "some embodiments" refer to a particular feature, structure, or characteristic associated with at least one embodiment of this specification. Therefore, it should be emphasized and noted that references to "an embodiment," "one embodiment," or "an alternative embodiment" in different locations throughout this specification do not necessarily refer to the same embodiment. Moreover, certain features, structures, or characteristics in one or more embodiments of this specification can be appropriately combined.
[0117] Finally, it should be understood that the embodiments described in this specification are merely illustrative of the principles of the embodiments described herein. Other variations may also fall within the scope of this specification. Therefore, alternative configurations of the embodiments described herein are intended to be illustrative rather than limiting, and should be considered consistent with the teachings of this specification. Accordingly, the embodiments described herein are not limited to those explicitly introduced and described herein.
Claims
1. A method for constructing a posteriori semantic space, characterized in that, The method includes: Based on a semantic encoder with fixed weights, opinion text is mapped to a target vector space to obtain multiple target vectors; Based on the multiple target vectors, the polar projection direction is determined; the multiple target vectors are projected onto the polar projection direction respectively to obtain the coordinate values of multiple viewpoints in the viewpoint text on the one-dimensional polar axis; Based on the coordinate values, the theoretical extreme points corresponding to the opinion text are determined, and the theoretical extreme points include the theoretical maximum value and the theoretical minimum value; Based on the theoretical maximum and the theoretical minimum, the theoretical neutral point corresponding to the opinion text is determined; Based on the one-dimensional polar axis, the theoretical extreme point, and the theoretical neutral point, semantic space information is generated and output. In response to the viewpoint decomposition instruction, the multiple viewpoints are iteratively decomposed using a decomposition model until the decomposed sub-viewpoints meet a preset convergence criterion, at which point the decomposition is terminated and the sub-viewpoints are output. The decomposition model is a machine learning model.
2. The method according to claim 1, characterized in that, The preset convergence criteria include the sub-viewpoint being an independently verifiable truth proposition or the sub-viewpoint being an indivisible descriptive term.
3. The method according to claim 1, characterized in that, The opinion text contains timestamp information, and the method further includes: Based on the timestamp information and the coordinate values, a time series of coordinate values is determined; After smoothing the coordinate value time series, the peak and valley times in the coordinate value time series are determined by first derivative analysis. The coordinate value corresponding to the peak time is recorded as the instantaneous maximum, and the coordinate value corresponding to the valley time is recorded as the instantaneous minimum. Output the instantaneous maximum and the instantaneous minimum.
4. The method according to claim 1, characterized in that, The method further includes: Based on the coordinate values, a kernel density curve is determined, which characterizes the density distribution of the multiple viewpoints on the one-dimensional polar axis; Based on the kernel density curve, the viewpoint deviation zone is determined; In response to the theoretical neutral point being located in the viewpoint deviation zone, a prompt message indicating that the theoretical neutral point has deviated is generated and output.
5. A viewpoint semantic space posterior construction system, characterized in that, The system includes a processing module and a viewpoint decomposition module; The processing module is configured as follows: Based on a semantic encoder with fixed weights, opinion text is mapped to a target vector space to obtain multiple target vectors; Based on the multiple target vectors, the polar projection direction is determined; the multiple target vectors are projected onto the polar projection direction respectively to obtain the coordinate values of multiple viewpoints in the viewpoint text on the one-dimensional polar axis; Based on the coordinate values, the theoretical extreme points corresponding to the opinion text are determined, and the theoretical extreme points include the theoretical maximum value and the theoretical minimum value; Based on the theoretical maximum and the theoretical minimum, the theoretical neutral point corresponding to the opinion text is determined; Based on the one-dimensional polar axis, the theoretical extreme point, and the theoretical neutral point, semantic space information is generated and output. The viewpoint decomposition module is configured to respond to viewpoint decomposition instructions by iteratively decomposing the multiple viewpoints using a decomposition model until the decomposed subviewpoints meet a preset convergence criterion, at which point the decomposition is terminated and the subviewpoints are output. The decomposition model is a machine learning model.
6. The system according to claim 5, characterized in that, The preset convergence criteria include the sub-viewpoint being an independently verifiable truth proposition or the sub-viewpoint being an indivisible descriptive term.
7. The system according to claim 5, characterized in that, The opinion text contains timestamp information, and the processing module is further configured to: Based on the timestamp information and the coordinate values, a time series of coordinate values is determined; After smoothing the coordinate value time series, the peak and valley times in the coordinate value time series are determined by first derivative analysis. The coordinate value corresponding to the peak time is recorded as the instantaneous maximum, and the coordinate value corresponding to the valley time is recorded as the instantaneous minimum. Output the instantaneous maximum and the instantaneous minimum.
8. The system according to claim 5, characterized in that, The processing module is further configured to: Based on the coordinate values, a kernel density curve is determined, which characterizes the density distribution of the multiple viewpoints on the one-dimensional polar axis; Based on the kernel density curve, the viewpoint deviation zone is determined; In response to the theoretical neutral point being located in the viewpoint deviation zone, a prompt message indicating that the theoretical neutral point has deviated is generated and output.
9. A device for constructing a posteriori semantic space, characterized in that, The device includes at least one processor and at least one memory; the at least one memory is used to store computer instructions. The at least one processor is configured to execute at least a portion of the computer instructions to implement the method of any one of claims 1 to 4.
10. A computer-readable storage medium, characterized in that, The storage medium stores computer instructions. When the computer reads the computer instructions from the storage medium, the computer executes the method as described in any one of claims 1 to 4.
