docstr: replace the separator in encoded result with suffix
  
  a@@, b@@, c ->  a, b, c</w>
  
  Parameters
  ----------
  sentence
  
  Returns
  -------
  new_sentence
docstr_tok: ["replace","the","separator","in","encoded","result","with","suffix","a","@","@",",","b","@","@",",","c","-",">","a",",","b",",","c","<","\/w",">","Parameters","--","--","--","--","--","sentence","Returns","--","--","--","-","new_sentence"]
code: def transform_sentence(self, sentence):
      """replace the separator in encoded result with suffix
  
      a@@, b@@, c ->  a, b, c</w>
  
      Parameters
      ----------
      sentence
  
      Returns
      -------
      new_sentence
      """
      return [
          word[:-2]
          if len(word) > 2 and word[-2:] == self._separator
          else word + self._suffix
          for word in sentence
      ]
  
file_path: gluon-nlp/src/gluonnlp/data/tokenizers/subword_nmt.py
imports: import os
  from typing import Optional, Union, List
  from .base import TOKENIZER_REGISTRY, BaseTokenizerWithVocab, TokenizerEncodeWithoutVocabError, TokenizerDecodeWithoutVocabError, TokenTypeNotSupportedError, rebuild_offset_from_tokens, TokensType, TokenIDsType, TokenOffsetsType, SentencesType, is_tokens_from_multiple_sentences, get_token_type
  from ..vocab import Vocab, load_vocab
  from ...utils.lazy_imports import try_import_subword_nmt
label_desc: Use image node_id 2 for calling the SubwordNMTTokenizer obj's underlying member method code with example usage: obj.transform_sentence(sentence) and returns: unknown