Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 异常:位置x处的错误转义\p_Python_Neural Network_Allennlp - Fatal编程技术网

Python 异常:位置x处的错误转义\p

Python 异常:位置x处的错误转义\p,python,neural-network,allennlp,Python,Neural Network,Allennlp,我正试图运行allennlp包的预测使用一个模型,我已经在我的训练数据训练。但是,在进程开始时,出现此异常并停止程序 引发源。错误('错误转义%s'%escape,len(转义)) sre_constants.error:位置257处的错误转义\p 此外,当我打开allennlp环境时,我还收到另一个错误: 2019-04-01 12:20:43879-信息-allennlp.common.params- dataset_reader.lazy=错误分段错误(核心转储) 我正在执行一个序列到序列

我正试图运行allennlp包的预测使用一个模型,我已经在我的训练数据训练。但是,在进程开始时,出现此异常并停止程序

引发源。错误('错误转义%s'%escape,len(转义)) sre_constants.error:位置257处的错误转义\p

此外,当我打开allennlp环境时,我还收到另一个错误:

2019-04-01 12:20:43879-信息-allennlp.common.params- dataset_reader.lazy=错误分段错误(核心转储)

我正在执行一个序列到序列的任务,其中训练数据是一组0和1(src和target),使用以下命令:

CUDA_VISBILE_DEVICES=1 python -m allennlp.run train  
                       allennlp_config/simple_tagger.json 
                       --serialization-dir models/last
在预测中:

python -m allennlp.run predict models/new1/model.tar.gz 
                               data/test.src.txt 
                               --output bu-out.txt 
                               --cuda-device 0 
                               --batch-size 5
具体而言,我尝试在本回购协议中重新生成结果: