@Override public void init(String configPrefix) throws MaryConfigurationException {
  try {
    String sCostFileName=MaryProperties.needFilename(configPrefix + ".sCostFile");
    sCostWeight=Float.parseFloat(MaryProperties.getProperty(configPrefix + ".sCostWeight","1.0"));
    sCostReader=new SCostFileReader(sCostFileName);
  }
 catch (  Exception e) {
    throw new MaryConfigurationException("Cannot initialise scost model",e);
  }
}

@ Override public void init ( String configPrefix ) throws MaryConfigurationException { try { String sCostFileName = MaryProperties . needFilename ( configPrefix + ".sCostFile" ) ; sCostWeight = Float . parseFloat ( MaryProperties . getProperty ( configPrefix + ".sCostWeight" , "1.0" ) ) ; sCostReader = new SCostFileReader ( sCostFileName ) ; } catch ( Exception e ) { throw new MaryConfigurationException ( "Cannot initialise scost model" , e ) ; } }
initialise this scost function by reading the appropriate settings from the maryproperties using the given configprefix .
