As the core of Chinese IME, P2C conversion has been formulized into a seq2seq model as machine translation between pinyin and character sequences, there are still a few differences between P2C converting and standard machine translation.
in practice, we need to control the size of the vocabulary for acceptable decoding speed.