Re: [joshua-support] Grammar rules

18 views
Skip to first unread message

Matt Post

unread,
Apr 1, 2013, 10:26:57 AM4/1/13
to joshua_...@googlegroups.com
Yes: add %t to the "output-format" variable, e.g.,

$JOSHUA/bin/decoder -output-format "%i ||| %t ||| %f ||| %c"

The default output-format is 

%i ||| %s ||| %f ||| %c

which is the sentence number, the target-side-string, the feature values, and the hypothesis score.  %t prints the derivation tree, so you could do something like


On Apr 1, 2013, at 10:22 AM, bibek....@gmail.com wrote:

Is there a way to print the way grammar rules have been used to construct the output sentence.

--
You received this message because you are subscribed to the Google Groups "Joshua Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to joshua_suppor...@googlegroups.com.
To post to this group, send email to joshua_...@googlegroups.com.
Visit this group at http://groups.google.com/group/joshua_support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Luke Orland

unread,
Apr 1, 2013, 1:17:12 PM4/1/13
to joshua_...@googlegroups.com, bibek....@gmail.com
Matt's example shows the output-format being specified with a command-line option to the decoder executable. You can also edit joshua.config if you are using one (then add the flag -c /path/to/joshua.config).

On Monday, April 1, 2013 12:54:45 PM UTC-4, bibek....@gmail.com wrote:
Which file should i make this change?
Reply all
Reply to author
Forward
0 new messages