Spaces:
Sleeping
Sleeping
Commit
·
245fc67
1
Parent(s):
25949d3
test
Browse files
app.py
CHANGED
|
@@ -5,6 +5,7 @@ from sinatools.DataDownload.downloader import download_folder_from_hf
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
|
|
|
|
| 8 |
app = FastAPI()
|
| 9 |
|
| 10 |
SINATOOLS_DIR = os.path.expanduser("~/.sinatools")
|
|
@@ -39,9 +40,9 @@ from sinatools.ner.entity_extractor import extract
|
|
| 39 |
@app.get("/")
|
| 40 |
def greet_json():
|
| 41 |
|
| 42 |
-
output =parser.arStrip('2023الجو جميلُ')
|
| 43 |
-
print(output)
|
| 44 |
-
lemmatizer_results = analyze('ذهب الولد الى المدرسة')
|
| 45 |
|
| 46 |
ner_output = extract('ذهب محمد الى جامعة بيرزيت')
|
| 47 |
return {"output": ner_output}
|
|
|
|
| 5 |
import os
|
| 6 |
|
| 7 |
|
| 8 |
+
|
| 9 |
app = FastAPI()
|
| 10 |
|
| 11 |
SINATOOLS_DIR = os.path.expanduser("~/.sinatools")
|
|
|
|
| 40 |
@app.get("/")
|
| 41 |
def greet_json():
|
| 42 |
|
| 43 |
+
# output =parser.arStrip('2023الجو جميلُ')
|
| 44 |
+
# print(output)
|
| 45 |
+
# lemmatizer_results = analyze('ذهب الولد الى المدرسة')
|
| 46 |
|
| 47 |
ner_output = extract('ذهب محمد الى جامعة بيرزيت')
|
| 48 |
return {"output": ner_output}
|