def linkage_create(*args) -> "Linkage" : return _clinkgrammar.linkage_create(*args)
def create_from_sentence(cls, idx, sentence, parse_options): linkage_swig_obj = clg.linkage_create(idx, sentence, parse_options) linkage_obj = Linkage(linkage_swig_obj, null_count=clg.sentence_null_count(sentence)) clg.linkage_delete(linkage_swig_obj) return linkage_obj
def linkage_create(*args): return _clinkgrammar.linkage_create(*args)
def linkage_create(index, sent, opts): return _clinkgrammar.linkage_create(index, sent, opts)
def create_from_sentence(cls, idx, sentence, parse_options): linkage_swig_obj = clg.linkage_create(idx,sentence, parse_options) linkage_obj = Linkage(linkage_swig_obj, null_count=clg.sentence_null_count(sentence)) clg.linkage_delete(linkage_swig_obj) return linkage_obj
def __init__(self, idx, sentence, parse_options): self.sentence, self.parse_options = sentence, parse_options # keep all args passed into clg.* fn self._obj = clg.linkage_create(idx, sentence._obj, parse_options)
def linkage_create(linkage_num: 'LinkageIdx', sent: 'Sentence', opts: 'Parse_Options') -> "Linkage": return _clinkgrammar.linkage_create(linkage_num, sent, opts)
def linkage_create(index: 'int', sent: 'Sentence', opts: 'Parse_Options') -> "Linkage": return _clinkgrammar.linkage_create(index, sent, opts)
def linkage_create(*args) -> "Linkage": return _clinkgrammar.linkage_create(*args)