don't assign codes when the vocabulary is completely empty