FastText 在论文 Bag of Tricks for Efficient Text Classification 中被提出。
- Using a look-up table, bags of n-gram convert to word representations.
- Word representations are averaged into a text representation, which is a hidden variable.
- Text representation is in turn fed to a linear classifier.
- Using the softmax function to compute the probability distribution over the predefined classes.(使用softmax函数计算预定义类的概率分布)
FastText 的网络结构: