wn.lmf¶
Reader for the Lexical Markup Framework (LMF) format.
- wn.lmf.load(source: str | ~pathlib.Path, progress_handler: type[~wn.util.ProgressHandler] | None = <class 'wn.util.ProgressBar'>) LexicalResource¶
Load wordnets encoded in the WN-LMF format.
- Parameters:
source – path to a WN-LMF file
- wn.lmf.scan_lexicons(source: str | Path) list[ScanInfo]¶
Scan source and return only the top-level lexicon info.
The returned info is a dictionary containing the id, version, and label attributes from a lexicon. If the Lexicon is an extension, an extends key maps to a dictionary with the id and version of the base lexicon, otherwise it maps to
None.