【发布时间】:2019-04-14 10:20:35
【问题描述】:
我正在尝试在 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
但每次我收到此错误Provided argument without a dash!。
以及一些关于如何使用的说明。实际上我尝试在 Facebook Github 存储库中使用示例代码,但我得到了同样的错误。
感谢您的建议。
【问题讨论】:
-
Starspace是库的根文件夹,starspace文件可以工作。
标签: python bash nlp google-colaboratory