ok.. I got the first one.

What about the second one? is there a way to tell PhraseDictionary* which 
sentence is in question? So that the target phrases are only calculated for 
that sentence, while moses being multi-threaded at the same time. 

Can I override this function in PhraseDictionary.h?
virtual void GetTargetPhraseCollectionBatch
  (ttasksptr const& ttask, InputPathList const& inputPathQueue) const{
    GetTargetPhraseCollectionBatch(inputPathQueue);
  }

> On May 12, 2016, at 7:57 PM, Hieu Hoang <[email protected]> wrote:
> 
> 
> 
> Hieu Hoang
> http://www.hoang.co.uk/hieu <http://www.hoang.co.uk/hieu>
> 
> On 12 May 2016 at 18:31, Prashant Mathur <[email protected] 
> <mailto:[email protected]>> wrote:
> Hi All, 
> 
> Two questions:
> 1. Is it okay to pass the sentence ID to PhraseDictionary* via 
> InitializeForInput function? or is it not thread safe?
> InitializeForInput() is given the task object, which contains the input, 
> which contains the id.
>    ttask->GetSource()->GetTranslationId()
> it's threadsafe.
> 
> 2. The auxiliary document level tags at sentence level (<dlt>) does not seem 
> to be thread safe so I would like to have the sentence id information pass on 
> to the GetTargetPhraseCollection function.
> Is there already something that I can use?
>  
> 
> Thanks,
> Prashant 
> 
> _______________________________________________
> Moses-support mailing list
> [email protected] <mailto:[email protected]>
> http://mailman.mit.edu/mailman/listinfo/moses-support 
> <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