semvec/pypi-packages huggingface dataset:
pyw2v2 0.0.2
Simple wav2vec2 wrapper
Keywords: python


# pyw2v2

**Work in progress!**

This module is a wrapper for Wav2Vec2 models, intended to accelerate ARS research.

## Install

This module can be easily be installed with `pip`:

```sh
pip install pyw2v2
```

## Examples

Different examples can be found [here](https://github.com/vbrydik/pyw2v2/tree/master/examples/).

### Fine-tuning CTC model example

This example will show how to load a pretrained model,
load dataset, process dataset, and fine-tune CTC model.

Example configuration files can be found [here](https://github.com/vbrydik/pyw2v2/tree/master/configs/).

```py
from pyw2v2 import ModelCTC, DatasetPreprocessor
from pyw2v2.utils import load_config, load_custom_dataset_commonvoice_format

if __name__ == "__main__":
    # Load pretrained model
    model_config = load_config("../configs/ctc/default.yaml")
    model = ModelCTC(model_config)
    
    # Loading dataset in Common Voice format
    train_set = load_custom_dataset_commonvoice_format('../datasets/example', 'train')
    eval_set = load_custom_dataset_commonvoice_format('../datasets/example', 'test')

    # Set up dataset preprocessor
    dataproc_config = load_config("../configs/dataproc/default.yaml").data_proc
    data_processor = DatasetPreprocessor(dataproc_config)
    data_processor.processor = model.processor

    # Process data
    train_set = data_processor.process(train_set, dataproc_config.n_samples_train)
    eval_set = data_processor.process(eval_set, dataproc_config.n_samples_test)
    
    # Train/Fine-tune model
    model.train(train_set, eval_set)
```
drf-ebs-utils 0.0.45
drf-ebs-utils is a package that offers service classes for notification-service, attachment-service, sso-service.
Requires Python: >=3.8

# drf-ebs-utils

**drf-ebs-utils** is a package that offers service classes for notification-service , attachment-service , sso-service.

## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install drf_ebs_utils.

```bash
pip install drf_ebs_utils
```

Setting `.env`
```shell
SERVICE_SSO_DOMAIN=
SERVICE_SSO_SERVICE_TOKEN=
SERVICE_SSO_SECRET_TOKEN=
SERVICE_SSO_SECRET_KEY=

SERVICE_NOTIFICATION_HOST=
SERVICE_NOTIFICATION_SECRET_KEY=

SERVICE_ATTACHMENT_HOST=
SERVICE_ATTACHMENT_SECRET_KEY=
SERVICE_ATTACHMENT_SECRET_TOKEN=
```

## Available service classes

* SSOService
* NotificationService
* AttachmentService

## Usage

Example
```
from drf_ebs_utils.services.sso import SSOService
sso = SSOService()

from drf_ebs_utils.services.notification import NotificationService
notification = NotificationService()

from drf_ebs_utils.services.attachment import AttachmentService
attachment = AttachmentService()
```

## Contributing

Pull requests are welcome. Open issues addressing pull requests.

## License

[MIT](https://choosealicense.com/licenses/mit/)