GlassyWing / bi-lstm-crf

使用keras实现的基于Bi-LSTM + CRF的中文分词+词性标注
Apache License 2.0
374 stars 84 forks source link

想问下keras的版本是什么 #2

Closed SefaZeng closed 4 years ago

SefaZeng commented 5 years ago

from keras_preprocessing.text import tokenizer_from_json 这里报错,keras的文档里面好像也没有这个

GlassyWing commented 5 years ago

keras 版本为2.2.4

SefaZeng commented 5 years ago

那还请问一下 开发集是另外的数据集吗 还是直接在训练集里面划分的?

GlassyWing commented 5 years ago

直接从训练集划分即可

SefaZeng commented 5 years ago

这样训练相当于每个epoch用了64000个样本 然后整个数据分在不同的epoch里面吗?为什么不把数据放在一个epoch里面呢?

GlassyWing commented 5 years ago

因为机器性能原因,要尽快看到效果,故意下调了。此外,由于数据集较大,调小一点并不影响训练效果

TianruiZhang commented 5 years ago

我使用Keras 2.2.4,跑python3 train_example.py会报错TypeError: while_loop() got an unexpected keyword argument 'maximum_iterations'。

GlassyWing commented 5 years ago

这是tensorflow版本的原因,tensorflow 版本为1.9.0

TianruiZhang commented 5 years ago

谢谢回复,我明天试试。