def __init__(self, input_file, output_file, rho_log, ht_log): self.lang = LanguageChecker('italian') self.hashtag = HashtagExtractor() self.annotator = AnnotationExtractor() self.italian = 0 self.annotated = 0 self.total = 0 self.requests = 0 self.coht = 0 self.rho_warn = 0 self.rho_log = gzip.open(rho_log, 'w') self.ht_log = gzip.open(ht_log, 'w') self.input_file = input_file self.output_file = output_file
def __init__(self): self.extractor = AnnotationExtractor() self.hastag = HashtagExtractor()