@Eugenio_Culurciello I believe the categories.txt file does not contain the categories in the right order. The order should be the one present in the syncet_words from here 36.
The alphabetical ordering I mentioned correspond to the syncet names (n01440764 etc), and not the category names.