Hi Sylvain,
I've gone ahead and added the relevant function to WordLattice.h/cpp
that should make it a bit easier to construct lattices
programmatically. You'll need to encode them in the data type defined
in PCNTools.h, which is basically a programmatic representation of the
PLF format described i
I've checked in an updated kenlm as revision 3847. This involves a
binary format change, so you'll need to rebuild from your ARPA files,
sorry.
- There's an important correctness fix. Some models contain n-grams
like "foo bar baz quux" without their n-grams e.g. "bar baz quux" and
"baz quux" bec
On Tuesday 25 January 2011 14:18:59 Barry Haddow wrote:
> > I don't want to make changes to Moses source code, for the sake of
> > maintainability. I really want to use it as an external library. So, with
> > the above remark, the only option I'm left with is to serialise my
> > lattice and pass it
> I don't want to make changes to Moses source code, for the sake of
> maintainability. I really want to use it as an external library. So, with
> the above remark, the only option I'm left with is to serialise my lattice
> and pass it as an istringstream, as you said. The good news is that it
> p
On Tuesday 25 January 2011 11:32:47 Barry Haddow wrote:
> > 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 typ
> 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
Dear everyone,
I'm trying to use moses as a library. I need to have moses translate word
lattices. I've read the source to figure out how things work and I'd like to
check a few things so that I don't follow false leads.
It seems to me that when given a lattice to translate on he command line