Comparing similarities
In this exercise, you'll be using spaCy's similarity methods to compare Doc, Token and Span objects and get similarity scores. The medium English model is already available as the nlp object.
Deze oefening maakt deel uit van de cursus
Advanced NLP with spaCy
Praktische interactieve oefening
Probeer deze oefening eens door deze voorbeeldcode in te vullen.
doc1 = nlp("It's a warm summer day")
doc2 = nlp("It's sunny outside")
# Get the similarity of doc1 and doc2
similarity = ____.____(____)
print(similarity)