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
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