def parse_sent(self, txt): sent = clg.sentence_create(txt,self.dictionary._dict) n = clg.sentence_parse(sent, self.parse_options._po) if n > 0: linkages = [Linkage.create_from_sentence(i,sent, self.parse_options._po) for i in range(n)] else: linkages = [] clg.sentence_delete(sent) return linkages
def parse_sent(self, txt): sent = clg.sentence_create(txt, self.dictionary._dict) n = clg.sentence_parse(sent, self.parse_options._po) if n > 0: linkages = [ Linkage.create_from_sentence(i, sent, self.parse_options._po) for i in range(n) ] else: linkages = [] clg.sentence_delete(sent) return linkages
def sentence_delete(*args) -> "void" : return _clinkgrammar.sentence_delete(*args)
def sentence_delete(*args): return _clinkgrammar.sentence_delete(*args)
def sentence_delete(sent): return _clinkgrammar.sentence_delete(sent)
def __del__(self): if hasattr(self, '_obj') and clg: clg.sentence_delete(self._obj) del self._obj
def sentence_delete(sent: 'Sentence') -> "void": return _clinkgrammar.sentence_delete(sent)
def sentence_delete(*args) -> "void": return _clinkgrammar.sentence_delete(*args)