GdPicture.NET.14
GdPicture14 Namespace / GdPictureOCR Class / LanguageModelPenaltyNonFreqDictWords Property
Example





LanguageModelPenaltyNonFreqDictWords Property (GdPictureOCR)
Specifies the penalty applied by the engine to all words, that are not listed in the frequent words dictionary (freq_dawg wordlist).

It must be a value within the interval from 0 to 1.

Syntax
'Declaration
 
Public Property LanguageModelPenaltyNonFreqDictWords As Double
 

Property Value

The default value is 0.1F.
Example
How to change the penalty value.
Using gdpictureOCR As GdPictureOCR = New GdPictureOCR()
 
    gdpictureOCR.LanguageModelPenaltyNonFreqDictWords = 0.25F
 
    'You can do your another stuff with gdpictureOCR here.
End Using
Example
How to change the penalty value. Using gdpictureOCR As GdPictureOCR = New GdPictureOCR() gdpictureOCR.LanguageModelPenaltyNonFreqDictWords = 0.25F 'You can do your another stuff with gdpictureOCR here. End Using using (GdPictureOCR gdpictureOCR = new GdPictureOCR()) { gdpictureOCR.LanguageModelPenaltyNonFreqDictWords = 0.25F; //You can do your another stuff with gdpictureOCR here. }
See Also