Hi, I'm trying to do some feature engineering based on manipulating different LM files. To do so I am trying to figure out how Moses handles the loading of language models, (in stead of writing a simple interface myself), also because I want to load all my models one time and then query them according to the algorithms in my features.
So far I've seen that parameters.cpp parses the parameters, and that StaticData::LoadDataStatic loads the LM. That's what it says in the comments. Looking at the function I can't find it directly so I guess it is done in the LoadFeatureFunctions function called from the LoadData in the same file. But these things are not clear to me. The actual loading seems to be done through templates in the LM/models.cc file. Still I can't understand the overall structure here. Where is the resulting class from this template actually called? I see that the LM features are created in the parameters.cpp file, but I'm not able to follow what happens to them next. Summing up I both need some overview of the code so I understand what goes where, but concretely what I want to do is to query an arbitrary number of LMs in my feature file. Thanks, //LB _______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
