Releases: OpenSextant/Xponents-Core
Releases · OpenSextant/Xponents-Core
opensextant python API, v1.6 series
opensextant
python in this release:
- Xponents REST API improvements in testing the filtration of noise and various entity types; Most enhancements are on Xponents Java server-side in v3.7.3+; API here adds
all_taxons
in REST API as this library moves to v1.6 - debut of XCoord port from Java to Python; Extract DM, DMS, MGRS, DD coordinates in python easily! See unit test test_xcoord.py to see usage and default test cases.
See full OpenSextant Xponents server releases here: https://github.com/OpenSextant/Xponents/releases
Usage: pip3 install --user opensextant-1.6.2.tar.gz
Major Calls:
- Extract geographic and other named entities using Xponents REST:
client = opensextant.xlayer.XlayerClient( url )
tags = client.process( ... text ... )
- Extract just coordinates from text using XCoord:
extractor = opensextant.extractors.xcoord.XCoord()
coordinates = extractor.extract( text )
- EXPERIMENTAL - Extract and summarize geographic entities primarily when postal addresses, nationalities, etc are of interest and present in data; use Geotagger as below. This is a higher level wrapper around the Xponents API client.
extractor = opensextant.xlayer.Geotagger( args )
tags = extractor.summarize( ... text... )