Changeset 1648
- Timestamp:
- 12/09/11 15:50:00 (12 years ago)
- Location:
- SMC/trunk/SMC/src/eu/clarin/cmdi
- Files:
-
- 1 deleted
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
SMC/trunk/SMC/src/eu/clarin/cmdi/smc/SMC.java
r1620 r1648 50 50 SMC smc = new SMC(); 51 51 smc.init(); 52 /*53 *InputStream is = smc.listTermsets("");52 53 InputStream is = smc.listTermsets(""); 54 54 String output_path = Utils.getConfig("cache.dir") + smc.getParam("data_key") + "_.xml" ; 55 55 File f = Utils.write2File(output_path, is); 56 56 log.debug("result stored in: " + f.getAbsolutePath()); 57 */ 57 58 58 } 59 59 … … 64 64 try { 65 65 Utils.loadConfig("smc", configPath, this.getClass().getClassLoader()); 66 66 67 //config = new PropertiesConfiguration("smc.properties"); 67 68 } catch (Exception e) { … … 80 81 //is = Utils.load2Stream(config.getString("termsets.config.file")); 81 82 83 82 84 MDTransformer transformer = new MDTransformer(); 83 85 //transformer.configure(config, this.getClass().getClassLoader()); … … 86 88 //transformer.setSrcFile(Utils.getConfig("termsets.config.file")); 87 89 addParam("data_key", "dcr-cmd-map"); 88 89 transformer.setParams(getParams()); 90 90 91 // this is necessary for the transformer (in MDUTILS-library) to search for the resources (config and xsls) in the correct context) 92 transformer.configure(Utils.getConfig(), this.getClass().getClassLoader()); 93 94 transformer.setParams(getParams()); 91 95 transformer.setTranskey("init"); 92 96 // here the transformation is invoked … … 207 211 208 212 /** 209 * map from sou ce term to target-terms213 * map from source term to target-terms 210 214 * @param term 211 215 * @return
Note: See TracChangeset
for help on using the changeset viewer.