restructure folders

This commit is contained in:
stuart committed 2025-12-07 15:34:03 +01:00
1 parent 8b8db8ae24
commit 676c5ef1d7
9 files changed
+2 -2

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
from abc import ABC, abstractmethod
from typing import List, Union
from dataclasses import dataclass
from .embedding import Embedding
@dataclass
class Lexeme(ABC):
id: int
@property
@abstractmethod
def content(self) -> Union[str, List[str]]:
"""Text content of the lexeme."""
pass
@property
@abstractmethod
def embedding(self) -> Embedding:
"""Embedding(s) associated with the lexeme."""
pass