Finds countries in a string
Project description
Country named entity recognition
Developed by Fast Data Science, https://fastdatascience.com
Source code at https://github.com/fastdatascience/country_named_entity_recognition
Python library for finding country names in a string.
Please note this library finds only high confidence countries. A text such as “America” is ambiguous.
It also only finds the English names of these countries. Names in the local language are not supported.
Requirements
Python 3.9 and above
pycountry 22.1.10
Installation
pip install country-named-entity-recognition
Usage examples
Example 1
from country_named_entity_recognition import find_countries
find_countries("We are expanding in the UK")
outputs a list of tuples.
Who to contact
Thomas Wood at https://fastdatascience.com
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
Built Distribution
Close
Hashes for country-named-entity-recognition-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74bf39f1c1cf1541de80feeb0d00340d219e58a387ee5bdd7664d9ca9f18edff |
|
MD5 | 2604739c13b5622c257adb3c682022eb |
|
BLAKE2b-256 | cc541c03b414e6bd445806fb36af467a1c8c6d6513c051662e14ec567487c9a2 |
Close
Hashes for country_named_entity_recognition-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 766258d55ea174218cea749c26137c45976c3da27dedcdb83b8d068a2f723e25 |
|
MD5 | b2b9dcd04ba254bb63f23d3eb72eea96 |
|
BLAKE2b-256 | cb5e2d349575f25d1412d6578c8cc81c1004f734def7dc13cec09a60ab73c70e |