resumeanalyser.metrics
Module Contents
Functions
|
To calculate cosine-similarity score using CountVectorizer between two strings of text |
|
To calculate cosine-similarity score using Spacy embeddings between two strings of text |
- resumeanalyser.metrics.SimilarityCV(text1, text2)[source]
To calculate cosine-similarity score using CountVectorizer between two strings of text
Parameters: text1 (str): First string containing the text be compared. eg. Job Description text2 (str): Second string containing the text be compared. eg. Resume text
Returns: float: Cosine-Similarity score which shows how similar the two strings are.
Example: >>> SimilarityCV(“I am studying Data Science at UBC”, “There are many good sources to study Data Science online”) 21.8
- resumeanalyser.metrics.SimilaritySpacy(text1, text2)[source]
To calculate cosine-similarity score using Spacy embeddings between two strings of text
Parameters: text1 (str): First string containing the text be compared. eg. Job Description text2 (str): Second string containing the text be compared. eg. Resume text model: Spacy model object eg. en_core_web_md, en_core_web_lg
Returns: float: Cosine-Similarity score which shows how semantically similar the two strings are.
Example: >>> SimilaritySpacy(“I am studying Data Science at UBC”, “There are many good sources to study Data Science online”) 45.3