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

HTTP请求预测时报错:not enough values to unpack (expected 4, got 2) #372

Open
ACRONYMxFYQ opened this issue Feb 16, 2021 · 3 comments

Comments

@ACRONYMxFYQ
Copy link

用postman调用
xxxx:5555/encode的时候
postbody写的是:
{
"id":1,
"texts":["1月24日,新华社对外发布了中央对雄安新区的指导意见“],
"is_tokenized":false
}

@ACRONYMxFYQ
Copy link
Author

就算用也是一样
{
"id":1,
"texts":["1月24日,新华社对外发布了中央对雄安新区的指导意见“],
"is_tokenized":false
"mode":"NER“
}

@ACRONYMxFYQ
Copy link
Author

是我请求的内容哪里不对吗 我印象中这个方法我曾经请求成功过

@ACRONYMxFYQ
Copy link
Author

问题解决了 启动参数带上 -http_port=8125 然后http请求的时候 请求这个端口就好。需要在anaconda上pip install bert-serving-server[http]

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

1 participant