diff options
author | Patrick Simianer <p@simianer.de> | 2012-03-13 09:37:10 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2012-03-13 09:37:10 +0100 |
commit | 28454c98966fb8ff4e4d7a63c5ef773dd226d3bf (patch) | |
tree | c51e59e85a203a1913a5089d8348b45b53964981 /dtrain | |
parent | ef6085e558e26c8819f1735425761103021b6470 (diff) |
readme
Diffstat (limited to 'dtrain')
-rw-r--r-- | dtrain/README.md | 10 |
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 ----------- |