New format for terms on public datasets. Bumped to version 0.3.12.

This commit is contained in:
Joshua Eckroth 2013-07-04 09:34:53 -04:00
parent 4a4ef5ea03
commit 623e9a1ef3
2 changed files with 3 additions and 3 deletions

View file

@ -1,4 +1,4 @@
(defproject cc.artifice/clj-ml "0.3.11" (defproject cc.artifice/clj-ml "0.3.12"
:description "Machine Learning library for Clojure built around Weka and friends" :description "Machine Learning library for Clojure built around Weka and friends"
:java-source-paths ["src/java"] :java-source-paths ["src/java"]
:license {:name "MIT License" :license {:name "MIT License"

View file

@ -10,6 +10,6 @@
(for [f files (for [f files
xmldoc (:content (xml/parse (reader f)))] xmldoc (:content (xml/parse (reader f)))]
{:id (:NEWID (:attrs xmldoc)) {:id (:NEWID (:attrs xmldoc))
:topics (for [topic (:content (second (:content xmldoc)))] {:terms "Topics" (for [topic (:content (second (:content xmldoc)))]
(first (:content topic))) (first (:content topic)))}
:fulltext (first (:content (last (:content (last (:content xmldoc))))))}))) :fulltext (first (:content (last (:content (last (:content xmldoc))))))})))