snowball 1.0.0 → 1.0.0.1
raw patch · 2 files changed
+2/−8 lines, 2 files
Files
- snowball.cabal +2/−1
- src/NLP/Snowball.hs +0/−7
snowball.cabal view
@@ -1,6 +1,7 @@ name : snowball-version : 1.0.0+version : 1.0.0.1 homepage : http://hub.darcs.net/dag/snowball+bug-reports : http://hub.darcs.net/dag/snowball/issues category : Natural Language Processing, Text maintainer : dag.odenhall@gmail.com copyright : (c) 2012 Dag Odenhall, (c) 2008 Tupil, (c) 2002 Richard Boulton
src/NLP/Snowball.hs view
@@ -97,13 +97,6 @@ -- | Use a 'Stemmer' to stem a word. This can be used more efficiently -- than 'stem' because you can keep a stemmer around and reuse it, but it -- requires 'IO' to ensure thread safety.------ In my benchmarks, this (and 'stemsWith') is faster than 'stem' for--- a few hundred words, but slower for larger number of words. I don't--- know if this is a problem with my benchmarks, with these bindings or--- with the Snowball library itself, so make sure to benchmark yourself--- if speed is a concern, and consider caching stems with e.g.--- a @HashMap@. stemWith :: Stemmer -> Text -> IO Text stemWith stemmer word = do [a] <- stemsWith stemmer [word]