diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-11 16:25:38 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-11 16:25:38 +0100 |
commit | 546f3936d4bf51b1f575b2b4adf4e20330db22f2 (patch) | |
tree | 799356f7583bb19cc463132e9a634b45e9b0cd0b /derivation_to_json/README.md | |
parent | 6cafb943db279faa4fc0ddb400ad1326d129c5e6 (diff) |
DerivationToJson module
Diffstat (limited to 'derivation_to_json/README.md')
-rw-r--r-- | derivation_to_json/README.md | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/derivation_to_json/README.md b/derivation_to_json/README.md new file mode 100644 index 0000000..9667a80 --- /dev/null +++ b/derivation_to_json/README.md @@ -0,0 +1,9 @@ +This (horrid) hack reads cdec's "--show_derivations" and "--extract_rules" into +data structures and tries to align "groups" in source and target sides +of rules in a smart, presentable way. The result resembles a phrase-based +system, given that the word alignment gives enough hints. + +To run: + ./derivation_to_json.rb < <one of the .raw files> +(first line of stdout is json data, source and target strings follow after that) + |