BERT-BiLSTM-CRF-NER icon indicating copy to clipboard operation
BERT-BiLSTM-CRF-NER copied to clipboard

bert-base-serving-start报错

Open LamireTango opened this issue 4 years ago • 30 comments

1.已用自己的数据进行命名实体识别train,结果输出到output文件夹中。 2.我在cmd运行server代码: bert-base-serving-start -model_dir D:\Projects\Wunianyue\BERT-BiLSTM-CRF-NER\output -bert_model_dir D:\Projects\Wunianyue\BERT-BiLSTM-CRF-NER\chinese_L-12_H-768_A-12 -mode NER -num_worker 1 3.报错内容: Errors may have originated from an input operation. Input Source operations connected to node save/Assign_201: project/logits/b (defined at d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\bert_base\train\lstm_crf_layer.py:144)

Original stack trace for 'save/Assign_201': File "", line 1, in File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\multiprocessing\spawn.py", line 105, in spawn_main exitcode = _main(fd) File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\multiprocessing\spawn.py", line 118, in _main return self._bootstrap() File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 258, in _bootstrap self.run() File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\multiprocessing\process.py", line 93, in run self._target(*self._args, **self._kwargs) File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\multiprocessing\pool.py", line 119, in worker result = (True, func(*args, **kwds)) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\bert_base\server\graph.py", line 291, in optimize_ner_model saver = tf.train.Saver() File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\training\saver.py", line 825, in init self.build() File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\training\saver.py", line 837, in build self._build(self._filename, build_save=True, build_restore=True) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\training\saver.py", line 875, in _build build_restore=build_restore) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\training\saver.py", line 508, in _build_internal restore_sequentially, reshape) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\training\saver.py", line 350, in _AddRestoreOps assign_ops.append(saveable.restore(saveable_tensors, shapes)) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\training\saving\saveable_object_util.py", line 72, in restore self.op.get_shape().is_fully_defined()) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\ops\state_ops.py", line 227, in assign validate_shape=validate_shape) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\ops\gen_state_ops.py", line 69, in assign use_locking=use_locking, name=name) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\framework\op_def_library.py", line 788, in _apply_op_helper op_def=op_def) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\util\deprecation.py", line 507, in new_func return func(*args, **kwargs) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\framework\ops.py", line 3616, in create_op op_def=op_def) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\tensorflow\python\framework\ops.py", line 2005, in init self._traceback = tf_stack.extract_stack()

Traceback (most recent call last): File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 193, in run_module_as_main "main", mod_spec) File "C:\Users\hp\AppData\Local\Programs\Python\Python36\lib\runpy.py", line 85, in run_code exec(code, run_globals) File "D:\Projects\Wunianyue\BERT-BiLSTM-CRF-NER\venv\Scripts\bert-base-serving-start.exe_main.py", line 7, in File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\bert_base\runs_init.py", line 17, in start_server server = BertServer(args) File "d:\projects\wunianyue\bert-bilstm-crf-ner\venv\lib\site-packages\bert_base\server_init_.py", line 102, in init raise FileNotFoundError('graph optimization fails and returns empty result') FileNotFoundError: graph optimization fails and returns empty result

LamireTango avatar Mar 15 '20 14:03 LamireTango

好像已经解决了,需要-model_pb_dir这个路径

LamireTango avatar Mar 15 '20 15:03 LamireTango

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

asaoba avatar Mar 22 '20 08:03 asaoba

我已经弄好了

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Mar 22 '20 08:03 LamireTango

   因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下:
  一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢?
    希望能收到您的回复>_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

asaoba avatar Mar 22 '20 08:03 asaoba

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午4:58 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

    因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下:
   一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢?
     希望能收到您的回复&gt;_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "asaoba"<[email protected]&gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送: "Lamire"<[email protected]&gt;; "Author"<[email protected]&gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Mar 22 '20 09:03 LamireTango

  谢谢您的回复。我第二个问题的意思是下面图片中让下载的是不是同一个内容,我只要下载其中一个就可以了,还是既要pip安装,还要下载zip压缩包?另外您说您用的是命令行的方法,是不是指基于命令行和基于源代码的方法只需要用一个就能实现NER的目的了,比如您就不需要再下载使用github里的bert_lstm_ner.py等代码了?

