Skip to content
This repository has been archived by the owner on Dec 22, 2019. It is now read-only.
/ TRUS Public archive

It contains a program written in python 2.7 , which provides triple relations from the sentences.

License

Notifications You must be signed in to change notification settings

mr-ravin/TRUS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TRUS: Triple Relation Using Syntaxnet

TRUS is designed with the aim of providing triple relations. It is written in Python 2.7 ans is used over syntaxnet to retrieve the triple relations.

Author: Ravin Kumar

Working Demonstration

Working Demonstration

Installation Steps:-

  1. Install python 2.7

  2. Install Syntaxnet.

For the details of installing above packages refer to it's github repository

  1. Download TRUS and place "TRUS.py" inside the "/model/syntaxnet/" directory of Syntaxnet.

  2. To use TRUS, type this in the terminal:

 > python2 TRUS.pyc

Example:

> python2 TRUS.pyc
  Developed by: Mr.Ravin Kumar.  Email id: mr.ravin_kumar@hotmail.com
  Linkedin: https://www.linkedin.com/in/ravinkumar21 
  enter sentence:
  cat sat on a mat

Output:

      ['cat','sat','mat',1]

The last value here, i.e. 1 is of no use for now, but since this software is under development, It is left for prioritization. Right now, you will receive all relations of same priority (here priority means, Possibility that information is complete). Otherwise, If I had removed ( Which I have not ) that condition from the software, you may receive other relations like: ['cat','' ,'',0 ] ......... ['cat ','','mat',0] ...etc too.

Copyright (c) 2017 Ravin Kumar
Website: https://mr-ravin.github.io

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation 
files (theSoftware”), to deal in the Software without restriction, including without limitation the rights to use, copy, 
modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the 
Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the 
Software.

THE SOFTWARE IS PROVIDEDAS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE 
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, 
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

It contains a program written in python 2.7 , which provides triple relations from the sentences.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages