File size: 521 Bytes
46ea0ef
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
"""Base classifier interface."""

from abc import ABC, abstractmethod


class BaseClassifier(ABC):
    """Abstract base class for page classifiers."""
    
    @abstractmethod
    def is_product_page(self, url: str, markdown: str) -> bool:
        """
        Determine if a page is a product customization page.
        
        Args:
            url: The page URL
            markdown: The page content in markdown
            
        Returns:
            True if product page, False otherwise
        """
        pass