Warning: session_start(): open(/var/lib/php/sessions/sess_uhca442sprobk8lkr7ft4u16am, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
sclass Element {
double weight = 1;
S plusWeight(S s) {
ret weight == 1 ? s : s + " [" + formatDouble(weight, 2) + "]";
}
}
sclass ChooseCategory extends Element {
AI_BottomUpParser1.Word word;
L categories;
*(AI_BottomUpParser1.Word *word, L *categories) {}
toString { ret plusWeight(word.text() + " (" + n2(categories, "category", "categories") + ")"); }
}
sclass HaveCategory extends Element {
AI_BottomUpParser1.Word word;
S category;
*(AI_BottomUpParser1.Word *word, S *category) {}
toString { ret plusWeight(quote(word.text()) + " as " + category); }
}
sclass ChoosePart extends Element {
ai_Reconstructed reconstruction;
*(ai_Reconstructed *reconstruction) {}
toString { ret plusWeight(reconstruction.a.text() + " + " + reconstruction.b.text()); }
}