Flatten the tokens