class POSTagger: def __init__(self): self.tag_dict = {} self.lex_dict = {} self.classifier = MaxEntClassifier() self.cache = {} return def load_model(self,model_path): try: self.classifier.load( model_path ) except Exception,e: sys.exit("Error: Failure load POS model from %s (%s)" %(model_path,e)) return
def __init__(self): self.tag_dict = {} self.lex_dict = {} self.classifier = MaxEntClassifier() self.cache = {} return