Commit be40a51c authored by Decoupes Remy's avatar Decoupes Remy
Browse files

start designing TF-IDF by subregion using ES metrics

parent 06c85d23
......@@ -4,4 +4,5 @@
# external sources
empres-i-overview-raw-data_202202082233.csv
oie_wahis_HPAI.xlsx
oie_wahis_HPAI_LPAI_France.xlsx
\ No newline at end of file
oie_wahis_HPAI_LPAI_France.xlsx
/external_sources/wind-global.nc
"""
@brief: Download metric from Elasticsearch to easily compute TF-IDF matric
@author: R.Decoupes
@copyright: CeCILL-B
Download metric from Elasticsearch to easily compute TF-IDF matric
"""
from elasticsearch import Elasticsearch
from jinja2 import FileSystemLoader, Environment
import os
if __name__ == '__main__':
es_url = "http://mo-mood-tetis-tweets-collect.montpellier.irstea.priv:9200/"
client_es = Elasticsearch(es_url)
index_es = "mood-tetis-tweets-collect"
# init jinja2 configuration
template_dir = os.path.join(os.path.dirname(__file__), "eda_templates")
jinja_env = Environment(loader=FileSystemLoader(template_dir))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment