Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
models
提交
fc4fe627
M
models
项目概览
PaddlePaddle
/
models
接近 2 年 前同步成功
通知
230
Star
6828
Fork
2962
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
602
列表
看板
标记
里程碑
合并请求
255
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
models
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
602
Issue
602
列表
看板
标记
里程碑
合并请求
255
合并请求
255
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
fc4fe627
编写于
1月 09, 2019
作者:
J
JiabinYang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refine readme
上级
075d74cf
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
16 addition
and
2 deletion
+16
-2
fluid/PaddleRec/word2vec/README.cn.md
fluid/PaddleRec/word2vec/README.cn.md
+16
-2
未找到文件。
fluid/PaddleRec/word2vec/README.cn.md
浏览文件 @
fc4fe627
...
@@ -25,7 +25,14 @@ cd data && ./download.sh && cd ..
...
@@ -25,7 +25,14 @@ cd data && ./download.sh && cd ..
```
bash
```
bash
python preprocess.py
--data_path
./data/1-billion-word-language-modeling-benchmark-r13output/training-monolingual.tokenized.shuffled
--dict_path
data/1-billion_dict
--is_local
python preprocess.py
--data_path
./data/1-billion-word-language-modeling-benchmark-r13output/training-monolingual.tokenized.shuffled
--dict_path
data/1-billion_dict
--is_local
```
```
如果您想使用我们支持的第三方词汇表,请将--other_dict_path设置为您存放将使用的词汇表的目录,并设置--with_other_dict使用它
如果您想使用自定义的词典形如:
```
bash
<UNK>
a
b
c
```
请将--other_dict_path设置为您存放将使用的词典的目录,并设置--with_other_dict使用它
## 训练
## 训练
训练的命令行选项可以通过
`python train.py -h`
列出。
训练的命令行选项可以通过
`python train.py -h`
列出。
...
@@ -40,7 +47,14 @@ python train.py \
...
@@ -40,7 +47,14 @@ python train.py \
--with_hs
--with_nce
--is_local
\
--with_hs
--with_nce
--is_local
\
2>&1 |
tee
train.log
2>&1 |
tee
train.log
```
```
如果您想使用我们支持的第三方词汇表,请将--other_dict_path设置为您存放将使用的词汇表的目录,并设置--with_other_dict使用它
如果您想使用自定义的词典形如:
```
bash
<UNK>
a
b
c
```
请将--other_dict_path设置为您存放将使用的词典的目录,并设置--with_other_dict使用它
### 分布式训练
### 分布式训练
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录