GithubHelp home page GithubHelp logo

nayoung-oh / easy_to_read Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 39.35 MB

CS376 Team 4 Repository about generating Easy-to-Read sentences considering user's fluency

Python 85.41% HTML 14.59%
sentence-simplification

easy_to_read's Introduction

Easy-to-Read Sentence Generation for the Intellectual Disability

CS376 Team 4 Code Repository (GITHUB)

Prepare wikilarge or wikismall dataset

  1. Download the raw datasaet from DRESS repository (DRESS_REPO)
  2. Unzip the file to wikilarge or wikismall folder
  3. Run python preprocess_data.py --data wikilarge for wikilarge, python preprocess_data.py --data wikismall for wikismall

Set up environment

  1. Run conda create --name --file requirements.txt python==3.7
  2. If you want to run the demo website, install Flask, too.
  3. If you want to generate EASSE reports, follow the EASSE repository (EASSE_REPO)

How to train the baseline model (naive transformer)

ex) with wikilarge dataset

python train.py --data wikilarge --model naive --loss none

How to train our own model (feature-based transformer)

ex) with wikilarge dataset, without weighted loss

python train.py --data wikilarge --model feature --loss none

ex) with wikilarge dataset, with weighted loss

python train.py --data wikilarge --model feature --loss weighted

How to test the trained model (calculate cosine similarity)

ex) with wikilarge dataset, with weighted loss

python test.py --data wikilarge --model feature --loss weighted --path PATH

if you want to check the output of a specific sentence, use simplify function

If you have any questions, use Issues

easy_to_read's People

Contributors

nayoung-oh avatar zosiazamoyska avatar

Watchers

 avatar  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.