Open GoogleCodeExporter opened 9 years ago
Actually, this is not a bug. The correct code should be :
def unroll1(label: MedicalNerLabel) = if (excludeSkipEdges) Nil else for (other <- label.token.chainAfter; if (other !=null && other.string == label.token.string)) yield Factor(label, other.attr[MedicalNerLabel])
def unroll2(label: MedicalNerLabel) = if (excludeSkipEdges) Nil else for (other <- label.token.chainBefore; if (other !=null && other.string == label.token.string)) yield Factor(other.attr[MedicalNerLabel], label)
def statistics(v:Values) = Stat(BooleanDomain.getValue(v._1.intValue == v._2.intValue))
The mistake was due to the fact that I was trying to follow the example of
chainNer2, which uses different kinds of variables.
Original comment by pall...@gmail.com
on 6 Jun 2012 at 8:00
Original issue reported on code.google.com by
pall...@gmail.com
on 6 Jun 2012 at 3:20