Skip to content

zeebraa00/kmapper_law_analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kmapper_law_analysis

Korean law data analysis using Topological Data Analysis and Mapper Algorithm


Installation & Execution

Prerequistes

  • Python (>= 3.6)
  • NumPy
  • Scikit-learn
  • openpyxl

1. Clone

$ git clone https://github.com/zeebraa00/kmapper_law_analysis.git

2. Install Packages

$ pip install numpy
$ pip install -U scikit-learn
$ pip install openpyxl

3. Make custom distance matrix of data

$ python make_metric.py

We have focused on the reference relation of law.

  1. Initiate the distance matrix. (Set the distance between all laws to 1.)
  2. Shorten distance between laws used in same precedent while scanning Korean precedents.
  3. The completed distance matrix is saved as a binary file. (law_data/custom_metric.npy)

4. Cluster Korean-law-data using kepler-mapper

$ python main.py

Copyright ⓒ 2021 성균관대학교 수학과 김성훈, 정재헌 All Rights Reserved

About

Korean law data analysis using Topological Data Analysis and Mapper Algorithm

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages