Minor update: added support for custom source sequences when using Seq2SeqScorer.
Usage:
from minicons import scorer
s2s_scorer = Seq2SeqScorer("t5-base", "cpu")
source_seqs = ["form question: The man that hasn't seen the yaks has left.", "form question: The man that hasn't seen the yaks has left."]
target_seqs = ["Has the man that hasn't seen the yaks left?", "Hasn't the man that seen the yaks has left?"]
# Optional: use argument `source_format="custom"`
s2s_scorer.sequence_score(target_seqs, source=source_seqs)
Minor update: added support for custom source sequences when using Seq2SeqScorer.
Usage: