deep_learning_keras,Spacy示例,SystemExit:2在Jupyter / Colab中运行

时间:2018-11-26 02:30:56

标签: python jupyter-notebook spacy

我的总体目标是运行Deep_Learning_keras,这是Google Colab(即Jupyter Notebooks)中的SpaCy示例

指向Deep_Learning_keras SpaCy示例的GitHub链接为:https://github.com/explosion/spaCy/blob/master/examples/deep_learning_keras.py

当我直接在Google Colab中运行示例代码时,出现以下错误:

usage: ipykernel_launcher.py [-h] [-r] [-H 64] [-L 100] [-d 0.5] [-e 0.001]
[-i 5] [-b 256] [-n -1][model_dir] [train_dir] [dev_dir]
ipykernel_launcher.py: error: unrecognized arguments: -f
An exception has occurred, use %tb to see the full traceback.

SystemExit: 2

我知道该示例最初是为python编写的,并且在Jupyter Notebook环境中运行副本并不完全兼容。我不确定示例中需要更改哪些代码/语句以使其兼容

我在Google上搜索了SystemExit:2错误,发现的最接近的示例是(但是SystemExit中的问题:2与我的问题不同):

SystemExit: 2 error when calling parse_args() in iPython Notebook

谢谢

0 个答案:

没有答案