GithubHelp home page GithubHelp logo

habernal / feng-hirst-rst-parser-acl-2014 Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 3.0 50.49 MB

A copy of RST parser 2.01 http://www.cs.toronto.edu/~weifeng/software.html

License: BSD 2-Clause "Simplified" License

Python 100.00%

feng-hirst-rst-parser-acl-2014's Introduction

A copy of RST parser 2.01 http://www.cs.toronto.edu/~weifeng/software.html

  • no changes made
  • see README.txt

Installation guides

Tested on Ubuntu 14.04 LTS

liblbfgs

  • Install liblbfgs dev files

  • Check your distribution (this one is Ubuntu 14.04)

       $apt-cache search liblbfgs
       [...]
       Filename: pool/universe/libl/liblbfgs/liblbfgs0_1.10-5_amd64.deb
       [...]
    
  • Install

       $sudo apt-get install liblbfgs-dev
    

Build crfsuite-0.12

$cd feng-hirst-rst-parser-acl-2014-master/tools/crfsuite/crfsuite-0.12/
$chmod +x configure
$./configure
  • you need to have gcc installed, e.g. sudo apt-get install build-essential

       $make
       $sudo make install
    
  • make links to the shared libraries (otherwise crfsuite will fail with crfsuite: error while loading shared libraries: libcrfsuite-0.12.so: cannot open shared object file: No such file or directory)

       $sudo ln -s /usr/local/lib/libcrfsuite-0.12.so /usr/lib/libcrfsuite-0.12.so
       $sudo ln -s /usr/local/lib/libcqdb-0.12.so /usr/lib/libcqdb-0.12.so
       $sudo ln -s /usr/local/bin/crfsuite /usr/bin/crfsuite-stdin
    
  • check if the installation works:

      $crfsuite-stdin tag -pi -m \ 
      feng-hirst-rst-parser-acl-2014-master/model/tree_build_set_CRF/label/intra.crfsuite \ 
      feng-hirst-rst-parser-acl-2014-master/tools/crfsuite/test.txt
       
      [..]
      @probability	0.003844
      LEAF:0.063117
      Elaboration[N][S]:0.942829
      LEAF:0.060640
    

Install python NLTK 2.09b

$apt-cache show python-nltk
[..]
Version: 2.0~b9-0ubuntu4 (on ubuntu 14.04)
[..]
$sudo apt-get install python-nltk

Test if it works

$feng-hirst-rst-parser-acl-2014-master/src$ python parse.py -t test ../texts/wsj_0607.out

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.