Sha256: 710aed453a79a67201da5687d7cb39a3a6d98065820c97ebfccf159258e8c688

Contents?: true

Size: 594 Bytes

Versions: 2

Compression:

Stored size: 594 Bytes

Contents

# Modified for NAF/KAf
from span_data import *

class Creferences:
    def __init__(self,node=None):
        self.type = 'NAF/KAF'
        if node is None:
            self.node = etree.Element('references')
        else:
            self.node = node
            
    def get_node(self):
        return self.node
    
    def __iter__(self):
        for span_node in self.node.findall('span'):
            yield Cspan(span_node)
            
    def add_span(self,term_span):
        new_span = Cspan()
        new_span.create_from_ids(term_span)
        self.node.append(new_span.get_node())

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opener-opinion-detector-base-2.0.1 core/site-packages/pre_build/KafNafParser/references_data.py
opener-opinion-detector-base-2.0.0 core/site-packages/pre_build/KafNafParser/references_data.py