在2020年03月22日 17:39,LamireTango 写道:

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午4:58 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下: 一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢? 希望能收到您的回复>_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "asaoba"<[email protected]&gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送: "Lamire"<[email protected]&gt;; "Author"<[email protected]&gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

asaoba avatar Mar 22 '20 09:03 asaoba

不好意思上条邮件忘了带图片。

在2020年03月22日 17:39,LamireTango 写道:

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午4:58 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下: 一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢? 希望能收到您的回复>_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&nbsp;原始邮件&nbsp;------------------ 发件人: "asaoba"<[email protected]&gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送: "Lamire"<[email protected]&gt;; "Author"<[email protected]&gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

asaoba avatar Mar 22 '20 09:03 asaoba

可以不下载GitHub的代码,直接pip安装

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午5:56 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

不好意思上条邮件忘了带图片。

在2020年03月22日 17:39,LamireTango 写道:

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"asaoba"<[email protected]&gt;; 发送时间:&nbsp;2020年3月22日(星期天) 下午4:58 收件人:&nbsp;"macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送:&nbsp;"Lamire"<[email protected]&gt;;"Author"<[email protected]&gt;; 主题:&nbsp;Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下: 一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢? 希望能收到您的回复&gt;_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------ 发件人: "asaoba"<[email protected]&amp;gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&amp;gt;; 抄送: "Lamire"<[email protected]&amp;gt;; "Author"<[email protected]&amp;gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Mar 22 '20 10:03 LamireTango

大致理解了一些思路,谢谢您的回复!

在2020年03月22日 18:08,LamireTango 写道:

可以不下载GitHub的代码,直接pip安装

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午5:56 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

不好意思上条邮件忘了带图片。

在2020年03月22日 17:39,LamireTango 写道:

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"asaoba"<[email protected]&gt;; 发送时间:&nbsp;2020年3月22日(星期天) 下午4:58 收件人:&nbsp;"macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送:&nbsp;"Lamire"<[email protected]&gt;;"Author"<[email protected]&gt;; 主题:&nbsp;Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下: 一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢? 希望能收到您的回复&gt;_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------ 发件人: "asaoba"<[email protected]&amp;gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&amp;gt;; 抄送: "Lamire"<[email protected]&amp;gt;; "Author"<[email protected]&amp;gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

asaoba avatar Mar 22 '20 10:03 asaoba

  前辈你好,不好意思又来打扰你。请问训练的时候,明明之前已经安装了tensorflow,为什么还会说找不到呢,我看readme也不用activate tensorflow呀?

在2020年03月22日 18:11,zhujx 写道: 大致理解了一些思路,谢谢您的回复!

在2020年03月22日 18:08,LamireTango 写道:

可以不下载GitHub的代码,直接pip安装

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月22日(星期天) 下午5:56 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

不好意思上条邮件忘了带图片。

在2020年03月22日 17:39,LamireTango 写道:

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"asaoba"<[email protected]&gt;; 发送时间:&nbsp;2020年3月22日(星期天) 下午4:58 收件人:&nbsp;"macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送:&nbsp;"Lamire"<[email protected]&gt;;"Author"<[email protected]&gt;; 主题:&nbsp;Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下: 一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢? 希望能收到您的回复&gt;_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------ 发件人: "asaoba"<[email protected]&amp;gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&amp;gt;; 抄送: "Lamire"<[email protected]&amp;gt;; "Author"<[email protected]&amp;gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

asaoba avatar Mar 24 '20 15:03 asaoba

TensorFlow的问题你可能得自行百度了,我装的是1.14.0,下面是我的pip list

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月24日(星期二) 晚上11:55 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

   前辈你好,不好意思又来打扰你。请问训练的时候,明明之前已经安装了tensorflow,为什么还会说找不到呢,我看readme也不用activate tensorflow呀?

