Пример #1
0
 def __init__(self, node, headword, entry_id):
     MultiSenseComponent.__init__(self, node)
     self.id = entry_id
     self.entry_id = entry_id
     self._lemma_manager = Lemma(headword)
     self.first_sibling = None
     self.is_revised = False
Пример #2
0
    def __init__(self, node, **kwargs):
        MultiSenseComponent.__init__(self, node, **kwargs)
        self.id = self.attribute('id')

        # self.is_revised (inherited from OedComponent) is set to
        #  False by default; we reset it to True if the
        #  publication info says "Third edition"
        pub_statement = self.node.findtext('./publicationInfo/pubStatement')
        if pub_statement is not None and REVISED_PATTERN.search(pub_statement):
            self.is_revised = True