Skip to main content

A package to extract Triples in form of [predictate , object , subject] form text

Project description


Extract NLP (RDF) Triples from a sentence


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.


Install using pip

pip install nlptriples


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


  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.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for nlptriples, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size NLPTriples-0.1.7-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size NLPTriples-0.1.7.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page