GithubHelp home page GithubHelp logo

lc4eu's Introduction

System Pre-requisites:

Download and Install ubuntu 20.04 or above version from the following link: https://ubuntu.com/download/desktop

Update Ubuntu

Run the following command on terminal: sudo apt-get update

Install git:

copy the following command on terminal: sudo apt-get install git

To clone the language communicator tool from github copy the following command and paste it on the terminal: git clone https://github.com/sukhada-sukhada/lc4eu

#Language Communicator #Readme to generate English sentences using a USR csv input

Pre-requisites:

  1. pydelphin needs to be installed in $HOME
  2. Ace parser 0.34 version in $HOME (Note: Link: http://sweaglesw.org/linguistics/ace/download/ download ace-0.9.34-x86-64.tar.gz and erg-1214-x86-64-0.9.34.dat.bz2 from the above link. Keep the erg-1214-x86-64-0.9.34.dat.bz2 in ACE directory and extract it. )
  3. CLIPS
    1. Download zip file : (https://sourceforge.net/projects/clipsrules/files/CLIPS/6.40_Beta_1/clips_core_source_640.zip/download)
    2. copy the zip file in lc4eu folder
    3. unzip clips_core_source_640.zip

Set path::

Set pydelphin and language_communicator path in ~/.bashrc:

Run following command to open the bashrc file: gedit ~/.bashrc OR vi ~/.bashrc

  1. Copy and paste the following lines at the end of ~/.bashrc

     export PYDELPHIN=$HOME/pydelphin
     export lang_comm=$HOME/lc4eu
     export PATH=$lang_comm/bin:$PATH
    
  2. Save and close the ~/.bashrc file

  3. On terminal run following command: source ~/.bashrc

Compile:

Run the following commands on terminal: cd $lang_comm/clips_core_source_640/core make -f makefile mv clips $lang_comm/bin/

  1. Run Language Communicator Tool:

To Run: Create a USR csv for a sentence or use an existing USR csv file from the folder "$HOME/lc4eu/verified_sent".

Run the USR csv file using following command: bash lc.sh (Note: USR csv filenames are stored as numbers)

    bash lc.sh $HOME/lc4eu/verified_sent/1

NOTE: Intermediate output files are stored in a folder, inside the folder tmp_dir, named on input file name. (For example, the output of the above command is stored in: $HOME/lc4eu/tmp_dir/1/)

lc4eu's People

Contributors

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