Skip to content

Compare an already seen movie description with other new movies description and suggest the next movie to watch.

Notifications You must be signed in to change notification settings

elisrizea/sentence_similarity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

spaCy sentence similarity

Test the spaCy sentence similarity using the 'en_core_web_lg' model.

Description:

This script is a demo of spaCy's capabilities to find similarity between sentences.
It has a prebuilt already seen movie description which it is comparing with 
other movies description supplied from the movies.txt User is asked to choose
one from the 4 methods used to achive this and notice the difference in results.

*Methodes:*
        - **Normal** - Perform a direct similarity check 
        
        - **Stop words** - Perform the similarity check after we remove all stop words 
        (assume stop words have less relevance)
        
        - **Restrictive** - Perform the similarity check using only 'NOUN', 'PROPN' 
        (assume the most relevant words are 'NOUN', 'PROPN')
        
        - **All** - Use all 3 above, and the result will be an average of all individual scores

Require:

Require spaCy module and model 'en_core_web_lg' 
Installation details page is:
https://spacy.io/usage

Installation:

pip install -U spacy
python3 -m spacy download en_core_web_lg

Running:

whatch_next.py

Credits:

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

About

Compare an already seen movie description with other new movies description and suggest the next movie to watch.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages