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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file grammarcorrector-0.1.1.tar.gz.
File metadata
- Download URL: grammarcorrector-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
480b857364c459fc84a8d34707d3106ebae7580ffad547b20d1166d404379bee
|
|
| MD5 |
d43ad3553864ba84e325ccb9957c040a
|
|
| BLAKE2b-256 |
fc75268a731150aeebea8c6ee9c65d5613854c70157c6485a3f9949e9cd45d24
|
File details
Details for the file grammarcorrector-0.1.1-py3-none-any.whl.
File metadata
- Download URL: grammarcorrector-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a98001c3dad1893467c3258612bc9cb278b61b72d4bede60e46fe3dc49a815a
|
|
| MD5 |
69fd3e8b9db0e4e3f2617a6999b718c8
|
|
| BLAKE2b-256 |
6861309e3bbf93de97c87e4d117d29730f19e6f1891c1bdad1ebec9fc4c9f226
|