Text this: Large deviations for exchangeable observations with applications