Text this: Probabilistic phase labeling and lattice refinement for autonomous materials research