コード例 #1
0
ファイル: third_party.py プロジェクト: kavinyao/Pure
 def predict(self, document):
     s = kohlschuetter_css_weninger_model.analyze(document.html_string)
     return str_to_unicode(s)
コード例 #2
0
ファイル: readability.py プロジェクト: kavinyao/Pure
def read_unicode_from(file):
    with open(file) as f:
        content = f.read()
        return str_to_unicode(content)