Python matchtext
Python 3 package for fast text matching and replacing.
This library implements two fast approaches for matching keywords/gazetteer entries:
- TokenMatcher: keywords/gazetteer entries are sequences of tokens, optionally associated with some data and the matcher tries to match any of those in a given sequence of tokens.
- StringMatcher: keywords/gazetter entries are strings, optionally associated with some data and the matcher tries to match any of those in a given string, optionally only at non-word boundaries.
The matchers are implemented to be fast: TokenMatcher is a hash tree, StringMatcher uses a character trie implementation underneath. Both matchers implement additional features often required in NLP:
- return the offsets in the original iterable where a match occurs
- mapfunc: tokens/characters can be mapped to some canonical form that is used for matching
- ignorefunc: some tokens/characters can be entirely ignored for matching
- match all/longest: only match the longest entry versus all entries
- skip/noskip: if any match is found, continue matching after the longest match versus at the next position
Metadata
Release files for matchtext 0.2.3
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 |
|---|---|---|---|---|
| matchtext-0.2.3.tar.gz | 23.8 kB | Without provenance | Details for matchtext-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| matchtext-0.2.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for matchtext-0.2.3-py2.py3-none-any.whl |
Total release size: 42.8 kB
Release files / matchtext-0.2.3.tar.gz
| Download URL | matchtext-0.2.3.tar.gz |
|---|---|
| Size | 23.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad9ee6797240d9ba4c24721d332a88f54084caf341285e520058e35249ae3f12
|
|
BLAKE2b-256 checksum How to use checksums |
d92d02e6b6b574176522ce4623aa133114d857198ebc7d752a090a496722c733
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Release files / matchtext-0.2.3-py2.py3-none-any.whl
| Download URL | matchtext-0.2.3-py2.py3-none-any.whl |
|---|---|
| Size | 19.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
349f57276427503d9480287108e79c656a12816ddff3f986d0693b85473b414a
|
|
BLAKE2b-256 checksum How to use checksums |
ce41a4935eece551978ce25fdf773d215434f1db41e46ea2cae9e6d48e6223ae
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.6.10
|
Security for matchtext 0.2.3
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.