How to get words from subwords ? Model used to get subwords: T5 model - subwords got by using multihead attention

Using attention weights of T5 am getting top words from the input sentence. For example,
[ ‘commemorat’, ‘congratulat’,‘cricket’,‘debut’, ‘felicit’]. How do we get correct words for the subwords like congratulat in the given example?