Example #1
0
def run():

    if len(sys.argv) < 2 :
        print """Usage : ./summarize.py <Content Root Path>"""
        return -1

    content_root_path = sys.argv[1]
    documents = MultiDocumentCorpus(content_root_path).multi_document()
    documents.summarize_and_print()
 def generateSummaries(self):
     test_documents_path = ospath.join(ospath.dirname(__file__), "test_data/summarize_multi_document_test")
     documents = MultiDocumentCorpus(test_documents_path).multi_document()
     documents.summarize_and_print()