Example #1
0
File: io.py Project: gmanolia/csqa
def _load_data_neo4j(file_name, type='json'):
    examples = []
    if type == 'json':
        for json_obj in _load_json(file_name):
            example = Neo4jExample.load_from_json(json_obj)
            examples.append(example)
    return examples
Example #2
0
File: io.py Project: gmanolia/csqa
def _load_data_conceptnet(file_name, type='json'):
    examples = []
    if type == 'json':
        for json_obj in _load_json(file_name):
            example = ConceptNetExample.load_from_json(json_obj)
            examples.append(example)
    return examples