germanetpy.iliLoader

Functions

create_ili_record(attributes, synonyms)

Creates the ili record given the XML attributes.

load_ili(germanet, tree)

This method creates the ili record objects given a datafile and adds them to the GermaNet object and the corresponding lexical unit.

Classes

IliRecord(lexunit_id, ewnRelation, pwnWord, ...)

germanetpy.iliLoader.create_ili_record(attributes, synonyms) IliRecord[source]

Creates the ili record given the XML attributes.

Parameters:
  • attributes (xml attributes) – The XML attributes that contain the required information about the ili record.

  • synonyms (list(String)) – A list of Strings, containing the synonyms of the ili record.

Returns:

The ili record object

germanetpy.iliLoader.load_ili(germanet, tree)[source]

This method creates the ili record objects given a datafile and adds them to the GermaNet object and the corresponding lexical unit.

Parameters:
  • germanet (Germanet) – The GermaNet object

  • tree (Element Tree) – The XML tree containing the data about the ili records