Google colaboratory 使用GoogleColab运行bash代码,可以访问文件夹和子目录中的多个文件,比如说程序?

Google colaboratory 使用GoogleColab运行bash代码,可以访问文件夹和子目录中的多个文件,比如说程序?,google-colaboratory,Google Colaboratory,我将google drive安装到google colab工作区,并运行以下代码: !"/content/drive/MyDrive/Colab_Notebooks/10_Conditional_Random_Fields_Dr._Richard_Tzong-Han_Tsai/project/crf++/crf_learn.exe" -p 1 -f 0 -c 10 -t simple_transition_features_template.txt train_sym.iob

我将google drive安装到google colab工作区,并运行以下代码:

!"/content/drive/MyDrive/Colab_Notebooks/10_Conditional_Random_Fields_Dr._Richard_Tzong-Han_Tsai/project/crf++/crf_learn.exe" -p 1 -f 0 -c 10 -t simple_transition_features_template.txt train_sym.iob2 01ner.model
但是我得到了错误:
[…].exe:无法执行二进制文件:Exec格式错误
这是在我使用
更正错误“权限被拒绝”之后发生的!chmod 755/content/drive/MyDrive/Colab_Note[…]/crf_learn.exe
简单的解决方案可用吗?例如,我发现要在google colab上运行
.sh
,只需修改
一起使用!sh
来运行它

利用colab的另一种方法是使用本地磁盘上的文件夹(我甚至更喜欢这样),并在云中运行.exe


有没有办法使用google colab来运行访问文件夹和子目录中多个文件的bash代码?

您确定您的文件有正确的标志吗?谢谢。我刚刚检查过,我可以使用这些标志在我的计算机上运行程序。但也许谷歌colab上的标志一定不同。。。