Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nlptriples

Package Overview
Dependencies
Maintainers
1
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

  • 0.1.7
  • PyPI
  • Socket score

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

  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.

Keywords

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc