Warning: session_start(): open(/var/lib/php/sessions/sess_eh058davev3b57ral9hdg9hvl2, 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 AI_PronounResolver1 {
S input;
Pair pNouns;
LS tok;
L pwt;
new L>> pronouns;
new L>> nounPhrases;
*() {}
*(S *input) {}
swappable bool isPronoun(S s) { ret ai_isPronoun(s); }
swappable bool isNoun(S s) { ret isPrefixPlusNumber(s, "entity") || pNouns.b.contains(s); }
run {
pNouns = ai_groupAndReturnSimplestNounPhrases(input);
tok = javaTokWithBrackets(pNouns.a);
//print(tok);
pwt = (L) pwt_fromTokenization(tok);
for (ParsedWithTokens p : pwt) {
S t = uncurly(optString(p!));
if (isPronoun(t)) {
p.set(Pronoun(t));
pronouns.add(p);
} else if (isNoun(t)) {
p.set(NounPhrase(t));
nounPhrases.add(p);
}
}
//pnl(pwt);
}
// what a type!
ItIt