Need better scanning performance?
DictionaryCorrectionThresholds
Parameter DictionaryCorrectionThresholds sets the threshold of dictionary error correction.
JSON Structure
Location in template:
LabelRecognizerTaskSettingOptions[i]
└── SectionArray[j] (Section object)
└── StageArray[k] (Stage object where Stage = "SST_RECOGNIZE_RAW_TEXT_LINES")
└── DictionaryCorrectionThresholds
Parent object: RecognizeRawTextLinesStage
Example:
{
"DictionaryCorrectionThresholds": [
{
"MinWordLength": 3,
"MaxWordLength": 5,
"Threshold": 1
},
{
"MinWordLength": 6,
"MaxWordLength": 10,
"Threshold": 2
},
{
"MinWordLength": 11,
"Threshold": 3
}
]
}
- This snippet shows only the
DictionaryCorrectionThresholdsparameter.- To use it, embed this parameter within a RecognizeRawTextLinesStage object.
- For the complete JSON structure, see:
Remarks
- It supports segmentation threshold.
- It works together with the DictionaryPath parameter to perform error correction during the recognition process.
Parameter Details
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.