Skip to content

About

基于 PyTorch 范例 实现中文语言模型。

Topics

Resources

Stars

14 stars

Watchers

1 watching

Forks

Latest commit

 

History

49 Commits

Folders and files

Repository files navigation

<style> pre { white-space: pre-wrap; } </style>

Language-Model

基于 PyTorch 范例 实现中文语言模型。

数据集

《三国演义》 + 《三体》

模型

RNNModel(
  (drop): Dropout(p=0.5)
  (encoder): Embedding(3719, 200)
  (rnn): GRU(200, 200, num_layers=2, dropout=0.5)
  (decoder): Linear(in_features=200, out_features=3719, bias=True)
)

生成效果

《三国演义》

image

image

image

image

《三体》

image

image

image

image

image

About

基于 PyTorch 范例 实现中文语言模型。

Topics

Resources

Stars

14 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages