Ayup! I'm implementing a couple of part-of-speech taggers in Common Lisp, and one of the things I want to the is to decouple the traversal of text collections from the tagging/training code.
Ideally I would like something like this:
We all know loop can't do this, so I've been looking at libraries like series and iterate. But before I dive to deeply into those I would like to hear your opinions about this; what is the best way for a data consumer - like the tagger/trainer - to consume (possibly millions) of data points from a data provider - like text collections - in a reasonably general way ?
Snakkes!
-andré
Ideally I would like something like this:
(loop for sent in sentences do (...))
Where sentences is some arbitrary structure implementing an iterator and sent is a sentences structure.We all know loop can't do this, so I've been looking at libraries like series and iterate. But before I dive to deeply into those I would like to hear your opinions about this; what is the best way for a data consumer - like the tagger/trainer - to consume (possibly millions) of data points from a data provider - like text collections - in a reasonably general way ?
Snakkes!
-andré