BERT-pytorch icon indicating copy to clipboard operation
BERT-pytorch copied to clipboard

how to test the model?

Open eveliao opened this issue 7 years ago • 2 comments

Could you please give some example code to load in the pre-trained model(i.e. bert.model.ep0 files)? The code might take me a while to understand so I really appreciate it if you can help me.

eveliao avatar Oct 26 '18 08:10 eveliao

@eveliao We didn't implemented the transfer learning process yet. Cause by issue #32. But you can just load the BERT using torch.load(bert_path) and the model output is similar with lstm output(output embedding per token sequence).

codertimo avatar Oct 30 '18 03:10 codertimo

it didn't solved yet i think it's solved.

MohamedLotfyElrefai avatar Oct 14 '19 09:10 MohamedLotfyElrefai