svoid test_AutoClassifier1() { int n = 4; // number of examples to learn for - 4 actually work AutoClassifier1 c = AutoClassifier1.queueLess(S); pnl("feature", assertNempty("features", c.getAllFeatures("hello"))); classifier_testLabels(c, litorderedmap("hello", ll())); c.learn(takeFirst((n+1)/2, ll("hello", "abcde", "xxxxx")), "5 chars"); c.learn(takeFirst(n/2, ll("bla", "abcd", "aa")), "not 5 chars"); classifier_testLabels(c, litorderedmap( "world", ll("5 chars"), "......", ll("not 5 chars"))); }