if vocabulary_factory is set use it, fixes #77