在2020年03月22日 18:11,zhujx 写道: 大致理解了一些思路,谢谢您的回复!

在2020年03月22日 18:08,LamireTango 写道:

可以不下载GitHub的代码,直接pip安装

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"asaoba"<[email protected]&gt;; 发送时间:&nbsp;2020年3月22日(星期天) 下午5:56 收件人:&nbsp;"macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送:&nbsp;"Lamire"<[email protected]&gt;;"Author"<[email protected]&gt;; 主题:&nbsp;Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

不好意思上条邮件忘了带图片。

在2020年03月22日 17:39,LamireTango 写道:

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------ 发件人:&amp;nbsp;"asaoba"<[email protected]&amp;gt;; 发送时间:&amp;nbsp;2020年3月22日(星期天) 下午4:58 收件人:&amp;nbsp;"macanv/BERT-BiLSTM-CRF-NER"<[email protected]&amp;gt;; 抄送:&amp;nbsp;"Lamire"<[email protected]&amp;gt;;"Author"<[email protected]&amp;gt;; 主题:&amp;nbsp;Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下: 一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢? 希望能收到您的回复&amp;gt;_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------ 发件人: "asaoba"<[email protected]&amp;amp;gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&amp;amp;gt;; 抄送: "Lamire"<[email protected]&amp;amp;gt;; "Author"<[email protected]&amp;amp;gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Mar 25 '20 03:03 LamireTango

好的,上午已经解决了,谢谢:D

在2020年03月25日 11:36,LamireTango 写道:

TensorFlow的问题你可能得自行百度了,我装的是1.14.0,下面是我的pip list

------------------ 原始邮件 ------------------ 发件人: "asaoba"<[email protected]>; 发送时间: 2020年3月24日(星期二) 晚上11:55 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>;"Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

前辈你好,不好意思又来打扰你。请问训练的时候,明明之前已经安装了tensorflow,为什么还会说找不到呢,我看readme也不用activate tensorflow呀?

在2020年03月22日 18:11,zhujx 写道: 大致理解了一些思路,谢谢您的回复!

在2020年03月22日 18:08,LamireTango 写道:

可以不下载GitHub的代码,直接pip安装

------------------&nbsp;原始邮件&nbsp;------------------ 发件人:&nbsp;"asaoba"<[email protected]&gt;; 发送时间:&nbsp;2020年3月22日(星期天) 下午5:56 收件人:&nbsp;"macanv/BERT-BiLSTM-CRF-NER"<[email protected]&gt;; 抄送:&nbsp;"Lamire"<[email protected]&gt;;"Author"<[email protected]&gt;; 主题:&nbsp;Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

不好意思上条邮件忘了带图片。

在2020年03月22日 17:39,LamireTango 写道:

我用的是基于命令行的方法,然后他的中文文档有问题,建议基于英文文档进行配置安装。第二个我没看懂。从train.txt可以拿出来一部分作为dev的

------------------&amp;nbsp;原始邮件&amp;nbsp;------------------ 发件人:&amp;nbsp;"asaoba"<[email protected]&amp;gt;; 发送时间:&amp;nbsp;2020年3月22日(星期天) 下午4:58 收件人:&amp;nbsp;"macanv/BERT-BiLSTM-CRF-NER"<[email protected]&amp;gt;; 抄送:&amp;nbsp;"Lamire"<[email protected]&amp;gt;;"Author"<[email protected]&amp;gt;; 主题:&amp;nbsp;Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

因为我是刚开始学习深度学习领域,所以还完全是个新手,有几个基础问题希望能请问您一下: 一是该项目里“基于命名行训练命名实体模型”和“基于源代码训练和启动服务”两项是必须都完成,还是这是训练模型的两种方法,我学习其中一种就能实现NER的目的呢;第二个疑问是,该项目命令行部分安装的Bert-base和后面源代码部分下载的google bert预训练模型压缩包是同一个东西吗;三是想请问一下,是不是从train.txt里取一部分出来就可以直接做为dev.txt,还是要再标注一部分train.txt没有的数据呢? 希望能收到您的回复&amp;gt;_<

