Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 147bcb2

Browse files
committedSep 11, 2024·
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 3a3f30c commit 147bcb2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎machine_learning/cosine_similarity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
Computations.
2222
"""
2323

24-
nlp = spacy.load('en_core_web_md')
24+
nlp = spacy.load("en_core_web_md")
25+
2526

2627
class CosineSimilarity:
2728
def __init__(self) -> None:
@@ -235,4 +236,5 @@ def cosine_similarity_percentage(self, text1: str, text2: str) -> float:
235236
Main function to Test the Cosine Similarity between two Texts.
236237
"""
237238
import doctest
239+
238240
doctest.testmod() # Run the Doctests

0 commit comments

Comments
 (0)
Please sign in to comment.