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.
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)
| File | Size | Uploaded | |
|---|---|---|---|
| NLPTriples-0.1.7.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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+
|