mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-14 21:23:42 +00:00
Improve built-in dictionary code #25
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cfsmp3 on GitHub (May 28, 2014).
Originally assigned to: @anshul1912 on GitHub.
CCExtractor has a small (maybe 20 words) dictionary that is used to correct capitalization.
Because the dictionary is so small the implementation that uses is to do the correction is extremely trivial, and also time consuming (basically it checks against each word in the dictionary rather than do a binary search).
We didn't care about this until someone sent a 11,000 word dictionary for us to use :-)
The function is in 608_helpers.
void correct_case (int line_num, struct eia608_screen *data)
Job: Implement sort and binary search so we can use that dictionary efficiently.