https://github.com/inseefrlab/product-labelling
Application for labelling transaction receipts, developed as part of the transaction data project. Predictions are made using the fastText algorithm.
https://github.com/inseefrlab/product-labelling
fasttext labelling transverse-component
Last synced: 3 months ago
JSON representation
Application for labelling transaction receipts, developed as part of the transaction data project. Predictions are made using the fastText algorithm.
- Host: GitHub
- URL: https://github.com/inseefrlab/product-labelling
- Owner: InseeFrLab
- Created: 2020-04-14T12:47:05.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:32:12.000Z (over 1 year ago)
- Last Synced: 2025-01-21T22:24:36.648Z (5 months ago)
- Topics: fasttext, labelling, transverse-component
- Language: Python
- Homepage:
- Size: 199 KB
- Stars: 1
- Watchers: 6
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Product labelling
Application for labelling transaction receipts, developed as part of the transaction data project. Predictions are made using the fastText algorithm.
The application available at ~/home includes two parts :
* The main part aims at simplifying the labelling process. One label from a file are automatically offered to the user who has to choose the rigth associated category/label.
* The second one enables users to visualize the results (preprocessing and predictions of the model).## Quick start
### Using docker
```
docker run --env inseefrlab/product-labelling
```## Configuration
Each variable can be overriden using environment variables.
Product-labelling configuration
| Key | Default | Description |
| --------------------- | ------- | ------------------------------------------------------------------ |
| `model` | `none` | URL of text classification model - fasttext model saved with .ftz extension (must be configured) |
| `nomenclature` | `none` | URL of a CSV file which contains complete list of nomenclature products with no header |
| `db_type` | `sqlite3` | Other supported mode : `postgres` |Product-labelling configuration if `dbtype`==`postgres`
| Key | Default | Description |
| --------------------- | ------- | ------------------------------------------------------------------ |
| `db_password` | `none` | See [django configuration](https://docs.djangoproject.com/fr/3.0/ref/settings/#std:setting-DATABASES) (must be configured) |
| `db_name` | `none` | See [django configuration](https://docs.djangoproject.com/fr/3.0/ref/settings/#std:setting-DATABASES) (must be configured) |
| `db_user` | `none` | See [django configuration](https://docs.djangoproject.com/fr/3.0/ref/settings/#std:setting-DATABASES) (must be configured) |
| `db_host` | `localhost` | See [django configuration](https://docs.djangoproject.com/fr/3.0/ref/settings/#std:setting-DATABASES) |
| `db_port` | `5432` | See [django configuration](https://docs.djangoproject.com/fr/3.0/ref/settings/#std:setting-DATABASES) |## Documentation
See [Django documentation](https://docs.djangoproject.com/fr/3.0/)