python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How do I load a fine-tuned AllenNLP BERT-SRL model using BertPreTrainedModel.from_pretrained()?
I have fine-tuned a BERT model for semantic role labeling, using AllenNLP. This produces a model directory (serialization directory, if I recall?) that contains the following:
best.th
config.json
meta...
Russell Richie
Votes: 0
Answers: 1
For what is used parameter return_dict in BertModel?
I have something like this model=BertModel.from_pretrained('bert-base-uncased',return_dict=True)
What exactly is this "return_dict" used for? What happens when True and what when False?
Alem
Votes: 0
Answers: 1
Accuracy Document Embedding in Apache Solr
I made use of Bert document embeddings to perform information retrieval on the CACM dataset. I achieved a very low accuracy score of around 6%. However when I used the traditional BM-25 method, the re...
Michael Pulis
Votes: 0
Answers: 1
Bert embedding layer raises 'ValueError: A target array with shape ' with BiLSTM in keras tensorflow
I've problems integrating Bert Embedding Layer in a BiLSTM model for text classification task.
My dataset is in the form where each row has 2 columns: text and polarity
text = string/tweet
polarity = ...
user18630856
Votes: 0
Answers: 1