fastnlp / TENER

Codes for "TENER: Adapting Transformer Encoder for Named Entity Recognition"
373 stars 55 forks source link

fastNLP如何将index映射回去 #7

Closed s1162276945 closed 4 years ago

s1162276945 commented 4 years ago

作者你好,这两天在阅读代码,看到将character和tag转换为index这里,我在想如果我想得到预测的BIO标签,那我怎么把index映射回去呢。

LeeSureman commented 4 years ago

vocabulary有to_word方法将index映射为原token