docstr: Constructs a new byte pair vectorizer.
docstr_tok: ["Constructs","a","new","byte","pair","vectorizer","."]
code: def __init__(
      self,
      config: Dict[Text, Any],
      name: Text,
  ) -> None:
      """Constructs a new byte pair vectorizer."""
      super().__init__(name, config)
      # The configuration dictionary is saved in `self._config` for reference.
      self.model = BPEmb(
          lang=self._config["lang"],
          dim=self._config["dim"],
          vs=self._config["vs"],
          vs_fallback=self._config["vs_fallback"],
      )
  
imports: import numpy
  import logging
  from bpemb import BPEmb
  from typing import Any, Text, Dict, List, Type
  from rasa.engine.recipes.default_recipe import DefaultV1Recipe
  from rasa.engine.graph import ExecutionContext, GraphComponent
  from rasa.engine.storage.resource import Resource
  from rasa.engine.storage.storage import ModelStorage
  from rasa.nlu.featurizers.dense_featurizer.dense_featurizer import DenseFeaturizer
  from rasa.nlu.tokenizers.tokenizer import Tokenizer
  from rasa.shared.nlu.training_data.training_data import TrainingData
  from rasa.shared.nlu.training_data.features import Features
  from rasa.shared.nlu.training_data.message import Message
  from rasa.nlu.constants import DENSE_FEATURIZABLE_ATTRIBUTES, FEATURIZER_CLASS_ALIAS
  from rasa.shared.nlu.constants import TEXT, TEXT_TOKENS, FEATURE_TYPE_SENTENCE, FEATURE_TYPE_SEQUENCE
label_desc: Use image node_id 4 to create a new BytePairFeaturizer object from inherited base classes: DenseFeaturizer, GraphComponent with example: obj = BytePairFeaturizer(config, name)