germanetpy.iliLoader¶
Functions
|
Creates the ili record given the XML attributes. |
|
This method creates the ili record objects given a datafile and adds them to the GermaNet object and the corresponding lexical unit. |
Classes
|
- 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