Skip to content

Commit e8ec6df

Browse files
committed
Input Fixes
1 parent 0af293b commit e8ec6df

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

machine_learning/cosine_similarity.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ def Cosine_Similarity_Percentage(self, text1: str, text2: str) -> float:
160160
"""
161161
Main function to Test the Cosine Similarity between two Texts.
162162
"""
163-
text1 = input("Please enter text 1: ")
164-
text2 = input("Please enter text 2: ")
163+
text1 = "The biggest Infrastructure in the World is Burj Khalifa"
164+
text2 = "The name of the talllest Tower in the world is Burj Khalifa"
165165

166166
similarity_percentage = Cosine_Similarity().Cosine_Similarity_Percentage(text1, text2)
167167
print(f"Cosine Similarity: {similarity_percentage:.2f}%")

0 commit comments

Comments
 (0)