<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>PyPI recent updates for geograpy</title>
    <link>https://pypi.org/project/geograpy/</link>
    <description>Recent updates to the Python Package Index for geograpy</description>
    <language>en</language>    <item>
      <title>0.3.7</title>
      <link>https://pypi.org/project/geograpy/0.3.7/</link>
      <description>Extract countries, regions and cities from a URL or text</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Sun, 11 May 2014 20:00:07 GMT</pubDate>
    </item>    <item>
      <title>0.3.5</title>
      <link>https://pypi.org/project/geograpy/0.3.5/</link>
      <description>Extract countries, regions and cities from a URL or text</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Fri, 09 May 2014 21:25:31 GMT</pubDate>
    </item>    <item>
      <title>0.3.4</title>
      <link>https://pypi.org/project/geograpy/0.3.4/</link>
      <description>Extract countries, regions and cities from a URL or text</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 17 Apr 2014 15:23:20 GMT</pubDate>
    </item>    <item>
      <title>0.3.3</title>
      <link>https://pypi.org/project/geograpy/0.3.3/</link>
      <description>Extract countries, regions and cities from a URL or text</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 17 Apr 2014 15:15:31 GMT</pubDate>
    </item>    <item>
      <title>0.3.1</title>
      <link>https://pypi.org/project/geograpy/0.3.1/</link>
      <description>Extract countries, regions and cities from a URL or text</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 17 Apr 2014 00:10:50 GMT</pubDate>
    </item>    <item>
      <title>0.3.0</title>
      <link>https://pypi.org/project/geograpy/0.3.0/</link>
      <description>Extract countries, regions and cities from a URL or text</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Wed, 16 Apr 2014 23:22:24 GMT</pubDate>
    </item>    <item>
      <title>0.2.5</title>
      <link>https://pypi.org/project/geograpy/0.2.5/</link>
      <description>Extract countries, regions and cities from a URL or text</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 10 Apr 2014 23:20:57 GMT</pubDate>
    </item>    <item>
      <title>0.2.4</title>
      <link>https://pypi.org/project/geograpy/0.2.4/</link>
      <description>Geograpy========Extract place names from a URL or text, and add context to those names-- for example distinguishing between a country, region or city.Install &amp; Setup---------------Grab the package using ``pip`` (this will take a few minutes)::    pip install geograpyGeograpy uses `NLTK &lt;http://www.nltk.org/&gt;`__ for entity recognition, soyou&#39;ll also need to download the models we&#39;re using. Fortunately there&#39;sa command that&#39;ll take care of this for you.::    geograpy-nltkBasic Usage-----------Import the module, give some text or a URL, and presto.::    import geograpy    url = &#39;http://www.bbc.com/news/world-europe-26919928&#39;    places = geograpy.get_place_context(url=url)Now you have access to information about all the places mentioned in thelinked article.-  ``places.countries`` *contains a list of country names*-  ``places.regions`` *contains a list of region names*-  ``places.cities`` *contains a list of city names*-  ``places.other`` *lists everything that wasn&#39;t clearly a country,   region or city*Note that the ``other`` list might be useful for shorter texts, to pullout information like street names, points of interest, etc, but at themoment is a bit messy when scanning longer texts that contain possessiveforms of proper nouns (like &#34;Russian&#34; instead of &#34;Russia&#34;).But Wait, There&#39;s More----------------------In addition to listing the names of discovered places, you&#39;ll also getsome information about the relationships between places.-  ``places.country_regions`` *regions broken down by country*-  ``places.country_cities`` *cities broken down by country*-  ``places.address_strings`` *city, region, country strings useful for   geocoding*Last But Not Least------------------While a text might mention many places, it&#39;s probably focused on one ortwo, so Geograpy also breaks down countries, regions and cities bynumber of mentions.-  ``places.country_mentions``-  ``places.region_mentions``-  ``places.city_mentions``Each of these returns a list of tuples. The first item in the tuple isthe place name and the second item is the number of mentions. Forexample:::    [(&#39;Russian Federation&#39;, 14), (u&#39;Ukraine&#39;, 11), (u&#39;Lithuania&#39;, 1)]  If You&#39;re Really Serious------------------------You can of course use each of Geograpy&#39;s modules on their own. Forexample:::    from geograpy import extraction    e = extraction.Extractor(url=&#39;http://www.bbc.com/news/world-europe-26919928&#39;)    e.find_entities()    # You can now access all of the places found by the Extractor    print e.placesPlace context is handled in the ``places`` module. For example:::    from geograpy import places    pc = places.PlaceContext([&#39;Cleveland&#39;, &#39;Ohio&#39;, &#39;United States&#39;])    pc.set_countries()    print pc.countries #[&#39;United States&#39;]    pc.set_regions()    print pc.regions #[&#39;Ohio&#39;]    pc.set_cities()    print pc.cities #[&#39;Cleveland&#39;]    print pc.address_strings #[&#39;Cleveland, Ohio, United States&#39;]And of course all of the other information shown above(``country_regions`` etc) is available after the corresponding ``set_``method is called.Credits-------Geograpy uses the following excellent libraries:-  `NLTK &lt;http://www.nltk.org/&gt;`__ for entity recognition-  `newspaper &lt;https://github.com/codelucas/newspaper&gt;`__ for text   extraction from HTML-  `jellyfish &lt;https://github.com/sunlightlabs/jellyfish&gt;`__ for fuzzy   text match-  `pycountry &lt;https://pypi.python.org/pypi/pycountry&gt;`__ for   country/region lookupsGeograpy uses the following data sources:-  `GeoLite2 &lt;http://dev.maxmind.com/geoip/geoip2/geolite2/&gt;`__ for city   lookups-  `ISO3166ErrorDictionary &lt;https://github.com/bodacea/countryname/blob/master/countryname/databases/ISO3166ErrorDictionary.csv&gt;`__   for common country mispellings *via `Sara-Jayne   Terp &lt;https://github.com/bodacea&gt;`__*Hat tip to `Chris Albon &lt;https://github.com/chrisalbon&gt;`__ for the name.</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 10 Apr 2014 23:16:26 GMT</pubDate>
    </item>    <item>
      <title>0.2.3</title>
      <link>https://pypi.org/project/geograpy/0.2.3/</link>
      <description>Extract place names and meta data from text or URLs</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 10 Apr 2014 23:01:34 GMT</pubDate>
    </item>    <item>
      <title>0.2.2</title>
      <link>https://pypi.org/project/geograpy/0.2.2/</link>
      <description>Extract place names and meta data from text or URLs</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 10 Apr 2014 22:55:53 GMT</pubDate>
    </item>    <item>
      <title>0.2.1</title>
      <link>https://pypi.org/project/geograpy/0.2.1/</link>
      <description>Extract place names and meta data from text or URLs</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 10 Apr 2014 22:53:20 GMT</pubDate>
    </item>    <item>
      <title>0.2</title>
      <link>https://pypi.org/project/geograpy/0.2/</link>
      <description>Extract place names and meta data from text or URLs</description>
<author>jonathon@ushahidi.com</author>      <pubDate>Thu, 10 Apr 2014 22:42:53 GMT</pubDate>
    </item>  </channel>
</rss>