Python LMF library
 All Classes Namespaces Files Functions Variables
Functions
pylmflib.pylmflib.config.doc Namespace Reference

Functions

def lmf_to_doc
 Function giving order in which information must be written in docx and mapping between LMF representation and docx (output) More...
 

Function Documentation

def pylmflib.pylmflib.config.doc.lmf_to_doc (   lexicon,
  document,
  items = lambda lexical_entry: lexical_entry.get_lexeme(),
  sort_order = None,
  paradigms = False,
  reverse = False 
)

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
lexiconThe Lexicon LMF instance to display.
documentThe docx document to fill in.
itemsLambda 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_orderPython list. Default value is 'None', which means that the document output is alphabetically ordered.
paradigmsA boolean value to introduce paradigms in document or not.
reverseA boolean value to set if a reverse dictionary is wanted.

Definition at line 15 of file doc.py.