コード例 #1
0
ファイル: linkgrammar.py プロジェクト: hckiang/link-grammar
 def __init__(self, sent, parse_options):
     self.sent = sent
     self.num = 0
     self.parse_options = sent.parse_options if parse_options is None else parse_options
     self.rc = clg.sentence_parse(sent._obj, self.parse_options._obj)
     if clg.parse_options_timer_expired(self.parse_options._obj):
         raise LG_TimerExhausted()
コード例 #2
0
ファイル: linkgrammar.py プロジェクト: momor666/link-grammar
 def __init__(self, sent, parse_options):
     self.sent = sent
     self.num = 0
     self.parse_options = sent.parse_options if parse_options is None else parse_options
     self.rc = clg.sentence_parse(sent._obj, self.parse_options._obj)
     if clg.parse_options_timer_expired(self.parse_options._obj):
         raise LG_TimerExhausted()