在2020年03月22日 16:33,LamireTango 写道:

我已经弄好了

------------------&amp;amp;nbsp;原始邮件&amp;amp;nbsp;------------------ 发件人: "asaoba"<[email protected]&amp;amp;gt;; 发送时间: 2020年3月22日(星期天) 下午4:15 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]&amp;amp;gt;; 抄送: "Lamire"<[email protected]&amp;amp;gt;; "Author"<[email protected]&amp;amp;gt;; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,请问你用这个项目训练成功了吗,我最近在初学这方面,希望能请教一下,有偿也可。我的QQ 752247346

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe. — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

asaoba avatar Mar 25 '20 03:03 asaoba

好像已经解决了,需要-model_pb_dir这个路径

你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、

zwd13122889 avatar Apr 10 '20 09:04 zwd13122889

路径里面是这些

------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Apr 10 '20 09:04 LamireTango

路径里面是这些 ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹

zwd13122889 avatar Apr 10 '20 09:04 zwd13122889

-model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样?

------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Apr 10 '20 09:04 LamireTango

-model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的

zwd13122889 avatar Apr 10 '20 09:04 zwd13122889

自己生成的

------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

-model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Apr 10 '20 09:04 LamireTango

自己生成的 ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) -model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

我训练好之后没有类似的文件夹啊,只有一个output,现在又让我写 model_pb_dir ,不知道该咋写。。头痛

zwd13122889 avatar Apr 10 '20 09:04 zwd13122889

就是生产那三个文件就行。文档里面有写

------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:44 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

自己生成的 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) -model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

我训练好之后没有类似的文件夹啊,只有一个output,现在又让我写 model_pb_dir ,不知道该咋写。。头痛

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Apr 10 '20 09:04 LamireTango

就是生产那三个文件就行。文档里面有写 ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:44 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 自己生成的 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) -model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 我训练好之后没有类似的文件夹啊,只有一个output,现在又让我写 model_pb_dir ,不知道该咋写。。头痛 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

model_pb_dir: model freeze save dir, after run optimize func, there will contains like ner_model.pb binary file。。。。是这句话吗?这该怎么运行呢

zwd13122889 avatar Apr 10 '20 09:04 zwd13122889

运行那个server还是run会自动生成ner_model.pb

------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:57 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

就是生产那三个文件就行。文档里面有写 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:44 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 自己生成的 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) -model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 我训练好之后没有类似的文件夹啊,只有一个output,现在又让我写 model_pb_dir ,不知道该咋写。。头痛 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

model_pb_dir: model freeze save dir, after run optimize func, there will contains like ner_model.pb binary file。。。。是这句话吗?这该怎么运行呢

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Apr 10 '20 09:04 LamireTango

运行那个server还是run会自动生成ner_model.pb ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:57 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 就是生产那三个文件就行。文档里面有写 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:44 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 自己生成的 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) -model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 我训练好之后没有类似的文件夹啊,只有一个output,现在又让我写 model_pb_dir ,不知道该咋写。。头痛 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. model_pb_dir: model freeze save dir, after run optimize func, there will contains like ner_model.pb binary file。。。。是这句话吗?这该怎么运行呢 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

image 是这段话吗

zwd13122889 avatar Apr 10 '20 10:04 zwd13122889

运行那个server还是run会自动生成ner_model.pb ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:57 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 就是生产那三个文件就行。文档里面有写 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:44 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 自己生成的 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) -model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 我训练好之后没有类似的文件夹啊,只有一个output,现在又让我写 model_pb_dir ,不知道该咋写。。头痛 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. model_pb_dir: model freeze save dir, after run optimize func, there will contains like ner_model.pb binary file。。。。是这句话吗?这该怎么运行呢 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

