code: def test_strip_final_period(self):
      doc = bad_whitespace_nlp(
          """I CAN'T ANSWER THAT
   QUESTION.
   I HAVE NOT ASKED THEM
   SPECIFICALLY IF THEY HAVE
   ENOUGH."""
      )
      feats = FeatsFromSpacyDoc().get_feats(doc)
      self.assertEqual(
          feats,
          Counter(
              {
                  "i": 2,
                  "have": 2,
                  "that question.": 1,
                  "answer": 1,
                  "question.": 1,
                  "enough.": 1,
                  "i have": 1,
                  "them specifically": 1,
                  "have enough.": 1,
                  "not asked": 1,
                  "they have": 1,
                  "have not": 1,
                  "specifically": 1,
                  "answer that": 1,
                  "question. i": 1,
                  "can't": 1,
                  "if": 1,
                  "they": 1,
                  "can't answer": 1,
                  "asked": 1,
                  "them": 1,
                  "if they": 1,
                  "asked them": 1,
                  "that": 1,
                  "not": 1,
                  "i can't": 1,
                  "specifically if": 1,
              }
          ),
      )
      feats = FeatsFromSpacyDoc(strip_final_period=True).get_feats(doc)
      self.assertEqual(
          feats,
          Counter(
              {
                  "i": 2,
                  "have": 2,
                  "that question": 1,
                  "answer": 1,
                  "question": 1,
                  "enough": 1,
                  "i have": 1,
                  "them specifically": 1,
                  "have enough": 1,
                  "not asked": 1,
                  "they have": 1,
                  "have not": 1,
                  "specifically": 1,
                  "answer that": 1,
                  "question i": 1,
                  "can't": 1,
                  "if": 1,
                  "they": 1,
                  "can't answer": 1,
                  "asked": 1,
                  "them": 1,
                  "if they": 1,
                  "asked them": 1,
                  "that": 1,
                  "not": 1,
                  "i can't": 1,
                  "specifically if": 1,
              }
          ),
      )
  
imports: import re
  from collections import Counter
  from unittest import TestCase
  from scattertext import whitespace_nlp
  from scattertext.WhitespaceNLP import Tok, Doc, _regex_parse_sentence, whitespace_nlp_with_sentences
  from scattertext.features.FeatsFromSpacyDoc import FeatsFromSpacyDoc
  from scattertext.features.FeatsFromSpacyDocOnlyNounChunks import FeatsFromSpacyDocOnlyNounChunks
label_desc: Use image node_id 9 for calling the TestFeatsFromSpacyDoc obj's underlying member method code with example usage: obj.test_strip_final_period() without return types