Skip to content

Instantly share code, notes, and snippets.

@Sirsirious
Last active February 5, 2020 17:23
Show Gist options
  • Save Sirsirious/18310bea49de4e63c7fab0d119e93b7c to your computer and use it in GitHub Desktop.
Save Sirsirious/18310bea49de4e63c7fab0d119e93b7c to your computer and use it in GitHub Desktop.
DummySentencizer for NLP Series
class DummySentencizer:
def __init__(self, input_text, split_characters=['.','?','!',':'], delimiter_token='<SPLIT>'):
self.sentences = []
self.raw = str(input_text)
self._split_characters=split_characters
self._delimiter_token=delimiter_token
self._index=0
self._sentencize()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment