Skip to content

manoharsham/topic_model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

topic_model

#How to generate the json file . The json.dumps is used here python3 WikiExtractor3.py Wikipedia-MachineLearning.xml --sections --lists --json -o MLfiles #Example code to retreive the json file

import json data = [json.loads(line) for line in open('wiki_01', 'r')] print(data[2]['text']) print(data[2]['related'])

#processing ac.*json files import json import glob

contents=[] for file in glob.glob('manu_model/ac.*.json'): print("Processing", file, "...") with open(file, 'r') as j: contents.append(json.loads(j.read())) contents[0][0]["title]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors