Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
fastText Quick Start Guide

You're reading from   fastText Quick Start Guide Get started with Facebook's library for text representation and classification

Arrow left icon
Product type Paperback
Published in Jul 2018
Publisher Packt
ISBN-13 9781789130997
Length 194 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Joydeep Bhattacharjee Joydeep Bhattacharjee
Author Profile Icon Joydeep Bhattacharjee
Joydeep Bhattacharjee
Arrow right icon
View More author details
Toc

Using a Docker image for fastText

You can also use Docker to run fastText on your machine and not worry about building it. This can be done to maintain version control between specific versions and thus gives us predictability and consistency. You can get information on how to install Docker from the following link: https://docs.docker.com/install/#cloud.

After installing, start the Docker service before running the following commands:

 start the docker service.
$ systemctl start docker

# run the below commands to start the fasttext container.
$ docker pull xebxeb/fasttext-docker

You should now be able to run fastText:

$ mkdir -p /tmp/data && mkdir -p /tmp/result
$ docker run --rm -v /tmp/data:/data -v /tmp/result:/result \
-it xebxeb/fasttext-docker ./classification-example.sh

You may need to provide permissions and create the specific directories to run the...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime