Skip to content

Commit 7a5be0e

Browse files
author
chanyc
committed
add a1 & update readme
1 parent 4093b26 commit 7a5be0e

8 files changed

+1854
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
# stanford-cs224n-2023
2-
This repository contains my works for Stanford CS224n (Winter 2023).
1+
# stanford-cs224n-2023-nlp
2+
This repository contains my works for [Stanford CS224n (Winter 2023)](https://web.stanford.edu/class/archive/cs/cs224n/cs224n.1234/index.html).

a1/README.txt

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Welcome to CS224N!
2+
3+
We'll be using Python throughout the course. If you've got a good Python setup already, great! But make sure that it is at least Python version 3.5. If not, the easiest thing to do is to make sure you have at least 3GB free on your computer and then to head over to (https://www.anaconda.com/download/) and install the Python 3 version of Anaconda. It will work on any operating system.
4+
5+
After you have installed conda, close any open terminals you might have. Then open a new terminal and run the following command:
6+
7+
# 1. Create an environment with dependencies specified in env.yml:
8+
9+
conda env create -f env.yml
10+
11+
# 2. Activate the new environment:
12+
13+
conda activate cs224n
14+
15+
# 3. Inside the new environment, install IPython kernel so we can use this environment in jupyter notebook:
16+
17+
python -m ipykernel install --user --name cs224n
18+
19+
20+
# 4. Homework 1 (only) is a Jupyter Notebook. With the above done you should be able to get underway by typing:
21+
22+
jupyter notebook exploring_word_vectors_22_23.ipynb
23+
24+
# 5. To make sure we are using the right environment, go to the toolbar of exploring_word_vectors.ipynb, click on Kernel -> Change kernel, you should see and select cs224n in the drop-down menu.
25+
26+
# To deactivate an active environment, use
27+
28+
conda deactivate

a1/env.yml

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: cs224n
2+
channels:
3+
- defaults
4+
- anaconda
5+
dependencies:
6+
- python=3.8
7+
- jupyter
8+
- matplotlib
9+
- numpy
10+
- ipykernel
11+
- scikit-learn
12+
- nltk
13+
- gensim
14+
- scipy

a1/exploring_word_vectors_22_23.ipynb

+1,810
Large diffs are not rendered by default.

a1/imgs/inner_product.png

16 KB
Loading

a1/imgs/question_1.5.png

10.9 KB
Loading

a1/imgs/svd.png

10.2 KB
Loading

a1/imgs/test_plot.png

33.3 KB
Loading

0 commit comments

Comments
 (0)