Skip to content

Commit

Permalink
Removed re-spans as it seems too specific for this library.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander K. Hudek committed Sep 29, 2012
1 parent be529a4 commit 7be9da4
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/opennlp/span.clj
Expand Up @@ -70,12 +70,3 @@ with the type of the first."
[a b]
{:pre [(< (:end a) (:start b))]}
(make-span (:end a) (:start b) :between))

(defn re-spans
"Find text spans for all regular expression matches."
[re s]
(loop [m (re-matcher re s)
r []]
(if (.find m)
(recur m (conj r (make-span (.start m) (.end m) nil)))
r)))

0 comments on commit 7be9da4

Please sign in to comment.