Grzegorz Chrupala wrote:

   split "<DOC>" . words . map toLower = (:[]) . words . map toLower

Since you converted everything to lowercase, the string "<DOC>" will never appear in the text, resulting in a single huge document.

Oops, that should have been obvious, sorry for the dumb question.
Thanks,

No problem, it was not obvious to me and I had fun trying to figure it out :)


Regards,
apfelmus

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to