Пример #1
0
 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
Пример #2
0
 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
Пример #3
0
def sentence_delete(*args) -> "void" :
  return _clinkgrammar.sentence_delete(*args)
Пример #4
0
def sentence_delete(*args):
  return _clinkgrammar.sentence_delete(*args)
Пример #5
0
def sentence_delete(sent):
    return _clinkgrammar.sentence_delete(sent)
Пример #6
0
 def __del__(self):
     if hasattr(self, '_obj') and clg:
         clg.sentence_delete(self._obj)
         del self._obj
Пример #7
0
def sentence_delete(sent: 'Sentence') -> "void":
    return _clinkgrammar.sentence_delete(sent)
Пример #8
0
 def __del__(self):
     if hasattr(self, '_obj') and clg:
         clg.sentence_delete(self._obj)
         del self._obj
Пример #9
0
def sentence_delete(*args) -> "void":
    return _clinkgrammar.sentence_delete(*args)