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 | ///////////////////////////////// |
25 | @Option(name="-explain", usage="Explain mode of Felix.") |
26 | public boolean explainMode = false; |
27 | |
28 | @Option(name="-allRuleAsMLN", usage="Close the Felix compilier.") |
29 | public boolean allRuleAsMLN = false; |
30 | |
31 | ///////////////////////////////// |
32 | @Option(name="-dd", usage="Decompose the rules aggressively in the sense that each predicate can have an LR component.") |
33 | public boolean useDualDecomposition = false; |
34 | |
35 | |
36 | @Option(name="-noCRF", usage="Do not use CRF operator.") |
37 | public boolean noCRF = false; |
38 | |
39 | @Option(name="-noCOREF", usage="Do not use COREF operator.") |
40 | public boolean noCOREF = false; |
41 | |
42 | @Option(name="-noLR", usage="Do not use LR operator.") |
43 | public boolean noLR = false; |
44 | |
45 | @Option(name="-allView", usage="Do not use LR operator.") |
46 | public boolean allView = false; |
47 | |
48 | @Option(name="-allMat", usage="Do not use LR operator.") |
49 | public boolean allMat = false; |
50 | |
51 | |
52 | |
53 | |
54 | ///////////////////////////////// |
55 | @Option(name="-local", usage="Connect to local hadoop.") |
56 | public boolean local = false; |
57 | |
58 | ///////////////////////////////// |
59 | @Option(name="-auxSchema", usage="Schema used for saving hadoop views.") |
60 | public String auxSchema = null; |
61 | |
62 | @Option(name="-forceExt", usage="Force to run the feature extraction phase!") |
63 | public boolean forceExt = false; |
64 | |
65 | |
66 | |
67 | ///////////////////////////////// |
68 | @Option(name="-gp", usage="") |
69 | public boolean isGreenPlum = false; |
70 | |
71 | |
72 | |
73 | |
74 | |
75 | |
76 | @Option(name="-util", usage="Fire certain util model of Felix. {\"dump\" = translate a general database to the format that Felix can read. }") |
77 | public String utilModel = null; |
78 | |
79 | @Option(name="-incRule", usage="Incremental update rule file.") |
80 | public String incRule = null; |
81 | |
82 | @Option(name="-incEvid", usage="Incremental update evidence file.") |
83 | public String incEvid = null; |
84 | |
85 | @Option(name="-gt", usage="Ground truth file.") |
86 | public String gt = null; |
87 | |
88 | |
89 | |
90 | /////////////////////////////////////// |
91 | @Option(name="-nReduce", usage="Number of REDUCER.") |
92 | public int nReduce = 30; |
93 | |
94 | /////////////////////////////////////// |
95 | @Option(name="-nDD", usage="Number of Dual Decomposition Iteration.") |
96 | public int nDD = 1; |
97 | |
98 | ///////////////////////////////////////// |
99 | @Option(name="-hdfs", usage="Address of HDFS.") |
100 | public String hdfs = "hdfs://d-02.cs.wisc.edu:9000/"; |
101 | |
102 | //////////////////////////////////////// |
103 | @Option(name="-mapreduce", usage="Address of MAPREDUCE.") |
104 | public String mapreduce = "hdfs://d-02.cs.wisc.edu:9001/"; |
105 | |
106 | } |
107 | |
108 | |
109 | |
110 | |
111 | |
112 | |
113 | |
114 | |
115 | |