Simple and stupid name extraction
Project description
nametract
Simple python package to extract everything that looks like a name from the text. Extremely unreliable. Might work for you if you don't care about possible errors. Currently in development.
from nametract import extract
extract("My name is Peter, and I love Nancy Brown") # ["Peter", "I", "Nancy Brown"]
extract("My name is Peter, and I love Nancy Brown", minimal_name_size=2) # ["Peter", "Nancy Brown"]
extract("My name is Peter, and I love Nancy Brown", ignore_sentence_start=False) # ["My", "Peter", "I", "Nancy Brown"]
extract("С коня сошел Иван Зайцев-Кабачков") # ["Иван Зайцев-Кабачков"]
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
nametract-1.1.1.tar.gz
(3.5 kB
view details)
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 nametract-1.1.1.tar.gz.
File metadata
- Download URL: nametract-1.1.1.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.2 Linux/5.10.0-8-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecf77fb052df406601cb941450252b1e77991e4c30a414e14da6019c2f975aca
|
|
| MD5 |
d565afbd5cbb0a06e037a25923090afc
|
|
| BLAKE2b-256 |
48b1444319c072aed56a81115013efe8098d5c4164eb041a3c0d3bcb878dd89c
|
File details
Details for the file nametract-1.1.1-py3-none-any.whl.
File metadata
- Download URL: nametract-1.1.1-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.10 CPython/3.9.2 Linux/5.10.0-8-amd64
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a3d491ea93065af2436da703fb999d5df3c80e03a6c85bcf8253fa89f073c421
|
|
| MD5 |
04ad9f030536d5c194e4ec838d825085
|
|
| BLAKE2b-256 |
adad442777c1a158c61376421e88f8551ffcc0776821408752bfeadd8bee02fa
|