class_docstr: A mapping from symbols to consecutive integers
docstr: Loads the dictionary from a text file with the format:
  
  ```
  <symbol0> <count0>
  <symbol1> <count1>
  ...
  ```
docstr_tok: ["Loads","the","dictionary","from","a","text","file","with","the","format",":","``","`","<","symbol0",">","<","count0",">","<","symbol1",">","<","count1",">","...","``","`"]
code: 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
  
imports: import os
  from collections import Counter
  from multiprocessing import Pool
  import torch
  from fairseq import utils
  from fairseq.data import data_utils
  from fairseq.file_chunker_utils import Chunker, find_offsets
  from fairseq.file_io import PathManager
  from fairseq.tokenizer import tokenize_line
label_desc: Use image node_id 18 for calling the Dictionary obj's underlying member method code with example usage: obj.load(cls, f, add_special_symbols) and returns: d