# Location based document tagging

**URL:** <https://discourse.ossbase.org/t/location-based-document-tagging/1055>\
**Category:** hackathon.lu\
**Tags:** ail-project, hackathon-2026\
**Created:** [April 14, 2026, 2:20pm UTC](https://discourse.ossbase.org/t/location-based-document-tagging/1055 "2026-04-14T14:20:13Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![adulau](https://discourse.ossbase.org/user_avatar/discourse.ossbase.org/adulau/32/6_2.png) [@adulau](https://discourse.ossbase.org/u/adulau)\
**Post date:** [April 14, 2026, 4:43pm UTC](https://discourse.ossbase.org/t/location-based-document-tagging/1055/3 "2026-04-14T16:43:48Z")

</div>

Work in progress repository:

> **[GitHub - ail-project/fastopic: Fastopic is a lightweight topic-classification...](https://github.com/ail-project/fastopic)**
>
> Fastopic is a lightweight topic-classification project that uses Bloom filters to do very fast membership checks on text labels/topics.

```bash
curl -sG --data-urlencode "topic=luxembourg" http://127.0.0.1:5000/api/query | jq 
{
  "results": {
    "combined": true,
    "country/ar": false,
    "country/bn": false,
    "country/de": false,
    "country/en": true,
    "country/es": false,
    "country/fa": false,
    "country/fr": true,
    "country/hi": false,
    "country/id": false,
    "country/it": false,
    "country/ja": false,
    "country/ko": false,
    "country/mr": false,
    "country/pt": false,
    "country/ru": false,
    "country/sw": true,
    "country/ta": false,
    "country/te": false,
    "country/tr": false,
    "country/ur": false,
    "country/vi": true,
    "country/zh": false,
    "location/ar": false,
    "location/bn": false,
    "location/de": false,
    "location/en": false,
    "location/es": false,
    "location/fa": false,
    "location/fr": false,
    "location/hi": false,
    "location/id": false,
    "location/it": false,
    "location/ja": false,
    "location/ko": false,
    "location/mr": false,
    "location/pt": false,
    "location/ru": false,
    "location/sw": false,
    "location/ta": false,
    "location/te": false,
    "location/tr": false,
    "location/ur": false,
    "location/vi": false,
    "location/zh": false
  },
  "topic": "luxembourg"
}

```

and for a full-text

```json
 curl -s -X POST -H "Content-Type: application/json" -d '{"text":"Paris is in France and Paris has cafes. Rue de la... Adress... pobox... addresse avenue bricolage rue rue rue rue belgique luxembourg","top_n":5}' http://127.0.0.1:5000/api/query-text | jq
{
  "analyzed_filters": [
    "combined",
    "country/ar",
    "country/bn",
    "country/de",
    "country/en",
    "country/es",
    "country/fa",
    "country/fr",
    "country/hi",
    "country/id",
    "country/it",
    "country/ja",
    "country/ko",
    "country/mr",
    "country/pt",
    "country/ru",
    "country/sw",
    "country/ta",
    "country/te",
    "country/tr",
    "country/ur",
    "country/vi",
    "country/zh",
    "location/ar",
    "location/bn",
    "location/de",
    "location/en",
    "location/es",
    "location/fa",
    "location/fr",
    "location/hi",
    "location/id",
    "location/it",
    "location/ja",
    "location/ko",
    "location/mr",
    "location/pt",
    "location/ru",
    "location/sw",
    "location/ta",
    "location/te",
    "location/tr",
    "location/ur",
    "location/vi",
    "location/zh"
  ],
  "filter_counts": {
    "combined": 11,
    "country/ar": 0,
    "country/bn": 0,
    "country/de": 0,
    "country/en": 2,
    "country/es": 0,
    "country/fa": 0,
    "country/fr": 3,
    "country/hi": 0,
    "country/id": 0,
    "country/it": 0,
    "country/ja": 0,
    "country/ko": 0,
    "country/mr": 0,
    "country/pt": 0,
    "country/ru": 0,
    "country/sw": 1,
    "country/ta": 0,
    "country/te": 0,
    "country/tr": 0,
    "country/ur": 0,
    "country/vi": 1,
    "country/zh": 0,
    "location/ar": 0,
    "location/bn": 0,
    "location/de": 2,
    "location/en": 2,
    "location/es": 1,
    "location/fa": 0,
    "location/fr": 5,
    "location/hi": 1,
    "location/id": 0,
    "location/it": 1,
    "location/ja": 0,
    "location/ko": 0,
    "location/mr": 0,
    "location/pt": 1,
    "location/ru": 0,
    "location/sw": 0,
    "location/ta": 0,
    "location/te": 0,
    "location/tr": 0,
    "location/ur": 0,
    "location/vi": 0,
    "location/zh": 0
  },
  "filter_ratios": {
    "combined": 0.5,
    "country/ar": 0,
    "country/bn": 0,
    "country/de": 0,
    "country/en": 0.09090909090909091,
    "country/es": 0,
    "country/fa": 0,
    "country/fr": 0.13636363636363635,
    "country/hi": 0,
    "country/id": 0,
    "country/it": 0,
    "country/ja": 0,
    "country/ko": 0,
    "country/mr": 0,
    "country/pt": 0,
    "country/ru": 0,
    "country/sw": 0.045454545454545456,
    "country/ta": 0,
    "country/te": 0,
    "country/tr": 0,
    "country/ur": 0,
    "country/vi": 0.045454545454545456,
    "country/zh": 0,
    "location/ar": 0,
    "location/bn": 0,
    "location/de": 0.09090909090909091,
    "location/en": 0.09090909090909091,
    "location/es": 0.045454545454545456,
    "location/fa": 0,
    "location/fr": 0.22727272727272727,
    "location/hi": 0.045454545454545456,
    "location/id": 0,
    "location/it": 0.045454545454545456,
    "location/ja": 0,
    "location/ko": 0,
    "location/mr": 0,
    "location/pt": 0.045454545454545456,
    "location/ru": 0,
    "location/sw": 0,
    "location/ta": 0,
    "location/te": 0,
    "location/tr": 0,
    "location/ur": 0,
    "location/vi": 0,
    "location/zh": 0
  },
  "text": "Paris is in France and Paris has cafes. Rue de la... Adress... pobox... addresse avenue bricolage rue rue rue rue belgique luxembourg",
  "token_count": 22,
  "top_filters": [
    {
      "count": 11,
      "filter": "combined",
      "matching_words": [
        {
          "count": 5,
          "word": "rue"
        },
        {
          "count": 1,
          "word": "avenue"
        },
        {
          "count": 1,
          "word": "belgique"
        },
        {
          "count": 1,
          "word": "de"
        },
        {
          "count": 1,
          "word": "france"
        },
        {
          "count": 1,
          "word": "in"
        },
        {
          "count": 1,
          "word": "luxembourg"
        }
      ],
      "ratio": 0.5
    },
    {
      "count": 5,
      "filter": "location/fr",
      "matching_words": [
        {
          "count": 5,
          "word": "rue"
        }
      ],
      "ratio": 0.22727272727272727
    },
    {
      "count": 3,
      "filter": "country/fr",
      "matching_words": [
        {
          "count": 1,
          "word": "belgique"
        },
        {
          "count": 1,
          "word": "france"
        },
        {
          "count": 1,
          "word": "luxembourg"
        }
      ],
      "ratio": 0.13636363636363635
    },
    {
      "count": 2,
      "filter": "country/en",
      "matching_words": [
        {
          "count": 1,
          "word": "france"
        },
        {
          "count": 1,
          "word": "luxembourg"
        }
      ],
      "ratio": 0.09090909090909091
    },
    {
      "count": 2,
      "filter": "location/de",
      "matching_words": [
        {
          "count": 1,
          "word": "avenue"
        },
        {
          "count": 1,
          "word": "in"
        }
      ],
      "ratio": 0.09090909090909091
    }
  ],
  "unique_token_count": 17
}

```

---

_[View the full topic](https://discourse.ossbase.org/t/location-based-document-tagging/1055)._
