summaryrefslogtreecommitdiff
path: root/dtrain/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'dtrain/README.md')
-rw-r--r--dtrain/README.md10
1 files changed, 3 insertions, 7 deletions
diff --git a/dtrain/README.md b/dtrain/README.md
index c39d94d2..0240a694 100644
--- a/dtrain/README.md
+++ b/dtrain/README.md
@@ -12,24 +12,20 @@ builds when building cdec, see ../BUILDING
Running
-------
To run this on a dev set locally (default):
-<code>
-#define DTRAIN_LOCAL
-</code>
+ #define DTRAIN_LOCAL
otherwise remove that line or undef. You need a single grammar file
or per-sentence-grammars (psg) as you would use with cdec.
Additionally you need to give dtrain a file with
references (--refs).
The input for use with hadoop streaming looks like this:
-<code>
-<id>\t<source>\t<ref>\t<grammar rules separated by tab>
-</code>
+ <sid>\t<source>\t<ref>\t<grammar rules separated by \t>
To convert a psg to this format you need to replace all "\n"
by "\t". Make sure there are no tabs in your data.
For an example of local usage (with 'distributed' format)
the see test/example/ . This expects dtrain to be built without
-DTRAIN_LOCAL param.
+DTRAIN_LOCAL.
Legal stuff
-----------