You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when I try to use the following sample code from the readme:
(with-open [rdr (clojure.java.io/reader"/tmp/bigfile")]
(let [sentences (sentence-seq rdr get-sentences)]
;; process your lazy seq of sentences however you desire
(println"first 5 sentences:")
(clojure.pprint/pprint (take5 sentences))))
My file exists and I'm able to do (slurp "/tmp/bigfile")
I'm new to Clojure so I'm sorry if it's a basic java interop issue. Nevertheless I successfully imported the get-sentences and sentence-seq functions and have otherwise been able to use the library without problems.
The text was updated successfully, but these errors were encountered:
user=> (with-open [rdr (clojure.java.io/reader "/tmp/bigfile")]
#_=> (let [sentences (sentence-seq rdr get-sentences)]
#_=> ;; process your lazy seq of sentences however you desire
#_=> (println "first 5 sentences:")
#_=> (clojure.pprint/pprint (take 5 sentences))))
first 5 sentences:
("this is a sentence."
"this is a sentence."
"this is a sentence."
"this is a sentence."
"this is a sentence.")
nil
What version of clojure-opennlp are you using? What are the contents of /tmp/bigfile?
I'm getting this error when I try to use the following sample code from the readme:
My file exists and I'm able to do (slurp "/tmp/bigfile")
I'm new to Clojure so I'm sorry if it's a basic java interop issue. Nevertheless I successfully imported the get-sentences and sentence-seq functions and have otherwise been able to use the library without problems.
The text was updated successfully, but these errors were encountered: