Spaces:
Running
Running
aliasgerovs
commited on
Commit
•
74f95a7
1
Parent(s):
75ba191
Updated
Browse files- plagiarism.py +1 -1
plagiarism.py
CHANGED
@@ -141,7 +141,7 @@ def matching_score(sentence_content_tuple):
|
|
141 |
|
142 |
|
143 |
def process_with_multiprocessing(input_data):
|
144 |
-
with Pool(processes=
|
145 |
scores = pool.map(matching_score, input_data)
|
146 |
return scores
|
147 |
|
|
|
141 |
|
142 |
|
143 |
def process_with_multiprocessing(input_data):
|
144 |
+
with Pool(processes=8) as pool:
|
145 |
scores = pool.map(matching_score, input_data)
|
146 |
return scores
|
147 |
|