From c15b1d99a0e02719df9c5b5c10d00c4f658d09a7 Mon Sep 17 00:00:00 2001 From: stuartgo Date: Sat, 27 Dec 2025 23:51:21 +0100 Subject: [PATCH] small fix that corrects original content --- anansyTypes/structures/phrase.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/anansyTypes/structures/phrase.py b/anansyTypes/structures/phrase.py index d79f82d..e1403e2 100644 --- a/anansyTypes/structures/phrase.py +++ b/anansyTypes/structures/phrase.py @@ -10,6 +10,7 @@ class NoEmbeddingPhrase(Lexeme): def __init__(self, id: int, content: str): self.id = id self._content = content + self._original_content = content self._embedding = np.array([]) # Placeholder to avoid attribute errors @property @@ -34,6 +35,7 @@ class Phrase(Lexeme): def __init__(self, id: int, content: str, embedding: Embedding): self.id = id self._content = content + self._original_content = content self._embedding = embedding @property