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:

LexicalResource

wn.lmf.scan_lexicons(source)

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

Parameters:

source (str | Path)

Return type:

list[dict]

wn.lmf.is_lmf(source)

Return True if source is a WN-LMF file.

Parameters:

source (str | Path)

Return type:

bool