Python LMF library
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
pylmflib.pylmflib.mrd.equivalent.Equivalent Class Reference

"Equivalent is a class representing the translation equivalent of the word form managed by the Lemma class." (LMF) More...

Public Member Functions

def __init__
 Constructor. More...
 
def __del__
 Destructor. More...
 
def set_translation
 Set translation and language. More...
 
def get_translation
 Get translation. More...
 
def set_language
 Set language used for translation. More...
 
def get_language
 Get language used for translation. More...
 

Public Attributes

 language
 
 translation
 
 text_representation
 TextRepresentation instances are owned by Equivalent There is zero to many TextRepresentation instances per Equivalent. More...
 

Detailed Description

"Equivalent is a class representing the translation equivalent of the word form managed by the Lemma class." (LMF)

Definition at line 8 of file equivalent.py.

Constructor & Destructor Documentation

def pylmflib.pylmflib.mrd.equivalent.Equivalent.__init__ (   self)

Constructor.

Equivalent instances are owned by Sense.

Returns
An Equivalent instance.

Definition at line 11 of file equivalent.py.

def pylmflib.pylmflib.mrd.equivalent.Equivalent.__del__ (   self)

Destructor.

Release TextRepresentation instances.

Definition at line 22 of file equivalent.py.

Member Function Documentation

def pylmflib.pylmflib.mrd.equivalent.Equivalent.get_language (   self)

Get language used for translation.

Returns
Equivalent attribute 'language'.

Definition at line 61 of file equivalent.py.

def pylmflib.pylmflib.mrd.equivalent.Equivalent.get_translation (   self,
  language = None 
)

Get translation.

Parameters
languageIf this argument is given, get translation only if written in this language.
Returns
The filtered Equivalent attribute 'translation'.

Definition at line 43 of file equivalent.py.

def pylmflib.pylmflib.mrd.equivalent.Equivalent.set_language (   self,
  language 
)

Set language used for translation.

Parameters
languageLanguage used for the translation.
Returns
Equivalent instance.

Definition at line 51 of file equivalent.py.

def pylmflib.pylmflib.mrd.equivalent.Equivalent.set_translation (   self,
  translation,
  language = None 
)

Set translation and language.

Parameters
translationThe translation to set.
languageLanguage used for the translation.
Returns
Equivalent instance.

Definition at line 30 of file equivalent.py.

Member Data Documentation

pylmflib.pylmflib.mrd.equivalent.Equivalent.language

Definition at line 16 of file equivalent.py.

pylmflib.pylmflib.mrd.equivalent.Equivalent.text_representation

TextRepresentation instances are owned by Equivalent There is zero to many TextRepresentation instances per Equivalent.

Definition at line 20 of file equivalent.py.

pylmflib.pylmflib.mrd.equivalent.Equivalent.translation

Definition at line 17 of file equivalent.py.


The documentation for this class was generated from the following file: