-
Notifications
You must be signed in to change notification settings - Fork 1
/
braindump.conf
77 lines (59 loc) · 2.5 KB
/
braindump.conf
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
########## Conventions. Do not recommend to change. ###########
# Set the utility files dir
export UTIL_DIR="$HOME/local/braindump"
# Report folder: use current
export REPORT_DIR="$WORKING_DIR/experiment-reports"
########## User-specified configurations ###########
# Directories
export APP_HOME=$WORKING_DIR
# Specify deepdive out directory ($DEEPDIVE_HOME/out)
export DD_OUTPUT_DIR=$DEEPDIVE_HOME/out
# Database Configuration
export DBNAME=deepdive_founder
export PGUSER=${PGUSER:-`whoami`}
export PGPASSWORD=${PGPASSWORD:-}
export PGPORT=${PGPORT:-5432}
export PGHOST=${PGHOST:-localhost}
# Specify all feature tables.
# e.g. FEATURE_TABLES=(f1 f2 f3)
export FEATURE_TABLES=(is_founder_features)
export FEATURE_COLUMNS=(feature)
# Specify all variable tables
export VARIABLE_TABLES=(is_founder)
export VARIABLE_COLUMNS=(is_true)
# Assume that in DeepDive, inference result tables will be named as [VARIABLE_TABLE]_[VARIABLE_COLUMN]_inference
# If the variable is a mention, specify the words / description for the mention.
# This is used for a statistics with naive entity linking. If empty, do not count deduplicated mentions.
# e.g. export VARIABLE_WORDS_COLUMNS=(w1 "" w3)
# In the examples above, the second element is left empty
export VARIABLE_WORDS_COLUMNS=(description)
# Set variable docid columns to count distinct documents that have extractions
# export VARIABLE_DOCID_COLUMNS=()
# Code configs to save
export CODE_CONFIG=
# Number of samples
export NUM_SAMPLED_FEATURES=100
export NUM_SAMPLED_SUPERVISION=500
export NUM_SAMPLED_RESULT=1000
export NUM_TOP_ENTITIES=50
# Specify some tables for statistics
export SENTENCE_TABLE=sentences
export SENTENCE_TABLE_DOC_ID_COLUMN=document_id
# Define how to send result. use "true" to activate.
export SEND_RESULT_WITH_GIT=false
# If true, push after commiting the report
export SEND_RESULT_WITH_GIT_PUSH=false
export SEND_RESULT_WITH_EMAIL=false
######## CUSTOM SCRIPTS ###########
# Leave blank for default stats report.
# Set to a location of a script (e.g. $APP_HOME/your_script) to use it instead of default
# Self-defined scripts for stats.
export STATS_SCRIPT=
export SUPERVISION_SAMPLE_SCRIPT=
export INFERENCE_SAMPLE_SCRIPT="$APP_HOME/bdconfigs/sample-inference.sh"
########## Conventions. Do not recommend to change. ###########
# Hack: use the last DD run as output dir
# Suppose out/ is under $DEEPDIVE_HOME/
# You may need to manually change it based on need
export DD_TIMESTAMP=`ls -t $DD_OUTPUT_DIR/ | head -n 1`
export DD_THIS_OUTPUT_DIR=$DD_OUTPUT_DIR/$DD_TIMESTAMP