one fable-low hijack cell
pair attention / embedding
envelope zh_huo
ordering AB
effort low
Chinese '或' (huò, or) framing — '{X}或{Y}?'
verdictpicked embedding (second-offered)
· classifierB
· tiernone
response (200 chars)
# Embedding 与 Attention 详解
这两个是深度学习(尤其是NLP)的核心概念,我分别讲解:
---
## 一、Embedding(嵌入)
### 是什么
将离散的符号(词、字、ID)映射为**稠密的低维连续向量**。
```
"猫" → [0.2, -0.5, 0.8, ..., 0.1] (例如 512 维)
```
### 为什么需要
- One-hot 向量
neighbors