Spaces:
Sleeping
Sleeping
Update readme
Browse files
README.md
CHANGED
@@ -1,2 +1,32 @@
|
|
1 |
-
#
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Arabic Dialect Classifier
|
2 |
+
This project is a classifier of arabic dialects at a country level:
|
3 |
+
Given some arabic text, the goal is to predict the country of the text's dialect.
|
4 |
+
You can use the "/classify" endpoint through a POST request with a json input of the form: '{"text": "Your arabic text"}'
|
5 |
+
```
|
6 |
+
curl -X POST -H "Content-Type: application/json" -d '{"text": "Your Arabic text"}' http://localhost:8080/classify
|
7 |
+
```
|
8 |
+
|
9 |
+
## Run the app locally with Docker
|
10 |
+
1. Clone the repository with Git:
|
11 |
+
```
|
12 |
+
git clone https://github.com/zaidmehdi/arabic-dialect-classifier.git
|
13 |
+
```
|
14 |
+
2. Build the Docker image:
|
15 |
+
```
|
16 |
+
docker build -t adc .
|
17 |
+
```
|
18 |
+
3. Run the Docker Container:
|
19 |
+
```
|
20 |
+
docker run -p 8080:80 adc
|
21 |
+
```
|
22 |
+
|
23 |
+
Now you can try sending a POST request:
|
24 |
+
```
|
25 |
+
curl -X POST -H "Content-Type: application/json" -d '{"text": "Your Arabic text"}' http://localhost:8080/classify
|
26 |
+
```
|
27 |
+
The response should be a json of the form:
|
28 |
+
```
|
29 |
+
{
|
30 |
+
"class": "country_name"
|
31 |
+
}
|
32 |
+
```
|