xyjigsaw / Text2Graph

Text2Graph model trained with T5 (Similar to GraphGPT)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Text2Graph

Text2Graph model trained with T5

Similar to GraphGPT, this model converts unstructured natural language into a knowledge graph. We provide the trained T5 model for triple extraction.

demo

Model

We select T5-base model for training with WebNLG dataset. The model file can be downloaded from Huggingface.

Run

  1. Backend

Note that you should download our T5 model and put it into the backend folder.

cd backend
pip install -r requirements.txt 
python apiCore.py
  1. Frontend
cd frontend
npm install
npm run start

About

Text2Graph model trained with T5 (Similar to GraphGPT)

License:MIT License


Languages

Language:JavaScript 33.1%Language:Python 29.0%Language:CSS 24.3%Language:HTML 13.7%