Research article Open Access Logo

NLP-Method for Identifying and Extracting Vietnamese Education Legal Documents Based on OCR and XML Techniques

Nguyen Van Sinh 1, *
Kiet Anh Phan 1
Tuan Thanh Nguyen 1
Sang Thi Thanh Nguyen 1
Son Thanh Le 1
  1. International University - Vietnam National University of Ho Chi Minh City, Vietnam
Correspondence to: Nguyen Van Sinh, International University - Vietnam National University of Ho Chi Minh City, Vietnam. Email: [email protected].
Volume & Issue: Vol. 9 No. 1 (2026) | Page No.: 2702-2714 | DOI: 10.32508/stdjet.v9i1.1536
Published: 2025-12-31

Online metrics


Statistics from the website

  • Abstract Views: 0
  • Galley Views: 0

Statistics from Dimensions

This article is published with open access by Viet Nam National University, Ho Chi Minh City, Viet Nam. This article is distributed under the terms of the Creative Commons Attribution License (CC-BY 4.0) which permits any use, distribution, and reproduction in any medium, provided the original author(s) and the source are credited. 

Abstract

Digital transformation in education requires intelligent systems for extracting, standardizing, and analyzing large volumes of legal documents in various formats. The structure of Vietnamese legal documents in education is complex, with different components, including national emblems, issuing agencies, symbols, dates of issuance, clauses, appendices, and sometimes signatures or handwritten notes. Besides, the difference has also come from their styles, such as constitutions, laws, decrees, circulars, decisions, etc. In addition, the decree also specifically regulates the document format (font, font size, margin, line spacing), arrangement of components, and rules for presenting appendices or attached documents. Therefore, processing these documents poses many challenges in information retrieval and legal data management. Natural language processing (NLP) plays a crucial role in such text and document processing. In this paper, we propose a novel approach integrating NLP, Optical Character Recognition (OCR), and image processing to process Vietnamese legal documents in the education section. This foundation serves a future optimal information retrieval system using Large Language Models (LLMs) and Generative Artificial Intelligence (GenAI). Our method includes the following steps: (1) collecting the legal document database in PDF format from the website of legal documents of the Ministry of Education and Training (MOET); (2) removing noise, segmenting different components, and converting into plain text via OCR and image processing techniques. (3) structuring the extracted text into XML format for our future system. Compared to the existing application, our system achieves an expected accuracy of over 99% with printed documents, including the ability to recognize handwritten text. This study is a step toward developing a technical solution for a data platform that enables the intelligent application of LLM and GenAI in an optimized database search engine for informed decision-making based on legal documents.

Comments