Releases: OpenSextant/Xponents-Core
python-v1.6.9 - MGRS and DD filters improved
Changes:
- XCoord: MGRS and DD filters to eliminate false-positives that hit on date/time info.
Usage: pip3 install --user opensextant-1.6.9.tar.gz
API:
from opensextant.extractors.xcoord import XCoord
extractor = XCoord()
text = "Something fun happened around 38SMB46113656 .... maybe it was within 40 m of that location... "
coordinates = extractor.extract( text )
for match in coordinates:
if not match.filtered_out:
print("Found", match.textnorm, match.pattern_id, "Lat/Lon:", str(match.coordinate))
>> Found 38SMB46113656 MGRS-01 Lat/Lon: 32.56623,43.98384
opensextant python lib v1.6.7 - improve date and coord extractors
opensextant python in this release
Changes:
opensextant: Bug -get_language("eng")returnedLanguage("en_AU"). Fixed. callget_language()andload_language()more accurately records Language metadata by language ISO codes. Some languages were keyed by locale as the default; Correct behaviorget_language("eng") ==> Language("en", "eng"), and lookup by locale ID would return that specific item.opensextant.extractors.xtemporal: Feature: North Am vs. European locales in dates have left certain dates undetected.07.04.2021is ambiguous, for example, but21.04.2021is not. That is likely April 21, 2021. More date patterns implemented in Xtemporal.opensextant.extractors.xcoord: Bug: MGRS would trivially match patterns withUTC,GMTand other common units of measure. Fixed. Time patterns that include UTC, GMT or other common phrases are avoided
See full OpenSextant Xponents server releases here: https://github.com/OpenSextant/Xponents/releases, which will point you to Docker to download the full server image.
Usage: pip3 install --user opensextant-1.6.7.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... )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_taxonsin 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... )