Skip to content

Commit

Permalink
Merge pull request #3 from morganjwilliams/master
Browse files Browse the repository at this point in the history
Update datasets for binder image, paths to data files
  • Loading branch information
4theKnowledge committed Dec 14, 2020
2 parents 6231692 + 6fe6822 commit b8ac401
Show file tree
Hide file tree
Showing 6 changed files with 663 additions and 2,494 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -23,8 +23,8 @@
| 11:00 - 11:45 | 13:00 - 13:45 | *Lunch* |
| 11:45 - 13:15 | 13:45 - 15:15 | **Session 3: Unsupervised Learning** |
| 13:15 - 13:30 | 15:15 - 15:30 | *Afternoon Tea* |
| 13:30 - 14:45 | 15:30 - 16:45 | **Session 4: Supervised Learning* |
| 14:45 - 15:00 | 16:45 - 17:00 | [**Closeout** |
| 13:30 - 14:45 | 15:30 - 16:45 | **Session 4: Supervised Learning** |
| 14:45 - 15:00 | 16:45 - 17:00 | **Closeout** |

<!---
## Instructions for setting up interactive Google Colab notebooks
Expand Down
7 changes: 4 additions & 3 deletions notebooks/12.2.1-Gensim word vector visualization.ipynb
Expand Up @@ -73,7 +73,8 @@
"metadata": {},
"outputs": [],
"source": [
"data_path = r'C:\\Users\\22917746\\Desktop\\UWA repos\\CORE\\12-text-processing\\data\\glove.6B.50d.txt'"
"from pathlib import Path\n",
"data_path = Path('../data/glove.6B.50d.txt').resolve()"
]
},
{
Expand Down Expand Up @@ -793,9 +794,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.7"
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}
31 changes: 26 additions & 5 deletions notebooks/12.2.2-WordEmbeddings.ipynb
Expand Up @@ -196,7 +196,6 @@
"height": 1000
},
"colab_type": "code",
"collapsed": true,
"executionInfo": {
"elapsed": 1301603,
"status": "ok",
Expand Down Expand Up @@ -229,11 +228,33 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
"model = gensim.models.Word2Vec.load('../data/word2vec/word2vec_reviews.bin')"
"from pathlib import Path\n",
"modelpath = Path('../data/word2vec/word2vec_reviews.bin').resolve()"
]
},
{
"cell_type": "code",
"execution_count": 2,
"metadata": {},
"outputs": [
{
"ename": "NameError",
"evalue": "name 'gensim' is not defined",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mNameError\u001b[0m Traceback (most recent call last)",
"\u001b[1;32m<ipython-input-2-c32b7099fcf8>\u001b[0m in \u001b[0;36m<module>\u001b[1;34m\u001b[0m\n\u001b[1;32m----> 1\u001b[1;33m \u001b[0mmodel\u001b[0m \u001b[1;33m=\u001b[0m \u001b[0mgensim\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mmodels\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mWord2Vec\u001b[0m\u001b[1;33m.\u001b[0m\u001b[0mload\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mstr\u001b[0m\u001b[1;33m(\u001b[0m\u001b[0mmodelpath\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m)\u001b[0m\u001b[1;33m\u001b[0m\u001b[1;33m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[1;31mNameError\u001b[0m: name 'gensim' is not defined"
]
}
],
"source": [
"model = gensim.models.Word2Vec.load(str(modelpath))"
]
},
{
Expand Down Expand Up @@ -1697,9 +1718,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.7.7"
}
},
"nbformat": 4,
"nbformat_minor": 1
"nbformat_minor": 4
}

0 comments on commit b8ac401

Please sign in to comment.