Defined in File cosmos.h
MarianCosineScorer takes a Marian sequence2sequence transformer model and produces sentence-wise cosine similarities for two sentence embeddings.
score(const std::string &input1, const std::string &input2)¶
input1and input2 are big strings with multiple sentences separated by ‘
Both inputs have to have the same number of separated lines. Returns a vector of similarity scores in order corresponding to input sentence order.