    def from_file(filename: str) -> "SymbolTable":
        """Build a symbol table from file.

        Every line in the symbol table file has two fields separated by
        space(s), tab(s) or both. The following is an example file:

        .. code-block::

            <eps> 0
            a 1
            b 2
            c 3

        Args:
          filename:
            Name of the symbol table file. Its format is documented above.

        Returns:
          An instance of :class:`SymbolTable`.

        """
        with open(filename, "r", encoding="utf-8") as f:
            return SymbolTable.from_str(f.read().strip())
Build a symbol table from file.

Every line in the symbol table file has two fields separated by
space(s), tab(s) or both. The following is an example file:

.. code-block::

<eps> 0
a 1
b 2
c 3

Args:
filename:
Name of the symbol table file. Its format is documented above.

Returns:
An instance of :class:`SymbolTable`.
models/tts/debatts/utils/symbol_table.py