Skip to content

How to use the extracte KG to answer question? #2

@ali3assi

Description

@ali3assi

Thanks for sharing this work.

I am trying to execute the code on windows 10.

So once we execute the following:

if __name__ == '__main__':
	################ Initialise data structures ################
	print('Building Graph..')
	explainable_information_graph = KnowledgeGraphBuilder(KG_BUILDER_DEFAULT_OPTIONS).set_content_list(PHI, remove_stopwords=False, remove_numbers=False, avoid_jumps=True).build()
	# save_graphml(explainable_information_graph, 'knowledge_graph')
	print('Graph size:', len(explainable_information_graph))
	print("Graph's Clauses:", len(list(filter(lambda x: '{obj}' in x[1], explainable_information_graph))))

how can we now ask question like the question in Table 1. in your paper ```
Legal Knowledge Extraction for
Knowledge Graph Based
Question-Answering

 to get answer? 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions