Hello

Thanks for your useful response, I find desired data structure in
manger::OutputSearchGraph function. we have in this function :

*vector<SearchGraphNode> searchGraph;*

*GetSearchGraph<http://www.statmt.org/moses/html/classMoses_1_1Manager.html#f2de04c96726b4feb246f2f3556b71c0>
(searchGraph);*

*
*

I want access to *searchGraph* vector in another program. How can I access
to the vector, after moses run? Indeed, I want to give *searchGraph* vector
to my application for other task. Please guide me.


Best Regards

Z. Vakil



On Fri, Sep 23, 2011 at 4:20 PM, Hieu Hoang <[email protected]> wrote:

> as ondrej pointed out, you can use the option
>
>>    -output-search-graph
>>
>> For phrase-based decoding, this calls the function
>>    Manager::GetSearchGraph()
>> For chart decoding
>>   ChartManager::GetSearchGraph()
>>
>> They simply get the hypotheses from the final stack, then iteratively
>> create the search graph by going back using the function:
>>    hypo.GetPrevHypo()
>> or
>>    hypo.GetPrevHypos()
>>
>>
>> On 23 September 2011 16:21, zeinab vakil <[email protected]> wrote:
>>
>>> Hello,
>>>
>>>  Thank for your useful response, but working with search graph file is
>>> slow in my application. I need to data structure or object of the moses,
>>> that the search graph is stored in it.please guide me.
>>>
>>>  Best Regards
>>>
>>> zeinab vakil
>>>
>>>
>>> On Tue, Sep 20, 2011 at 12:34 PM, Ondrej Bojar 
>>> <[email protected]>wrote:
>>>
>>>> Hi, Vakil,
>>>>
>>>> run moses with -h to see the list of command-line options. One of them
>>>> is -osg or -output-search-graph, which is probably what you are after.
>>>>
>>>> Cheers, O.
>>>>
>>>> "zeinab vakil" <[email protected]> wrote:
>>>>
>>>> >hello,
>>>> >
>>>> >Moses give best hypothesis for one sentence, but I need to a graph
>>>> including
>>>> >all possible paths (all hypotheses) after pruning. I know that moses
>>>> product
>>>> >such graph, but I don't know that how I can access it. Please guide me.
>>>> >
>>>> >vakil
>>>> >_______________________________________________
>>>> >Moses-support mailing list
>>>> >[email protected]
>>>> >http://mailman.mit.edu/mailman/listinfo/moses-support
>>>>
>>>>
>>>> --
>>>> Ondrej Bojar
>>>> http://www.cuni.cz/~obo
>>>>
>>>
>>>
>>> _______________________________________________
>>> 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
>
>
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support

Reply via email to