You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/homeworks/hw2.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ For the specific GloVe embeddings we have provided, the embedded vectors have di
25
25
26
26
Install the python package [gensim](https://pypi.org/project/gensim/) which will act as an interface for the GloVe embeddings.
27
27
28
-
The following code is provided to you in `word_embeddings.py` to initialize the GloVe model:
28
+
The following code is provided to you in `embeddings.py` to initialize the GloVe model:
29
29
```python
30
30
from gensim.models import KeyedVectors
31
31
@@ -48,7 +48,7 @@ Check the [documentation](https://radimrehurek.com/gensim/models/keyedvectors.ht
48
48
49
49
### Task
50
50
51
-
Implement the `embed` function in the `WordEmbeddings` class in `word_embeddings.py`. `embed` takes in a list of documents and returns the average word embedding for each document using a pre-trained GloVe model.
51
+
Implement the `embed` function in the `WordEmbeddings` class in `embeddings.py`. `embed` takes in a list of documents and returns the average word embedding for each document using a pre-trained GloVe model.
0 commit comments