不好意思,在询问下,我看了他的博客,是这么写的,model_pd_dir: 运行模型优化代码后, 经过模型压缩后的存储路径,例如运行上面的命令后改路径下会产生 ner_model.pb 这个二进制文件 。我想请教下,模型优化代码是哪一段

zwd13122889 avatar Apr 10 '20 10:04 zwd13122889

https://github.com/macanv/BERT-BiLSTM-CRF-NER/blob/master/run.py 这个,它会自动检测,没有的话就会生成

------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 晚上6:37 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

运行那个server还是run会自动生成ner_model.pb … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:57 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 就是生产那三个文件就行。文档里面有写 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:44 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 自己生成的 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:38 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) -model_pb_dir D:\Projects\BERT-BiLSTM-CRF-NER\pdBERT_NER 这样? … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:26 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 路径里面是这些 … ------------------ 原始邮件 ------------------ 发件人: "zwd13122889"<[email protected]>; 发送时间: 2020年4月10日(星期五) 下午5:18 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313) 好像已经解决了,需要-model_pb_dir这个路径 你好,这个路径在哪里找到呢? 还是说提供一个空文件夹就可以了? 、 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 不好意思,没看懂您的回答。我想问的是,-model_pb_dir 这个路径,该怎么写呢? 我不知道是不是train的output文件夹 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 好的,那你pdBERT_NER这个文件夹是自己生成的,还是你训练好之后创建的 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. 我训练好之后没有类似的文件夹啊,只有一个output,现在又让我写 model_pb_dir ,不知道该咋写。。头痛 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. model_pb_dir: model freeze save dir, after run optimize func, there will contains like ner_model.pb binary file。。。。是这句话吗?这该怎么运行呢 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

不好意思,在询问下,我看了他的博客,是这么写的,model_pd_dir: 运行模型优化代码后, 经过模型压缩后的存储路径,例如运行上面的命令后改路径下会产生 ner_model.pb 这个二进制文件 。我想请教下,模型优化代码是哪一段

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar Apr 10 '20 10:04 LamireTango

好像已经解决了,需要-model_pb_dir这个路径

您好!想问下可以不自己训练直接用博主给的模型测试吗?

conquerSelf avatar May 01 '20 02:05 conquerSelf

不行吧,标签不同,数据不同,不可以通用的

------------------ 原始邮件 ------------------ 发件人: "conquerSelf"<[email protected]>; 发送时间: 2020年5月1日(星期五) 上午10:17 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

您好!想问下可以不自己训练直接用博主给的模型测试吗?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar May 01 '20 02:05 LamireTango

好像已经解决了,需要-model_pb_dir这个路径

您好!想请问下您在训练阶段有产生ner_model.pb文件吗?还有您的start启动服务阶段命令是怎么写的呢??非常期待您的热心回答。

conquerSelf avatar May 02 '20 14:05 conquerSelf

训练阶段没有,服务启动阶段的代码作者贴了,

------------------ 原始邮件 ------------------ 发件人: "conquerSelf"<[email protected]>; 发送时间: 2020年5月2日(星期六) 晚上10:11 收件人: "macanv/BERT-BiLSTM-CRF-NER"<[email protected]>; 抄送: "Lamire"<[email protected]>; "Author"<[email protected]>; 主题: Re: [macanv/BERT-BiLSTM-CRF-NER] bert-base-serving-start报错 (#313)

好像已经解决了,需要-model_pb_dir这个路径

您好!想请问下您在训练阶段有产生ner_model.pb文件吗?还有您的start启动服务阶段命令是怎么写的呢??非常期待您的热心回答。

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

LamireTango avatar May 03 '20 12:05 LamireTango

好像已经解决了,需要-model_pb_dir这个路径 您好,您是如何解决这个问题的呀,生成的save_model.pb文件和label2id 文件。还需要有什么特殊的指定吗?仍然会报您这个错误。您是如何解决的可以告知下吗

SevenMpp avatar Dec 07 '20 11:12 SevenMpp