Browse Source

feat(nlp-spacy/ex1): update subject and audit

- clarify required goal of exercise.
- update audit question to avoid floating issues.
pull/2360/head
nprimo 11 months ago committed by Niccolò Primo
parent
commit
5007ae7937
  1. 9
      subjects/ai/nlp-spacy/README.md
  2. 4
      subjects/ai/nlp-spacy/audit/README.md

9
subjects/ai/nlp-spacy/README.md

@ -59,7 +59,12 @@ I recommend to use:
The goal of this exercise is to learn to load an embedding on `spaCy`.
1. Install and load `en_core_web_sm` version `3.4.1` [embedding](https://github.com/explosion/spacy-models/releases/tag/en_core_web_sm-3.4.1). Compute the embedding of `car`.
1. Install and load `en_core_web_sm` version `3.4.1` [embedding](https://github.com/explosion/spacy-models/releases/tag/en_core_web_sm-3.4.1).
Compute the embedding of `car` and print out its shape.
2. Print out the sum of the first 20 values of the `car` embedding. The result
must be printed out using
[`float.as_integer_ration()`](https://docs.python.org/3/library/stdtypes.html#float.as_integer_ratio)
---
@ -94,7 +99,7 @@ The goal of this exercise is to learn to use `spaCy` embedding on a document.
![alt text][logo]
[logo]: ./w3day05ex1_plot.png "Plot"
[logo]: ./w3day05ex1_plot.png 'Plot'
https://medium.com/datadriveninvestor/cosine-similarity-cosine-distance-6571387f9bf8

4
subjects/ai/nlp-spacy/audit/README.md

@ -18,7 +18,7 @@
###### For question 1, is the embedding's shape `(96,)`?
###### Do the 20 first values of the vector sum to `2.9790137708187103`?
###### For question 2, do the 20 first values of the vector sum to `(99959115, 33554432)`?
---
@ -58,7 +58,7 @@
![alt text][logo]
[logo]: ../w3day05ex1_plot.png "Plot"
[logo]: ../w3day05ex1_plot.png 'Plot'
---

Loading…
Cancel
Save