Commit bda50180 authored by Mahdi Sellami's avatar Mahdi Sellami
Browse files

updated README

parent 1ef495e6
# category-service
The category service is a micro-service that automatically assigns categories to ideas using pre-trained models.
\ No newline at end of file
## Introduction
The category service is a micro-service that automatically assigns categories to ideas using pre-trained models.
## Installation
```sh
$ pip install -r requirements.txt
$ python app.py
```
The following message should be then displayed:
```sh
Debug mode: on
Running on http://0.0.0.0:10003/ (Press CTRL+C to quit)
Restarting with stat
Debugger is active!
Debugger PIN: 161-064-190
```
## Usage
POST request to `/categorize`
Body:
```
{
"description": "Eine Erhol-Oase mit einem zentralen Brunnen und einer steinernen Bank drumrum, auf welcher man verweilen kann. Außerdem gibt es ein bachartiges Gewässer außenrum und Steinplatten, über die man die Wasserflächen queren kann. In den Wasserbecken soll es Fische und Wasserpflanzen geben.",
"model": "Lingpipe"
}
```
Result:
```
[
"Sport & Freizeit",
"Grün & Erholung",
"Sonstiges",
"Verkehr & Mobilität",
"Wohnen & Arbeiten",
"Städtebau & Stadtraum",
"Klima & Umweltschutz",
"Soziales & Kultur"
]
```
## License
[MIT](https://choosealicense.com/licenses/mit/)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment