@@ -0,0 +1,14 @@
|
||||
"""Parser base class."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from abc import ABC, abstractmethod
|
||||
from pathlib import Path
|
||||
|
||||
from rag_cut.models import Block
|
||||
|
||||
|
||||
class BaseParser(ABC):
|
||||
@abstractmethod
|
||||
def parse(self, path: Path, assets_dir: Path) -> list[Block]:
|
||||
raise NotImplementedError
|
||||
Reference in New Issue
Block a user