Skip to content

Releases: iwpnd/flashgeotext

v0.5.3

05 May 07:51
Compare
Choose a tag to compare

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

19 Feb 14:14
Compare
Choose a tag to compare

v0.5.2 (2024-02-19)

Fix

  • fix: use model_dump as per pydantic 2.6 migration guide (d60fb27)

  • fix: use field_validator as per pydantic 2.6 migration guide (af2a874)

v0.5.1

09 Jan 19:23
Compare
Choose a tag to compare

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.

Read more

[0.5.0]

25 Jan 19:14
Compare
Choose a tag to compare

Feature

  • Drop 3.8 support in favour of >3.10 (0a52772)

Refactor

  • speed up test suite
  • more readable text extraction code
  • more readable lookup data validation code

Documentation

[0.4.2]

01 Feb 10:36
Compare
Choose a tag to compare
  • just fixing conda dependencies

[0.4.1]

31 Jan 14:37
Compare
Choose a tag to compare

Fix

  • Parse extract when span_info is false (d497b57)

[v0.4.0]

13 Sep 19:48
Compare
Choose a tag to compare

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

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

13 Apr 17:27
Compare
Choose a tag to compare
  • 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

07 Apr 21:46
Compare
Choose a tag to compare

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

28 Feb 15:10
Compare
Choose a tag to compare

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)] }