def __init__(self, path_to_jar, path_to_models_jar, model_path):
    if ('nndep/' in model_path):
        self.parser = StanfordNeuralDependencyParser(path_to_jar=path_to_jar, path_to_models_jar=path_to_models_jar, model_path=model_path, java_options='-mx5g')
    if ('lexparser/' in model_path):
        self.parser = StanfordDependencyParser(path_to_jar=path_to_jar, path_to_models_jar=path_to_models_jar, model_path=model_path, java_options='-mx10g')
def __init__(self, path_to_jar, path_to_models_jar, model_path):
    if ('nndep/' in model_path):
        self.parser = StanfordNeuralDependencyParser(path_to_jar=path_to_jar, path_to_models_jar=path_to_models_jar, model_path=model_path, java_options='-mx5g')
    if ('lexparser/' in model_path):
        self.parser = StanfordDependencyParser(path_to_jar=path_to_jar, path_to_models_jar=path_to_models_jar, model_path=model_path, java_options='-mx10g')