Spaces:
Runtime error
Runtime error
Update utils.py
Browse files
utils.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import pymorphy2
|
2 |
-
from typing import List
|
3 |
|
4 |
morph = pymorphy2.MorphAnalyzer()
|
5 |
STOP_PUNCT = list(',./!@#$%^&*()_+=-<>?\|{}[]`~/')
|
@@ -24,7 +23,7 @@ def counter(s: str) -> dict:
|
|
24 |
d[i] += 1
|
25 |
return d
|
26 |
|
27 |
-
def prepare4check(s1: str, s2: str, STOP: set = STOP, morph=morph) ->
|
28 |
"""
|
29 |
Предобработка данных для проверки
|
30 |
|
|
|
1 |
import pymorphy2
|
|
|
2 |
|
3 |
morph = pymorphy2.MorphAnalyzer()
|
4 |
STOP_PUNCT = list(',./!@#$%^&*()_+=-<>?\|{}[]`~/')
|
|
|
23 |
d[i] += 1
|
24 |
return d
|
25 |
|
26 |
+
def prepare4check(s1: str, s2: str, STOP: set = STOP, morph=morph) -> list:
|
27 |
"""
|
28 |
Предобработка данных для проверки
|
29 |
|