def find_malt_model(model_filename):
 if (model_filename == None):
  return u'malt_temp.mco'
 elif os.path.exists(model_filename):
  return model_filename
 else:
  return find_file(model_filename, env_vars=(u'MALT_MODEL',), verbose=False)

def find_malt_model ( model_filename ) : if ( model_filename == None ) : return u'malt_temp.mco' elif os . path . exists ( model_filename ) : return model_filename else : return find_file ( model_filename , env_vars = ( u'MALT_MODEL' , ) , verbose = False )
a module to find pre-trained maltparser model .