A package to extract Triples in form of [predictate , object , subject] form text
Extract NLP (RDF) Triples from a sentence
A minimalistic library to extract triples from sentences. Implemented paper
Install using pip
pip install nlptriples
from nlptriples import triples,setup rdf = triples.RDF_triple() triple = rdf.extract(sent) print(triple)
- 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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for NLPTriples-0.1.7-py3-none-any.whl