Python LMF library
 All Classes Namespaces Files Functions Variables
odt.py
Go to the documentation of this file.
1 #! /usr/bin/env python
2 # -*- coding: utf-8 -*-
3 
4 """! @package config
5 """
6 
7 ## Function giving order in which information must be written in ODT and mapping between LMF representation and ODT (output)
8 def lmf_to_odt(lexicon, document, items=lambda lexical_entry: lexical_entry.get_lexeme(), sort_order=None, paradigms=False, reverse=False):
9  """! @brief Function to convert LMF lexical entry information to be written into ODT commands.
10  @param lexicon The Lexicon LMF instance to display.
11  @param document The ODT document to fill in.
12  @param 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.
13  @param sort_order Python list. Default value is 'None', which means that the document output is alphabetically ordered.
14  @param paradigms A boolean value to introduce paradigms in document or not.
15  @param reverse A boolean value to set if a reverse dictionary is wanted.
16  """
17  pass
def lmf_to_odt
Function giving order in which information must be written in ODT and mapping between LMF representat...
Definition: odt.py:8