from jinja2 import Template from markdown import markdown import sys # appending a path sys.path.append('../') # importing customised module import summa.edits from summa.edits import scored_sentences, similarity_graph import wikipage from wikipage.page import get_wikipage wikipedia_page = "mushroom" # main # ------------------------------------------------------------------------ if __name__ == '__main__': # --- WIKI REQUEST --- # get text from wikipedia print('--- WIKI ---') page = get_wikipage(wikipedia_page) if not page: sys.exit("--- STOP ---") title = '