Warning: session_start(): open(/var/lib/php/sessions/sess_ko4h7cgpultat36ucij3a3k7uf, 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
!7
cmodule IWantYouToBe > DynPrintLog {
class Rule1 implements RuleOnTok, RuleOnString {
LS pattern = wordTok("I want you to be my assistant");
Set vars = litciset("assistant");
transient SS map; // not null if there is a match
public void process(S s) { process(wordTok(s)); }
public void process(LS tok) {
map = nullIfContainsKeysOtherThan(gazelle_zipTwoTokenizationsToMap(pattern, tok), vars);
}
}
A process(A rule, S s) {
rule.process(s);
ret rule;
}
start-thread {
printStruct(process(new Rule1, "I want you to be my girl").map);
printDone();
}
}