Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
thlinhares
/
docling
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
dcc00b3
docling
/
base_analyzer.py
thlinhares
Create base_analyzer.py
abdc816
verified
7 months ago
raw
Copy download link
history
blame
Safe
243 Bytes
from
abc
import
ABC, abstractmethod
from
typing
import
Dict
,
List
,
Tuple
class
BaseAnalyzer
(
ABC
):
@abstractmethod
def
analyze
(
self, text:
str
):
pass
@abstractmethod
def
format_output
(
self, result
) ->
str
:
pass