Spaces:
Sleeping
Sleeping
Commit
·
00a84c6
1
Parent(s):
ab25eb3
spacy error
Browse files- app.py +5 -1
- requirements.txt +0 -1
app.py
CHANGED
@@ -9,7 +9,11 @@ from typing import Dict, List, Set, Tuple
|
|
9 |
from rapidfuzz import fuzz, process
|
10 |
from collections import defaultdict
|
11 |
from tqdm import tqdm
|
12 |
-
import
|
|
|
|
|
|
|
|
|
13 |
|
14 |
class NewsProcessor:
|
15 |
def __init__(self, similarity_threshold=0.75, time_threshold=24):
|
|
|
9 |
from rapidfuzz import fuzz, process
|
10 |
from collections import defaultdict
|
11 |
from tqdm import tqdm
|
12 |
+
import spacy
|
13 |
+
|
14 |
+
# Download Russian model
|
15 |
+
spacy.cli.download("ru_core_news_sm")
|
16 |
+
|
17 |
|
18 |
class NewsProcessor:
|
19 |
def __init__(self, similarity_threshold=0.75, time_threshold=24):
|
requirements.txt
CHANGED
@@ -5,5 +5,4 @@ transformers
|
|
5 |
rapidfuzz
|
6 |
openpyxl
|
7 |
tqdm
|
8 |
-
ru-core-news-sm
|
9 |
spacy
|
|
|
5 |
rapidfuzz
|
6 |
openpyxl
|
7 |
tqdm
|
|
|
8 |
spacy
|