|
a |
|
b/example/ctakes/ctakes.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 |
[import] |
|
|
10 |
# refer to sections for which we need substitution in this file |
|
|
11 |
references = list: default, ctakes, uts |
|
|
12 |
sections = list: imp_env, imp_uts_key, imp_conf |
|
|
13 |
|
|
|
14 |
# expose the user HOME environment variable |
|
|
15 |
[imp_env] |
|
|
16 |
type = environment |
|
|
17 |
section_name = env |
|
|
18 |
includes = set: HOME |
|
|
19 |
|
|
|
20 |
# import the Zensols NLP UTS resource library |
|
|
21 |
[imp_conf] |
|
|
22 |
type = importini |
|
|
23 |
config_files = list: |
|
|
24 |
resource(zensols.mednlp): resources/uts.conf, |
|
|
25 |
resource(zensols.mednlp): resources/ctakes.conf |
|
|
26 |
|
|
|
27 |
# import UTS key for access |
|
|
28 |
[imp_uts_key] |
|
|
29 |
type = json |
|
|
30 |
default_section = uts |
|
|
31 |
config_file = ${default:root_dir}/uts-key.json |
|
|
32 |
|
|
|
33 |
# UTS (UMLS access) |
|
|
34 |
[uts] |
|
|
35 |
cache_file = ${default:cache_dir}/uts-request.dat |
|
|
36 |
|
|
|
37 |
# indicate where Apache cTAKES is installed |
|
|
38 |
[ctakes] |
|
|
39 |
home = ${env:home}/opt/app/ctakes-4.0.0.1 |
|
|
40 |
source_dir = ${default:cache_dir}/ctakes/source |
|
|
41 |
|
|
|
42 |
# indicate what class to use as the application (methods are action) |
|
|
43 |
[app] |
|
|
44 |
class_name = ${program:name}.Application |
|
|
45 |
ctakes_stash = instance: ctakes_parser_stash |