当前位置: 首页 > 文档资料 > 机器学习 >

arXiv character-by-character generative model

优质
小牛编辑
134浏览
2023-12-01

To train the model, simply run train.py:

$ python3 train.py

Then, to generate a sample abstract, run sample.py:

$ python3 sample.py

If you want to change the starting seed of the generated abstract or change its length, just modify this line in sample.py to your liking:

print(Sampling(get_params())('<SEED>', <LENGTH>))

Unfortunately, at this time the sample code is only compatible with Python 3. We’re working on providing Python 2 translations of the code.

Refer tensorflowbook.