chilynn / sequence-labeling

307 stars 167 forks source link

您好,请问几个代码调试过程中遇到的问题 #11

Closed hcl87 closed 7 years ago

hcl87 commented 7 years ago

1)第一个问题是BILSTM_CRF.py 中,因为我使用的是tensorflow 最新的版本,报的指向from tensorflow.models.rnn import rnn,rnncell 这一行,错误是this module is deprecated use tf.nn.crnn* instead, 我根据rnn.py中的提示改成了 from tensorflow.python.ops import rnn,rnn_cell 错误没有了,请问这样改对吗?tensorflow 小白一枚,所以有点儿不是很确定 2) 第二个问题是利用pandas的read_csv()函数读取数据时候报的错误,parser_f() got an unexpected keyword argument 'skip_blank_lines' 报错的具体位置都在helper.py 文件中的df_train=pd.read_csv() 等函数中,我查了,我对应的pandas 版本中是有对应的参数的,而且在代码中如果删除掉这个参数skip_blank_lines=False 就可以运行。 请问您知道这个问题大致该如何解决吗?或者可能是有什么原因引起的? 谢谢