Text Similarity Calculation Using Vector Codes and Fusion Features

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing text similarity calculation methods fail to accurately determine similarity between texts with the same ideograms but different characters, as they do not consider semantic information effectively.

Innovation Solution

A method that converts texts into vector codes, obtains fusion features, and calculates semantic features based on character string and coding sequences to determine text similarity, incorporating neural networks and attention mechanisms for comprehensive feature representation.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If text similarity is calculated based on character repetition degree, then calculation simplicity is maintained, but recognition accuracy deteriorates when texts have same ideograms but different characters

Engineering Contradiction:
Improvecalculation simplicityVSAvoidrecognition accuracy
Core Design Contradiction:
Ease of manufactureVSMeasurement precision

Solution Approach 1:

The patent segments text similarity calculation into multiple independent feature dimensions: character string features (based on repetition degree), coding sequence features (vector representations), and fusion features. Each dimension captures different aspects of text similarity, allowing the system to maintain calculation simplicity in the character level while achieving high accuracy through multi-dimensional feature integration

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent creates a composite feature representation by combining character string features, coding sequence features, and their fusion features. This composite approach integrates both simple character-level matching and complex semantic-level representations, resolving the contradiction between calculation simplicity and recognition accuracy by leveraging the strengths of different feature types

Inventive Principle:
Principle #40Composite materials

2Use of energy by moving object

If traditional character repetition methods are used, then computational resources are saved, but semantic information is not effectively considered

Engineering Contradiction:
Improvecomputational resourcesVSAvoidsemantic information
Core Design Contradiction:
Use of energy by moving objectVSLoss of information

Solution Approach 1:

The patent transforms text representation from traditional character-level one-dimensional analysis to multi-dimensional feature space by introducing coding sequences (vector codes) and fusion features. This dimensional expansion enables the system to capture semantic information that is invisible to traditional character repetition methods, while the hierarchical feature extraction process efficiently manages computational resources by building upon simpler character features

Inventive Principle:
Principle #17Another dimension (Dimensionality change)

3Measurement precision

If multi-feature fusion is implemented, then text similarity accuracy is improved, but system complexity increases

Engineering Contradiction:
Improvetext similarity accuracyVSAvoidsystem complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent performs preliminary extraction of character string features and coding sequence features separately before fusing them. This preliminary action organizes complex information into structured intermediate representations, making the subsequent fusion process more manageable and systematic, thereby improving text similarity accuracy while controlling system complexity through structured feature engineering

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS12045578B2Method for determining text similarity, storage medium and electronic device
Publication Date: 2024.07.23 BEIJING XIAOMI MOBILE SOFTWARE CO LTD
  • US12045578B2 patent drawing
  • US12045578B2 patent drawing
  • US12045578B2 patent drawing

AI summary

A method for determining text similarity, a storage medium and an electronic device. The method includes: obtaining a first coding sequence corresponding to the first text and a second coding sequence corresponding to the second text; obtaining a first fusion feature corresponding to the first coding sequence and a second fusion feature corresponding to the second coding sequence based on the first coding sequence and the second coding sequence; converting the first fusion feature and the second fusion feature into a corresponding first semantic feature and a second semantic feature for representing semantics, and determining a text similarity between the first text and the second text based on the first semantic feature and the second semantic feature.