Skip to main content

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.

Metadata

Release files for nlptriples 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nlptriples 0.1.7
File Size Uploaded
NLPTriples-0.1.7.tar.gz 4.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nlptriples 0.1.7
File Interpreter ABI Platform
NLPTriples-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 9.9 kB

Release files / NLPTriples-0.1.7.tar.gz

Download URL NLPTriples-0.1.7.tar.gz
Size 4.7 kB
Tags Source
SHA-256 checksum
How to use checksums
e2d0008af5946aeef3dc906fb21d3306998688f420e9df635d3ed89aa090069a
BLAKE2b-256 checksum
How to use checksums
5a9a8612f8e9a459952007c448153280ad7e33a788c565f72e0d542f8f6985e5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.6.9 Linux/4.19.112+

Release files / NLPTriples-0.1.7-py3-none-any.whl

Download URL NLPTriples-0.1.7-py3-none-any.whl
Size 5.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cddf7f060fa4ae42c309deacfbb12c02276b23bc4d7fde3d8c800b6029b149d9
BLAKE2b-256 checksum
How to use checksums
b1a2082bbc73670781aca2393786fa900ae36d803de1be68e060184bc08d0c34
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.6.9 Linux/4.19.112+

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page