Added the Seq2SeqScorer class in minicons/scorer.py. Support for two source sequence formats: "blank" (no source sequence) and "copy" (source is the same as target).
Tested with T5. May not work as well with models which require separate source and target formats (e.g., BART).
Added the
Seq2SeqScorer
class inminicons/scorer.py
. Support for two source sequence formats: "blank" (no source sequence) and "copy" (source is the same as target).Tested with T5. May not work as well with models which require separate source and target formats (e.g., BART).