Hi Masaya

I think what you are saying is that you have a new feature implemented 
as a dense (ie fixed size) feature, but you would like to reimplement it 
as a sparse feature. I'm not sure if this will speed things up, but 
there some basic documentation on sparse feature implementation here:
http://www.statmt.org/moses/?n=Moses.SparseFeatureFunctions

The file fragment you gave below is an internal file used by the Moses 
tuning programs, and sparse features get added at the end of each line 
in the following format:

name_1:value_1 name_2:value_2 name_3:value_3 etc.

cheers - Barry



On 10/01/13 08:19, 大串正矢 wrote:
> Dear Moses Support Group
>
> I'm Masaya Ohgushi.
> I have a question.
>
> Question:How to use sparse weight by pro method
>
> I try to optimize weight by pro method.
> When I use a lot of features to optimized weights, it takes long time.
> I show the features file detail.
>
> ##########################################################################################
>
> FEATURES_TXT_BEGIN_0 0  2500 2191 d_0 d_1 d_2 d_3 d_4 d_5 d_6 lm_0 w_0 
> tm_0 tm_1 tm_2 tm_3 tm_4 rec_0 rec_1 rec_2 rec_3 ...
> 0 -2.24542 0 0 -2.83321 0 0 -11.935 -3 -11.9991 -11.0088 -7.77317 
> -9.83955 1.99979 0 0 0 0 ...
> 0 -3.60968 0 0 -3.1703 0 0 -19.6818 -3 -6.13765 -4.95446 -3.95076 
> -6.66001 1.99979 0 0 0 0 ...
>
> ##########################################################################################
>
> So I would like to use the sparse feature, but I don't know how to 
> change the this file.
>
> Best regards.
>
>
> -- 
>
> *******************************************
>   奈良先端科学技術大学院大学
>   情報科学研究科 情報処理学専攻
>   知能コミュニケーション研究室 博士前期課程2年
>   大串 正矢
>    Augmented Human Communication Lab
>    2nd-year master's degree student
>    Information Science
>    Nara Institute of Science and Technology
>    Masaya Ogushi
>   E-mail:[email protected] <mailto:[email protected]>
>  *******************************************
>
>
>
> _______________________________________________
> Moses-support mailing list
> [email protected]
> http://mailman.mit.edu/mailman/listinfo/moses-support


-- 
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

Reply via email to