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

Public Member Functions

def __init__
 Constructor. More...
 
def __del__
 Destructor. More...
 
def create_and_add_component
 Create and add a component to the list. More...
 
def get_components
 Get the list of components. More...
 

Public Attributes

 component
 Component instances are owned by ListOfComponents There are two or more Component instances per ListOfComponents. More...
 

Detailed Description

"List of Components is a class representing the aggregative aspect of a multiword expression (MWE). The mechanism can also be applied recursively, so that an MWE way be comprised of components that are themselves MWEs. This class is used in the morphological pattern and MWE pattern packages." (LMF)

Definition at line 8 of file list_of_components.py.

Constructor & Destructor Documentation

def pylmflib.pylmflib.morphology.list_of_components.ListOfComponents.__init__ (   self)

Constructor.

ListOfComponents instance is owned by LexicalEntry.

Returns
A ListOfComponents instance.

Definition at line 11 of file list_of_components.py.

def pylmflib.pylmflib.morphology.list_of_components.ListOfComponents.__del__ (   self)

Destructor.

Release Component instances.

Definition at line 20 of file list_of_components.py.

Member Function Documentation

def pylmflib.pylmflib.morphology.list_of_components.ListOfComponents.create_and_add_component (   self,
  position,
  lexeme 
)

Create and add a component to the list.

Parameters
positionThe position of the component in the multiword expression.
lexemeRelated lexeme.
Returns
ListOfComponents instance.

Definition at line 28 of file list_of_components.py.

def pylmflib.pylmflib.morphology.list_of_components.ListOfComponents.get_components (   self)

Get the list of components.

Returns
ListOfComponents attribute 'component'.

Definition at line 37 of file list_of_components.py.

Member Data Documentation

pylmflib.pylmflib.morphology.list_of_components.ListOfComponents.component

Component instances are owned by ListOfComponents There are two or more Component instances per ListOfComponents.

Definition at line 18 of file list_of_components.py.


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