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

Functions

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

Function Documentation

def pylmflib.pylmflib.config.odt.lmf_to_odt (   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 ODT and mapping between LMF representation and ODT (output)

Function to convert LMF lexical entry information to be written into ODT commands.

Parameters
lexiconThe Lexicon LMF instance to display.
documentThe ODT 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 8 of file odt.py.