thlinhares commited on
Commit
abdc816
·
verified ·
1 Parent(s): b52eac0

Create base_analyzer.py

Browse files
Files changed (1) hide show
  1. base_analyzer.py +11 -0
base_analyzer.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from abc import ABC, abstractmethod
2
+ from typing import Dict, List, Tuple
3
+
4
+ class BaseAnalyzer(ABC):
5
+ @abstractmethod
6
+ def analyze(self, text: str):
7
+ pass
8
+
9
+ @abstractmethod
10
+ def format_output(self, result) -> str:
11
+ pass