From 2b0dbe77e64e5ffcc00b9bdd4db4a2b80a4ccba2 Mon Sep 17 00:00:00 2001 From: stuartgo Date: Mon, 15 Dec 2025 14:47:28 +0100 Subject: [PATCH] remove noembeddingphrase --- anansyTypes/structures/phrase.py | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/anansyTypes/structures/phrase.py b/anansyTypes/structures/phrase.py index de9dfe2..bcd2abf 100644 --- a/anansyTypes/structures/phrase.py +++ b/anansyTypes/structures/phrase.py @@ -25,24 +25,4 @@ class Phrase(Lexeme): content=data["content"], embedding=Embedding.from_dict(data["embedding"]), ) - - -class NoEmbeddingPhrase(Lexeme): - def __init__(self, id: int, content: str): - self.id = id - self._content = content - self._embedding=np.array([]) # Placeholder to avoid attribute errors - @property - def content(self) -> str: - return self._content - - @property - def embedding(self) -> Embedding: - return self._embedding - - @classmethod - def from_dict(cls, data: dict) -> "Phrase": - return cls( - id=data["id"], - content=data["content"] - ) \ No newline at end of file + \ No newline at end of file