jokokojote / nlp-fasttext-sentiment-classifier-pytorch

FastText classifier for sentiment analysis of reviews with PyTorch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fastText classifier example

This code trains a fastText model like proposed by Joulin et al [1] for sentiment classification of reviews with PyTorch.

I used the Yelp Review Polarity Dataset which is available at Xiang Zhang's Google Drive dir here and was used in [2]

[1] Armand Joulin, Edouard Grave, Piotr Bojanowski, and Tomas Mikolov. 2017. Bag of Tricks for Efficient Text Classification. In Proceedings of the 15th Conference of the European Chapter of the Association for Computational Linguistics: Volume 2, Short Papers, pages 427–431, Valencia, Spain. Association for Computational Linguistics.

[2] Xiang Zhang, Junbo Zhao, and Yann LeCun. 2015. Character-level convolutional networks for text classification. In Proceedings of the 28th International Conference on Neural Information Processing Systems - Volume 1 (NIPS'15). MIT Press, Cambridge, MA, USA, 649–657.

About

FastText classifier for sentiment analysis of reviews with PyTorch


Languages

Language:Python 100.0%