.. include:: ../substitutions

.. oe:namespace:: OEChem

.. meta::
   :keywords: OEGetTokenizer

.. oe:function:: OEGetTokenizer

   .. oe:language:: c++ java csharp

      .. oe:api::

         OETokenizerBase* OEGetTokenizer(unsigned int fmt, unsigned int flavor)

   .. oe:language:: python

      .. oe:api:: python

         OEGetTokenizer(fmt: int, flavor: int) -> OETokenizerBase

   Returns an :ref:`OETokenizerBase <OEChem_OETokenizerBase>` implementation for the
   specified ``fmt`` and ``flavor`` specified by constants in the
   :oe:constns:`OEChem::OEFormat` and :oe:constns:`OEChem::OEIFlavor`
   namespaces respectively. Tokenizers are the underlying
   implementation of how the :ref:`oemolithread <OEChem_oemolithread>` can chunk
   up a molecule file into a string token for each molecule. Most
   users will find it more convenient to use
   :oe:meth:`OEChem::oemolthreadbase::GetMol` method to retrieve
   molecule tokens as strings from a file.


