Spaces:
Running
Running
Create base_analyzer.py
Browse files- 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
|