python - 无法在 Google Colab 中使用 bash 运行 Starspace

标签 python bash nlp google-colaboratory

我正在尝试在 google colab 中运行此代码。

%%bash
./Starspace/starspace train \
-trainFile "data/prepared_train.tsv" \
-model model/stackoverflow_duplicate \
-trainMode = 3 \
-adagrad true \
-ngrams 1 \
-epoch 5 \
-dim 100 \
-similarity "cosine" \
-minCount 2 \
-verbose true \
-fileFormat labelDoc \
-negSearchLimit 10 \
-lr 0.05 \
-thread 10

但是每次我收到此错误时提供的参数不带破折号!
以及一些有关如何使用的说明。实际上我尝试使用 Facebook Github 存储库中的示例代码,但我得到了同样的错误。

感谢您的建议。

最佳答案

我猜这给你带来了麻烦-trainMode = 3,我认为它应该是-trainMode 3而不带=

关于python - 无法在 Google Colab 中使用 bash 运行 Starspace,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53249574/

相关文章:

python - 估计两个词之间的音素相似度

python - 将给定的十进制数转换为二进制数并计算连续的 1 并显示

bash - 使用bash从文件中提取文本

python - 如何根据多个条件从 numpy 数组中删除行?

bash - 为什么我的 Curl 命令大部分时间都无法下载文件,但有时却可以?

bash - 在 bash 中比较文件中的行

nlp - 词性标注后对单词进行词形还原会产生意想不到的结果

使用 Netbeans 在斯坦福 NER 上出现 Java 堆空间错误

python - tensorflow 估计器 : feature columns size error in 1. 5

python - python中猜测数字