minko186 commited on
Commit
50a470e
1 Parent(s): e7da95c

Update plagiarism.py

Browse files
Files changed (1) hide show
  1. 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):