我正在尝试在 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/