person-extractor
Work in Progress: Identify People's Names in Text
usage
You initialize a PersonExtractor with a path to a CSV of names with each column a language. You can create a csv through Wikinames.
from person_extractor import PersonExtractor
text = "Але дістатися на роботу працівникам цих бізнесів, якщо у них немає власного автомобіля або грошей на таксі чи корпоративну розвозку, стане справжньою проблемою, прогнозує політолог Микола Давидюк."
extractor = PersonExtractor(data="names.csv")
people = extractor.extract(text)
extract returns a list of objects:
[
{
'start': 336,
'end': 343,
'text': 'Давидюк',
'spellings': {
'en': 'Davidyuk',
'uk': 'Давидюк'
}
}
]
test
To test the package run:
python -m unittest person_extractor.test
contact
Post an issue at https://github.com/Mak4Lab/person-extractor/issues or email the package authors at daniel@mak4lab.com and victoria@mak4lab.com
Metadata
Release files for person-extractor 4.0.0
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 |
|---|---|---|---|---|
| person-extractor-4.0.0.tar.gz | 360.5 kB | Without provenance | Details for person-extractor-4.0.0.tar.gz |
Release files / person-extractor-4.0.0.tar.gz
| Download URL | person-extractor-4.0.0.tar.gz |
|---|---|
| Size | 360.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b52d0aaa8c2d47ddfa6430a72de07d3b54440c18d2f922f8294d5331322fb6e0
|
|
BLAKE2b-256 checksum How to use checksums |
27ebc9227836d8a4e9b1e943b9d514e5965f46200a4f1d9b5f3c10a3b5138feb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/44.1.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/2.7.17
|
Security for person-extractor 4.0.0
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.