← All projects
Project record3 mentions
Originally shared on Hacker News

location4j

An open-source Java NLP library that parses text and extracts geographical information from it. Work is underway to rewrite the matching logic to score all matches in a given text, disambiguating cases like whether "us ca" means USA California or USA and Canada (CA ISO2 code), or which San Jose "san jose usa" refers to.

Last shared
01 / The problem

What it addresses

Location strings in text are ambiguous, e.g. "us ca" could mean "USA California" or "USA and Canada (CA ISO2 code)", and "san jose usa" could refer to multiple San Joses in America.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. location4j

    An open-source Java NLP library that parses text and extracts geographical information from it. Work is underway to rewrite the matching logic to score all matches in a given text, disambiguating cases like whether "us ca" means USA California or USA and Canada (CA ISO2 code), or which San Jose "san jose usa" refers to.

    Problem: Location strings in text are ambiguous, e.g. "us ca" could mean "USA California" or "USA and Canada (CA ISO2 code)", and "san jose usa" could refer to multiple San Joses in America.

    Posted by @tomaytotomato · Original source ↗

    Source text · @tomaytotomato · · Source ↗

    Tinkering away on my opensource Java NLP library to parse text and find geographical information from it.
  2. location4j

    A Java library called location4j that uses NLP to resolve a location from free text to a City, State, or Country, e.g. turning "NY USA" into "New York, United States of America" and "LOS ANGELES, CA" into "Los Angeles, California, United States of America". The author is working through bugs involving collisions between place-name concepts, such as Mexico being both a country and a city, and New York existing as a city in multiple places and as a state.

    Problem: Resolving ambiguous place names from free text, where the same name can refer to different concepts (e.g. Mexico as a country vs. Mexico City, New York as a city in multiple places and as a state).

    Posted by @tomaytotomato · Original source ↗

    Source text · @tomaytotomato · · Source ↗

    I am just working through a couple of bugs for my location parsing library for Java called location4j. https://github.com/tomaytotomato/location4j It uses NLP to try and understand and resolve a location from some free text to either a City, State or Country.
  3. location4j

    A Java NLP library that identifies geographical locations from free text, handling inconsistent formats such as 'san francisco ca united states', 'california, san francisco', and 'glasgow, UK' and resolving them to standardized place names and countries.

    Problem: It started as a project when the author was scraping websites and some data had inconsistent ways of writing a location or address.

    Posted by @tomaytotomato · Original source ↗

    Source text · @tomaytotomato · · Source ↗

    Working on my Java NLP library that can figure out what geographical location is from a piece of free text.