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
source (Union[str, pathlib.Path]) – path to a WN-LMF file
progress_handler (Optional[Type[wn.util.ProgressHandler]]) –
- 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
- wn.lmf.is_lmf(source)¶
Return True if source is a WN-LMF file.
- Parameters
source (Union[str, pathlib.Path]) –
- Return type