zeeguu/core/language/strategies/default_difficulty_estimator.py
def estimate_difficulty(cls, text: str, language: 'model.Language', user: 'model.User'):
        '''
        The default difficulty estimator. Used when no matching estimator was found by the factory.
        :param text: See DifficultyEstimatorStrategy
        :param language: See DifficultyEstimatorStrategy
        :param user: See DifficultyEstimatorStrategy
        :rtype: dict
        :return: The dictionary contains the keys and return types
                    normalized: float (0<=normalized<=1)
                    discrete: string [EASY, MEDIUM, HARD]
        '''
        difficulty_scores = dict(
            normalized=0.0,
            discrete="EASY",
        )
        return difficulty_scores

        The default difficulty estimator. Used when no matching estimator was found by the factory.
        :param text: See DifficultyEstimatorStrategy
        :param language: See DifficultyEstimatorStrategy
        :param user: See DifficultyEstimatorStrategy
        :rtype: dict
        :return: The dictionary contains the keys and return types
                    normalized: float (0<=normalized<=1)
                    discrete: string [EASY, MEDIUM, HARD]
        
The default difficulty estimator. Used when no matching estimator was found by the factory.
The default difficulty estimator . Used when no matching estimator was found by the factory .
def estimate_difficulty(cls, text: str, language: 'model.Language', user: 'model.User'):
        difficulty_scores = dict(
            normalized=0.0,
            discrete="EASY",
        )
        return difficulty_scores
def estimate_difficulty ( cls , text : str , language : 'model.Language' , user : 'model.User' ) : difficulty_scores = dict ( normalized = 0.0 , discrete = "EASY" , ) return difficulty_scores
The default difficulty estimator.
The default difficulty estimator .
'''
        The default difficulty estimator. Used when no matching estimator was found by the factory.
        :param text: See DifficultyEstimatorStrategy
        :param language: See DifficultyEstimatorStrategy
        :param user: See DifficultyEstimatorStrategy
        :rtype: dict
        :return: The dictionary contains the keys and return types
                    normalized: float (0<=normalized<=1)
                    discrete: string [EASY, MEDIUM, HARD]
        '''
The dictionary contains the keys and return types
normalized: float (0<=normalized<=1)
discrete: string [EASY, MEDIUM, HARD]
The dictionary contains the keys and return types normalized : float ( 0< = normalized< = 1 ) discrete : string [ EASY MEDIUM HARD ]
dict
cls
text
str
None
language
'model.Language'
None
user
'model.User'
None