@Override public void init(String configPrefix) throws MaryConfigurationException {
  String joinFileName=MaryProperties.needFilename(configPrefix + ".joinCostFile");
  String precomputedJoinCostFileName=MaryProperties.getFilename(configPrefix + ".precomputedJoinCostFile");
  float wSignal=Float.parseFloat(MaryProperties.getProperty(configPrefix + ".joincostfunction.wSignal","1.0"));
  try {
    InputStream joinWeightStream=MaryProperties.getStream(configPrefix + ".joinCostWeights");
    load(joinFileName,joinWeightStream,precomputedJoinCostFileName,wSignal);
  }
 catch (  IOException ioe) {
    throw new MaryConfigurationException("Problem loading join file " + joinFileName,ioe);
  }
}

@ Override public void init ( String configPrefix ) throws MaryConfigurationException { String joinFileName = MaryProperties . needFilename ( configPrefix + ".joinCostFile" ) ; String precomputedJoinCostFileName = MaryProperties . getFilename ( configPrefix + ".precomputedJoinCostFile" ) ; float wSignal = Float . parseFloat ( MaryProperties . getProperty ( configPrefix + ".joincostfunction.wSignal" , "1.0" ) ) ; try { InputStream joinWeightStream = MaryProperties . getStream ( configPrefix + ".joinCostWeights" ) ; load ( joinFileName , joinWeightStream , precomputedJoinCostFileName , wSignal ) ; } catch ( IOException ioe ) { throw new MaryConfigurationException ( "Problem loading join file " + joinFileName , ioe ) ; } }
initialise this join cost function by reading the appropriate settings from the maryproperties using the given configprefix .
