semvec/pypi-packages huggingface dataset:
torchtextclassifiers 1.0.4
A text classification toolkit to easily build, train and evaluate deep learning text classifiers using PyTorch.
Requires Python: >=3.11
Keywords: fastText, text classification, NLP, automatic coding, deep learning

# torchTextClassifiers

[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://inseefrlab.github.io/torchTextClassifiers/)

A unified, extensible framework for text classification with categorical variables built on [PyTorch](https://pytorch.org/) and [PyTorch Lightning](https://lightning.ai/docs/pytorch/stable/).

## 🚀 Features

- **Complex input support**: Handle text data alongside categorical variables seamlessly.
- **Unified yet highly customizable**:
    - Use any tokenizer from HuggingFace or the original fastText's ngram tokenizer.
    - Manipulate the components (`TextEmbedder`, `CategoricalVariableNet`, `ClassificationHead`) to easily create custom architectures - including **self-attention**. All of them are `torch.nn.Module` !
    - The `TextClassificationModel` class combines these components and can be extended for custom behavior.
- **Multiclass / multilabel classification support**: Support for both multiclass (only one label is true) and multi-label (several labels can be true) classification tasks.
- **PyTorch Lightning**: Automated training with callbacks, early stopping, and logging
- **Easy experimentation**: Simple API for training, evaluating, and predicting with minimal code:
    - The `torchTextClassifiers` wrapper class orchestrates the tokenizer and the model for you
- **Additional features**: explainability using Captum


## 📦 Installation

```bash
# Clone the repository
git clone https://github.com/InseeFrLab/torchTextClassifiers.git
cd torchTextClassifiers

# Install with uv (recommended)
uv sync

# Or install with pip
pip install -e .
```

## 📖 Documentation

Full documentation is available at: **https://inseefrlab.github.io/torchTextClassifiers/**
The documentation includes:
- **Getting Started**: Installation and quick start guide
- **Architecture**: Understanding the 3-layer design
- **Tutorials**: Step-by-step guides for different use cases
- **API Reference**: Complete API documentation

## 📝 Usage

Checkout the [notebook](notebooks/example.ipynb) for a quick start.

## 📚 Examples

See the [examples/](examples/) directory for:
- Basic text classification
- Multi-class classification
- Mixed features (text + categorical)
- Advanced training configurations
- Prediction and explainability

## 📄 License

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
claw-sdk-cli 11.3.2
ClawsNetwork Smart Contracts Tools
Requires Python: >=3.10

# Description

Python Command Line Tools for interacting with ClawsNetwork.

## Documentation

[docs.multiversx.com](https://docs.multiversx.com/sdk-and-tools/sdk-py/)

## CLI

[CLI](CLI.md)

## Distribution

Install with [pipx](https://pypi.org/project/claw-sdk-cli/) (recommended):

```bash
pipx install claw-sdk-cli
```

Then run `clawpy` from anywhere.

## Development setup

Clone this repository and cd into it:

```
git clone https://github.com/ClawsNetwork/claw-sdk-py-cli.git
cd claw-sdk-py-cli
```

### Virtual environment

Create a virtual environment and install the dependencies:

```
python3 -m venv ./venv
source ./venv/bin/activate
pip install -r ./requirements.txt --upgrade
```

Install development dependencies, as well:

```
pip install -r ./requirements-dev.txt --upgrade
```

Allow `pre-commit` to automatically run on `git commit`:

```
pre-commit install
```

Above, `requirements.txt` should mirror the **dependencies** section of
`pyproject.toml`.

If using VSCode, restart it or follow these steps:

- `Ctrl + Shift + P`
- _Select Interpreter_
- Choose `./venv/bin/python`.

### Using your local `clawpy`

If you want to test the modifications you locally made to `clawpy`, set
`PYTHONPATH` with the path to your local repository path.

For example, if you cloned the repository at `~/claw-sdk-py-cli`, run:

```
export PYTHONPATH="~/claw-sdk-py-cli"
```

Then `clawpy` will use the code in your local repository.