class_docstr: Default tokenizer used by BOWEncoder for parsing and tokenizing.
      
class_docstr_tok: ["Default","tokenizer","used","by","BOWEncoder","for","parsing","and","tokenizing","."]
docstr: Initialize the BOWTokenizer object.
  
  Arguments:
      parser {spacy.lang.en.English - by default} -- Any parser object
          that supports parser(sentence) call on it.
  
  Keyword Arguments:
      stop_words {iterable over str} -- Set of stop words to be removed.
      (default: {spacy.lang.en.stop_words.STOP_WORDS})
      punctuations {iterable over str} -- Set of punctuations to be
      removed. (default: {string.punctuation})
docstr_tok: ["Initialize","the","BOWTokenizer","object",".","Arguments",":","parser","{","spacy.lang.en.English","-","by","default","}","--","Any","parser","object","that","supports","parser","(","sentence",")","call","on","it",".","Keyword","Arguments",":","stop_words","{","iterable","over","str","}","--","Set","of","stop","words","to","be","removed",".","(","default",":","{","spacy.lang.en.stop_words.STOP_WORDS","}",")","punctuations","{","iterable","over","str","}","--","Set","of","punctuations","to","be","removed",".","(","default",":","{","string.punctuation","}",")"]
code: def __init__(
      self,
      parser,
      stop_words=spacy.lang.en.stop_words.STOP_WORDS,
      punctuations=string.punctuation,
  ):
      """Initialize the BOWTokenizer object.
  
      Arguments:
          parser {spacy.lang.en.English - by default} -- Any parser object
              that supports parser(sentence) call on it.
  
      Keyword Arguments:
          stop_words {iterable over str} -- Set of stop words to be removed.
          (default: {spacy.lang.en.stop_words.STOP_WORDS})
          punctuations {iterable over str} -- Set of punctuations to be
          removed. (default: {string.punctuation})
      """
      self.parser = parser
      # list of stop words and punctuation marks
      self.stop_words = stop_words
      self.punctuations = punctuations
  
file_path: interpret-text/python/interpret_text/experimental/common/utils_classical.py
imports: import spacy
  import html
  import string
  import numpy
  import matplotlib.pyplot
  from sklearn.preprocessing import LabelEncoder
  from IPython.core.display import display, HTML
  from sklearn.feature_extraction.text import CountVectorizer
label_desc: Use image node_id 1 to create a new BOWTokenizer object  with example: obj = BOWTokenizer(parser, stop_words, punctuations)