!7 static L guessCategories = ll("", "", ""); p-exp { S sentence = "This is extrememely smart"; PTElement tree = ai_parseBottomUpToTree(sentence); print(tree); assertNull(tree); L words = ai_uncategorizedWordsInSentence(sentence); print("Have " + n2(words, "unknown word")); new AI_BottomUpParser1 parser; parser.wordsToCategories = DerivedMap(ai_wordToCategories()); for (S word : words) parser.wordsToCategories.put(word, asCISet(ai_guessCategoriesForUnknownWord(word))); PTElement tree2 = ai_parseBottomUpToTree(parser, sentence); ai_printParseTree(tree2); print(); parser.printWordsAndGroups(); } static Double ai_getWordToCategoryWeight(S word, S category) { print("ai_getWordToCategoryWeight " + word + " " + category); }