Text this: Research on Categorical Recognition and Optimization of Hallucination Phenomenon in Large Language Models