fix #11: move vocab resources to Corpus class