July 2017
Beginner to intermediate
486 pages
13h 49m
English
Pruning is also used when we are building our word pairs for training purposes using context builder. When you have a large amount of vocabulary to deal with, if you have included less frequent words, then you need to remove them. You can also restrict the size of the total vocabulary by using the max_vocab_size parameter given in the Python gensim library.
Let's see how useful pruning is for us in order to generate word2vec. Pruning is used to prune the training sample size, as well as make the quality of it better. If you don't prune the rarely occurred words from the dataset, then the model accuracy may degrade. This is a kind of hack to improve the accuracy.
Read now
Unlock full access