The later paradigm is not directly usable when analyzing a large corpus in which there are no document boundaries, like the one provided for Spanish.
a segmentation process needs to be employed, so that all the instances of a name in a segment have a high probability of belonging to the same class.