Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Dockerfile for fastText #3

Merged
merged 1 commit into from
Aug 9, 2016
Merged

Dockerfile for fastText #3

merged 1 commit into from
Aug 9, 2016

Conversation

xeb
Copy link
Contributor

@xeb xeb commented Aug 5, 2016

I thought I'd share the Dockerfile I've been using during training and hopefully serving one day soon. I'd suggest publishing in DockerHub.

@facebook-github-bot
Copy link
Contributor

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@ghost
Copy link

ghost commented Aug 5, 2016

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

@ghost ghost added the CLA Signed label Aug 5, 2016
@alexbeletsky
Copy link
Contributor

Good stuff, working in container instead of machine makes a lot of sense. Does this image include all required python tools as well?

@@ -28,6 +28,18 @@ $ make
This will produce object files for all the classes as well as the main binary `fasttext`.
If you do not plan on using the default system-wide compiler, update the two macros defined at the beginning of the Makefile (CC and INCLUDES).

## Docker Build of fastText

In order to build `fastText` with DOcker, use the following:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DOcker should be Docker

@pyk
Copy link
Contributor

pyk commented Aug 5, 2016

@alexbeletsky The current Dockerfile doesn't install the required python tools

@ghost ghost added the CLA Signed label Aug 5, 2016
@piotr-bojanowski
Copy link
Member

Hi,

We find the idea of writing a docker file very interesting! However, since it is not core to the library, could you put it in another repository that we mention in the readme?

Best Regards

Piotr

@xeb xeb closed this Aug 9, 2016
@xeb
Copy link
Contributor Author

xeb commented Aug 9, 2016

Separate repository for the Dockerfile created! Apologies for the delay & reopen. Not sure where in the README.md you'd prefer to have the link, so I put it near the Building header.

The example Docker repository includes:

  • Ubuntu 14.04 base image (needed certain glibc headers for scipy install)
  • Python dependencies
  • An example script of the classification-example.sh using only Docker containers
  • Makefile to build the container, run it (with bash) and run the example.

Happy to include anything else others find value.

https://github.com/xeb/fastText-docker

@xeb xeb reopened this Aug 9, 2016
@ghost ghost added the CLA Signed label Aug 9, 2016
@@ -29,6 +29,10 @@ $ make
This will produce object files for all the classes as well as the main binary `fasttext`.
If you do not plan on using the default system-wide compiler, update the two macros defined at the beginning of the Makefile (CC and INCLUDES).

### Building with Docker

To build with Docker, see [fastText-Docker](https://github.com/xeb/fastText-docker) repository.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather be less directive and simply advertise that a docker build file is available at.
Something like: "If you want to build with docker, please check ...".
Thanks!

@piotr-bojanowski piotr-bojanowski merged commit ab287a7 into facebookresearch:master Aug 9, 2016
@piotr-bojanowski
Copy link
Member

I pulled your readme and corrected the wording. Thanks!

andreimardale pushed a commit to andreimardale/fastText that referenced this pull request Jul 23, 2020
GerHobbelt pushed a commit to GerHobbelt/fastText that referenced this pull request Jan 16, 2022
* Rename -hashOnly to -mode floret

In parallel to `spacy init vectors --mode floret`, rename the boolean
option `-hashOnly` to `-mode floret` with the default `-mode fasttext`.

* Set version to v0.10.0.dev1
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants