Skip to content

Extract place names from a URL or text, and add context to those names

License

Notifications You must be signed in to change notification settings

dhamodharanrk/MrMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MrMap

Extract place names from a URL or text, and add context to those names

Install & Setup

Grab the package using pip (this will take a few minutes)

pip install MrMap

MrMap uses NLTK for entity recognition, so you'll also need to download the models we're using. Fortunately there's a command that'll take care of this for you.

MrMap-nltk

Basic Usage

Import the module, give some text or a URL, and presto.

import MrMap
url = 'http://www.bbc.com/news/world-europe-26919928'
places = MrMap.get_place_context(url=url)

Credits

MrMap is a fork of geograpy2 and inherits most of it, but solves several problems and provides continues support in the development

MrMap uses the following excellent libraries:

MrMap uses the following data sources:

Hat tip to Dhamodharan for the name.

Released under the MIT license.

About

Extract place names from a URL or text, and add context to those names

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages