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.2.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.2.tar.gz.
File metadata
- Download URL: nametract-1.1.2.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 |
6f8420a5393290dc3e6d2d6510dc68fd6957def34fc4fed6bdd5fdcdafb4f3ba
|
|
| MD5 |
1510d6fd0605b133d837c87095956f83
|
|
| BLAKE2b-256 |
c53f85c1b4542fda51ae780e995c5e8c6ecaab99a244080dfcf43133f7ebfb12
|
File details
Details for the file nametract-1.1.2-py3-none-any.whl.
File metadata
- Download URL: nametract-1.1.2-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 |
8437d129ff6afd7d5178709d26215302df2c07a5fbb2ab5b3f80f6f48be7c634
|
|
| MD5 |
8dbe64d832e1c503a6c437705d5010dd
|
|
| BLAKE2b-256 |
a0c9b15cc20d821c61d1478e9a75185b7e66bee3aa486cb5013edb56d387517f
|