Skip to main content

A small package for convenient predictions on fine-tuned huggingface-models

Project description

This package is meant to offer a variety of convenient inference functions, particularly for fine-tuned transformers. Limited to j-hartmann's fine-tuned emotion-english-distilroberta-base -> https://huggingface.co/j-hartmann/emotion-english-distilroberta-base for now.

Installs: pip install numpy pip install torch pip install transformers

How to use:

from ezpredict import predict

preds = predict.predict_input(model_name="j-hartmann/emotion-english-distilroberta-base", input=["What a beautiful day!" , "The universe is a function build to evovle increasingly intelligent neural networks."], return_values=True, print_values=True)

Where: model_name -> name of model to perform inference on (limited to "j-hartmann/emotion-english-distilroberta-base" for now) input -> list of strings to perform predictions on return_values -> True/False, True: returns predictions as list of tuples print_values -> True/False, True: returns verbose outputs

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

ezpredict-0.0.4.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

ezpredict-0.0.4-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file ezpredict-0.0.4.tar.gz.

File metadata

  • Download URL: ezpredict-0.0.4.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.2

File hashes

Hashes for ezpredict-0.0.4.tar.gz
Algorithm Hash digest
SHA256 f1d9701ea8a600b55a184fa859c043f8fdf8da2ee8f6bfa23050e69ffa242f38
MD5 4574a84fadf1bb65745cb73863c6d9db
BLAKE2b-256 1265691e41bdbb9f11ca79ea6294bf4d91371c5980c0b5ba18947f00391b72ff

See more details on using hashes here.

File details

Details for the file ezpredict-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: ezpredict-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.0 requests/2.23.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.7.2

File hashes

Hashes for ezpredict-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b5b733df764945a69db4a77ae0f8affc40b1bbfed25b3f47abe8c2be419d0120
MD5 acadd96f32b8bfb3ede14c14764d8bab
BLAKE2b-256 20de9f325e9dac3a10da4824abf743522d9ad4969386b0b14c8f1dd1c0a3ea09

See more details on using hashes here.

Supported by

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