Hi Arefeh
The quickest way to see if Moses is using your feature is to put a debug
message in it to see if it gets called. You can also increase the debug
of Moses (try -v 2) to see if your feature's scores appear in the breakdown.
To populate the weights file, you will need to run tuning (kbmira or
pro). If you just decode with an empty weights file, all the weights
will be set to 0 and Moses will not update the file,
cheers - Barry
On 18/08/16 14:15, arefeh kazemi wrote:
Hi Barry
Thanks.
I create an empty weights.txt file and write it's address in
moses.ini. Moses runs normally but weights file remains empty. It
seems moses doesn't use my feature.
Regards
Arefeh
On Wed, Aug 17, 2016 at 12:57 PM, Barry Haddow
<[email protected] <mailto:[email protected]>> wrote:
Hi Arefeh
That seems OK. Tuning (with kbmira or pro) will create a weights
file for the sparse features, which you can add with:
[weight-file]
/path/to/sparse/weights
What goes wrong when you run moses?
cheers - Barry
On 17/08/16 07:50, arefeh kazemi wrote:
Hi
This is just a kindly reminder that I'm waiting for response.
Thanks
Arefe
---------- Forwarded message ----------
From: *arefeh kazemi* <[email protected]
<mailto:[email protected]>>
Date: Tue, Aug 9, 2016 at 7:28 PM
Subject: moses.ini file for sparse features
To: Moses-support <[email protected]
<mailto:[email protected]>>
Hi
I've implemented a sparse feature function in Moses Hiero system
but I don't know what are the parameters in moses.ini file for a
sparse feature.
for the dense version of my feature, I had these lines in my ini
file:
[features]
Aref num-features=4 ...
[weight]
Aref= 0.2 0.2 0.2 0.2
Now, What should I write for my sparse feature in .ini file? I
have removed the weights for Aref and also "num-features" from
ini file, but it doesn't work.
Regards
Arefeh Kazemi
--
Arefeh Kazemi
_______________________________________________
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>
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
--
Arefeh Kazemi
The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.
_______________________________________________
Moses-support mailing list
[email protected]
http://mailman.mit.edu/mailman/listinfo/moses-support