TymaaHammouda commited on
Commit
236c22c
·
1 Parent(s): d70862f

Download model from huggingface

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -14,7 +14,8 @@ os.makedirs(SINATOOLS_DIR, exist_ok=True)
14
  dest_path = os.path.join(SINATOOLS_DIR)
15
 
16
  # Download explicitly to the expected path
17
- download_file(url="https://sina.birzeit.edu/lemmas_dic.pickle", dest_path=dest_path)
 
18
  download_file(url='https://sina.birzeit.edu/five_grams.pickle', dest_path=dest_path)
19
  download_file(url='https://sina.birzeit.edu/four_grams.pickle', dest_path=dest_path)
20
  download_file(url='https://sina.birzeit.edu/three_grams.pickle', dest_path=dest_path)
@@ -22,6 +23,14 @@ download_file(url='https://sina.birzeit.edu/two_grams.pickle', dest_path=dest_pa
22
 
23
  from sinatools.morphology.morph_analyzer import analyze
24
 
 
 
 
 
 
 
 
 
25
 
26
  download_file(url='https://sina.birzeit.edu/Wj27012000.tar.gz', dest_path=dest_path)
27
  from sinatools.ner.entity_extractor import extract
 
14
  dest_path = os.path.join(SINATOOLS_DIR)
15
 
16
  # Download explicitly to the expected path
17
+ #download_file(url="https://sina.birzeit.edu/lemmas_dic.pickle", dest_path=dest_path)
18
+ download_folder_from_hf("TymaaHammouda/testing_lemmatizer_model", 'lemmas_dic.pickle')
19
  download_file(url='https://sina.birzeit.edu/five_grams.pickle', dest_path=dest_path)
20
  download_file(url='https://sina.birzeit.edu/four_grams.pickle', dest_path=dest_path)
21
  download_file(url='https://sina.birzeit.edu/three_grams.pickle', dest_path=dest_path)
 
23
 
24
  from sinatools.morphology.morph_analyzer import analyze
25
 
26
+ # download_file('https://sina.birzeit.edu/lemmas_dic.pickle')
27
+
28
+
29
+ # args_path = hf_hub_download(
30
+ # repo_id="SinaLab/Nested",
31
+ # filename="args.json"
32
+ # )
33
+
34
 
35
  download_file(url='https://sina.birzeit.edu/Wj27012000.tar.gz', dest_path=dest_path)
36
  from sinatools.ner.entity_extractor import extract