replaCy Article Agreer
A replaCy component to manage indirect article agreement, that is, to deal with making "a" and "an" be correct so you don't have to think about them in your matches.
Warning
This replaCy component touches suggestions (span._.suggestions) generated by replaCy, and assumes that they are text. This means you MUST attach add this component to the pipeline after the joiner. Otherwise, this component tries to raise ReplacyPipelineOrderError to tell you this.
Install
poetry add replacy_article_agreer
or
pip install replacy_article_agreer
Usage
import en_core_web_sm
from replacy import ReplaceMatcher
from replacy.db import load_json
from replacy_article_agreer import ArticleAgreer
from spacy.util import filter_spans
nlp = en_core_web_sm.load()
replaCy = ReplaceMatcher(nlp, load_json('path to match dict(s)'))
aa = ArticleAgreer()
# filtering spans first isn't strictly necessary, but recommended
replaCy.add_pipe(filter_spans, name="filter_spans", before="joiner")
replaCy.add_pipe(aa, name="article_agreer", after="joiner")
Metadata
Release files for replacy-article-agreer 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| replacy-article-agreer-0.2.2.tar.gz | 4.0 kB | Without provenance | Details for replacy-article-agreer-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| replacy_article_agreer-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for replacy_article_agreer-0.2.2-py3-none-any.whl |
Total release size: 8.9 kB
Release files / replacy-article-agreer-0.2.2.tar.gz
| Download URL | replacy-article-agreer-0.2.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
83a36abd69a3d3e0b7f3c6946df1bb79ba78d92a23d3ae0729990a7e4461a6d7
|
|
BLAKE2b-256 checksum How to use checksums |
56165c8b62b86b07552229d05fa1b1b50d754c982c19223b0f336cd105e30a59
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1025-azure
|
Release files / replacy_article_agreer-0.2.2-py3-none-any.whl
| Download URL | replacy_article_agreer-0.2.2-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b24ab054f0ec074f9131c9e8773b8560e912cd934cbd78c1528fdbd498be086c
|
|
BLAKE2b-256 checksum How to use checksums |
5d2b19ded922f36372b627009e177fed9d6468f6b08f1adf26c8e3d106ce18b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-1025-azure
|
Security for replacy-article-agreer 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.