def create_and_add_component(self, position, lexeme): """! @brief Create and add a component to the lexical entry. @param position The position of the component in the multiword expression. @param lexeme Related lexeme. @return LexicalEntry instance. """ if self.list_of_components is None: self.list_of_components = ListOfComponents() self.list_of_components.create_and_add_component(position, lexeme) return self
def setUp(self): # Instantiate a ListOfComponents object self.list_of_components = ListOfComponents()