You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@joshua.apache.org by mj...@apache.org on 2016/11/22 16:02:05 UTC

[2/3] incubator-joshua git commit: added note about web demo to README

added note about web demo to README


Project: http://git-wip-us.apache.org/repos/asf/incubator-joshua/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-joshua/commit/6c6f2fa2
Tree: http://git-wip-us.apache.org/repos/asf/incubator-joshua/tree/6c6f2fa2
Diff: http://git-wip-us.apache.org/repos/asf/incubator-joshua/diff/6c6f2fa2

Branch: refs/heads/master
Commit: 6c6f2fa2128857fddbfea184e0c70e643f993d27
Parents: a57fe4b
Author: Matt Post <po...@cs.jhu.edu>
Authored: Tue Nov 22 11:01:22 2016 -0500
Committer: Matt Post <po...@cs.jhu.edu>
Committed: Tue Nov 22 11:01:22 2016 -0500

----------------------------------------------------------------------
 scripts/language-pack/README.template | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-joshua/blob/6c6f2fa2/scripts/language-pack/README.template
----------------------------------------------------------------------
diff --git a/scripts/language-pack/README.template b/scripts/language-pack/README.template
index 9fd9421..d05b2e1 100644
--- a/scripts/language-pack/README.template
+++ b/scripts/language-pack/README.template
@@ -57,6 +57,28 @@ You can set the RESTful interface by also passing '-server-type http':
 The RESTful interface is used when running the browser demo (see web/index.html)
 or when using the Joshua Translation Engine.
 
+Web demo
+--------
+See the web/ directory for a web-based AJAX interface to Java. One feature of this
+approach is that it permits you to add custom words and phrases to Joshua, which then
+become translation options for the decoder. To start the web demo,
+
+1. Start Joshua in HTTP server mode, as described above
+
+       ./joshua -server-port 5674 -server-type http
+
+   This starts Joshua running on port 5674.
+
+2. Load the web interface, passing it to server and port you are using
+
+       firefox "web/index.html?server=localhost&port=5674"
+
+   Any browser will do.
+
+You can then translate text, entering one sentence per line, in the main box. You can
+also experiment with adding words and phrases. These are then saved to a custom grammar.
+These rules can be managed on the "Rules" tab.
+
 Runtime options
 ---------------
 By default, the language pack runs with a single thread and with options set to