<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def load_dictionary(self, filename, encoding="utf-8"):
 """ Load in a pre-built word frequency list Args: filename (str):
 The filepath to the json (optionally gzipped) \ file to be loaded encoding (str):
 The encoding of the dictionary """

        with load_file(filename, encoding) as data:
            self._dictionary.update(json.loads(data.lower(), encoding=encoding))
            self._update_dictionary()