germanetpy.wiktionaryLoader

Functions

convert_to_boolean(attribute)

Converts the given String into a boolean.

create_wiktionary(attributes)

Creates a wiktionary object given the XML attributes that contain the required information

load_wiktionary(germanet, tree)

Given a XML tree this method initialized the wiktionary objects and adds them to the germanet object and the corresponding lexunits

Classes

WiktionaryParaphrase(lexunit_id, ...)

germanetpy.wiktionaryLoader.create_wiktionary(attributes) WiktionaryParaphrase[source]

Creates a wiktionary object given the XML attributes that contain the required information

Parameters:

attributes – XML attributes that contain information about the wiktionary paraphrase

Returns:

a wiktionary object

germanetpy.wiktionaryLoader.load_wiktionary(germanet, tree)[source]

Given a XML tree this method initialized the wiktionary objects and adds them to the germanet object and the corresponding lexunits

Parameters:
  • germanet (Germanet) – The germane object

  • tree (etree) – The XML tree of the wiktionary file