def __init__(self, use_stemmer=False):
    """Constructor for DefaultTokenizer.

    Args:
      use_stemmer: boolean, indicating whether Porter stemmer should be used to
      strip word suffixes to improve matching.
    """
    self._stemmer = porter.PorterStemmer() if use_stemmer else None