Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Add data fetching shellscript for fasttext
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexChalk committed Jun 28, 2019
1 parent 9d89cbc commit 52601e4
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Using fastText instead of glove is fairly straightforward, as the pretrained emb

Download the 'Simple English' pretrained wiki word vectors (text) from the fastText
[site](https://fasttext.cc/docs/en/pretrained-vectors.html) and place them in the
`data/fasttext` directory.
`data/fasttext` directory. Alternatively just run `./get_fasttext_data.sh`.

Then you can run training on a subset of examples through the repl using:
```
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.

set -evx

mkdir -p data/fasttext
cd data/fasttext
wget https://dl.fbaipublicfiles.com/fasttext/vectors-wiki/wiki.simple.vec

0 comments on commit 52601e4

Please sign in to comment.