spaCy - Util.get_model_meta



It is introduced in version 2.0 and is used to get a model’s meta.json from a directory path. This function also validate its contents.

Arguments

The table below explains its argument −

NAME TYPE DESCRIPTION
path Unicode/path It is the path to the model directory.

Example

An example of util.get_model_meta() function is stated below −

import spacy
meta_data = spacy.util.get_model_meta("/path/to/model")
spacy_util_get_data_path.htm
Advertisements