Skip to main content

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

Project description

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)

Imeplemetation

  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.

Source Distribution

NLPTriples-0.1.4.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

NLPTriples-0.1.4-py3-none-any.whl (4.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page