new approach to noembeddingphrase

This commit is contained in:
stuart committed 2026-02-25 14:36:32 +01:00
1 parent 7cc7d05fc6
commit 3e4bb3ba9e
1 file changed
+5 -3
+5 -3
View File
@@ -7,10 +7,12 @@ import numpy as np
class NoEmbeddingPhrase(Lexeme):
@classmethod
def from_dict(cls, data: dict) -> "NoEmbeddingPhrase":
return cls(id=data["id"], content=data["content"],embedding=None)
def __init__(self, id: str, content: str):
super().__init__(id=id, content=content, embedding=None)
@property
def embedding(self):
return None
class Phrase(Lexeme):