A tool for working with text data
Project description
LANCETNIC 1.2.1
The LANCETNIC library is a tool for working with text data: learning, analysis, and inference.
Tasks to be solved:
- Binary classification (spam/not spam; patient is sick/not sick; loan approved/refusal, etc.)
🚀 Installing:
Install with CUDA
To work with the GPU, it is recommended to install PyTorch with CUDA support (OPTIONAL):
pip install torch==2.5.1+cu124 torchaudio==2.5.1+cu124 torchvision==0.20.1+cu124 --index-url https://download.pytorch.org/whl/cu124
Then install lancetnic:
pip install lancetnic
👥 Autors
📄 Documentation
Документация на русском
Documentation in English
Quick start
Training:
from lancetnic.models import LancetBC
from lancetnic import Binary
model = Binary()
model.train(model_name=LancetBC, # A model for binary classification
train_path="train.csv", # The path to the training dataset
val_path="val.csv", # Path to the validation dataset
num_epochs=50 # Number of training epochs
)
Inferece:
from lancetnic import Predictor
pred=Predictor()
prediction=pred.predict(model_path="best_model.pt",
text="Your text"
)
print(prediction)
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
lancetnic-1.2.1.tar.gz
(9.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
lancetnic-1.2.1-py3-none-any.whl
(10.9 kB
view details)
File details
Details for the file lancetnic-1.2.1.tar.gz.
File metadata
- Download URL: lancetnic-1.2.1.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dd6bc497b4912c419090816e7ce91e8963fe5f73ffb8cf6cfd9494f533c6797
|
|
| MD5 |
b73ab815185b3a412ae4b694cb4698ca
|
|
| BLAKE2b-256 |
1be265da47a4c69764bdfeeb8a4a99f8822f827ad28f60dbb7163053a6ae80b4
|
File details
Details for the file lancetnic-1.2.1-py3-none-any.whl.
File metadata
- Download URL: lancetnic-1.2.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.10.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd049828310718e6eb96d9288e9dbdb6f5e7fc437b53908eb917d99d59f371d5
|
|
| MD5 |
0624ff022a40a4660a29ba803f3ff679
|
|
| BLAKE2b-256 |
d877808fc7549a6c0057f4f1f607b589f28f3fb5d1d307f6de1f1de0f8dfcc1d
|