To avoid such mistakes and produce more robust results, we have carried language identification in two steps. First, a quick filtering based on the Compact Language Detector 2 (CLD2) toolSee https://github.com/CLD2Owners/cld2 for more details. has been used. Secondly, we used the fastText tool https://github.com/facebookresearch/fastText[1]} which requires larger computational resources in order to verify the language identification made by CLD2. In the creation of the corpus, the criterion of quality prevailed over that of quantity. We have sacrificed corpus length and processing time in exchange for greater certainty that the language of the text is actually Spanish.
