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
- Constituency Parse tree is create using Berkeley Neural Parser library. (the paper uses CoreNLP)
- 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.6.tar.gz
(4.8 kB
view hashes)
Built Distribution
Close
Hashes for NLPTriples-0.1.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84c3742e3c115024bfeebfc905f521831127b3130798de3b601f433fa9bed15d |
|
MD5 | 6a9701f703d05510afc5859cc4c7a640 |
|
BLAKE2b-256 | 32f370db4d290d3d9b99385bca694e29f25bde861389be8cf2c1365703e0566d |