nazca/data/__init__.py
author Simon Chabot <simon.chabot@logilab.fr>
Tue, 01 Oct 2019 09:16:34 +0200
changeset 563 4f3bb5215616
parent 539 7cd2b9a4d60c
permissions -rw-r--r--
[data] Make sure the french_lemmas file is closed

# -*- coding: utf-8 -*-
""" Data for Nazca
"""
import os.path as osp

HERE = osp.join(osp.abspath(osp.dirname(__file__)))
with open(osp.join(HERE, "french_lemmas.txt")) as fobj:
    FRENCH_LEMMAS = dict(t.strip().split('\t') for t in fobj)