> So, if I want my software to use moses to translate lattices, I need to: > 1) implement a a class, say MyWordLattices, that inherits > Moses::WordLattice with a method to read lattices from memory > 2) feed objects of type MyWordLattice to the Manager > 3) look in awe as the magic happens. Am I right?
Hi Sylvain I think you'd have to make some alterations to the WordLattice object to make this work - its data members are private. However note that the Read() method accepts an istream so you could serialise your lattice into a string and then pass it in as an istringstream. Or you could just add extra methods to WordLattice so that it can be built up programmatically, hope that helps - regards - Barry -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336. _______________________________________________ Moses-support mailing list Moses-support@mit.edu http://mailman.mit.edu/mailman/listinfo/moses-support