def load(self, model_path):
    if os.path.isfile(model_path):
        udp_model_file = model_path
    else:
        udp_model_file = os.path.join(model_path, 'udpipe_syntagrus.model')
    self.model = Model.load(udp_model_file)
    self.pipeline = Pipeline(self.model, 'tokenize', Pipeline.DEFAULT, Pipeline.DEFAULT, 'conllu')
    self.error = ProcessingError()
def load(self, model_path):
    if os.path.isfile(model_path):
        udp_model_file = model_path
    else:
        udp_model_file = os.path.join(model_path, 'udpipe_syntagrus.model')
    self.model = Model.load(udp_model_file)
    self.pipeline = Pipeline(self.model, 'tokenize', Pipeline.DEFAULT, Pipeline.DEFAULT, 'conllu')
    self.error = ProcessingError()