Documentation
Table of contents

DictionaryCorrectionThresholds

Parameter DictionaryCorrectionThresholds sets the threshold of dictionary error correction.

Example

{
    "DictionaryCorrectionThresholds": [
        {
            "MinWordLength": 3,
            "MaxWordLength": 5,
            "Threshold": 1
        },
        {
            "MinWordLength": 6,
            "MaxWordLength": 10,
            "Threshold": 2
        },
        {
            "MinWordLength": 11,
            "Threshold": 3
        }
    ]

}

Remarks

  • It supports segmentation threshold.
  • It works together with the DictionaryPath parameter to perform error correction during the recognition process.

Parameter Summary

Parameter DictionaryCorrectionThresholds consist of a group of dictionary correction threshold objects. Each threshold object includes a series of child parameters.

Child Parameter Summary

Child Parameter Name Child Parameter Summary
MinWordLength
(Required)
Description
The minimum value of word length.
Type
int
Range
[0,0x7ffffff]
Default Value
3
MaxWordLength
(Required)
Description
The maximum value of word length.
Type
int
Range
[0,0x7ffffff]
Default Value
256
Remarks
MaxWordLength >= MinWordLength
Threshold
(Required)
Description
The maximum number of correctable characters per word.
Type
int
Range
[0,0x7fffffff]
Default Value
1

Default Setting

If the parameter DictionaryCorrectionThresholds is not included in your template file, the following setting will be used.

{
    "DictionaryCorrectionThresholds" : 
    [
        {
            "MaxWordLength" : 256,
            "MinWordLength" : 3,
            "Threshold" : 1
        }
    ]
}

If any of MaxWordLength, MinWordLength or Threshold is missing in your dictionary correction threshold object, the default values of the child parameters will be used.

This page is compatible for:

Version 1.0

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.20
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.30
      • Version 2.0.20
      • Version 2.0.10
      • Version 2.0.0
    Change +
    © 2003–2024 Dynamsoft. All rights reserved.
    Privacy Statement / Site Map / Home / Purchase / Support