Text this: Asymptotic Optimal Inference for Non-ergodic Models /