All workFILE 43 / 44
NLP tooling
Three ways to turn text into a knowledge graph
Shipped for An NLP tooling company
89.46%
01
The problem
Building a knowledge graph from text needed more than one extractor, and a way to compare them on the same input.
THE MACHINE
02
The system
A knowledge-graph extraction platform combining joint entity and relation extraction (SpERT), a T5 model fine-tuned for generative relation extraction, and spaCy dependency parsing, with NetworkX graph construction and visualisation.
System diagram: 5 nodes and 6 directed flows.
SOURCE
- input text
MODEL
- joint entity + relation extraction
- fine-tuned generative extraction
- dependency parsing
STORE
- knowledge graph + visualisation
FLOWS
- input text to joint entity + relation extraction
- input text to fine-tuned generative extraction
- input text to dependency parsing
- joint entity + relation extraction to knowledge graph + visualisation
- fine-tuned generative extraction to knowledge graph + visualisation
- dependency parsing to knowledge graph + visualisation
Available when animations are enabled.
MEASURED, NOT CLAIMED
03
The outcome
Three extraction approaches behind one platform, with the joint model at 89.46% entity F1 and 73.06% relation F1 on the CONLL04 benchmark.