Requires a fastText installation on your system. Additionally, you have to add fastText to your PATH, so it can be simply called using "fasttext" command.
Please cite this paper if you use the code:
@inproceedings{fhdogermeval2017,
title = {Fasttext and Gradient Boosted Trees at GermEval-2017 on Relevance Classification and Document-level Polarity},
author = {Leonard Hövelmann and Christoph M. Friedrich},
year = {2017},
booktitle = {Proceedings of the GSCL GermEval Shared Task on Aspect-based Sentiment in Social Media Customer Feedback},
}