/* * /// (non-Javadoc) * * /// @see edu.cmu.sphinx.util.props.Configurable#newProperties(edu.cmu.sphinx.util.props.PropertySheet) */ public void NewProperties(PropertySheet ps) { cm = ConfigurationManagerUtils.GetPropertyManager(ps); skip = ps.GetInt(PROP_SKIP); utteranceId = ps.GetInt(PROP_COUNT); if (utteranceId <= 0) { utteranceId = Integer.MAX_VALUE; } whichBatch = ps.GetInt(PROP_WHICH_BATCH); totalBatches = ps.GetInt(PROP_TOTAL_BATCHES); usePooledBatchManager = ps.GetBoolean(PROP_USE_POOLED_BATCH_MANAGER); recognizer = (Recognizer)ps.GetComponent(PROP_RECOGNIZER); inputDataProcessors = ps.GetComponentList <IDataProcessor>(PROP_INPUT_DATA_PROCESSORS); }
public void NewProperties(PropertySheet ps) { //logger = ps.getLogger(); _cm = ConfigurationManagerUtils.GetPropertyManager(ps); _showConfig = ps.GetBoolean(PropShowConfig); _showHtml = ps.GetBoolean(PropShowConfigAsHtml); _showGdl = ps.GetBoolean(PropShowConfigAsGdl); _saveXML = ps.GetBoolean(PropSaveConfigAsXML); if (ps.GetString(PropOutfile) != null) { var outFile = new FileInfo(ps.GetString(PropOutfile)); if (outFile.Directory != null && outFile.Directory.Exists) { //TODO: Check Behaviour _htmlPath = outFile.FullName; _gdlPath = outFile.FullName; _xmlPath = outFile.FullName; } } }