-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdist
executable file
·32 lines (27 loc) · 916 Bytes
/
dist
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
#!/usr/bin/env python
from zensols import deepnlp
# initialize the NLP system
deepnlp.init()
# command line entry point
if (__name__ == '__main__'):
from zensols.cli import CliHarness
overrides = {0: '',
1: '--override mimicsid_default.model_type=header',
}[1]
args = {0: 'proto -c config/glove300.conf',
1: 'batch --ctype batch',
2: 'info -i batch',
3: 'info -i config',
4: 'debug',
5: 'repredict',
}[0]
harness = CliHarness(
src_dir_name='src/python',
app_factory_class='zensols.mimicsid.cli.ApplicationFactory',
app_config_resource='dist-resources/app.conf',
# prototyping arguments
proto_args=args + ' ' + overrides,
proto_factory_kwargs={
'reload_pattern': r'^zensols.mimicsid.(?!domain)'},
)
result = harness.run()