【文件属性】:
文件名称:dsg:定向跳过代码
文件大小:17KB
文件格式:ZIP
更新时间:2021-03-04 18:05:39
C
DSG
数据集
您还可以下载我们的公共数据集: :
如何使用
要构建代码,只需运行:
make
构建单词嵌入的命令与原始版本中的命令完全相同,只是我们删除了参数-cbow并将其替换为参数-type:
. / dsg - train input_file - output embedding_file - type 0 - size 50 - window 5 - negative 10 - hs 0 - sample 1e-4 - threads 1 - binary 1 - iter 5
-type参数是一个整数,用于定义要使用的体系结构。 这些是可能的参数:
0-dsg:本文提出的模型;
1-简单的ssg:从原始结构化SG模型( )采用的比较模型。
引文
如果您在此代码中使用功能,请通过引用我们的论文为我们提供支持:
@InProceedings { Song:
【文件预览】:
dsg-main
----dsg.c(38KB)
----word-analogy.c(5KB)
----LICENSE(11KB)
----distance.c(5KB)
----README.md(2KB)
----makefile(450B)