1 | package felix.parser; |
2 | |
3 | import org.kohsuke.args4j.Option; |
4 | |
5 | /** |
6 | * Class that contains Felix-specific command line options. |
7 | * @author Ce Zhang |
8 | * |
9 | */ |
10 | public class FelixCommandOptions extends tuffy.parse.CommandOptions{ |
11 | |
12 | @Option(name="-useEvid", usage="Load evidence file before parsing operators.") |
13 | public boolean useEvid = false; |
14 | |
15 | //@Option(name="-dParts", usage="Number of data partitions.") |
16 | //public int degreeOfPartition = 1; |
17 | |
18 | //@Option(name="-nCores", usage="Number of CPU cores.") |
19 | //public int nCores = 1; |
20 | |
21 | @Option(name="-spTuffy", usage="Statistically decompose Tuffy Operator.") |
22 | public boolean decomposeTuffy = false; |
23 | |
24 | @Option(name="-explain", usage="Explain mode of Felix.") |
25 | public boolean explainMode = false; |
26 | |
27 | @Option(name="-allRuleAsMLN", usage="Close the Felix compilier.") |
28 | public boolean allRuleAsMLN = false; |
29 | |
30 | @Option(name="-dd", usage="Decompose the rules aggressively in the sense that each predicate can have an LR component.") |
31 | public boolean useDualDecomposition = false; |
32 | |
33 | |
34 | @Option(name="-noCRF", usage="Do not use CRF operator.") |
35 | public boolean noCRF = false; |
36 | |
37 | @Option(name="-noCOREF", usage="Do not use COREF operator.") |
38 | public boolean noCOREF = false; |
39 | |
40 | @Option(name="-noLR", usage="Do not use LR operator.") |
41 | public boolean noLR = false; |
42 | |
43 | @Option(name="-allView", usage="Do not use LR operator.") |
44 | public boolean allView = false; |
45 | |
46 | @Option(name="-allMat", usage="Do not use LR operator.") |
47 | public boolean allMat = false; |
48 | |
49 | |
50 | |
51 | |
52 | |
53 | @Option(name="-local", usage="Connect to local hadoop.") |
54 | public boolean local = false; |
55 | |
56 | @Option(name="-auxSchema", usage="Schema used for saving hadoop views.") |
57 | public String auxSchema = null; |
58 | |
59 | @Option(name="-forceExt", usage="Force to run the feature extraction phase!") |
60 | public boolean forceExt = false; |
61 | |
62 | |
63 | |
64 | |
65 | @Option(name="-gp", usage="") |
66 | public boolean isGreenPlum = false; |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | |
73 | @Option(name="-util", usage="Fire certain util model of Felix. {\"dump\" = translate a general database to the format that Felix can read. }") |
74 | public String utilModel = null; |
75 | |
76 | @Option(name="-incRule", usage="Incremental update rule file.") |
77 | public String incRule = null; |
78 | |
79 | @Option(name="-incEvid", usage="Incremental update evidence file.") |
80 | public String incEvid = null; |
81 | |
82 | @Option(name="-gt", usage="Ground truth file.") |
83 | public String gt = null; |
84 | |
85 | } |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | |
93 | |
94 | |