Skip to content

Helpers to run a Geozones dedicated Addok instance.

License

Notifications You must be signed in to change notification settings

addok/addok-geozones

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 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

About

Helpers to run a Geozones dedicated Addok instance.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages