1. Learn
  2. /
  3. Courses
  4. /
  5. Advanced NLP with spaCy

Connected

Exercise

Strings to hashes

The nlp object has already been created for you.

Instructions 1/2

undefined XP
  • 1
    • Look up the string "cat" in nlp.vocab.strings to get the hash.
    • Look up the hash to get back the string.
  • 2
    • Look up the string label "PERSON" in nlp.vocab.strings to get the hash.
    • Look up the hash to get back the string.