from sklearn.preprocessing import LabelEncoder

class FutharkLabels:

  def __init__(self):
    runes = [
      "fe", "ur", "thurs", "as", "reith", "kaun", "hagall", "nauthr",
      "isa", "ar", "sol", "tyr", "bjork", "mathr", "logr", "yr"
    ]
    self.__encoder = LabelEncoder()
    self.__encoder.fit(runes)

  def encode(self, y):
    return self.__encoder.transform(y)

  def decode(self, y):
    return self.__encoder.inverse_transform(y)

  def decode_one(self, y):
    return self.__encoder.inverse_transform([y])[0]

2b3cd10d79e4da434614372fe5bd0ef69f122e79
<mask token>


class FutharkLabels:
    <mask token>

    def encode(self, y):
        return self.__encoder.transform(y)
    <mask token>

    def decode_one(self, y):
        return self.__encoder.inverse_transform([y])[0]

<mask token>


class FutharkLabels:

    def __init__(self):
        runes = ['fe', 'ur', 'thurs', 'as', 'reith', 'kaun', 'hagall',
            'nauthr', 'isa', 'ar', 'sol', 'tyr', 'bjork', 'mathr', 'logr', 'yr'
            ]
        self.__encoder = LabelEncoder()
        self.__encoder.fit(runes)

    def encode(self, y):
        return self.__encoder.transform(y)
    <mask token>

    def decode_one(self, y):
        return self.__encoder.inverse_transform([y])[0]

<mask token>


class FutharkLabels:

    def __init__(self):
        runes = ['fe', 'ur', 'thurs', 'as', 'reith', 'kaun', 'hagall',
            'nauthr', 'isa', 'ar', 'sol', 'tyr', 'bjork', 'mathr', 'logr', 'yr'
            ]
        self.__encoder = LabelEncoder()
        self.__encoder.fit(runes)

    def encode(self, y):
        return self.__encoder.transform(y)

    def decode(self, y):
        return self.__encoder.inverse_transform(y)

    def decode_one(self, y):
        return self.__encoder.inverse_transform([y])[0]

from sklearn.preprocessing import LabelEncoder


class FutharkLabels:

    def __init__(self):
        runes = ['fe', 'ur', 'thurs', 'as', 'reith', 'kaun', 'hagall',
            'nauthr', 'isa', 'ar', 'sol', 'tyr', 'bjork', 'mathr', 'logr', 'yr'
            ]
        self.__encoder = LabelEncoder()
        self.__encoder.fit(runes)

    def encode(self, y):
        return self.__encoder.transform(y)

    def decode(self, y):
        return self.__encoder.inverse_transform(y)

    def decode_one(self, y):
        return self.__encoder.inverse_transform([y])[0]

from sklearn.preprocessing import LabelEncoder

class FutharkLabels:

  def __init__(self):
    runes = [
      "fe", "ur", "thurs", "as", "reith", "kaun", "hagall", "nauthr",
      "isa", "ar", "sol", "tyr", "bjork", "mathr", "logr", "yr"
    ]
    self.__encoder = LabelEncoder()
    self.__encoder.fit(runes)

  def encode(self, y):
    return self.__encoder.transform(y)

  def decode(self, y):
    return self.__encoder.inverse_transform(y)

  def decode_one(self, y):
    return self.__encoder.inverse_transform([y])[0]
