Skip to content

Commit d8deb03

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 768015c commit d8deb03

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

machine_learning/cosine_similarity.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ def cosine_similarity_percentage(self, text1: str, text2: str) -> float:
179179
"""
180180
text1 = "The biggest Infrastructure in the World is Burj Khalifa"
181181
text2 = "The name of the talllest Tower in the world is Burj Khalifa"
182-
183-
similarity_percentage = cosine_similarity().cosine_similarity_percentage(text1, text2)
182+
183+
similarity_percentage = cosine_similarity().cosine_similarity_percentage(
184+
text1, text2
185+
)
184186
print(f"Cosine Similarity: {similarity_percentage:.2f}%")

0 commit comments

Comments
 (0)