摘要:This paper presents a corpus of pre-processed Mexican laws for computational tasks. Themain contributions are the proposed JSON structure and the methodology used to achieve the semistructured corpus with the selected algorithms. Law PDF documents were transformed into plain text,unified by a deconstruction of law–document structure, and labeled with natural language processingtechniques considering part of speech (PoS); a process of entity extraction was also performed. Thecorpus includes the Mexican constitution and the Mexican laws that were collected from the officialsite in PDF format repealed before 14 October 2021. The collection has 305 documents, including: theMexican constitution, 289 laws, 8 federal codes, 3 regulations, 2 statutes, 1 decree, and 1 ordinance.The semi-structured database includes the transformation of the set of laws from PDF format to adigital representation in order to facilitate its computational analysis. The documents were migratedto JSON type files to represent internal hierarchical relations. In addition, basic natural languageprocessing techniques were implemented on laws for the identification of part of speech and namedentities. The presented data set is mainly useful for text analysis and data science. It could be used forvarious legislative analysis tasks including: comprehension, interpretation, translation, classification,accessibility, coherence, and searches. Finally, we present some statistic of the identified entities andan example of the usefulness of the corpus for environmental laws.
关键词:Mexican legislation;laws;natural language processing;legislative documents