Source code for pytext.metric_reporters.seq2seq_utils

#!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved


[docs]def stringify(token_indices, vocab): return " ".join([vocab[index] for index in token_indices])