Skip to content

NinaTian98369/Wikipedia-Category-Tree-Extractor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wikipedia Category Tree

Extract wikipedia tree structure from an assigned root word, and visualize the tree structure.

Generation Part

Requirements

wikitools

Usage

python3 categoryTree-en.py category_name depth output_file

  • category_name : Category which we are looking into.This category will form the root of Category tree.
  • depth : This argument decides the depth of the category tree
  • default language = En, support other languages by changing the wikipedia url and encoding.

Visualize Part

Requirements

anytree

graphviz (used to covert .dot file to .png file)

Usage

mkdir dots

python3 VisualizeTree-en.py category_name depth cat_tree

dot -Tpng input.dot > output.png

About

Extract wikipedia tree structure from an assigned root word.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages