Warning: session_start(): open(/var/lib/php/sessions/sess_04quekimp5dkhu2k4oh05ubkj9, 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
!759
static Class parser;
p {
print("parser bot loading");
parser = hotwire_overBot("#1002328");
print("parser bot loaded");
}
answer {
if (startsWithIgnoreCase(s, "parse ")) try {
O bot;
bot = getBot("#1002314"); // adjectives bot
if (bot != null)
callOpt(parser, "addDict", "adjective", get(bot, "adjectives"));
bot = getBot("#1002342"); // nouns bot
if (bot != null)
callOpt(parser, "addDict", "noun", get(bot, "nouns"));
S text = s.substring(5).trim();
boolean debug = text.startsWith("debug ");
if (debug) text = text.substring(5).trim();
S a;
time {
a = (S) call(parser, "parse", text);
}
if (debug)
ret structure(get(parser, "recog"));
ret a + " [" + getLastTiming() + " ms, " + getOpt(parser, "timing") + " ms actual]";
} catch (Throwable e) {
ret exceptionToUser(e);
}
}