    def load(cls, f, add_special_symbols=True):
        """Loads the dictionary from a text file with the format:

        ```
        <symbol0> <count0>
        <symbol1> <count1>
        ...
        ```
        """
        d = cls(add_special_symbols=add_special_symbols)
        d.add_from_file(f)
        return d
Loads the dictionary from a text file with the format:

```
<symbol0> <count0>
<symbol1> <count1>
...
```
fairseq/data/dictionary.py