Open alexferrari88 opened 5 years ago
the same problem: File "c:\programdata\anaconda3\lib\site-packages\bert_serving\server__init.py", line 70, in init__ self.graph_path, self.bert_config = pool.apply(optimize_graph, (self.args,)) TypeError: cannot unpack non-iterable NoneType object。
possible reason:the model file has been damaged the solution is:downlaod the model from the readme, change the model file
@alexferrari88 same problem.. did you find any solution ?
Facing same issue as @alexferrari88
I specified the -model_dir as the directory that contained the bioBert files and also renamed them made sure the model name and config.json matched the -ckpt_name and -config_name flags. The default of -ckpt_name is 'bert_model.ckpt" and the default of config_name is "bert_config.json"
I specified the -model_dir as the directory that contained the bioBert files and also renamed them made sure the model name and config.json matched the -ckpt_name and -config_name flags. The default of -ckpt_name is 'bert_model.ckpt" and the default of config_name is "bert_config.json"
And did that get it working for you?
@bevankoopman Yes it did. I recommend using the HuggingFace transformers library to use Bert. It is more up to date with the current releases.
Prerequisites
bert-as-service
?README.md
?README.md
?System information
bert-as-service
version: 1.8.9Description
I downloaded from here https://github.com/naver/biobert-pretrained the BioBERT pre-trained weights, then I tried to load them in bert-as-service but I have problems.
I'm using this command to start the server:
Then this issue shows up:
Traceback (most recent call last): File "c:\program files\python37\lib\runpy.py", line 193, in _run_module_as_main "main", mod_spec) File "c:\program files\python37\lib\runpy.py", line 85, in _run_code exec(code, run_globals) File "C:\Program Files\Python37\Scripts\bert-serving-start.exe__main.py", line 9, in
File "c:\program files\python37\lib\site-packages\bert_serving\server\cli__init__.py", line 4, in main
with BertServer(get_run_args()) as server:
File "c:\program files\python37\lib\site-packages\bert_serving\server\ init.py", line 70, in init__
self.graph_path, self.bert_config = pool.apply(optimize_graph, (self.args,))
TypeError: cannot unpack non-iterable NoneType object