def scores(self, text: str) -> Dict[str, float]:
        """A score for each language corresponding to the probability that
        the text is written in the given language.
        The score is a `float` value between 0.0 and 1.0

        :param text: source code.
        :return: language to score dictionary
        """
        values = extract(text)
        input_fn = _to_func(([values], []))
        prediction = self._classifier.predict_proba(input_fn=input_fn)
        probabilities = next(prediction).tolist()
        sorted_languages = sorted(self.languages)
        return dict(zip(sorted_languages, probabilities))
A score for each language corresponding to the probability that
        the text is written in the given language.
        The score is a `float` value between 0.0 and 1.0

        :param text: source code.
        :return: language to score dictionary