Word Vector Generation Using N-ary Character Convolutional Neural Networks

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing natural language processing solutions for generating word vectors lack accuracy, as they fail to effectively capture the semantic information of words, particularly in contexts where nuanced character representations are necessary.

Innovation Solution

The method involves segmenting a corpus to obtain words, establishing feature vectors based on n-ary characters, training a convolutional neural network using these feature vectors and context words, and generating word vectors through convolutional and pooling calculations, with a loss function that updates parameters based on similarity calculations between context and negative sample words.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If traditional word vector algorithms (e.g., Google's word2vec, Microsoft's deep neural network) are used, then the generation process is simple, but the accuracy and semantic representation quality of word vectors deteriorate

Engineering Contradiction:
Improveword vector accuracyVSAvoidalgorithm complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent segments words into n-ary character features (e.g., 2-ary, 3-ary, 4-ary character n-grams) to create detailed character-level representations. This segmentation allows the model to capture local character patterns and morphological information, significantly improving word vector accuracy while maintaining manageable computational complexity through systematic feature decomposition

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent introduces a new dimension by incorporating character n-gram features alongside traditional word-level embeddings. This multi-dimensional approach combines character-level granularity with word-level semantics, creating a richer feature space that enhances representation quality without simply increasing the dimensionality of the final vector

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

2Loss of information

If n-ary character features are incorporated into word vector generation, then semantic information representation improves, but computational complexity increases

Engineering Contradiction:
Improvesemantic information retentionVSAvoidprocessing complexity
Core Design Contradiction:
Loss of informationVSDevice complexity

Solution Approach 1:

The patent performs preliminary extraction and encoding of character n-gram features before the main training process. By pre-processing and organizing character-level features into structured representations, the model reduces the computational burden during training while preserving rich semantic information, effectively preparing data in advance to minimize processing complexity

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The patent merges character n-gram features with traditional word embeddings into a unified feature representation. This combination integrates local character patterns with global word semantics, ensuring comprehensive semantic information retention while leveraging the complementary strengths of both feature types to achieve robust representations

Inventive Principle:
Principle #5Merging (Combining)

3Reliability

If convolutional neural networks are trained with extensive feature vectors and context words, then context understanding improves, but training time and computational resources increase

Engineering Contradiction:
Improvecontext representation reliabilityVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent applies partial action by selectively processing context words within a fixed window size around the target word, rather than processing the entire corpus or all possible context words. This approach captures sufficient contextual information for reliable representation while significantly reducing the computational scope and training time required

Inventive Principle:
Principle #16Partial or excessive action

Solution Approach 2:

The patent optimizes training efficiency by adjusting key parameters such as learning rate, batch size, and context window size. These parameter changes enable the model to converge faster with high-quality context representations, balancing training time investment against the reliability of context understanding achieved

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS11030411B2Methods, apparatuses, and devices for generating word vectors
Publication Date: 2021.06.08 ADVANCED NEW TECHNOLOGIES CO LTD
  • US11030411B2 patent drawing
  • US11030411B2 patent drawing
  • US11030411B2 patent drawing

AI summary

Implementations of the present specification disclose a method for generating word vectors, apparatus, and device. The method includes: obtaining words by segmenting a corpus; establishing a feature vector of each obtained word based on n-ary characters; training a convolutional neural network based on the feature vectors of the obtained words and the feature vectors of context words associated with each obtained word in the corpus; and generating a word vector for each obtained word based on the feature vector of the obtained word and the trained convolutional neural network.