Skip to content

DAINTINESS-Group/LegislativeTextParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Legislative Text Parser

Legislative Text Parser is a Java-based application designed to process legislative documents, extract key entities, and visualize the results in an intuitive graphical interface. This tool is particularly useful for legal experts, policymakers, and researchers working with legal texts.


Features

Legislative Text Processing:

  • Processes legislative documents (PDF format).
  • Extracts entities from articles with definitions.

Entity Extraction:

  • Dynamically identifies key entities in legislative documents.
  • Supports custom definition locations (chapter/article selection).

Visualization:

  • Displays extracted entities in a user-friendly list view.
  • Visualizes the hierarchical structure of legislative documents in a DefaultMutableTreeNode Swing-component.

Interactive GUI:

  • Built using Java Swing for intuitive and responsive interaction.
  • Features input validation, progress tracking, and error notifications.

Prerequisites

Before running the application, ensure the following software is installed:

  • Java Development Kit (JDK) 19 or higher
  • Apache Maven (for dependency management)
  • JSON library (org.json) included in pom.xml

Installation

  1. Clone the repository:

    git clone https://github.com/your-repo/legislative-text-parser.git
    cd legislative-text-parser
    
  2. Compile the project using Maven:

    mvn clean compile
    
  3. Run the application:

    java -cp target/legislative-text-parser-1.0.jar org.uoi.legislativetextparser.gui.MainMenu
    
    

How to Use

1. Input a Legislative Document

  • Select a legislative document (PDF format) using the Input Path field.
  • Specify the output path for the processed document (JSON format).

2. Extract Entities

  • (Optional) Specify the chapter and article number for definitions.
  • Click Start to process the document.

3. Visualize Results

  • Upon successful processing, a popup notification confirms that the operation completed successfully.
  • Entity Visualizer: Displays a list of extracted entities.
  • Tree Visualizer: Shows a hierarchical structure of the document.

Contact

For questions or support, please contact:




About

A parser for legislative texts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages