Clay-foundation / earth-text

Adding language to Clay
Apache License 2.0
12 stars 3 forks source link

feature autocomplete query #14

Closed alkalait closed 4 months ago

alkalait commented 4 months ago
  1. autocomplete_query(...) func in earthtext.osm.autocomplete_query
  2. notebook of the same name

This feature is required to autocomplete a user's query.

Why is this necessary? Generally, a user's query, e.g. "residential areas without water" is not a complete specification of the OSM state of a chip. In the above example the user does not specify the presence of highways among other things. The user's specified constraints involve only the presence of residential areas and the lack of water bodies (the latter being a negative constraint). Therefore, in order to have a fully specified "reference" for a similarity search, we need to look for all known OSM vectors in the training set that satisfy the user's constraints.