Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持多个模型问题 #18

Open
BucherLi opened this issue Aug 20, 2019 · 2 comments
Open

支持多个模型问题 #18

BucherLi opened this issue Aug 20, 2019 · 2 comments

Comments

@BucherLi
Copy link

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

@GaoQ1
Copy link
Owner

GaoQ1 commented Aug 20, 2019

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

@BucherLi
Copy link
Author

有报啥错没?这个我倒没有试过这个方式
错误如下:
{
"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"
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants