docstr: Check demo server sentences split as expected
docstr_tok: ["Check","demo","server","sentences","split","as","expected"]
code: def test_split_into_sentences(self):
      """Check demo server sentences split as expected"""
      print("\n > Testing demo server sentence splitting")
      # pylint: disable=attribute-defined-outside-init
      self.seg = Synthesizer.get_segmenter("en")
      sis = Synthesizer.split_into_sentences
      assert sis(self, "Hello. Two sentences") == [
          "Hello.",
          "Two sentences",
      ]
      assert sis(
          self,
          "He went to meet the adviser from Scott, Waltman & Co. next morning.",
      ) == [
          "He went to meet the adviser from Scott, Waltman & Co. next morning."
      ]
      assert sis(
          self,
          "Let's run it past Sarah and co. They'll want to see this.",
      ) == [
          "Let's run it past Sarah and co.",
          "They'll want to see this.",
      ]
      assert sis(self, "Where is Bobby Jr.'s rabbit?") == [
          "Where is Bobby Jr.'s rabbit?"
      ]
      assert sis(
          self, "Please inform the U.K. authorities right away."
      ) == ["Please inform the U.K. authorities right away."]
      assert sis(self, "Were David and co. at the event?") == [
          "Were David and co. at the event?"
      ]
      assert sis(
          self,
          "paging dr. green, please come to theatre four immediately.",
      ) == [
          "paging dr. green, please come to theatre four immediately."
      ]
      assert sis(
          self,
          "The email format is Firstname.Lastname@example.com. I think you reversed them.",
      ) == [
          "The email format is Firstname.Lastname@example.com.",
          "I think you reversed them.",
      ]
      assert sis(
          self,
          "The demo site is: https://top100.example.com/subsection/latestnews.html. Please send us your feedback.",
      ) == [
          "The demo site is: https://top100.example.com/subsection/latestnews.html.",
          "Please send us your feedback.",
      ]
      assert sis(
          self, "Scowling at him, 'You are not done yet!' she yelled."
      ) == [
          "Scowling at him, 'You are not done yet!' she yelled."
      ]  # with the  final lowercase "she" we see it's all one sentence
      assert sis(self, "Hey!! So good to see you.") == [
          "Hey!!",
          "So good to see you.",
      ]
      assert sis(
          self, "He went to Yahoo! but I don't know the division."
      ) == ["He went to Yahoo! but I don't know the division."]
      assert sis(
          self,
          "If you can't remember a quote, “at least make up a memorable one that's plausible...\"",
      ) == [
          "If you can't remember a quote, “at least make up a memorable one that's plausible...\""
      ]
      assert sis(self, "The address is not google.com.") == [
          "The address is not google.com."
      ]
      assert sis(self, "1.) The first item 2.) The second item") == [
          "1.) The first item",
          "2.) The second item",
      ]
      assert sis(self, "1) The first item 2) The second item") == [
          "1) The first item",
          "2) The second item",
      ]
      assert sis(
          self,
          "a. The first item b. The second item c. The third list item",
      ) == [
          "a. The first item",
          "b. The second item",
          "c. The third list item",
      ]
  
file_path: TTS/tests/test_demo_server.py
imports: import os
  import unittest
  from tests import get_tests_input_path, get_tests_output_path
  from TTS.utils.synthesizer import Synthesizer
  from TTS.tts.utils.generic_utils import setup_model
  from TTS.tts.utils.io import save_checkpoint
  from TTS.tts.utils.text.symbols import make_symbols, phonemes, symbols
  from TTS.utils.io import load_config
label_desc: Use image node_id 3 for calling the DemoServerTest obj's underlying member method code with example usage: obj.test_split_into_sentences() without return types