Python LMF library
 All Classes Namespaces Files Functions Variables
Public Member Functions | Public Attributes | List of all members
pylmflib.pylmflib.morphology.related_form.RelatedForm Class Reference

"Related Form is a Form subclass representing a word form or a morph that can be related to the Lexical Entry. There is no asumption that the Related Form is associated with the Sense class in the Lexical Entry." (LMF) More...

Inheritance diagram for pylmflib.pylmflib.morphology.related_form.RelatedForm:

Public Member Functions

def __init__
 Constructor. More...
 
def __del__
 Destructor. More...
 
def set_semanticRelation
 Set semantic relation. More...
 
def get_semanticRelation
 Get semantic relation. More...
 
def get_lexeme
 Get related LexicalEntry lexeme. More...
 
def set_lexical_entry
 Set pointer to the related lexical entry instance. More...
 
def get_lexical_entry
 Get related LexicalEntry. More...
 
def create_and_add_form_representation
 Create and add a form representation to the related form. More...
 
def find_written_forms
 Find written forms. More...
 

Public Attributes

 semanticRelation
 
 targets
 

Detailed Description

"Related Form is a Form subclass representing a word form or a morph that can be related to the Lexical Entry. There is no asumption that the Related Form is associated with the Sense class in the Lexical Entry." (LMF)

Definition at line 11 of file related_form.py.

Constructor & Destructor Documentation

def pylmflib.pylmflib.morphology.related_form.RelatedForm.__init__ (   self,
  lexeme = None 
)

Constructor.

RelatedForm instances are owned by LexicalEntry.

Parameters
lexemeRelated lexeme. If not provided, default value is None.
Returns
A RelatedForm instance.

Definition at line 14 of file related_form.py.

def pylmflib.pylmflib.morphology.related_form.RelatedForm.__del__ (   self)

Destructor.

Definition at line 29 of file related_form.py.

Member Function Documentation

def pylmflib.pylmflib.morphology.related_form.RelatedForm.create_and_add_form_representation (   self,
  written_form = None,
  language = None 
)

Create and add a form representation to the related form.

Parameters
written_formThe written form to set.
languageLanguage used for the written form.
Returns
RelatedForm instance.

Definition at line 74 of file related_form.py.

def pylmflib.pylmflib.morphology.related_form.RelatedForm.find_written_forms (   self,
  language 
)

Find written forms.

This attribite is owned by FormRepresentation.

Parameters
languageThe language to consider to retrieve the written forms.
Returns
A Python list of found FormRepresentation attributes 'writtenForm'.

Definition at line 83 of file related_form.py.

def pylmflib.pylmflib.morphology.related_form.RelatedForm.get_lexeme (   self)

Get related LexicalEntry lexeme.

Returns
RelatedForm attribute 'targets'.

Definition at line 54 of file related_form.py.

def pylmflib.pylmflib.morphology.related_form.RelatedForm.get_lexical_entry (   self)

Get related LexicalEntry.

Returns
RelatedForm private attribute '__lexical_entry'.

Definition at line 68 of file related_form.py.

def pylmflib.pylmflib.morphology.related_form.RelatedForm.get_semanticRelation (   self)

Get semantic relation.

Returns
RelatedForm attribute 'semanticRelation'.

Definition at line 48 of file related_form.py.

def pylmflib.pylmflib.morphology.related_form.RelatedForm.set_lexical_entry (   self,
  lexical_entry 
)

Set pointer to the related lexical entry instance.

This function can only be called once the full dictionary has been parsed.

Parameters
lexical_entryThe related LexicalEntry.
Returns
RelatedForm instance.

Definition at line 60 of file related_form.py.

def pylmflib.pylmflib.morphology.related_form.RelatedForm.set_semanticRelation (   self,
  semantic_relation 
)

Set semantic relation.

Parameters
semantic_relationThe semantic relation to set.
Returns
RelatedForm instance.

Definition at line 35 of file related_form.py.

Member Data Documentation

pylmflib.pylmflib.morphology.related_form.RelatedForm.semanticRelation

Definition at line 22 of file related_form.py.

pylmflib.pylmflib.morphology.related_form.RelatedForm.targets

Definition at line 24 of file related_form.py.


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