4 ms·
FastText is the best text classification library for a quick baseline
- dang 5y agoPast related threads: Using aligned word vectors for instant translations with Python and Rust - https://news.ycombinator.com/item?id=27465287 https://news.ycombinator.com/item?id=27465287 - June 2021 (35 comments) FastText embeddings of field headers to improve NLP - https://news.ycombinator.com/item?id=23405965 https://news.ycombinator.com/item?id=23405965 - June 2020 (1 comment) Fast and accurate language identification using fastText - https://news.ycombinator.com/item?id=15393518 https://news.ycombinator.com/item?id=15393518 - Oct 2017 (12 comments) Multilingual word vectors in 78 languages - https://news.ycombinator.com/item?id=14167539 https://news.ycombinator.com/item?id=14167539 - April 2017 (23 comments) Facebook releases 300-dimensional pretrained Fasttext vectors for 90 languages - https://news.ycombinator.com/item?id=13771292 https://news.ycombinator.com/item?id=13771292 - March 2017 (70 comments) Fasttext and Torch: A fasttext implementation based on Torch - https://news.ycombinator.com/item?id=12862541 https://news.ycombinator.com/item?id=12862541 - Nov 2016 (1 comment) Facebook AI Research Open Sources fastText - https://news.ycombinator.com/item?id=12329094 https://news.ycombinator.com/item?id=12329094 - Aug 2016 (5 comments) FastText – Library for fast text representation and classification - https://news.ycombinator.com/item?id=12226988 https://news.ycombinator.com/item?id=12226988 - Aug 2016 (52 comments)
- anothernewdude 5y agoThe built-in classifier to fasttext is abysmal. Putting a default XGB on the embeddings is just as easy, and once you're just using fasttext for embeddings, using a better embedding makes more sense.
- Der_Einzige 5y agoCorrect. This has been my experience as well.
- febed 5y agoDo you have an example of this?
- innerlee 5y agoFor more text classification baselines (CRNN, NRTR, RubustScanner, SAR, SegOCR), checkout https://github.com/open-mmlab/mmocr https://github.com/open-mmlab/mmocr They are reproducible, customizable.
- frakkingcylons 5y agoDid you mean to link to something else? Those all seem geared for OCR tasks as opposed to text classification (which is what the article is talking about).
- sarak12070 5y agoclio pro eye palette review with discount offer https://topsaleproductsonline.blogspot.com/2021/06/clio-pro-eye-palette-review-with.html https://topsaleproductsonline.blogspot.com/2021/06/clio-pro-... Do owls poop from their mouth? https://interestingnewsclub.blogspot.com/2021/06/do-owls-poop-from-their-mouth.html https://interestingnewsclub.blogspot.com/2021/06/do-owls-poo... British man stacks five M&M's, breaks Guinness World Record https://www.interestingnews.club/2021/06/british-man-stacks-five-m-breaks.html https://www.interestingnews.club/2021/06/british-man-stacks-... What does the Partridge symbolize? intertesting facts https://www.interestingnews.club/2021/06/what-does-partridge-symbolize.html https://www.interestingnews.club/2021/06/what-does-partridge...
- banjtheman 5y agoI created a python module leveraging fasttext to train text classifiers with just a labeled dataset https://github.com/banjtheman/instatext https://github.com/banjtheman/instatext
- abhgh 5y agoI agree, and not just for text classification. Its a good baseline for anything that looks like text (if you train a model from scratch), e.g., URLs with some basic preprocessing. This is because FastText uses character n-grams; the consequence of this is substring similarities are exploited. Some things to note: (1) FastText comes with a classifier but I have often seen good results with using a difference classifier like LightGBM or a SVM. (2) If you want other word embeddings to compare with as well, magnitude [1] is an easy to use library. (3) FastText now supports multiple languages [2]. [1] https://github.com/plasticityai/magnitude#pre-converted-magnitude-formats-of-popular-embeddings-models https://github.com/plasticityai/magnitude#pre-converted-magn... [2] https://fasttext.cc/docs/en/crawl-vectors.html#models https://fasttext.cc/docs/en/crawl-vectors.html#models
- knuthsat 5y agoHow does it compare to vowpal wabbit today?
- polyrand 5y agoNot only for classification, fastText is really good (and fast) at language identification[0] To use fastText in Python in a scikit-learn style (also inside sklearn pipelines), I’d recommend trying skift[1] [0] https://ricardoanderegg.com/posts/python-fast-language-identification-fasttext/ https://ricardoanderegg.com/posts/python-fast-language-ident... [1] https://github.com/shaypal5/skift https://github.com/shaypal5/skift
- empiko 5y agoI feel like using HuggingFace Transformers is just as easy right now and it will probably have better performance. Of course, GPU machine is needed for training.