Grammarticle spaCy pipeline
Project description
Grammarticle
GrammArticle is a RoBERTa-based grammar checker for English article usage. It detects three types of article errors:
- Missing – when an article is absent but required
- Wrong – when an incorrect article is used (e.g., "a apple" instead of "an apple", or "the" instead of "a/an")
- Redundant – when an article is unnecessary (e.g., "the furniture")
Installation
GrammArticle is trained on publicly available GEC datasets with synthetic augmentation and is available as a SpaCy pipeline.
pip install grammarticle
or
pip install spacy-transformers
python -m spacy download en_core_web_trf
pip install https://huggingface.co/iproskurina/en_grammarticle/resolve/main/en_grammarticle-1-py3-none-any.whl
Usage
import spacy
import en_grammarticle
nlp = en_grammarticle.load()
text = "Some text"
doc = nlp(text)
for span in doc.spans.get("sc", []):
print(f"[{span.label_}] {span.text}")
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
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 grammarticle-1.0.0.tar.gz.
File metadata
- Download URL: grammarticle-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
93cfa5ab95da5c27f5676b6d8782aaaa8a39253541b27a143cb50245932f9152
|
|
| MD5 |
4f6f9d4806615acb3a7f4f940abc939b
|
|
| BLAKE2b-256 |
f608d5696b75a31f1845c5d7df29e394e7c4b045d8e0cb56b39a8c2c4144c23b
|
File details
Details for the file grammarticle-1.0.0-py3-none-any.whl.
File metadata
- Download URL: grammarticle-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8bb0871fa9b7ef1618874129e2a9a11728967f3efcfa7124ee6fd9e6539b928
|
|
| MD5 |
e8f408f955128203ed4b03dfb24913e3
|
|
| BLAKE2b-256 |
951ca1f5f769f15998f8e18ac12f69870245b8400b24d5aac0592f556d0c5db3
|