songzy12 / FastText

A PaddlePaddle implementation of fastText.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A PaddlePaddle re-implementation of fastText [1].

Dataset

https://drive.google.com/file/d/0Bz8a_Dbh9QhbZVhsUnRWRDhETzA/view?resourcekey=0-Rp0ynafmZGZ5MflGmvwLGg

$ mv yahoo_answers_csv.tar.gz ~/.paddlenlp/datasets/YahooAnswers/
$ cd ~/.paddlenlp/datasets/YahooAnswers
$ tar -xzvf yahoo_answers_csv.tar.gz
$ mv yahoo_answers_csv yahoo_answers

https://drive.google.com/file/d/0Bz8a_Dbh9Qhbd2JNdDBsQUdocVU/view?resourcekey=0-QTryjwu31-qFjMtEAJmsvw

$ mv amazon_review_full_csv.tar.gz ~/.paddlenlp/datasets/AmazonReviews/
$ cd ~/.paddlenlp/datasets/AmazonReviews
$ tar -xzvf amazon_review_full_csv.tar.gz
$ mv amazon_review_full_csv amazon_reviews

Install

$ pip intall -r requirements.txt

Train

$ python train.py

Reference

Resource

About

A PaddlePaddle implementation of fastText.

License:MIT License


Languages

Language:Python 99.2%Language:Shell 0.8%