-
Notifications
You must be signed in to change notification settings - Fork 1
/
service.ini
executable file
·79 lines (57 loc) · 1.85 KB
/
service.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
74
75
76
77
78
79
[app:main]
use = egg:nlpservice
pyramid.reload_templates = true
pyramid.debug_authorization = false
pyramid.debug_notfound = false
pyramid.debug_routematch = false
pyramid.debug_templates = true
pyramid.default_locale_name = en
nlp.tf_model_cache_path = ./model_cache
# save downloaded corpus text to this file;
# Used by both defined classifiers when retraining
nlp.kg_corpus = %(here)s/data/corpus.txt
# default index with content, used to retrain the classifier models
nlp.kg_elastic = http://localhost:9200/content
# classifier using a fasttext built model
nlp.classifier.kg-fasttext = nlpservice.nlp.classify.kg_classifier_fasttext
nlp.kg_ft_classify_model_path = %(here)s/data/labeled-corpus-test.bin
# classifier using Keras
nlp.classifier.kg-keras = nlpservice.nlp.classify.kg_classifier_keras
nlp.kg_model_path = %(here)s/data/k-model.hdf
# generic corpus derived word embeddings
# used by the Keras classifier
nlp.kg_kv_path = %(here)s/data/corpus-ft
# needed to build the labels
nlp.kg_url = http://localhost:8880/api/knowledge-graph/dump_all/
; nlp.kg_model_path = /app/nlpservice/tests/fixtures/k-model.hdf
; nlp.kg_ft_path = /app/nlpservice/tests/fixtures/corpus-ft
; nlp.kg_url = http://nginx/api/knowledge-graph/dump_all/
# key vector model
nlp.keyedvectors.corpus-ft = nlpservice.nlp.fasttext.corpus_kv_settings
nlp.cache = %(here)s/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