-
Notifications
You must be signed in to change notification settings - Fork 1
/
production.ini
executable file
·73 lines (53 loc) · 1.64 KB
/
production.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
[app:main]
use = egg:nlpservice
pyramid.reload_templates = false
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = false
pyramid.default_locale_name = en
nlp.tf_model_cache_path = /data/model_cache
# save downloaded corpus text to this file;
# Used by both defined classifiers when retraining
nlp.kg_corpus = /data/nlp/corpus.txt
# default index with content, used to retrain the classifier models
nlp.kg_elastic = http://$(ELASTIC_HOST):9200/content
# classifier using a fasttext built model
nlp.classifier.kg-fasttext = nlpservice.nlp.classify.kg_classifier_fasttext
nlp.kg_ft_classify_model_path = /data/nlp/labeled-corpus.bin
# classifier using Keras
nlp.classifier.kg-keras = nlpservice.nlp.classify.kg_classifier_keras
nlp.kg_model_path = /data/nlp/k-model.hdf
# generic corpus derived word embeddings
# used by the Keras classifier
nlp.kg_kv_path = /data/nlp/corpus-ft
# needed to build the labels
nlp.kg_url = http://$(API_HOST)/api/knowledge-graph/dump_all/
nlp.keyedvectors.corpus-ft = nlpservice.nlp.fasttext.corpus_kv_settings
nlp.cache = /data/cache
[server:main]
use = egg:waitress#main
host = 0.0.0.0
port = 6543
# Begin logging configuration
[loggers]
keys = root, NLPService
[handlers]
keys = console
[formatters]
keys = generic
[logger_root]
level = INFO
handlers = console
[logger_NLPService]
level = DEBUG
handlers =
qualname = NLPService
[handler_console]
class = StreamHandler
args = (sys.stderr,)
level = NOTSET
formatter = generic
[formatter_generic]
format = %(asctime)s %(levelname)-5.5s [%(name)s][%(threadName)s] %(message)s
# End logging configuration