Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,8 @@ dictionary_path = pkg_resources.resource_filename(
|
|
16 |
"symspellpy", "frequency_dictionary_en_82_765.txt"
|
17 |
)
|
18 |
sym_spell.load_dictionary(dictionary_path, term_index=0, count_index=1)
|
19 |
-
sym_spell.
|
|
|
20 |
|
21 |
|
22 |
def preprocess_text(text):
|
|
|
16 |
"symspellpy", "frequency_dictionary_en_82_765.txt"
|
17 |
)
|
18 |
sym_spell.load_dictionary(dictionary_path, term_index=0, count_index=1)
|
19 |
+
sym_spell.load_dictionary("./custom_dictionary.txt", term_index=0, count_index=1)
|
20 |
+
|
21 |
|
22 |
|
23 |
def preprocess_text(text):
|