.. role:: hidden
    :class: hidden-section

torchtext.vocab
===========================

.. automodule:: torchtext.vocab
.. currentmodule:: torchtext.vocab

:hidden:`Vocab`
~~~~~~~~~~~~~~~

.. autoclass:: Vocab
    :members:
    :special-members:

:hidden:`vocab`
~~~~~~~~~~~~~~~

.. autofunction:: vocab

:hidden:`build_vocab_from_iterator`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. autofunction:: build_vocab_from_iterator


:hidden:`Vectors`
~~~~~~~~~~~~~~~~~

.. autoclass:: Vectors
    :members:
    :special-members: __init__

Pretrained Word Embeddings
--------------------------

:hidden:`GloVe`
~~~~~~~~~~~~~~~

.. autoclass:: GloVe
    :members:

:hidden:`FastText`
~~~~~~~~~~~~~~~~~~

.. autoclass:: FastText
    :members:

:hidden:`CharNGram`
~~~~~~~~~~~~~~~~~~~

.. autoclass:: CharNGram
    :members:
