3 """! @package morphology
6 from morphology.component
import Component
9 """ "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)
12 """! @brief Constructor.
13 ListOfComponents instance is owned by LexicalEntry.
14 @return A ListOfComponents instance.
21 """! @brief Destructor.
22 Release Component instances.
29 """! @brief Create and add a component to the list.
30 @param position The position of the component in the multiword expression.
31 @param lexeme Related lexeme.
32 @return ListOfComponents instance.
34 self.component.append(Component(position, lexeme))
38 """! @brief Get the list of components.
39 @return ListOfComponents attribute 'component'.
def create_and_add_component
Create and add a component to the list.
def get_components
Get the list of components.
component
Component instances are owned by ListOfComponents There are two or more Component instances per ListO...