Skip to main content

A tool for working with text data

Project description

LANCETNIC 1.2.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

Документация на русском

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


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.0.tar.gz (9.2 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.2.0-py3-none-any.whl (10.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for lancetnic-1.2.0.tar.gz
Algorithm Hash digest
SHA256 92da77f08f4c389a0367bf6ed08aa00cd7dd2e8af721e32712e47af0a90f33ec
MD5 aaea727d8e8f9422d2eaf4b64d98d0e3
BLAKE2b-256 09b051ecd1c8dc22542bd769d4df637728a81c3d6f1f8f9e4929123e7c358220

See more details on using hashes here.

File details

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

File metadata

  • Download URL: lancetnic-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 10.6 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4925f6ff4e14694136399dfaaf94bec52f08207e1f794aed68159bb7f32383ee
MD5 eea19644c4a086c32861580a63b86a18
BLAKE2b-256 723c5a19e7eaf7b81ada7b4cf763058d889b72e7b7ff4224ee7338ba10894f45

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