AttributeError: 'RasaNLUModelConfig' object has no attribute 'load_component'

interpreter = Interpreter.load(’./model/nlu/default/weathernlu’, config.load(‘config_spacy.json’))

The above code shows error 'AttributeError: ‘RasaNLUModelConfig’ object has no attribute ‘load_component’

Current version of RASA nlu does not require 2nd parameter in the Interpreter.load function.

it simply works if you provide just the model directory

from rasa_nlu.model import Interpreter

interpreter = Interpreter.load(model_directory)

[Python API](Rasa python Api link)