Did I find the right examples for you? yes no

All Samples(4)  |  Call(3)  |  Derive(0)  |  Import(1)

src/t/e/Text-Extraction-Evaluation-HEAD/src/txtexeval/extractor.py   Text-Extraction-Evaluation(Download)
 
import settings
from .util import Request, html_to_text
from .util.zemanta.client import ClientManager
from .evaluation import TextResultFormat, CleanEvalFormat
    def formatted_result(cls, result_string):
        js = json.loads(result_string, encoding = 'utf8')
        result_html = js['result'].encode('utf8','ignore')
        return TextResultFormat(html_to_text(result_html,'utf8'))
 
    def formatted_result(cls, result_string):
        return TextResultFormat(html_to_text(result_string, 'utf8'))
 
 
class PythonReadabilityExtractor(BaseExtractor):
    def formatted_result(cls, result_string):
        return TextResultFormat(html_to_text(result_string, 'utf8'))
 
class NodeReadabilityExtractor(_FormattedResultMin,BaseExtractor):
    '''Extractor based on node-readability'''