Giter Site home page Giter Site logo

srl's Introduction

SRL

Semantic Role Tagger for LREC 2018

For testing this code, dummy files have been given in the folder '/finalTraining' and '/argument-classification/allTest/finalTest'

To run the code : Use python version 2.7 or later Libraries needed - sklearn, numpy, gensim, pickle, keras

How to run:

  1. -> python prune_sentences.py finalTraining/ #takes out the sentences which don't have pbrole annotation.
  2. -> python feature_extraction.py finalTraining/ #when given a propbank data file as input, it creates features of the files in this folder.

In the folder 'wordvecTrain/'

python trainCBOW.py hindi_corpus/ #train a word2Vec model using CBOW

In the folder 'argument-classification/allTest/' #do the same things

  1. -> python prune_sentences.py finalTest/

  2. -> python testFeaturesExtraction.py finalTest/

  3. -> python testVectorizer.py testFeats.txt #formed after step 4.

In the folder 'argument-classification/' -->

  1. -> python clVectorizer.py ../trainFeats.txt #trainFeats.py is formed after step 2.

  2. -> python crossVal.py #gives out the results after 5 cross validation.

For data set queries, you may contact -> [email protected]

srl's People

Contributors

ashg1910 avatar

Watchers

James Cloos avatar  avatar Reem Abdel-Salam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.