def getHypothesis(self):

        tgtWrds = self.tgt.split()
        if tgtWrds[0] == "<s>" and tgtWrds[-1] == "</s>":
            return ' '.join(tgtWrds[1:-1])
        elif tgtWrds[0] == "<s>" and not tgtWrds[-1] == "</s>":
            return ' '.join(tgtWrds[1:])
        elif not tgtWrds[0] == "<s>" and tgtWrds[-1] == "</s>":
            return ' '.join(tgtWrds[:-1])
        else: return ' '.join(tgtWrds)
Remove the beginning and end sentence markers in the translation
dataset/ETHPy150Open sfu-natlang/Kriya/src/Kriya-Decoder/hypothesis.py/Hypothesis.getHypothesis