This can be written as a Gibbs distribution parameterized with weights f , where g is the size of the label set.
we use the machine learning toolkit LLAMA (Haffner, 2006) to estimate the conditional distribution using maxent.