diff --git a/src/main/java/org/apache/stanbol/enhancer/engines/speechtotext/SphinxConfig.java b/src/main/java/org/apache/stanbol/enhancer/engines/speechtotext/SphinxConfig.java index 11844e8..15fdce8 100644 --- a/src/main/java/org/apache/stanbol/enhancer/engines/speechtotext/SphinxConfig.java +++ b/src/main/java/org/apache/stanbol/enhancer/engines/speechtotext/SphinxConfig.java @@ -63,6 +63,20 @@ public SphinxConfig() { } + /** + * Initializes the configuration by setting the language model, acoustic model, and dictionary model. + * + * @param MPi the ModelProvider used to retrieve the models + * @return true if the models are successfully initialized, false otherwise + * @throws NullPointerException if MPi is null + * @throws ModelNotFoundException if the default models are not found + * + * Example usage: + *
{@code
+ * ModelProvider modelProvider = new ModelProvider();
+ * boolean isInitialized = initConfig(modelProvider);
+ * }
+ */
protected boolean initConfig(ModelProvider MPi) {
this.MPi=MPi;
lmodel=new LanguageModel();