from .base import Filth


class NamedEntityFilth(Filth):
    """
    Named entity filth. Upon initialisation provide a label for named entity (e.g. name, org)
    """
    type = 'named_entity'

    def __init__(self, *args, label: str, **kwargs):
        super(NamedEntityFilth, self).__init__(*args, **kwargs)
        self.type = "{}_{}".format(self.type, label).lower()

from .base import Filth


class NamedEntityFilth(Filth):
    """
    Named entity filth. Upon initialisation provide a label for named entity (e.g. name, org)
    """
    type = 'named_entity'

    def __init__(self, *args, label: str, **kwargs):
        super(NamedEntityFilth, self).__init__(*args, **kwargs)
        self.label = label.lower()

Revert NamedEntityFilth name because it was a bad idea
Revert NamedEntityFilth name because it was a bad idea

  from .base import Filth
  
  
  class NamedEntityFilth(Filth):
      """
      Named entity filth. Upon initialisation provide a label for named entity (e.g. name, org)
      """
      type = 'named_entity'
  
      def __init__(self, *args, label: str, **kwargs):
          super(NamedEntityFilth, self).__init__(*args, **kwargs)
-         self.type = "{}_{}".format(self.type, label).lower()
+         self.label = label.lower()
  
Revert NamedEntityFilth name because it was a bad idea
## Code Before:
from .base import Filth


class NamedEntityFilth(Filth):
    """
    Named entity filth. Upon initialisation provide a label for named entity (e.g. name, org)
    """
    type = 'named_entity'

    def __init__(self, *args, label: str, **kwargs):
        super(NamedEntityFilth, self).__init__(*args, **kwargs)
        self.type = "{}_{}".format(self.type, label).lower()

## Instruction:
Revert NamedEntityFilth name because it was a bad idea
## Code After:
from .base import Filth


class NamedEntityFilth(Filth):
    """
    Named entity filth. Upon initialisation provide a label for named entity (e.g. name, org)
    """
    type = 'named_entity'

    def __init__(self, *args, label: str, **kwargs):
        super(NamedEntityFilth, self).__init__(*args, **kwargs)
        self.label = label.lower()
