Code - Measuring Clarity in Legal Text

Code - Measuring Clarity in Legal Text


The following code is used in my work in progress, Measuring Clarity in Legal Text. The files should be run in Python (.py), C (.c), R (.r), and Jupyter (.ipynb). The Jupyter notebook scripts are used to run Python, C, and R code on remote clusters. I primarily ran them using Google Colab, but they should be usable in any environment compatible with Jupyter notebooks.

I’m also happy to provide the datasets used in the article—please email me at jonchoi@umn.edu, if interested.

Boostrap-Train-Glove.ipynb

Bootstrap-from-Scratch.ipynb

bootstrap_vectors_from_scratch.py

Calculate_Statistics.ipynb

calculate_statistics.py

pre_process_corpus_data.py

Pre-Process-Corpus.ipynb

R-Calculations-and-Figures-e88p.ipynb

Refine-Vectors.ipynb

refine.py

This page was last updated on June 30, 2022.