Warning: session_start(): open(/var/lib/php/sessions/sess_7fd35vmnkfinmidpsslbr0r087, 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
p-exp {
for (Pair p : ll(
pair("I called my mother", "I called my brother"),
pair("It's time for tea", "What time is it"))) {
print("\n" + p);
PTElement tree1 = ai_parseBottomUpToTree(p.a);
PTElement tree2 = ai_parseBottomUpToTree(p.b);
L> matches = ai_matchParseTrees_v2(tree1, tree2);
//pnl(flattenListOfPairs(matches));
// Quick&Dirty matching using PTElement/WeightedProduction.toString()
matches = dropPairsWithSameToStringOnBothSidesIC(matches);
//print("\nSimplified.");
pnl(map(func(O o) -> S {
O oo = o instanceof Pair ? second(o/Pair);
ret oo instanceof PTElement ? str(o) + " (depth=" + ptElement_depth(oo/PTElement) + ")" : str(o);
}, flattenListOfPairs(matches)));
}
}