rime.models.third_party.word_language_model.model

Classes

PositionalEncoding(d_model[, dropout, max_len])

Inject some information about the relative or absolute position of the tokens

RNNModel(rnn_type, ntoken, ninp, nhid, nlayers)

Container module with an encoder, a recurrent module, and a decoder.

TransformerModel(ntoken, ninp, nhead, nhid, ...)

Container module with an encoder, a recurrent or transformer module, and a decoder.