rasa_nlu_gq icon indicating copy to clipboard operation
rasa_nlu_gq copied to clipboard

支持多个模型问题

Open BucherLi opened this issue 4 years ago • 2 comments

rasa通过自带的project参数可用来切换模型, curl 'ip:port/parse?q=123&project=project1' curl 'ip:port/parse?q=123&project=project2' 但是该项目的bilstm 实体识别不支持多个模型的切换。

BucherLi avatar Aug 20 '19 11:08 BucherLi

有报啥错没?这个我倒没有试过这个方式

GaoQ1 avatar Aug 20 '19 14:08 GaoQ1

有报啥错没?这个我倒没有试过这个方式 错误如下: { "error": "Variable char_embedding/char_embedding already exists, disallowed. Did you mean to set reuse=True or reuse=tf.AUTO_REUSE in VarScope? Originally defined at:\n\n File "../rasa_nlu/models/model.py", line 147, in embedding_layer\n initializer=self.initializer)\n File "../rasa_nlu/models/model.py", line 78, in init\n self.char_inputs, self.seg_inputs, config)\n File "../rasa_nlu/extractors/bilstm_crf_entity_extractor.py", line 263, in load\n model = Model(meta)\n" }

BucherLi avatar Aug 29 '19 05:08 BucherLi