From a0f3fa492f3ba0b8f45792ca24ae1fbdc47bb97f Mon Sep 17 00:00:00 2001 From: stuartgo Date: Wed, 25 Feb 2026 16:11:23 +0100 Subject: [PATCH] completely remove noembeddingphrase --- anansyTypes/__init__.py | 3 +-- anansyTypes/schemas.py | 2 +- anansyTypes/structures/__init__.py | 3 +-- anansyTypes/structures/lexeme.py | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/anansyTypes/__init__.py b/anansyTypes/__init__.py index e52d7e0..7d245de 100644 --- a/anansyTypes/__init__.py +++ b/anansyTypes/__init__.py @@ -1,6 +1,6 @@ from .enums import * from .schemas import * -from .structures import Embedding, Word, Symbol, Phrase,Lexeme,NoEmbeddingPhrase +from .structures import Embedding, Word, Symbol, Phrase,Lexeme __all__ = [ @@ -11,7 +11,6 @@ __all__ = [ "Symbol", "Phrase", "Lexeme", - "NoEmbeddingPhrase", "EmbedRequest", "EmbeddingResponse", "ResponseRequest", diff --git a/anansyTypes/schemas.py b/anansyTypes/schemas.py index 719d7b7..0050e55 100644 --- a/anansyTypes/schemas.py +++ b/anansyTypes/schemas.py @@ -2,7 +2,7 @@ from pydantic import BaseModel as PydanticBaseModel from typing import List, Any, Dict, Optional,Union -from .structures import Embedding,Word, Symbol,Phrase,NoEmbeddingPhrase +from .structures import Embedding,Word, Symbol,Phrase from pydantic import field_validator, ConfigDict from pydantic_tensor import Tensor import torch diff --git a/anansyTypes/structures/__init__.py b/anansyTypes/structures/__init__.py index 22bf775..7ac324a 100644 --- a/anansyTypes/structures/__init__.py +++ b/anansyTypes/structures/__init__.py @@ -2,7 +2,7 @@ from .embedding import Embedding from .lexeme import Lexeme from .word import Word from .symbol import Symbol -from .phrase import Phrase,NoEmbeddingPhrase +from .phrase import Phrase __all__ = [ @@ -11,5 +11,4 @@ __all__ = [ "Word", "Symbol", "Phrase", - "NoEmbeddingPhrase", ] diff --git a/anansyTypes/structures/lexeme.py b/anansyTypes/structures/lexeme.py index 25c1a10..f460b33 100644 --- a/anansyTypes/structures/lexeme.py +++ b/anansyTypes/structures/lexeme.py @@ -19,7 +19,7 @@ class Lexeme(BaseModel,ABC): content=data["content"], embedding=Embedding.from_dict(data["embedding"]), original_content=data["original_content"], - ) + ) def __new__(cls, *args, **kwargs): if cls is Lexeme: raise TypeError("Lexeme cannot be instantiated, use a subclass instead")