The amalgamation of information retrieval systems and soft computing techniques establishes a robust framework to confront the challenges and seize the opportunities presented by the vast expanse of big data. As the volume, diversity, and velocity of data continue to proliferate, further advancements in this domain are poised to significantly contribute to various realms, encompassing healthcare, finance, e-commerce, and scientific research, ultimately propelling innovation and facilitating decision-making in the epoch of big data. The application of artificial intelligence (AI) technology to the analysis and comprehension of legal documents holds the potential to expedite the acquisition of case-specific information by legal researchers, thereby expediting their research endeavors. This paper proposes a legal text analysis and retrieval model, rooted in the Bleem model (Bert-based Legal Paper's Element Extracting Model). Initially, our model employs Bert as the coding layer to extract the semantic information embedded within document sentences and element exemplars. Subsequently, we leverage the Attention mechanism to align the semantic essence of element example sentences with document sentences, while simultaneously computing their respective attention weights. Comparative experiments and attention visualization are then employed to validate the efficacy of the Bleem model. The experimental results corroborate the superiority of the Bleem model in terms of accuracy and F1 scores. The visualization of the attention mechanism effectively reveals the inner workings of the Bleem model and unveils its capacity to explore pertinent fragments within document sentences and element examples. Building upon the aforementioned model, we have devised an intelligent legal text analysis and retrieval system, empowering legal researchers to swiftly acquire pivotal data through case briefs. This application has effectively fostered the integration of legal services within the holistic management of public risks.