# Src\_vocab, tgt\_vocab

**URL:** <https://discuss.pytorch.org/t/src-vocab-tgt-vocab/55291>\
**Category:** Uncategorized\
**Created:** [September 5, 2019, 6:56pm UTC](https://discuss.pytorch.org/t/src-vocab-tgt-vocab/55291 "2019-09-05T18:56:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![slavavs](https://discuss.pytorch.org/user_avatar/discuss.pytorch.org/slavavs/32/15429_2.png) [@slavavs](https://discuss.pytorch.org/u/slavavs)\
**Post date:** [September 5, 2019, 6:56pm UTC](https://discuss.pytorch.org/t/src-vocab-tgt-vocab/55291/1 "2019-09-05T18:56:58Z")

</div>

The nn.transformer module has an example  
`>>> transformer_model = nn.Transformer (src_vocab, tgt_vocab)`  
But there is no Ebidding module in the Transformer class implementation. Why use (src\_vocab, tgt\_vocab)?
