class_docstr: Generates feature level statistics for natural language stats.
  
  A combiner that uses a pluggable NL classifier to generate natural language
  stats for input examples. After the statistics are combined it classifies
  as NL iff both the stats represent enough values (self._values_threshold)
  and the match ratio is high enough (self._match_ratio).
docstr: Return result of converting accumulator into the output value.
  
  Args:
    accumulator: The final accumulator value.
  
  Returns:
    A proto representing the result of this stats generator.
docstr_tok: ["Return","result","of","converting","accumulator","into","the","output","value",".","Args",":","accumulator",":","The","final","accumulator","value",".","Returns",":","A","proto","representing","the","result","of","this","stats","generator","."]
code: def extract_output(
      self, accumulator: _PartialNLStats
  ) -> statistics_pb2.FeatureNameStatistics:
      """Return result of converting accumulator into the output value.
  
      Args:
        accumulator: The final accumulator value.
  
      Returns:
        A proto representing the result of this stats generator.
      """
      result = statistics_pb2.FeatureNameStatistics()
      if (
          not accumulator.invalidate
          and accumulator.considered >= self._values_threshold
      ):
          match_ratio = (
              float(accumulator.matched) / accumulator.considered
          )
          if match_ratio >= self._match_ratio:
              result.custom_stats.add(
                  name=stats_util.DOMAIN_INFO,
                  str="natural_language_domain {}",
              )
              result.custom_stats.add(
                  name=_NL_MATCH_RATIO, num=match_ratio
              )
      return result
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  from typing import Optional
  import numpy
  import pyarrow
  import six
  from tensorflow_data_validation import types
  from tensorflow_data_validation.statistics.generators import stats_generator
  from tensorflow_data_validation.utils import stats_util
  from tfx_bsl.arrow import array_util
  from typing import Iterable, Text
  from tensorflow_metadata.proto.v0 import statistics_pb2
label_desc: Use image node_id 5 for calling the NLDomainInferringStatsGenerator obj's underlying member method code with example usage: obj.extract_output(accumulator) and returns: result