ICTuniverse commited on
Commit
28bc083
·
verified ·
1 Parent(s): 16d74e2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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
- vncorenlp_path = os.path.join(current_dir, "vncorenlp")
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