diff --git a/examples/net_framework/CSharpExamples/DeepSpeechClient/DeepSpeech.cs b/examples/net_framework/CSharpExamples/DeepSpeechClient/DeepSpeech.cs
index 672c3798..95980dbf 100644
--- a/examples/net_framework/CSharpExamples/DeepSpeechClient/DeepSpeech.cs
+++ b/examples/net_framework/CSharpExamples/DeepSpeechClient/DeepSpeech.cs
@@ -84,12 +84,12 @@ namespace DeepSpeechClient
/// The path to the configuration file specifying the alphabet used by the network.
/// The path to the language model binary file.
/// The path to the trie file build from the same vocabulary as the language model binary.
- /// The weight to give to the language model results when scoring.
- /// The weight (bonus) to give to beams when adding a new valid word to the decoding.
+ /// The alpha hyperparameter of the CTC decoder. Language Model weight.
+ /// The beta hyperparameter of the CTC decoder. Word insertion weight.
/// Zero on success, non-zero on failure (invalid arguments).
public unsafe int EnableDecoderWithLM(string aAlphabetConfigPath,
string aLMPath, string aTriePath,
- float aLMWeight, float aValidWordCountWeight)
+ float aLMAlpha, float aLMBeta)
{
string exceptionMessage = null;
if (string.IsNullOrWhiteSpace(aTriePath))
@@ -110,8 +110,8 @@ namespace DeepSpeechClient
aAlphabetConfigPath,
aLMPath,
aTriePath,
- aLMWeight,
- aValidWordCountWeight);
+ aLMAlpha,
+ aLMBeta);
}
///
diff --git a/examples/net_framework/CSharpExamples/DeepSpeechClient/Interfaces/IDeepSpeech.cs b/examples/net_framework/CSharpExamples/DeepSpeechClient/Interfaces/IDeepSpeech.cs
index e1bf3925..ff76849c 100644
--- a/examples/net_framework/CSharpExamples/DeepSpeechClient/Interfaces/IDeepSpeech.cs
+++ b/examples/net_framework/CSharpExamples/DeepSpeechClient/Interfaces/IDeepSpeech.cs
@@ -12,8 +12,8 @@
unsafe int EnableDecoderWithLM(string aAlphabetConfigPath,
string aLMPath,
string aTriePath,
- float aLMWeight,
- float aValidWordCountWeight);
+ float aLMAlpha,
+ float aLMBeta);
unsafe string SpeechToText(short[] aBuffer,
uint aBufferSize,
diff --git a/examples/net_framework/CSharpExamples/DeepSpeechClient/NativeImp.cs b/examples/net_framework/CSharpExamples/DeepSpeechClient/NativeImp.cs
index 98bd5a43..62e2308d 100644
--- a/examples/net_framework/CSharpExamples/DeepSpeechClient/NativeImp.cs
+++ b/examples/net_framework/CSharpExamples/DeepSpeechClient/NativeImp.cs
@@ -25,8 +25,8 @@ namespace DeepSpeechClient
string aAlphabetConfigPath,
string aLMPath,
string aTriePath,
- float aLMWeight,
- float aValidWordCountWeight);
+ float aLMAlpha,
+ float aLMBeta);
[DllImport("libdeepspeech.so", CallingConvention = CallingConvention.Cdecl,
CharSet = CharSet.Ansi, SetLastError = true)]
diff --git a/native_client/deepspeech.cc b/native_client/deepspeech.cc
index 99b68841..978571e6 100644
--- a/native_client/deepspeech.cc
+++ b/native_client/deepspeech.cc
@@ -609,11 +609,11 @@ DS_EnableDecoderWithLM(ModelState* aCtx,
const char* aAlphabetConfigPath,
const char* aLMPath,
const char* aTriePath,
- float aLMWeight,
- float aValidWordCountWeight)
+ float aLMAlpha,
+ float aLMBeta)
{
try {
- aCtx->scorer = new Scorer(aLMWeight, aValidWordCountWeight,
+ aCtx->scorer = new Scorer(aLMAlpha, aLMBeta,
aLMPath ? aLMPath : "",
aTriePath ? aTriePath : "",
*aCtx->alphabet);
diff --git a/native_client/deepspeech.h b/native_client/deepspeech.h
index 6a70fecf..cdee07ac 100644
--- a/native_client/deepspeech.h
+++ b/native_client/deepspeech.h
@@ -57,10 +57,10 @@ void DS_DestroyModel(ModelState* ctx);
* @param aLMPath The path to the language model binary file.
* @param aTriePath The path to the trie file build from the same vocabu-
* lary as the language model binary.
- * @param aLMWeight The weight to give to language model results when sco-
- * ring.
- * @param aValidWordCountWeight The weight (bonus) to give to beams when
- * adding a new valid word to the decoding.
+ * @param aLMAlpha The alpha hyperparameter of the CTC decoder. Language Model
+ weight.
+ * @param aLMBeta The beta hyperparameter of the CTC decoder. Word insertion
+ weight.
*
* @return Zero on success, non-zero on failure (invalid arguments).
*/
@@ -69,8 +69,8 @@ int DS_EnableDecoderWithLM(ModelState* aCtx,
const char* aAlphabetConfigPath,
const char* aLMPath,
const char* aTriePath,
- float aLMWeight,
- float aValidWordCountWeight);
+ float aLMAlpha,
+ float aLMBeta);
/**
* @brief Use the DeepSpeech model to perform Speech-To-Text.