Skip to content
Browse files

sent detector reflection remove

  • Loading branch information...
1 parent 7db772b commit 01e3a7043a9914b8d6979803ac34e9270a5bd9f0 @aria42 committed Jun 15, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/mochi/nlp/process/sent_splitter.clj
View
4 src/mochi/nlp/process/sent_splitter.clj
@@ -19,13 +19,13 @@
(defn sent-spans
"return vec of [start stop] indices for sentence text"
- [txt]
+ [^String txt]
(partition 2 1
(concat [0] (.sentPosDetect (open-nlp-sent-split) txt) [(.length txt)])))
(defn split-sents
"return vec of sentence spans"
- [txt]
+ [^String txt]
(map
(fn [[start stop]] (.substring txt start stop))
(sent-spans txt)))

0 comments on commit 01e3a70

Please sign in to comment.
Something went wrong with that request. Please try again.