Tensorflow文本摘要设置:什么是工作空间文件? [英] Tensorflow text summarization setup : What is a workspace file?

查看:124
本文介绍了Tensorflow文本摘要设置:什么是工作空间文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读Tensorflow文本摘要文档设置: https://github.com/tensorflow/models/tree/master/textsum 表示clone the code to your workspace and create empty WORKSPACE file.

我创建了一个新文件夹,并克隆了 https://github.com/tensorflow/tensorflow.git 到此文件夹,这是将代码克隆到您的工作区"的意思吗?什么是空工作区文件?它是一个名为"WORKSPACE"的空文件吗?

解决方案

WORKSPACE是 bazel (tensorflow的构建系统)在目录中搜索的文件确定项目的 root 的层次结构.

您可以创建一个简单的空WORKSPACE文件.

$touch WORKSPACE

在我的设置中,我刚刚创建了另一个目录

cd models
mkdir traintextsum
cd traintextsum
ln -sf ../textsum/ .
mkdir data 
touch WORKSPACE
bazel build -c opt --config=cuda textsum/...

请记住,该模型没有经过训练.因此,要产生任何有意义的结果,您将需要一些具有 Gigaword数据集格式的数据集进行培训.

该数据集具有许可证,因此无法在线免费获得(订阅费用约为6,000美元或27,000美元).

除了Gigaword本身之外,我不知道还有其他具有这种格式的有意义的数据集.

Reading the Tensorflow text summarization documentation setup : https://github.com/tensorflow/models/tree/master/textsum it states clone the code to your workspace and create empty WORKSPACE file.

I've created a new folder and cloned https://github.com/tensorflow/tensorflow.git to this folder , is that what is meant by 'clone the code to your workspace' ? What is an empty workspace file ? Is it an empty file named 'WORKSPACE' ?

解决方案

WORKSPACE is a file that bazel (tensorflow's build system) searches in the directory hierarchy to determine the root of the project.

You can create a simple empty WORKSPACE file.

$touch WORKSPACE

in my setup I just created another directory

cd models
mkdir traintextsum
cd traintextsum
ln -sf ../textsum/ .
mkdir data 
touch WORKSPACE
bazel build -c opt --config=cuda textsum/...

keep in mind that the model is not trained. So to produce any meaningful result you would have to have some dataset that has the Gigaword Dataset Format to train it on.

The dataset has a license and thus is not freely available online (costs around $6K or $27K for a year subscription).

I am not aware of any other meaningful dataset that has that format besides the Gigaword itself.

这篇关于Tensorflow文本摘要设置:什么是工作空间文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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