All workFILE 43 / 44

NLP tooling

Three ways to turn text into a knowledge graph

Shipped for An NLP tooling company

89.46%

entity F1 on the CONLL04 benchmarkNLP TOOLING COMPANY

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.

FIG. 01 · SYSTEM FLOW · 5 NODES · 6 FLOWS

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

  1. input text to joint entity + relation extraction
  2. input text to fine-tuned generative extraction
  3. input text to dependency parsing
  4. joint entity + relation extraction to knowledge graph + visualisation
  5. fine-tuned generative extraction to knowledge graph + visualisation
  6. 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.