Data
- morphonet.data.data.get_local_dataset(dataset_name, json_override=None, temp_path_override=None)
Read the local datasets JSON file and return the dataset object for a given name (accepts case mismatch)
- Parameters:
dataset_name (str) – name of the dataset to find
json_override (str) – optional, provides the path to json file, instead of using the automatic computation of the path
temp_path_override (str) – optional, provides the path to the temp folder, instead of using the normal MorphoNet one. Includes .TEMP folder
- Returns:
dataset object corresponding to given name
- Return type:
- morphonet.data.data.list_local_datasets(json_override=None)
Read the local datasets JSON file, and list all the dataset names
- Parameters:
json_override (str) – If set, allow to give the code a different JSON local dataset file path than the main morphonet one
- Returns:
names of the local datasets in MorphoNet TEMP files
- Return type:
list of str