CorrectionCandidate class | spelling.t[324]

Spelling correction candidate. This tracks a modified token list with a corrected word, to keep track of which word was corrected and how well it ranks by our selection criteria.

`class CorrectionCandidate : object`

Superclass Tree (in declaration order)

`CorrectionCandidate`
`object`

Subclass Tree

(none)

Global Objects

(none)

Summary of Properties

`editDist ranking replCnt tokenList wordIdx`

Summary of Methods

`construct`

Properties

`editDist` | `spelling.t[344]`

the edit distance between the original and corrected words

`ranking` | `spelling.t[341]`

ranking

`replCnt` | `spelling.t[347]`

number of character replacements included in the edit distance

`tokenList` | `spelling.t[338]`

the corrected token list

`wordIdx` | `spelling.t[350]`

the index of the corrected word

Methods

`construct (toks, dist, repl, idx, err)` | `spelling.t[325]`

no description available

Adv3Lite Library Reference Manual
Generated on 02/05/2024 from adv3Lite version 2.0