Function giving order in which information must be written in docx and mapping between LMF representation and docx (output)
Function to convert LMF lexical entry information to be written into docx commands.
- Parameters
-
lexicon | The Lexicon LMF instance to display. |
document | The docx document to fill in. |
items | Lambda function giving the item to sort. Default value is 'lambda lexical_entry: lexical_entry.get_lexeme()', which means that the items to sort are lexemes. |
sort_order | Python list. Default value is 'None', which means that the document output is alphabetically ordered. |
paradigms | A boolean value to introduce paradigms in document or not. |
reverse | A boolean value to set if a reverse dictionary is wanted. |
Definition at line 15 of file doc.py.