Skip to main content

replaCy Issue Boundary

A replaCy component to fix issue boundary:

  • fix signle or double space at start.
  • fix double comma.
  • fix comma at start
  • fix parenthesis space.
  • fix first letter is a lower case.
  • extend to next word if facing casing issue.

Warning

Add after joiner to work

Install

poetry add replacy_issue_boundary

or

pip install replacy_issue_boundary

Usage

import en_core_web_sm
from replacy import ReplaceMatcher
from replacy.db import load_json
from replacy_issue_boundary import IssueBoundary
from spacy.util import filter_spans


nlp = en_core_web_sm.load()
replaCy = ReplaceMatcher(nlp, load_json('path to match dict(s)'))
issue_boundary = IssueBoundary()
replaCy.add_pipe(name="span_filter", component=filter_spans, before="joiner")
replaCy.add_pipe(issue_boundary, name="article_agreer", after="joiner")

Developing

The CI/CD in this project is great. GitHub Actions run linting and tests on any PR. If you merge into master, release-drafter drafts a new release based on PR commits and tags (e.g. if the PR is tagged feature and minor it will create a minor version bump with the changes labeled as Features).

I can't figure out the automatic versioning bit... leaving it in a broken state for now :/

Metadata

Release files for replacy-issue-boundary 0.2.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for replacy-issue-boundary 0.2.12
File Size Uploaded
replacy-issue-boundary-0.2.12.tar.gz 5.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for replacy-issue-boundary 0.2.12
File Interpreter ABI Platform
replacy_issue_boundary-0.2.12-py3-none-any.whl Python 3 none any Details

Total release size: 11.2 kB

Release files / replacy-issue-boundary-0.2.12.tar.gz

Download URL replacy-issue-boundary-0.2.12.tar.gz
Size 5.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8837d364f82063d148f70ff831fd697e1ddb8a97ce291e1677be48f456e8f371
BLAKE2b-256 checksum
How to use checksums
1117cf1593db6d4f8e0c83ea286b07ff605bc57d7484d13467ed30cec87a61c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.12 Linux/5.11.0-1022-azure

Release files / replacy_issue_boundary-0.2.12-py3-none-any.whl

Download URL replacy_issue_boundary-0.2.12-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3c4e643276a6cc9bc43b7bfa54f58892f80fa13e1ee1aef428673ce75903bcf
BLAKE2b-256 checksum
How to use checksums
faba90ecf73b460d77e5364ed4fee34a04da21ea764cebdf7c716d97e0b1e7ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.8.12 Linux/5.11.0-1022-azure

Release history Release notifications | RSS feed

This release

0.2.12 This release

2 release files

0.2.10

2 release files

0.2.9

2 release files

0.2.8

2 release files

0.2.7

2 release files

0.2.6

2 release files

0.2.5

2 release files

0.2.4

2 release files

0.2.3

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page