|
a |
|
b/resources/app.conf |
|
|
1 |
## Command line configuration |
|
|
2 |
|
|
|
3 |
# define what applications to provide for the command line application |
|
|
4 |
[cli] |
|
|
5 |
apps = list: ${cli_config_default:apps}, show_config_cli, app |
|
|
6 |
cleanups = list: ${cli_config_default:cleanups} |
|
|
7 |
|
|
|
8 |
# show informative messages for corpus and pretrained embedding |
|
|
9 |
# downloading/access |
|
|
10 |
[log_cli] |
|
|
11 |
loggers = dict: { |
|
|
12 |
'zensols.deepnlp.embed': 'info', |
|
|
13 |
'zensols.install': 'info'} |
|
|
14 |
|
|
|
15 |
# load defaults needed to set up the CLI |
|
|
16 |
[import] |
|
|
17 |
config_files = list: |
|
|
18 |
resource(zensols.util): resources/cli.conf, |
|
|
19 |
resource(zensols.util): resources/cli-config.conf, |
|
|
20 |
resource(zensols.util): resources/default.conf |
|
|
21 |
|
|
|
22 |
# configuration files are optional |
|
|
23 |
[config_cli] |
|
|
24 |
expect = False |
|
|
25 |
|
|
|
26 |
[config_import] |
|
|
27 |
references = list: package |
|
|
28 |
|
|
|
29 |
# import overrides, resource libraries, and configuration for the application |
|
|
30 |
[config_imp] |
|
|
31 |
type = import |
|
|
32 |
config_files = list: |
|
|
33 |
^{override}, ^{config_path}, |
|
|
34 |
resource(zensols.util): resources/default.conf, |
|
|
35 |
resource(zensols.mednlp): resources/default.conf, |
|
|
36 |
^{override}, ^{config_path}, |
|
|
37 |
resource(zensols.nlp): resources/obj.conf, |
|
|
38 |
resource(zensols.nlp): resources/mapper.conf, |
|
|
39 |
resource(zensols.mednlp): resources/obj.conf, |
|
|
40 |
^{override}, ^{config_path} |
|
|
41 |
|
|
|
42 |
[app] |
|
|
43 |
class_name = zensols.mednlp.Application |
|
|
44 |
doc_parser = alias: mednlp_default:doc_parser |
|
|
45 |
library = instance: mednlp_library |
|
|
46 |
|
|
|
47 |
[app_decorator] |
|
|
48 |
mnemonic_excludes = set: write |
|
|
49 |
mnemonic_overrides = dict: { |
|
|
50 |
'show_config': 'conf'} |
|
|
51 |
option_excludes = set: doc_parser, config_factory, library |
|
|
52 |
option_overrides = dict: { |
|
|
53 |
'input_dir': {'long_name': 'input', |
|
|
54 |
'short_name': 'i', 'metavar': 'DIR'}, |
|
|
55 |
'only_medical': {'long_name': 'medonly', 'short_name': 'm'}, |
|
|
56 |
'text_or_file': {'long_name': 'language', 'metavar': '<STRING|FILE>'}} |