Hi Rasul,

for the tree-to-string model, if you stripped the XML out of the input file 
before running filter-model-given-input.pl then I think that should have worked 
OK.  The filtered table would contain some rules that could potentially have 
been filtered out (if the tree annotation had been available), but the script 
shouldn't have filtered out usable rules.

Phil


On 3 Aug 2012, at 13:19, [email protected] wrote:

> Hi Philip,
> 
> Thanks for the information. I tried filter-model-given-input.pl on 
> tree-to-string and it worked. In fact, I had been previously using it for 
> this model and it used to work. However, I needed to filter against a 
> SAMT-relaxed input and was not sure. So, I did that, translated the input 
> using the filtered table, and compared to a translation with original table; 
> those were the same, then I concluded that it can be used for source-tree 
> models as well. I hope I have not made a mistake, though!
> 
> Do you have any idea on this, as you are the author of filter-rule-table.py?
> 
> Best Regards,
> Rasul.
> 
> Quoting Philip Williams <[email protected]>:
> 
>> Hi Rasul,
>> 
>> the filter-rule-table.py script can filter string-to-tree or  hierarchical 
>> rule tables.  The filter-model-given-input.pl script  (with the 
>> --Hierarchical option) calls the former script to perform  filtering in 
>> addition to performing some extra steps that are  required in the standard 
>> Moses MT pipeline (such as generating a new  Moses config file).
>> 
>> I'm assuming those are the two scripts you meant.  As far as I know,  there 
>> aren't any scripts for filtering tree-to-string or  tree-to-tree tables 
>> yet...
>> 
>> Phil
>> 
>> 
>> On 2 Aug 2012, at 11:35, [email protected] wrote:
>> 
>>> Hi all,
>>> 
>>> I was wondering which script is used for filtering tree-based rule
>>> tables, including hierarchical, tree-to-string, string-to-tree, and
>>> tree-to-tree. There are two filtering scripts in training scripts
>>> directory.
>>> 
>>> Thanks in advance.
>>> 
>>> Regards,
>>> Rasul.
>>> _______________________________________________
>>> Moses-support mailing list
>>> [email protected]
>>> http://mailman.mit.edu/mailman/listinfo/moses-support
>> 
>> 
> 

_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to