@classmethod
    def candMatchesRef(cls, hyp):

        if hyp.startswith("<s>"): hyp = hyp[4:]
        if hyp.endswith("</s>"): hyp = hyp[:-5]
        return RefPhrases.isValidRefPhrNSent(cls.sent_id, hyp)
Checks whether the candidate hypothesis matches at least one given reference
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/lazyMerge_CP.py/Lazy.candMatchesRef