예제 #1
0
    def __init__(self, text, locale="en_GB"):
        from readability_score.common import getTextScores, getMinimumAgeFromUsGrade

        self.us_grade = 0
        self.min_age = 0
        self.scores = getTextScores(text, locale)
        self.setGrade()
        self.min_age = getMinimumAgeFromUsGrade(self.us_grade)
예제 #2
0
    def __init__(self, text, locale='en_GB'):
        from readability_score.common import getTextScores, getMinimumAgeFromUsGrade

        self.us_grade = 0
        self.min_age = 0
        self.scores = getTextScores(text, locale)
        self.setGrade()
        self.min_age = getMinimumAgeFromUsGrade(self.us_grade)
예제 #3
0
 def __init__(self, text, locale='en_GB', simplewordlist=[]):
     TextAnalyzer.__init__(self, text, locale)
     self.setSimpleWordsList(simplewordlist)
     self.setTextScores()
     self.readingindex = 0
     self.us_grade = 0
     self.setReadingIndex()
     self.setGrade()
     self.min_age = getMinimumAgeFromUsGrade(self.us_grade)
예제 #4
0
 def __init__(self, text, locale='en_GB', simplewordlist=[]):
     TextAnalyzer.__init__(self,text,locale)
     self.setSimpleWordsList(simplewordlist)
     self.setTextScores()
     self.readingindex = 0
     self.us_grade = 0
     self.setReadingIndex()
     self.setGrade()
     self.min_age = getMinimumAgeFromUsGrade(self.us_grade)
예제 #5
0
    def __init__(self, text, locale='en_GB', simplewordlist=[]):
        from readability_score.common import getTextScores, getMinimumAgeFromUsGrade

        self.readingindex = 0
        self.us_grade = 0
        self.min_age = 0
        self.scores = getTextScores(text, locale, simplewordlist)
        self.setReadingIndex()
        self.setGrade()
        self.min_age = getMinimumAgeFromUsGrade(self.us_grade)
예제 #6
0
 def __init__(self, text, locale='en_GB', simplewordlist=[]):
     from readability_score.common import getTextScores, getMinimumAgeFromUsGrade
     
     self.readingindex = 0
     self.us_grade = 0
     self.min_age = 0
     self.scores = getTextScores(text, locale, simplewordlist)
     self.setReadingIndex()
     self.setGrade()
     self.min_age = getMinimumAgeFromUsGrade(self.us_grade)
예제 #7
0
 def __init__(self, text, locale='en_GB'):
     TextAnalyzer.__init__(self,text,locale)
     self.setTextScores()
     self.us_grade = 0
     self.setGrade()
     self.min_age = getMinimumAgeFromUsGrade(self.us_grade)
 def __init__(self, text, locale='en_GB'):
     TextAnalyzer.__init__(self,text,locale)
     self.setTextScores()
     self.us_grade = 0
     self.setGrade()
     self.min_age = getMinimumAgeFromUsGrade(self.us_grade)