docstr: Tests bad initialization values.
docstr_tok: ["Tests","bad","initialization","values","."]
code: def test_nl_generator_bad_initialization(self):
      """Tests bad initialization values."""
      with self.assertRaisesRegexp(
          ValueError,
          "NLDomainInferringStatsGenerator expects values_threshold > 0.",
      ):
          nlsg.NLDomainInferringStatsGenerator(values_threshold=0)
      with self.assertRaisesRegexp(
          ValueError,
          r"NLDomainInferringStatsGenerator expects a match_ratio in \[0, 1\].",
      ):
          nlsg.NLDomainInferringStatsGenerator(match_ratio=1.1)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from absl.testing import absltest
  import pyarrow
  from tensorflow_data_validation.statistics.generators import natural_language_domain_inferring_stats_generator
  from tensorflow_data_validation.utils import test_util
  from typing import Text
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 6 for calling the NaturalLanguageStatsGeneratorTest obj's underlying member method code with example usage: obj.test_nl_generator_bad_initialization() without return types