Skip to content

Latest commit

 

History

History
71 lines (53 loc) · 1.8 KB

install.md

File metadata and controls

71 lines (53 loc) · 1.8 KB

Installation

a) As a docker image

Grab and run the docker image from docker hub This runs the image listening to port 8080 as a simple webserve (where the utterance is given as the URL and the reply is displayed in the retrieved page)

    docker pull martinwheatman/enguage
    docker run -p 8080:8080 --mount type=volume,src=eng,dst=/var/local/eng

b) From a DOS command line

This assumes you have git and java installed.

Git can be obtained from: https://git-scm.com/downloads

An open Java Development Kit can be obtained from https://openjdk.java.net/
or a licenced verstion from https://jdk.java.net/  Any version should do.

Type the following commands:

    C:\>git clone https://github.com/martinwheatman/enguage.git
    C:\>cd enguage
    C:\>javac opt\test\UnitTest.java
    C:\>java opt.test.UnitTest
    > i need a coffee.
    Ok , you need a coffee.
    > 
    C:\>

You can also run the java command with the '-t' option which self-tests Enguage, with around 500 examples:

    C:\>java opt.test.UnitTest -t

c) From a Linux or Cygwin shell

Copy the commands below at a Linux or Cygwin shell, to clone this repo, create and run a jar file:

    $ git clone https://github.com/martinwheatman/enguage.git
    $ cd enguage
    $ javac opt/test/UnitTest.java
    $ java  opt.test.UnitTest
    > i need a coffee.
    Ok , you need a coffee.
    > ^D
    $

You can also run the jarfile as a shell to type in utterances like a command line interface.

    $ java  opt.test.UnitTest -t
    $ java  opt.test.UnitTest -T should

This should give you many example utterances supported by the repertoires in etc/rpt/.

Great! Now you’re ready to program Enguage…!