Document reader wrapping Apache Tika parser https://tika.apache.org/
Tika supports lots of different file formats https://tika.apache.org/2.9.1/formats.html
parse
function will use Tika capabilities to convert provided
document data to a map containing text
and metadata
fields.
(parse (clojure.java.io/input-stream "data/memory.pdf"))
=>
{:text "Memory, reasoning, and categorization: parallels and
common mechanisms
Brett K. ..."
:metadata {:dc:creator "Brett K. Hayes"
:dc:description "Traditionally, memory, reasoning, and categorization have been "}
Document reader wrapping Apache Tika parser https://tika.apache.org/ Tika supports lots of different file formats https://tika.apache.org/2.9.1/formats.html `parse` function will use Tika capabilities to convert provided document data to a map containing `text` and `metadata` fields. ```clojure (parse (clojure.java.io/input-stream "data/memory.pdf")) => {:text "Memory, reasoning, and categorization: parallels and common mechanisms Brett K. ..." :metadata {:dc:creator "Brett K. Hayes" :dc:description "Traditionally, memory, reasoning, and categorization have been "} ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close