OK. This was for a unit test.
On Wed, Aug 28, 2013 at 4:27 AM, Hieu Hoang <[email protected]> wrote: > line contains the string that is specified in the [feature] section for > the feature. eg. > KENLM lazyken=0 name=LM0 factor=0 path=../interpolated-binlm.1 order=3 > the line variable should be passed to the FeatureFunction base class > during construction. > > you can then parse it for your feature-specific variables. Best to do this > by > 1. call ReadParameters() in your constructor > 2. Implement > SetParameter(const std::string& key, const std::string& value) > > see class PhraseBoundaryState for a good example, or the irstlm or srilm > in about 2 yrs after i've cleaned them up... > > > > On 27 August 2013 19:22, Lane Schwartz <[email protected]> wrote: > >> I'm doing some LM tinkering, and I noticed that there's a new parameter >> in FeatureFunction and its descendents. >> >> What is the following parameter represent? >> >> "const std::string &line" >> >> Thanks, >> Lane >> >> >> _______________________________________________ >> Moses-support mailing list >> [email protected] >> http://mailman.mit.edu/mailman/listinfo/moses-support >> >> > > > -- > Hieu Hoang > Research Associate > University of Edinburgh > http://www.hoang.co.uk/hieu > > -- When a place gets crowded enough to require ID's, social collapse is not far away. It is time to go elsewhere. The best thing about space travel is that it made it possible to go elsewhere. -- R.A. Heinlein, "Time Enough For Love"
_______________________________________________ Moses-support mailing list [email protected] http://mailman.mit.edu/mailman/listinfo/moses-support
