Spaces:
Running
Running
Update plagiarism.py
Browse files- plagiarism.py +1 -1
plagiarism.py
CHANGED
@@ -87,7 +87,7 @@ def build_date(year=2024, month="March", day=1):
|
|
87 |
|
88 |
def split_ngrams(text, n):
|
89 |
words = text.split()
|
90 |
-
return [words[i : i + n] for i in range(len(words) - n + 1)]
|
91 |
|
92 |
|
93 |
def sentence_similarity(text1, text2):
|
|
|
87 |
|
88 |
def split_ngrams(text, n):
|
89 |
words = text.split()
|
90 |
+
return [tuple(words[i : i + n]) for i in range(len(words) - n + 1)]
|
91 |
|
92 |
|
93 |
def sentence_similarity(text1, text2):
|