Releases: iwpnd/flashgeotext
v0.5.3
v0.5.3 (2024-05-05)
Chore
-
chore(deps): update pydantic (
2f226a2
) -
chore: remove chore(deps) from patch_tags (
4792172
) -
chore(deps): update pydantic (
8733def
) -
chore(deps): update pydantic (
3e9f491
) -
chore: exclude_commit_patterns for changelog [skip ci] (
eca1f7e
)
Fix
- fix: bump pydantic to v2.7.0 (
2a98a21
)
v0.5.2
v0.5.1
v0.5.1 (2024-01-09)
Chore
- chore(deps-dev): bump mkdocs-material from 9.4.14 to 9.5.2
Bumps mkdocs-material from 9.4.14 to 9.5.2.
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]> (edbc61d
)
- chore(deps-dev): bump isort from 5.13.1 to 5.13.2
Bumps isort from 5.13.1 to 5.13.2.
updated-dependencies:
- dependency-name: isort
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (32daf5e
)
- chore(deps): bump github/codeql-action from 2 to 3
Bumps github/codeql-action from 2 to 3.
updated-dependencies:
- dependency-name: github/codeql-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected]> (5a7e7ef
)
- chore(deps-dev): bump isort from 5.12.0 to 5.13.1
Bumps isort from 5.12.0 to 5.13.1.
updated-dependencies:
- dependency-name: isort
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]> (272f5ea
)
- chore(deps-dev): bump python-semantic-release from 8.3.0 to 8.5.0
Bumps python-semantic-release from 8.3.0 to 8.5.0.
updated-dependencies:
- dependency-name: python-semantic-release
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]> (2144a4c
)
- chore(deps-dev): bump isort from 5.12.0 to 5.13.0
Bumps isort from 5.12.0 to 5.13.0.
updated-dependencies:
- dependency-name: isort
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]> (d89cdc8
)
- chore(deps-dev): bump ruff from 0.1.6 to 0.1.7
Bumps ruff from 0.1.6 to 0.1.7.
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (0cb17da
)
- chore(deps): bump actions/setup-python from 4 to 5
Bumps actions/setup-python from 4 to 5.
updated-dependencies:
- dependency-name: actions/setup-python
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <[email protected]> (c09ebf7
)
- chore(deps-dev): bump mkdocs-material from 9.4.10 to 9.4.14
Bumps mkdocs-material from 9.4.10 to 9.4.14.
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (9fcecfd
)
- chore(deps): bump pydantic from 2.5.1 to 2.5.2
Bumps pydantic from 2.5.1 to 2.5.2.
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (4f3cc38
)
- chore(deps-dev): bump ruff from 0.1.5 to 0.1.6
Bumps ruff from 0.1.5 to 0.1.6.
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (3bd9902
)
- chore(deps-dev): bump mkdocs-material from 9.4.8 to 9.4.10
Bumps mkdocs-material from 9.4.8 to 9.4.10.
updated-dependencies:
- dependency-name: mkdocs-material
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (523dab3
)
- chore(deps-dev): bump poethepoet from 0.24.3 to 0.24.4
Bumps poethepoet from 0.24.3 to 0.24.4.
updated-dependencies:
- dependency-name: poethepoet
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (d1bb12d
)
- chore(deps): bump pydantic from 2.4.2 to 2.5.1
Bumps pydantic from 2.4.2 to 2.5.1.
updated-dependencies:
- dependency-name: pydantic
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <[email protected]> (0a551b1
)
- chore(deps-dev): bump ruff from 0.1.4 to 0.1.5
Bumps ruff from 0.1.4 to 0.1.5.
updated-dependencies:
- dependency-name: ruff
dependency-type: direct:development
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <[email protected]> (4223dd0
)
- chore(deps-dev): bump black from 23.10.1 to 23.11.0
Bumps black from 23.10.1 to 23.11.0.
- Release notes
- [Changelog](https://github.com/psf/black/blob/main/CHA...
[0.5.0]
[0.4.2]
[0.4.1]
[v0.4.0]
Summary
- removed the option to show the
span_info
and made it a default instead. - Additionally
.extract
now returns under what word (or synonym) the keyword was found in the input text. - As the configuration was implemented a little doofy, I updated how the configuration can be passed on init of
GeoText
.
Refactor
- Add found synonym (
fb06232
)
Fix
- Make configuration better (
e57150f
)
from flashgeotext.geotext import GeoText, GeoTextConfiguration
config = GeoTextConfiguration(**{"use_demo_data":True})
geotext = GeoText()
input_text = '''Shanghai. The Chinese Ministry of Finance in Shanghai said that China plans
to cut tariffs on $75 billion worth of goods that the country
imports from the US. Washington welcomes the decision.'''
geotext.extract(input_text=input_text)
>> {
'cities': {
'Shanghai': {
'count': 2,
'span_info': [(0, 8), (45, 53)],
'found_as': ['Shanghai', 'Shanghai'],
},
'Washington, D.C.': {
'count': 1,
'span_info': [(175, 185)],
'found_as': ['Washington'],
}
},
'countries': {
'China': {
'count': 1,
'span_info': [(64, 69)],
'found_as': ['China'],
},
'United States': {
'count': 1,
'span_info': [(171, 173)],
'found_as': ['US'],
}
}
}
[v0.3.2]: lower python minimum requirement
- Switching package management to Poetry I accidentally introduced Python 3.8 as minimum requirement. Reverting to Python 3.7 as minimum requirement.
- Some housekeeping
patch: set loglevel default to WARNING
Loglevel is now set to WARNING
by default and can be changed using environment variables.
For example:
export LOGURU_LEVEL=DEBUG
to enable debug logging.
Allowed levels are ERROR
, WARNING
, DEBUG
and INFO
v0.3.0: minor updates, add option to choose case sensitivity
Following up on #20 You can now choose to allow to ignore the case of the lookup data.
from flashgeotext.geotext import GeoText
geotext = GeoText(config = { "use_demo_data": True, "case_sensitive": True })
text = "berlin ist ne tolle stadt"
geotext.extract(input_text=text, span_info=True)
>> { "cities": { "Berlin": [(0,6)] }