Loading ahisto_named_entity_search/classification/model.py +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ from ..search import TaggedSentence class ClassificationModel: CONFIG = _CONFIG['classification.ClassificationModel'] MODEL = Path(__file__).parent / CONFIG['model'] MODEL = Path(__file__).parent.parent / CONFIG['model'] def __init__(self): with self.MODEL.open('rb') as f: Loading Loading
ahisto_named_entity_search/classification/model.py +1 −1 Original line number Diff line number Diff line Loading @@ -8,7 +8,7 @@ from ..search import TaggedSentence class ClassificationModel: CONFIG = _CONFIG['classification.ClassificationModel'] MODEL = Path(__file__).parent / CONFIG['model'] MODEL = Path(__file__).parent.parent / CONFIG['model'] def __init__(self): with self.MODEL.open('rb') as f: Loading