wn.lmf

Reader for the Lexical Markup Framework (LMF) format.

wn.lmf.load(source, progress_handler=<class 'wn.util.ProgressBar'>)

Load wordnets encoded in the WN-LMF format.

Parameters
Return type

wn.lmf.LexicalResource

wn.lmf.scan_lexicons(source)

Scan source and return only the top-level lexicon info.

Parameters

source (Union[str, pathlib.Path]) –

Return type

List[Dict]

wn.lmf.is_lmf(source)

Return True if source is a WN-LMF file.

Parameters

source (Union[str, pathlib.Path]) –

Return type

bool