Skip to main content

A tool for working with text data

Project description

LANCETNIC 1.1.0

PyPI Package Version PyPi status Downloads Downloads MIT License

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

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="datasets/spam_train.csv", # The path to the training dataset
            val_path="datasets/spam_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="Your path to model (.pt)",
             text="Your text"
             )

print(prediction)

Project details


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.1.0.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lancetnic-1.1.0-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file lancetnic-1.1.0.tar.gz.

File metadata

  • Download URL: lancetnic-1.1.0.tar.gz
  • Upload date:
  • Size: 8.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for lancetnic-1.1.0.tar.gz
Algorithm Hash digest
SHA256 208ae3a7625743327c3b9f312bd4fb7cfa711fa8c8159e43ce7c785d08695eaa
MD5 76872cea8a9f1011c81dc18786a0dd29
BLAKE2b-256 84ab10ad767d22bbc7283bc63f862fa66e6eff8dda935766d8bb0a3c3bd2a1cf

See more details on using hashes here.

File details

Details for the file lancetnic-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: lancetnic-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.9

File hashes

Hashes for lancetnic-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 55d27261840755b0ede7c919a34ebfa1bf5340e9cce0165f933dc85009a3965e
MD5 719ea40910acc69c96cc1849c18633de
BLAKE2b-256 2f762dd4894892d7c49e54da7828597b3bf238e443428d088fd24284a842fd6e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page