Skip to content

Simple python package to extract everything that looks like a name from the text

License

Notifications You must be signed in to change notification settings

keddad/nametract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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("С коня сошел Иван Зайцев-Кабачков")  # ["Иван Зайцев-Кабачков"]

About

Simple python package to extract everything that looks like a name from the text

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages