Giter VIP home page Giter VIP logo

sents-reproduction's Introduction

State-of-the-art reproduction of SENTS

SENTS is a Neural Text Simplification system using Semantic Splitting for: Simple and Effective Text Simplification Using Semantic and Neural Methods

Requirements

  • Python 3.6

Simplify Text | Install & Configure

  1. Checkout the repository
git clone https://github.com/nzaim001/SENTS-reproduction.git
cd SENTS-reproduction/
  1. Create a Python virtual environment. For example, on Linux:
virtualenv --python=/usr/bin/python3 venv
venv/bin/activate
  1. Install tupa & matplotlib
pip install tupa matplotlib
  1. Download and unpack TUPA's pre-trained models
curl -LO https://github.com/huji-nlp/tupa/releases/download/v1.3.3/ucca-bilstm-1.3.3.tar.gz
tar xvzf ucca-bilstm-1.3.3.tar.gz
  1. OpenNMT dependencies

    1. Install Torch (Using conda: lua-torch)
    2. Install additional packages:
    luarocks install tds
  2. Checkout the NTS model repository & Download the pretrained models NTS & NTS-w2v

git clone --recursive https://github.com/senisioi/NeuralTextSimplification.git
cd NeuralTextSimplification
python src/download_models.py ./models
cd ..
  1. Apply the existing patch to the NTS model
patch -s -p0 < NTS.patch
  1. Get help on using the Makefile to run the Text Simplification system
make help

Web : Install & Configure

1- Install the environment : Nodejs, AngularJS, necessary Modules/Packages:

cd website/
. install_modules.sh

2- Run the server :

node server.js

Then navigate to :

localhost:3000/

You can edit the web listening port in serve.js. In our case, it is 3000

The Content of this Repository

./scripts

  • article_to_sentences.py: A small script that splits the given article to many files, each one containing a single sentence.
  • split_sentences.py: A script that uses two semantic rules to split sentences presented in a UCCA-parsed XML format.

./website

  • A web server to run the Text Simplification system

Authors

Credit & Acknoweldgement

sents-reproduction's People

Contributors

nzaim001 avatar

Watchers

Tao Luo 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.