def decode_sentencepiece(text):
  """Decodes text that uses https://github.com/google/sentencepiece encoding.
  Assumes that pieces are separated by a space"""
  return "".join(text.split(" ")).replace("▁", " ").strip()