Releases: somnathrakshit/geograpy3
Releases · somnathrakshit/geograpy3
0.1.8
0.1.8
New Features
-
Add ISO country code (#10)
- returned country information should include the two letter ISO
code of the
country
- returned country information should include the two letter ISO
-
if country is given disambiguate country (#7)
- see e.g. https://stackoverflow.com/questions/62152428/extracting-
country-information-from-description-using-
geograpy?noredirect=1#comment112899776_62152428 Zaragoza, Spain
should e.g. only return the country Spain since it's in the
context of Zaragoza
- see e.g. https://stackoverflow.com/questions/62152428/extracting-
Bugs Squashed
- [BUG]AttributeError: 'NoneType' object has no attribute 'name' on "Pristina, Kosovo" (#9)
- Describe the bug
geograpy.get_geoPlace_context(text="Pristina, Kosovo")
leads
to python error. To Reproduce Steps to reproduce the
behavior: ```python def testIssue(self): '''
test Issue ''' locality="Pristina, Kosovo"
gp=geograpy.get_geoPlace_context(text=locality) if
self.debug: print(" %s" % gp.countries)
print(" %s" % gp.regions) print(" %s" % gp.cities)"/Users/wf/Documents/pyworkspace/geograpy3/geograpy/places.py", line 189, in set_cities country_name = country.name AttributeError: 'NoneType' object has no attribute 'name' **Expected behavior** Python should not choke on this although the political result may be disputed.
- Describe the bug
0.1.7 release
fixes #9
0.1.6 release
more links
0.1.5 release
fixes pycountry None returns
0.1.4 Final release
Test the release process with automatic pypi upload
0.1.4 Release Candidate 1
Tests release procedure to pypi
make using on NLTK GPE labels available
Adds geograpy.get_geoPlace_context() and Extractor.find_geoEntities()