Skip to content

Commit

Permalink
APIs lesson fixes - use_glove => use-glove, utilities
Browse files Browse the repository at this point in the history
  • Loading branch information
itsderek23 committed Mar 30, 2020
1 parent d911e0c commit 483c50b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion notebooks/03_APIs/pt-text-classification/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ python text_classification/utils.py
## Training
```bash
python text_classification/train.py \
--data-url https://raw.githubusercontent.com/madewithml/lessons/master/data/news.csv --lower --shuffle --use_glove
--data-url https://raw.githubusercontent.com/madewithml/lessons/master/data/news.csv --lower --shuffle --use-glove
```

## Inference
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,6 @@ def make_embeddings_matrix(embeddings, token_to_index, embedding_dim):
# Unzip and write embeddings (may take ~3-5 minutes)
resp = urlopen('http://nlp.stanford.edu/data/glove.6B.zip')
embeddings_dir = os.path.join(config.BASE_DIR, 'embeddings')
utilities.create_dirs(embeddings_dir)
create_dirs(embeddings_dir)
with ZipFile(BytesIO(resp.read()), 'r') as zr:
zr.extractall(embeddings_dir)

0 comments on commit 483c50b

Please sign in to comment.