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





In This Topic
LanguageModelPenaltyNonDictWords Property (GdPictureOCR)
In This Topic
Specifies the penalty applied by the engine to all words, that are not listed in the dictionary (word_dawg / user_words wordlists).

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

Syntax
'Declaration
 
Public Property LanguageModelPenaltyNonDictWords As Double
public double LanguageModelPenaltyNonDictWords {get; set;}
public read-write property LanguageModelPenaltyNonDictWords: Double; 
public function get,set LanguageModelPenaltyNonDictWords : double
public: __property double get_LanguageModelPenaltyNonDictWords();
public: __property void set_LanguageModelPenaltyNonDictWords( 
   double value
);
public:
property double LanguageModelPenaltyNonDictWords {
   double get();
   void set (    double value);
}

Property Value

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