bert_score
bert_score copied to clipboard
Cache embeddings
I'm trying to use bertscore to retrive top N similar docs, is there a a way to cache the embeddings for N docs ?
@Tiiiger
I'm using this temp solution for now : https://github.com/djaym7/bert_score_with_cache/tree/master
avg times for 7 runs: 13s without cache and 7s with using cache