Esempio n. 1
0
def linkage_create(*args) -> "Linkage" :
  return _clinkgrammar.linkage_create(*args)
Esempio n. 2
0
 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)
Esempio n. 4
0
def linkage_create(index, sent, opts):
    return _clinkgrammar.linkage_create(index, sent, opts)
Esempio n. 5
0
 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
Esempio n. 6
0
 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)
Esempio n. 7
0
def linkage_create(linkage_num: 'LinkageIdx', sent: 'Sentence',
                   opts: 'Parse_Options') -> "Linkage":
    return _clinkgrammar.linkage_create(linkage_num, sent, opts)
Esempio n. 8
0
def linkage_create(index: 'int', sent: 'Sentence',
                   opts: 'Parse_Options') -> "Linkage":
    return _clinkgrammar.linkage_create(index, sent, opts)
Esempio n. 9
0
 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)
Esempio n. 10
0
def linkage_create(*args) -> "Linkage":
    return _clinkgrammar.linkage_create(*args)