def METHOD_NAME(text):
    """Convert string to list of token indices.
    WMT 2014 has already been tokenized with byte-pair encoding. We
    add BOS and EOS tokens.
    """
    indices = [bos_index]
    indices.extend(token_indices.get(token, unk_index) for token in text.split(" "))
    indices.append(eos_index)
    return indices