拼音
、字形
(四角编码) 和 部首拆解
的特征。胡
-> hú
,福
-> fú
门
-> 37001
,闩
-> 37101
闩
-> ['门', '一']
,闫
-> ['门', '三']
AI项目体验地址 https://loveai.tech
from hanzi_char_featurizer import Featurizor
featurizor = Featurizor()
result = featurizor.featurize('明天')
print(result)
输出
([['m'], ['t']], [['ing'], ['ian']], [['2'], ['1']],
('6', '1'), ('7', '0'), ('0', '8'), ('2', '0'),
('0', '4'))