Korean law data analysis using Topological Data Analysis and Mapper Algorithm
- Python (>= 3.6)
- NumPy
- Scikit-learn
- openpyxl
$ git clone https://github.com/zeebraa00/kmapper_law_analysis.git
$ pip install numpy
$ pip install -U scikit-learn
$ pip install openpyxl
$ python make_metric.py
We have focused on the reference relation of law.
- Initiate the distance matrix. (Set the distance between all laws to 1.)
- Shorten distance between laws used in same precedent while scanning Korean precedents.
- The completed distance matrix is saved as a binary file. (law_data/custom_metric.npy)
$ python main.py
Copyright ⓒ 2021 성균관대학교 수학과 김성훈, 정재헌 All Rights Reserved