Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,9 +6,8 @@ import os
|
|
| 6 |
app = Flask(__name__)
|
| 7 |
|
| 8 |
# Initialize vncorenlp (point to the JAR file in your folder)
|
| 9 |
-
current_dir = 'reranking'
|
| 10 |
-
|
| 11 |
-
word_segmenter = py_vncorenlp.VnCoreNLP(save_dir=vncorenlp_path, annotators="wseg")
|
| 12 |
|
| 13 |
# Load your cross-encoder model (replace with your model name or path)
|
| 14 |
model_name = "truong1301/reranker_pho_BLAI" # Example model, replace with yours
|
|
|
|
| 6 |
app = Flask(__name__)
|
| 7 |
|
| 8 |
# Initialize vncorenlp (point to the JAR file in your folder)
|
| 9 |
+
current_dir = 'reranking/vncorenlp'
|
| 10 |
+
word_segmenter = py_vncorenlp.VnCoreNLP(save_dir=current_dir, annotators=["wseg"])
|
|
|
|
| 11 |
|
| 12 |
# Load your cross-encoder model (replace with your model name or path)
|
| 13 |
model_name = "truong1301/reranker_pho_BLAI" # Example model, replace with yours
|