Browse files

sent detector reflection remove

  • Loading branch information...
1 parent 522f115 commit 7db772bcd7d01d0f5cd83dd6aa168e84ed510b08 @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
@@ -5,12 +5,12 @@
[mochi core file-utils]
[mochi.nlp.process tokenizer]))
-(def- open-nlp-sent-split
+(def- ^SentenceDetector open-nlp-sent-split
(per-thread-singleton
#(-> "opennlp_models/eng-sent-seg.bin.gz"
(resource-to-temp-file ".bin.gz")
(.getAbsolutePath)
- (opennlp.tools.lang.english.SentenceDetector.))))
+ (SentenceDetector.))))
(defrecord Sentence [toks char-span source])

0 comments on commit 7db772b

Please sign in to comment.