model.py 文件源码

python
阅读 30 收藏 0 点赞 0 评论 0

项目:rnn-morpheme-analyzer 作者: mitaki28 项目源码 文件源码
def __init__(self, n_words, n_cwords, n_memory, n_output):
        self.n_words = n_words
        self.n_cwords = n_cwords
        self.n_memory = n_memory
        self.n_output = n_output
        super().__init__(
            input=cl.EmbedID(self.n_words, self.n_cwords),
            memory=cl.LSTM(self.n_cwords, self.n_memory),
            output=cl.Linear(self.n_memory, self.n_output)
        )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号