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
Why the result is not good on the Dataset——2018CCFBDCI汽车行业用户观点主题及情感识别? #145
Comments
I have used the sentence embedding to the model—— text classification, just connected a DNN and a classifier to predict the label(such as price, power, space, security and so on) base on comment on cars. |
Do you have an implementation that works correctly ? |
Yes, I used the same model(except the word embedding that I initialized it randomly) and had a not bad results whose accuracy is 70%,however, the bert in this github is only 24%.
Here, the x_batch is(128,80,768) The total code of my model is: import tensorflow as tf from service.client import BertClientclass TRNNConfig(object):
class TextRNN(object):
` |
could you paste the command for starting the server? |
python app.py -pooling_strategy NONE -model_dir ./chinese_L-12_H-768_A-12/ -num_worker=1 |
could you fill in the issue form so that I can know which version of |
OK,I have update the issue form. |
Before changing your model or doing fine-tuning, I strongly suggest you to use the latest pip install -U bert-serving-server bert-serving-client Based on your server command and the form, I suspect you are using a pretty old version, which was even not installed via pip. Note that, there was some bugs in previous version, and was fixed since 1.5.0. These bugs may degrade the accuracy. |
OK,thanks.I will try it. |
commond: but the package info: #packages in environment at /home/pengwei/.conda/envs/bert: the return is: |
check your BertClient port, apparently you are connecting to an old (and living!) 1.5.7 server. |
Prerequisites
bert-as-service
?README.md
?README.md
?System information
bert-as-service
version: the former version,not the lastestDescription
I'm using this command to start the server:
and calling the server via:
Then this issue shows up:
I have used the sentence embedding to the model—— text classification, just connected a DNN and a classifier to predict the label(such as price, power, space, security and so on) base on comment on cars.
But the result is very bad.
Then I used the word embedding to the RNN and softmax,is bad too.I do not know why.
...
The text was updated successfully, but these errors were encountered: