class_docstr: DeepPavlov model pipeline element.
docstr: Args:
      component: Pipeline component object.
      x: Names of the component inference inputs. Output from other pipeline elements with such names will be fed
          to the input of this component.
      out: Names of the component inference outputs. Component outputs can be fed to other pipeline elements
          using this names.
      y: Names of additional inputs (targets) for component training and evaluation.
      main: Set True if this is the main component. Main component is trained during model training process.
docstr_tok: ["Args",":","component",":","Pipeline","component","object",".","x",":","Names","of","the","component","inference","inputs",".","Output","from","other","pipeline","elements","with","such","names","will","be","fed","to","the","input","of","this","component",".","out",":","Names","of","the","component","inference","outputs",".","Component","outputs","can","be","fed","to","other","pipeline","elements","using","this","names",".","y",":","Names","of","additional","inputs","(","targets",")","for","component","training","and","evaluation",".","main",":","Set","True","if","this","is","the","main","component",".","Main","component","is","trained","during","model","training","process","."]
code: def __init__(
      self,
      component: Union[Component, FunctionType],
      x: Optional[Union[str, list]] = None,
      out: Optional[Union[str, list]] = None,
      y: Optional[Union[str, list]] = None,
      main: bool = False,
  ) -> None:
      """
      Args:
          component: Pipeline component object.
          x: Names of the component inference inputs. Output from other pipeline elements with such names will be fed
              to the input of this component.
          out: Names of the component inference outputs. Component outputs can be fed to other pipeline elements
              using this names.
          y: Names of additional inputs (targets) for component training and evaluation.
          main: Set True if this is the main component. Main component is trained during model training process.
      """
      self.component = component
      self.x = x
      self.y = y
      self.out = out
      self.main = main
  
file_path: DeepPavlov/deeppavlov/core/common/base.py
imports: from types import FunctionType
  from typing import List, Optional, Union
  from deeppavlov.core.common.chainer import Chainer
  from deeppavlov.core.models.component import Component
label_desc: Use image node_id 1 to create a new Element object  with example: obj = Element(component, x, out, y, main)