Classifier4J輕量級的分類工具
Classifier4J是一個輕量級的分類工具,支持貝葉斯分類、向量空間模型、信息摘要等。
簡單實(shí)例代碼:
SimpleClassifier classifier = new SimpleClassifier(); classifier.setSearchWord( "java" ); String sentance = "This is a sentance about java"; System.out.println( "The string " + sentance + " contains the word java:" + classifier.isMatch(sentance) );
評論
圖片
表情
