如何使用 Tensorflow 的 PTB 模型示例? [英] How to use Tensorflow's PTB model example?

查看:68
本文介绍了如何使用 Tensorflow 的 PTB 模型示例?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试 Tensorflow 的 rnn 示例.在开始时遇到一些问题,我可以运行示例以训练 ptb,现在我已经训练了一个模型.

I'm trying out Tensorflow's rnn example. With some problems at the start I could run the example in order to train the ptb and now I have a model trained.

我现在如何准确地使用模型来创建句子,而不必每次都再次训练?

How do I exactly use the model now to create sentences without having to train every time again?

我使用类似 python ptb_word_lm.py --data_path=/home/data/--model medium --save_path=/home/medium

有没有关于如何使用训练好的模型造句的例子?

Is there a example somewhere on how to use the trained model to make sentences?

推荐答案

这个网站有一个对 PTB 文字脚本进行改动的答案,目前使用 Tensorflow 1.0 版

This website has an answer with an alteration on the PTB word script, working currently with Tensorflow version 1.0

http://deeplearningathome.com/2016/10/Text-generation-using-deep-recurrent-neural-networks.html

这篇关于如何使用 Tensorflow 的 PTB 模型示例?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