Skip to main content

A Python package for grammar correction using a remote model on Replicate.

Project description

GrammarCorrector

GrammarCorrector is a Python package that uses a remote model hosted on Replicate to correct grammatical errors in text.

Installation

pip install grammarcorrector

Usage

export REPLICATE_API_TOKEN='your_replicate_api_token'
from grammarcorrector import GrammarCorrector

corrector = GrammarCorrector()
corrected_text = corrector.correct("This are bad grammar sentence.")
print(corrected_text)  # Output: "This is a bad grammar sentence."

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

grammarcorrector-0.1.0.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

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

grammarcorrector-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file grammarcorrector-0.1.0.tar.gz.

File metadata

  • Download URL: grammarcorrector-0.1.0.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.10

File hashes

Hashes for grammarcorrector-0.1.0.tar.gz
Algorithm Hash digest
SHA256 443e4b8aa59b7f409ab5ccd1c3320e8608fe39e0f3c57f3cf9fa528a33146d67
MD5 c700c31c2835c6c39a7ad4f0a3722c80
BLAKE2b-256 ed6b26b2d719b2ebfafe1c93bdcb9a9a1d039ed2a9bc329e7a44210a1e7631ad

See more details on using hashes here.

File details

Details for the file grammarcorrector-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for grammarcorrector-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60fb356e4abd248aa6c4e707512a67064fad3cbdda4937c5e0551ac14b789b23
MD5 33fa3ab7d19eb18c44fc8917dd84dc28
BLAKE2b-256 0305b4d6e6ea3dbb2591a64783ea769e0e8bf13d8a6ddddf94857410c6c8344f

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