Switch to unified view

a b/example/cui2vec/cui2vec.conf
1
## application context configuration imported by example app
2
## see https://plandes.github.io/util/doc/config.html#application-context
3
[default]
4
# root directory given by the application, which is this directory
5
root_dir = ${appenv:root_dir}/..
6
# the directory to hold the cached UMLS data
7
cache_dir = ${root_dir}/cache
8
9
# tell the CLI API to load the logging config
10
[cli]
11
apps = list: log_cli, app
12
13
# configure the logging system
14
[log_cli]
15
class_name = zensols.cli.LogConfigurator
16
format = ${program:name}: %%(message)s
17
log_name = ${program:name}
18
level = debug
19
20
[import]
21
# refer to sections for which we need substitution in this file
22
references = list: uts, default
23
sections = list: imp_uts_key, imp_conf
24
25
# import the UTS resource library
26
[imp_conf]
27
type = import
28
config_files = list:
29
    resource(zensols.mednlp): resources/uts.conf,
30
    resource(zensols.mednlp): resources/cui2vec.yml
31
32
# import UTS key for access
33
[imp_uts_key]
34
type = json
35
default_section = uts
36
config_file = ${default:root_dir}/uts-key.json
37
38
# UTS (UMLS access)
39
[uts]
40
cache_file = ${default:cache_dir}/uts-request.dat
41
42
# indicate what class to use as the application (methods are action)
43
[app]
44
class_name = ${program:name}.Application
45
uts_client = instance: uts_client
46
cui2vec_embedding = instance: cui2vec_500_embedding