JunnYu / ChineseBert_pytorch

huggingface ChineseBert Tokenizer
MIT License
15 stars 1 forks source link

Glyph Information怎样处理呢? #1

Open shawroad opened 3 years ago

shawroad commented 3 years ago

字形信息原始论文是将一个字通过三种字体呈现出来,也就是三个24x24的图片。这里的图片咋弄?

shawroad commented 3 years ago

已解决。 使用的pygame。 参考代码: https://github.com/shawroad/Python-Library-Learning/tree/master/chinesebert%E4%B8%AD%E7%9A%84pinyin%E5%92%8Cglyph%E7%9A%84%E5%A4%84%E7%90%86