Closed WinterShiver closed 3 years ago
I think this error is related to the tf version, so BERT part needs a higher version of tenserflow, I use 1.12 in my case for extract BERT embeddings and the main model uses 1.8 version. This means you will need setup another conda env for BERT
Issue fixed. Thank you!
My problem when running your code for your LREC20 paper: cannot calculate BERT embeddings under GPU environment. My environment: Titan XP, cuda 9.0. I have installed all the required packages under my Python environment, and done all the previous procedures successfully (including those in setup.sh and get_char_vocab.py). However when running extract_bert_features.sh, I have got:
Could you help me on this problem? Many thanks.