Penalty law recognizer
Written in Python, JavaScript, HTML, CSS, Node.js using Express.
This project was done as part of Digital Humanities election course
As part of collaboration with the department of Justice in Israel, We assist in the process of switching legal documents and documenting method to digital.
The goal of this project:
determine if a given section in law is a penalty section.
How does it work:
You may insert the content of the section (in Hebrew) on the website we've built.
Our program will do the following calculation:
- Create data set from the given data [tag, section_content]
- Spliting the data into train and test sets (80%-20%)
- Create a bag of words
- Create a classifier by training the model
Clicking the button will return the classification of the given section (penalty / not penalty)
Running the project:
- Run this command in your terminal:
git clone https://github.com/danadvo/penal-law-recognizer.git
-
Install Python, Sqlearn, Pandas, numPy libraries
-
Build and run the following command in your terminal:
node server.js
- Open your browser on: http://localhost:3000/
You should see this:
- Insert the content of the section and press the button