Esempio n. 1
0
def load_document_list(directory, name):
    with open(directory + "/" + name) as f:
        document_strings = json.load(f)
    document_list = []
    for document_string in document_strings:
        temp_doc = Document(None, None, None, None)
        temp_doc.__dict__ = json.loads(document_string)
        document_list.append(temp_doc)
    return document_list