Merge pull request #2644 from lissyx/android-binding-typo
Fix DS_EnableDecoderWithLM typo in Android bindings
This commit is contained in:
		
						commit
						1752d6d03f
					
				| @ -130,7 +130,7 @@ public class BasicTest { | |||||||
|     @Test |     @Test | ||||||
|     public void loadDeepSpeech_stt_withLM() { |     public void loadDeepSpeech_stt_withLM() { | ||||||
|         DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH); |         DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH); | ||||||
|         m.enableDecoderWihLM(lmFile, trieFile, LM_ALPHA, LM_BETA); |         m.enableDecoderWithLM(lmFile, trieFile, LM_ALPHA, LM_BETA); | ||||||
| 
 | 
 | ||||||
|         String decoded = doSTT(m, false); |         String decoded = doSTT(m, false); | ||||||
|         assertEquals("she had your dark suit in greasy wash water all year", decoded); |         assertEquals("she had your dark suit in greasy wash water all year", decoded); | ||||||
| @ -149,7 +149,7 @@ public class BasicTest { | |||||||
|     @Test |     @Test | ||||||
|     public void loadDeepSpeech_sttWithMetadata_withLM() { |     public void loadDeepSpeech_sttWithMetadata_withLM() { | ||||||
|         DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH); |         DeepSpeechModel m = new DeepSpeechModel(modelFile, BEAM_WIDTH); | ||||||
|         m.enableDecoderWihLM(lmFile, trieFile, LM_ALPHA, LM_BETA); |         m.enableDecoderWithLM(lmFile, trieFile, LM_ALPHA, LM_BETA); | ||||||
| 
 | 
 | ||||||
|         String decoded = doSTT(m, true); |         String decoded = doSTT(m, true); | ||||||
|         assertEquals("she had your dark suit in greasy wash water all year", decoded); |         assertEquals("she had your dark suit in greasy wash water all year", decoded); | ||||||
|  | |||||||
| @ -56,7 +56,7 @@ public class DeepSpeechModel { | |||||||
|     * |     * | ||||||
|     * @return Zero on success, non-zero on failure (invalid arguments). |     * @return Zero on success, non-zero on failure (invalid arguments). | ||||||
|     */ |     */ | ||||||
|     public void enableDecoderWihLM(String lm, String trie, float lm_alpha, float lm_beta) { |     public void enableDecoderWithLM(String lm, String trie, float lm_alpha, float lm_beta) { | ||||||
|         impl.EnableDecoderWithLM(this._msp, lm, trie, lm_alpha, lm_beta); |         impl.EnableDecoderWithLM(this._msp, lm, trie, lm_alpha, lm_beta); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user