def load(self, path):
config = _Config.load(os.path.join(path, '<STR_LIT>'))<EOL>config.save_dir = path  <EOL>self._vocab = vocab = ParserVocabulary.load(config.save_vocab_path)<EOL>with mx.Context(mxnet_prefer_gpu()):<EOL><INDENT>self._parser = BiaffineParser(vocab, config.word_dims, config.tag_dims, config.dropout_emb,<EOL>config.lstm_layers,<EOL>config.lstm_hiddens, config.dropout_lstm_input, config.dropout_lstm_hidden,<EOL>config.mlp_arc_size,<EOL>config.mlp_rel_size, config.dropout_mlp, config.debug)<EOL>self._parser.load(config.save_model_path)<EOL><DEDENT>return self<EOL>
Load from disk

        Parameters
        ----------
        path : str
            path to the directory which typically contains a config.pkl file and a model.bin file

        Returns
        -------
        DepParser
            parser itself