Beispiel #1
0
    def __init__(self, splitter_config):
        Activatable.__init__(self)

        assert (splitter_config is not None)
        assert (isinstance(splitter_config, BotSentenceSplitterConfiguration))

        self._configuration = splitter_config
Beispiel #2
0
    def __init__(self, splitter_config):
        Activatable.__init__(self)

        assert (splitter_config is not None)
        assert (isinstance(splitter_config, BotSentenceSplitterConfiguration))

        self._configuration = splitter_config
        self._punctuations = re.compile(SentenceSplitter.ALL_PUNCTUATION)
Beispiel #3
0
 def __init__(self, spelling_config=None):
     Activatable.__init__(self)
     self.spelling_config = spelling_config