I think everything is correct, except it should be *PhraseDictionaryOnDisk
rather than **PhraseDictionaryBinary. *

*However, for string-to-tree, the binary/ondisk phrase-table is very slow.
You're better off sticking with memory phrase-table, but that requires a
lot of memory*




On 12 February 2014 09:14, Mohammad Salameh <[email protected]> wrote:

> Hi ,
> I am trying to run a heirarichal phrase based  model using a binarized
> rule table.
> I am using the string-to-tree example in the sample-models.tgz provided
> in the tutorial. I am expecting the *rules* directory with
> Misc.dat  Source.dat  TargetColl.dat  TargetInd.dat  Vocab.dat
> to binarized directory of rule-table generated by running CreateOnDiskPt.
>
> I copied moses,ini and changed these 2 lines to
>
> *PhraseDictionaryMemory input-factor=0 output-factor=0
> path=string-to-tree/rule-table num-features=1 table-limit=20 *
> *PhraseDictionaryMemory0= 0.5*
>
>  to
>
>
> *PhraseDictionaryBinary input-factor=0 output-factor=0
> path=string-to-tree/rule-table num-features=1 table-limit=20 *
>
> *PhraseDictionaryBinary0= 0.5*
>
>  When I run
> echo 'das ist ein haus' | moses_chart -f string-to-tree/moses-bin.ini > out
> I am getting the following error:
>
>
>
> Defined parameters (per moses.ini or switch):
>  config: string-to-tree/moses-bin.ini
> cube-pruning-pop-limit: 1000
> feature: KENLM name=LM factor=0 order=3 num-features=1
> path=lm/europarl.srilm.gz WordPenalty UnknownWordPenalty
> PhraseDictionaryBinary input-factor=0 output-factor=0
> path=string-to-tree/rules/ num-features=1 table-limit=20
>  input-factors: 0
> inputtype: 3
> mapping: 0 T 0
>  max-chart-span: 20 1000
> non-terminals: X S
> search-algorithm: 3
>  translation-details: translation-details.log
> weight: WordPenalty0= 0 LM= 0.5 PhraseDictionaryBinary0= 0.5
> /local/scratch/msalameh/SMT/mosesdecoder2.1/bin
> line=KENLM name=LM factor=0 order=3 num-features=1
> path=lm/europarl.srilm.gz
> FeatureFunction: LM start: 0 end: 0
> Loading the LM will be faster if you build a binary file.
> Reading lm/europarl.srilm.gz
>
> ----5---10---15---20---25---30---35---40---45---50---55---60---65---70---75---80---85---90---95--100
> **The ARPA file is missing <unk>.  Substituting log10 probability -100.000.
>
> **************************************************************************************************
> line=WordPenalty
> FeatureFunction: WordPenalty0 start: 1 end: 1
> line=UnknownWordPenalty
> FeatureFunction: UnknownWordPenalty0 start: 2 end: 2
> line=PhraseDictionaryBinary input-factor=0 output-factor=0
> path=string-to-tree/rules/ num-features=1 table-limit=20
> FeatureFunction: PhraseDictionaryBinary0 start: 3 end: 3
> Loading LM
> Loading WordPenalty0
> Loading UnknownWordPenalty0
> Loading PhraseDictionaryBinary0
> max-chart-span: 20
> IO from STDOUT/STDIN
> Created input-output object : [1.041] seconds
> terminate called after throwing an instance of 'util::Exception'
>   what():  ./moses/PDTAimp.h:231 in void Moses::PDTAimp::Create(const
> std::vector<long unsigned int>&, const std::vector<long unsigned int>&,
> const string&, const std::vector<float>&) threw util::Exception'.
> bin ttable does not exist
> Aborted (core dumped)
>
> Is there anything I am missing?
>
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support
>
>


-- 
Hieu Hoang
Research Associate
University of Edinburgh
http://www.hoang.co.uk/hieu
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to