🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

nlptriples

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nlptriples

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

pipPyPI
Version
0.1.7
Maintainers
1

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.

Keywords

Poetry

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts