Пример #1
0
 def predict(self, document):
     s = kohlschuetter_css_weninger_model.analyze(document.html_string)
     return str_to_unicode(s)
Пример #2
0
def read_unicode_from(file):
    with open(file) as f:
        content = f.read()
        return str_to_unicode(content)