Skip to content

aditya140/NLPTriples

Repository files navigation

NLPTriples

Extract NLP (RDF) Triples from a sentence

Overview

A minimalistic library to extract triples from sentences. Implemented paper

Converted the api created by Ted Petrou to a simple library which can be be run directly.

Installation

Install using pip

pip install nlptriples

Usage

from nlptriples import triples,setup
rdf = triples.RDF_triple()
triple = rdf.extract(sent)
print(triple)

Implementation

  1. Constituency Parse tree is create using Berkeley Neural Parser library. (the paper uses CoreNLP)
  2. The algorithm described in the paper is used to extract triples from parse trees.

About

Extract NLP (RDF )Triples from a sentence

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •