Spaces:
Sleeping
Sleeping
aliasgerovs
commited on
Commit
·
74763e1
1
Parent(s):
2bc427a
Update plagiarism.py
Browse files- plagiarism.py +2 -2
plagiarism.py
CHANGED
@@ -94,7 +94,7 @@ def google_search(
|
|
94 |
if "items" in results and len(results["items"]) > 0:
|
95 |
for count, link in enumerate(results["items"]):
|
96 |
# stop after 3 pages
|
97 |
-
if count >=
|
98 |
break
|
99 |
# skip user selected domains
|
100 |
if any(
|
@@ -132,7 +132,7 @@ def split_sentence_blocks(text):
|
|
132 |
sents = sent_tokenize(text)
|
133 |
two_sents = []
|
134 |
for i in range(len(sents)):
|
135 |
-
if (i %
|
136 |
two_sents.append(sents[i])
|
137 |
else:
|
138 |
two_sents[len(two_sents) - 1] += " " + sents[i]
|
|
|
94 |
if "items" in results and len(results["items"]) > 0:
|
95 |
for count, link in enumerate(results["items"]):
|
96 |
# stop after 3 pages
|
97 |
+
if count >= 3:
|
98 |
break
|
99 |
# skip user selected domains
|
100 |
if any(
|
|
|
132 |
sents = sent_tokenize(text)
|
133 |
two_sents = []
|
134 |
for i in range(len(sents)):
|
135 |
+
if (i % 2) == 0:
|
136 |
two_sents.append(sents[i])
|
137 |
else:
|
138 |
two_sents[len(two_sents) - 1] += " " + sents[i]
|