There's no tutorial but it should be easy to understand.
FactorCollection is the vocabulary for the decoder, there is only ever 1
FactorCollection object, which you can get by calling
FactorCollection &fc = FactorCollection::Instance()
A Factor is an entry in the vocab. You can get the Factor object by doing
const Factor *factor = fc.AddFactor("whatever", false);
The factor pointer is guaranteed to be unique for different strings, and
the same for the same string. Ie.
const Factor *fc1 = fc.AddFactor("whatever", false);
const Factor *fc2 = fc.AddFactor("whatever", false);
fc1 and fc2 will point to the same object.
Hieu Hoang
http://www.hoang.co.uk/hieu
On 29 October 2015 at 11:40, koormoosh <[email protected]> wrote:
> Is there any tutorial to introduce concepts "Factor", "FactorCollection"
> used in the SkeletonLM.cpp, SkeletonLM.h?
>
> On Fri, Oct 23, 2015 at 1:43 AM, Hieu Hoang <[email protected]> wrote:
>
>> i don't think you do. Try it without. Once you've compiled with MYOWN, run
>> ./bin/moses
>> this should give you a list of feature functions. It should also have
>> MYOWN
>>
>> Hieu Hoang
>> http://www.hoang.co.uk/hieu
>>
>> On 22 October 2015 at 14:59, koormoosh <[email protected]> wrote:
>>
>>> and also add it to the LM/Jamfile and the Jamroot?
>>>
>>> On Fri, Oct 23, 2015 at 12:45 AM, Hieu Hoang <[email protected]>
>>> wrote:
>>>
>>>> you need to add your lm into
>>>> FF/Factory.cpp
>>>>
>>>> Hieu Hoang
>>>> http://www.hoang.co.uk/hieu
>>>>
>>>> On 22 October 2015 at 14:44, koormoosh <[email protected]> wrote:
>>>>
>>>>> So based on SkeletonLM I can create my own MYOWN_LM.h and MYOWN_LM.cpp
>>>>> and that's it? Is there anywhere else in the mosesdecoder that I need to
>>>>> change?
>>>>>
>>>>> On Fri, Oct 23, 2015 at 12:13 AM, Hieu Hoang <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> make a copy of
>>>>>> LM/SkeletonLM.*
>>>>>> Do whatever you need to do.
>>>>>>
>>>>>> Look at IRSTLM.*, DALM.*, Ken.* for examples
>>>>>>
>>>>>> Hieu Hoang
>>>>>> http://www.hoang.co.uk/hieu
>>>>>>
>>>>>> On 22 October 2015 at 14:09, koormoosh <[email protected]> wrote:
>>>>>>
>>>>>>> Hello, Are there any guidelines for integrating language models in
>>>>>>> mosesdecoder? Thanks.
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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