Skip to main content

Simple and stupid name extraction

Project description

nametract

PyPI version

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.3.tar.gz (3.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nametract-1.1.3-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file nametract-1.1.3.tar.gz.

File metadata

  • Download URL: nametract-1.1.3.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

Hashes for nametract-1.1.3.tar.gz
Algorithm Hash digest
SHA256 eb0c487c043e299bf4ce097517f1411fa81cfefe7d4409954bcfce51411958f1
MD5 33141f8a08262cd5a987aaa07116e60f
BLAKE2b-256 471dff67a77e86a6133932fe982b3ff3f744e33bf264dcb7cb7ebce8e8be1951

See more details on using hashes here.

File details

Details for the file nametract-1.1.3-py3-none-any.whl.

File metadata

  • Download URL: nametract-1.1.3-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

Hashes for nametract-1.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1b4a9337f6e60f46b6c0c64ae8ce5b8f23c76830b44b5d84d1534005460ac2d8
MD5 9f2ec870f99b123b9c4f69c29ce9124a
BLAKE2b-256 991cb1f604825fc27f2521991253443ba76119d0995a47a71a9926cb59d47e04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page