Index: trunk/WikiWord/WikiWordBuilder/src/main/java/de/brightbyte/wikiword/builder/BuildProximity.java |
— | — | @@ -19,10 +19,13 @@ |
20 | 20 | public BuildProximity() { |
21 | 21 | super("BuildProximity", true, true); |
22 | 22 | } |
23 | | - |
| 23 | + |
24 | 24 | @Override |
25 | 25 | protected void declareOptions() { |
26 | 26 | super.declareOptions(); |
| 27 | + |
| 28 | + args.declareHelp("<wiki>", null); //FIXME: remove! |
| 29 | + args.declare("features-only", null, false, Boolean.class, "build feature vectors, but do not calculate proximity values."); |
27 | 30 | } |
28 | 31 | |
29 | 32 | //protected WikiWordConceptStoreBuilder<?> conceptStore; |
— | — | @@ -40,12 +43,14 @@ |
41 | 44 | section("-- build features --------------------------------------------------"); |
42 | 45 | this.proximityStore.buildFeatures(); |
43 | 46 | |
44 | | - section("-- build base proximity --------------------------------------------------"); |
45 | | - this.proximityStore.buildBaseProximity(); |
46 | | - |
47 | | - section("-- build extended proximity --------------------------------------------------"); |
48 | | - this.proximityStore.buildExtendedProximity(); |
49 | | - |
| 47 | + if (!args.isSet("features-only")) { |
| 48 | + section("-- build base proximity --------------------------------------------------"); |
| 49 | + this.proximityStore.buildBaseProximity(); |
| 50 | + |
| 51 | + section("-- build extended proximity --------------------------------------------------"); |
| 52 | + this.proximityStore.buildExtendedProximity(); |
| 53 | + } |
| 54 | + |
50 | 55 | section("-- statistics --------------------------------------------------"); |
51 | 56 | conceptStore.getProximityStoreBuilder().dumpTableStats(out); |
52 | 57 | } |