# Wav2vec2CTCTokenizer and vocab.json

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwav2vec2ctctokenizer-and-vocab-json%2F25146%3E%5C
**Category:** 🤗Tokenizers\
**Created:** [October 28, 2022, 3:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwav2vec2ctctokenizer-and-vocab-json%2F25146 "2022-10-28T15:45:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![picheny](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@picheny](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpicheny)%5C
**Post date:** [October 28, 2022, 3:45pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwav2vec2ctctokenizer-and-vocab-json%2F25146%2F1 "2022-10-28T15:45:40Z")

</div>

I am using Wav2Vec2CTCTokenizer.from\_pretrained to read in the Facebook base librispeech model:

tokenizer = Wav2Vec2CTCTokenizer.from\_pretrained(‘facebook/wav2vec2-base-960h’)

I am seeing some behavior I am not sure I follow. It seems that if I have a vocab.json file already in the same directory from where I am running the above command, it ignores the vocab.json file in the base model and uses the one in my directory. Is this correct, and if so, where is this happening in the source code - I cannot find it.

---

<div class="post-metadata">

**Author:** ![lianghsun](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/lianghsun/32/57774_2.png) [@lianghsun](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Flianghsun)%5C
**Post date:** [October 28, 2022, 11:00pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwav2vec2ctctokenizer-and-vocab-json%2F25146%2F2 "2022-10-28T23:00:01Z")

</div>

> <https://github.com/huggingface/transformers/blob/main/src/transformers/tokenization_utils_base.py#L1570>

---

<div class="post-metadata">

**Author:** ![picheny](https://avatars.discourse-cdn.com/v4/letter/p/77aa72/32.png) [@picheny](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fpicheny)%5C
**Post date:** [October 29, 2022, 7:29pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fwav2vec2ctctokenizer-and-vocab-json%2F25146%2F3 "2022-10-29T19:29:40Z")

</div>

I am sorry, could you elaborate more? I still don’t see why it does not default to the base model vocab file - where/how does it wind up taking something from my directory.
