Hello, world!
knowledge graph는 information extraction task의 결과로 생성된 data를 저장하는 방식이라고 할 수 있다. knowledge graph의 basic implementation은 우리가 triple이라고 부르는 개념(주어, 서술어, 목적어로 이루어진 set)을 사용한다.
London is the capital of England. Westminster is located in London.
우리는 여기서 2개의 triples를 만들 수 있다:
(London, be capital, England), (Westminster, locate, London)
3개의 unique entities: London, Engliand, Westminster
2개의 relations: be capital, locate
이러한 task는 방대한 양에 대해서 인간이 수행하기에 적절하지 않다. 하지만 ML기술을 활용하여 기계에 방대한 data를 학습시켜 인간의 자연어를 이해하게 할 수 있다!
NLP 기술인 sentence segmentation, dependency parsing, parts of speech tagging, entity recognition을 통해서 가능하다.
https://www.kaggle.com/code/pavansanagapati/knowledge-graph-nlp-tutorial-bert-spacy-nltk/notebook