code: def with_eos(self) -> 'TranslatorInput':
          
          return TranslatorInput(sentence_id=self.sentence_id,
                                 tokens=self.tokens + [C.EOS_SYMBOL],
                                 factors=[factor + [C.EOS_SYMBOL] for factor in
                                          self.factors] if self.factors is not None else None,
                                 restrict_lexicon=self.restrict_lexicon,
                                 constraints=self.constraints,
                                 avoid_list=self.avoid_list,
                                 pass_through_dict=self.pass_through_dict)
docs: :return: A new translator input with EOS appended to the tokens and factors.