svoid test_AutoClassifier1() { int n = 4; // number of examples to learn for - 4 actually work AutoClassifier1 c = AutoClassifier1.queueLess(S); // no labels in empty classifier classifier_testLabels(c, litorderedmap("hello", ll())); // train c.learn(takeFirst((n+1)/2, ll("hello", "abcde", "xxxxx")), "5 chars"); c.learn(takeFirst(n/2, ll("bla", "abcd", "aa")), "not 5 chars"); // test classifier_testLabels(c, litorderedmap( "world", ll("5 chars"), "......", ll("not 5 chars"))); }