def __init__(self, discourse_id=None):
     """
     This class is used to parse the Prolog DRS output from Boxer into a
     hierarchy of python objects.
     """
     DrtParser.__init__(self)
     self.discourse_id = discourse_id
     self.sentence_id_offset = None
     self.quote_chars = [("'", "'", "\\", False)]
示例#2
0
文件: boxer.py 项目: wardbradt/nltk
 def __init__(self, discourse_id=None):
     """
     This class is used to parse the Prolog DRS output from Boxer into a
     hierarchy of python objects.
     """
     DrtParser.__init__(self)
     self.discourse_id = discourse_id
     self.sentence_id_offset = None
     self.quote_chars = [("'", "'", "\\", False)]
示例#3
0
 def __init__(self, discourse_id=None):
     DrtParser.__init__(self)
     self.discourse_id = discourse_id
 def __init__(self, discourse_id=None):
     DrtParser.__init__(self)
     self.discourse_id = discourse_id