ActiveTigger in Python
Project description
(py) Active Tigger
🚧 Under development 🚧
Server/client BERT fine tunning app using active learning
Python refactoring of R Shiny ActiveTigger app (Julien Boelaert & Etienne Ollion)
Installation
You can install activetigger
via pip (be careful to use Python 3.11):
pip install activetigger
Start the server
Create a config file config.yaml
in the directory where you want to launch the server :
path
: path to store files (for instance./data
)secret_key
: to secure tokens. To generate itopenssl rand -hex 32C
path_models
: absolute path to fasttext modelsusers
: list of user:password
Then, to launch the server (on 0.0.0.0 port 8000 by default). You can configurate exposed port if needed.
python -m activetigger
Otherwise, you can launch only the API with uvicorn
:
uvicorn activetigger.api:app --host 0.0.0.0 --port 80 --reload
Technical specifications
- REST-like client/server architecture
- Mixed data storage : sqlite + files
- Backend Python
- FastAPI
- independant Processes to CPU-bound tasts (embeddings/bertmodels)
- Frontend
- Streamlit (prototyping)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
activetigger-0.1.2.tar.gz
(1.2 MB
view details)
Built Distribution
File details
Details for the file activetigger-0.1.2.tar.gz
.
File metadata
- Download URL: activetigger-0.1.2.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a7b63936660c580b4f187d61ffbb099f449eadb2a230ce4ef0353ae9fe008f79 |
|
MD5 | 3b0ecb39e9d33be955f5f7752f61b141 |
|
BLAKE2b-256 | 7190e13211b26fafb40fd3c072a66b627054c0adff57806a65cfa16019e42754 |
File details
Details for the file activetigger-0.1.2-py2.py3-none-any.whl
.
File metadata
- Download URL: activetigger-0.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2439cea39928f161f4a46f5a70ec5ba8aa90f3e031fb516fa56ba6a403bf07cb |
|
MD5 | e73bd26ea1deffbbfb6f63170d5a6cfe |
|
BLAKE2b-256 | d5fa6f45c24154c97c33dd911a27acf8dc6e6e7a5ea7de9aad0b388e987bf7f4 |