OCR: weighted Levenshtein distance

前端 未结 3 1107
执念已碎
执念已碎 2021-02-09 04:23

I\'m trying to create an optical character recognition system with the dictionary.

In fact I don\'t have an implemented dictionary yet=)

I\'ve heard that there a

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-09 05:11

    A few years too late but the following python package (with which I am NOT affiliated) allows for arbitrary weighting of all the Levenshtein edit operations and ASCII character mappings etc.

    https://github.com/infoscout/weighted-levenshtein

    pip install weighted-levenshtein
    

    Also this one (also not affiliated):

    https://github.com/luozhouyang/python-string-similarity
    

提交回复
热议问题