A natural language semantic representation method based on an attention mechanism
A technology of natural language and attention, applied in the creation of semantic tools, special data processing applications, instruments, etc., can solve the problem of easily losing the semantic relationship of sentences
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment
[0039] figure 1 It is a flowchart of an attention mechanism-based natural language semantic representation method in the present invention.
[0040] In this example, if figure 1 Shown, a kind of attention mechanism-based natural language semantic representation method of the present invention comprises the following steps:
[0041] S1, natural language preprocessing
[0042] Randomly download a complete and independent English natural sentence, then remove the special characters in the natural sentence, and then divide the natural sentence into a set of multiple words by spaces S={W 1 ,W 2 ,...,W i ,...,W L}, W i Indicates the i-th word in a natural sentence, and L is the total number of words.
[0043] S2. Obtain the word vector of each word
[0044] Input each word to the Seq2Word model, and output the word vector of each word; where, W i The word vector is expressed as w i ; In this embodiment, the Seq2Word model adopts common word2vec technology, and the dictiona...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com