https://github.com/addok/addok-geozones
Helpers to run a Geozones dedicated Addok instance.
https://github.com/addok/addok-geozones
Last synced: 8 months ago
JSON representation
Helpers to run a Geozones dedicated Addok instance.
- Host: GitHub
- URL: https://github.com/addok/addok-geozones
- Owner: addok
- License: mit
- Created: 2016-05-30T10:05:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-05-13T08:34:26.000Z (about 7 years ago)
- Last Synced: 2025-03-23T22:42:19.368Z (about 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Addok-geozones
Helpers to run a Geozones dedicated Addok instance.
## Install
If you are using macOS and geos installed via homebrew,
start by installing Shapely with:
pip install Shapely==1.5.17 --no-binary :all:
Install addok, addok-trigrams and addok-geozones (this repository):
pip install addok
pip install addok-trigrams
pip install git+https://github.com/addok/addok-geozones
Copy the sample local config:
cp local.py.sample somewhere/local.py
It should work as is, but you can have a look at the
[addok configuration](http://addok.readthedocs.io/en/latest/config/)
to adapt it to your needs.
This plugin adds two configuration keys that needs more consideration:
- GEOZONES_LEVELS will define which levels are imported
- GEOZONES_MAX_IMPORTANCE help computing the importance of the
documents
## Importing
Get the zones from https://www.data.gouv.fr/fr/datasets/geozones/
Then:
addok batch path/to/zones.msgpack --config=local.py