DD0101 commited on
Commit
53b0548
1 Parent(s): 2bfda2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -6,6 +6,7 @@ from transformers.pipelines.token_classification import TokenClassificationPipel
6
  import py_vncorenlp
7
 
8
  os.system('pwd')
 
9
  os.mkdir('/home/user/app/vncorenlp')
10
  py_vncorenlp.download_model(save_dir='/home/user/app/vncorenlp')
11
  rdrsegmenter = py_vncorenlp.VnCoreNLP(annotators=["wseg"], save_dir='/home/user/app/vncorenlp')
 
6
  import py_vncorenlp
7
 
8
  os.system('pwd')
9
+ os.system('sudo update-alternatives --config java')
10
  os.mkdir('/home/user/app/vncorenlp')
11
  py_vncorenlp.download_model(save_dir='/home/user/app/vncorenlp')
12
  rdrsegmenter = py_vncorenlp.VnCoreNLP(annotators=["wseg"], save_dir='/home/user/app/vncorenlp')