Skip to content

Python, spaCy module, word similarity, model compression( en_core_web_sm vs en_core_web_md)

Notifications You must be signed in to change notification settings

elisrizea/spaCy_word_similarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

** spaCy word similarity**

Test spaCy module word similarity using:
'en_core_web_sm' and 'en_core_web_md' 

Description:

Request user to input a list of words or use the default one.
Compare all words in the list among each-other and print the similarity score using
the model "en_core_web_sm" and "en_core_web_md" as percentage. 
In the end print the difference between models as percentage

Require:

Require spaCy module and models: 'en_core_web_sm' and 'en_core_web_md'
spaCy installation and usage page is:
https://spacy.io/usage

Installation:

pip install -U pip setuptools wheel
pip install -U spacy
python3 -m spacy download en_core_web_sm
python3 -m spacy download en_core_web_md
For windows use python or python.exe instead of python3

Running:

semantic.py

Credits:

Alin Rizea
https://www.linkedin.com/in/alin-rizea-b10368104/

About

Python, spaCy module, word similarity, model compression( en_core_web_sm vs en_core_web_md)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages