Reputation: 343
We can train a supervised model in fasttext using
import fasttext
model = fasttext.train_supervised(input="cooking.train")
My question is how it is representing the features(Bag of words or tf/idf or word embedding) and what algorithm is it using for text classification?
Upvotes: 0
Views: 747
Reputation: 54243
It's still learning word-vectors for the input text - but then averaging them all together, a bit like an infinite-window CBOW mode – then using that to predict the the labels, as if the labels were the (word2vec-style) predicted-word.
Upvotes: 1