tree: 96971e09581e02a391fefad9c2525b340d17ad75 [path history] [tgz]
  1. bootstrap/
  2. scripts/
  3. apache_joshua_logo.png
  4. apache_joshua_logo_faded.png
  5. demo.config
  6. demo.js
  7. favicon.ico
  8. index.html
  9. README.md
demo/README.md

This provides a server demonstration for Joshua. You can load a model, feed it sentences, add custom rules, and view the translations.

There are two steps:

  1. Start Joshua in server mode, using the config file provided in this directory:

    $JOSHUA/bin/joshua -config demo.config
    

    As a third option, you could pass it your own config file on a real pre-built model, such as Joshua's language packs.

    Command-line arguments override values in the config file, so if you need to change the port only, you can do:

    $JOSHUA/bin/joshua -config demo.config -server-port 5675
    
  2. Load the index.html file, and make sure the values in the “Parameters” tab match your server settings above. You can also pass these values in the query string, e.g.,

    index.html?port=5674&server=localhost
    

That's it!