yizt / crnn.pytorch

crnn实现水平和垂直方向中文文字识别, 提供在3w多个中文字符训练的水平识别和垂直识别的预训练模型; 欢迎关注,试用和反馈问题... ...
Apache License 2.0
244 stars 52 forks source link

字符集中有的字符例如\u3000在python下没法显示报错,怎么去掉?微信nlanguage #32

Open nissansz opened 2 years ago

nissansz commented 2 years ago

字符集中有的字符例如\u3000在python下没法显示报错,怎么去掉?微信nlanguage

File "F:\pycharm2020.2\crnn\utils\aftertreatment.py", line 26, in text = [self.dict[char] for [char] in text] KeyError: ' '