Update app.py
Browse files
app.py
CHANGED
@@ -4,9 +4,9 @@ import os
|
|
4 |
import re
|
5 |
|
6 |
# Đường dẫn đến thư mục và file mô hình
|
7 |
-
model_dir = r"D:\Visual Studio Code\Data\Lab8\
|
8 |
-
model_path = os.path.join(model_dir,
|
9 |
-
syllables_path = os.path.join(model_dir,
|
10 |
|
11 |
# Hàm xử lý
|
12 |
def remove_vn_accent(word):
|
|
|
4 |
import re
|
5 |
|
6 |
# Đường dẫn đến thư mục và file mô hình
|
7 |
+
model_dir = r"D:\Visual Studio Code\Data\Lab8\ung-dung-them-dau-tieng-viet"
|
8 |
+
model_path = os.path.join(model_dir, "kneserney_ngram_model.pkl")
|
9 |
+
syllables_path = os.path.join(model_dir, "vn_syllables.txt")
|
10 |
|
11 |
# Hàm xử lý
|
12 |
def remove_vn_accent(word):
|