【NLP】简单神经网络

本文介绍了文本表示的发展,从传统的one-hot编码、Bag-of-Words (BoW)和TF-IDF,到分布式表示如Word2Vec,包括其 Continuous bag-of-words (CBOW) 和 Continuous skip-gram 模型,以及后续的GloVe和FastText等技术。这些词向量方法旨在捕捉词汇在不同语境中的含义。
摘要由CSDN通过智能技术生成
  1. 文本表示:从one-hot到word2vec。
    1.1 词袋模型:离散、高维、稀疏。
    1.2 分布式表示:连续、低维、稠密。word2vec词向量原理并实践,用来表示文本。

1. Word vectors

把词变成计算机看的懂的语言就是词向量。
看这里:Understanding word vectors

1.1 传统词向量

1.1.1 one-hot

最简单的词向量之一叫one-hot encoded vectors。
譬如,有一组词{magic, dragon, king, queen},用one-hot表示:
在这里插入图片描述

For high-cardinality variables — those with many unique categories — the dimensionality of the transformed vector becomes unmanageable.
The mapping is completely uninformed: “similar” categories are not placed closer to each other in embedding space.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值